/* ============================================================
   MARGETC STORE - CATALOGO PUBLICO / PASO 2
   Scoped styles: all selectors use the store- prefix.
============================================================ */

.store-catalog {
    --store-accent: var(--primary-color, #0e1644);
    --store-accent-2: var(--secondary-color, #172554);
    --store-text: #111827;
    --store-muted: #64748b;
    --store-line: #e5e7eb;
    --store-soft: #f7f8fb;
    --store-white: #fff;
    --store-radius: 20px;
    color: var(--store-text);
    background: var(--store-white);
}

.store-catalog *,
.store-catalog *::before,
.store-catalog *::after {
    box-sizing: border-box;
}

.store-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.store-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.store-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 112px) 0;
    background:
        radial-gradient(circle at 88% 16%, rgba(255,255,255,.13), transparent 22%),
        linear-gradient(135deg, var(--store-accent) 0%, var(--store-accent-2) 100%);
    color: #fff;
}

.store-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    aspect-ratio: 1;
    right: -180px;
    bottom: -270px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
}

.store-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 42px;
    align-items: end;
}

.store-hero__copy {
    max-width: 760px;
}

.store-eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.store-hero h1,
.store-heading h2,
.store-contact-strip h2 {
    margin: 0;
    text-wrap: balance;
}

.store-hero h1 {
    max-width: 820px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: .98;
    letter-spacing: -.045em;
}

.store-hero__text {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.65;
}

.store-hero__summary {
    min-width: 170px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}

.store-hero__summary strong {
    display: block;
    font-size: 42px;
    line-height: 1;
}

.store-hero__summary span {
    display: block;
    margin-top: 7px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
}

.store-section {
    padding: clamp(58px, 8vw, 96px) 0;
}

.store-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.store-heading .store-eyebrow,
.store-contact-strip .store-eyebrow {
    color: var(--store-accent);
}

.store-heading h2,
.store-contact-strip h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.store-result-count {
    margin: 0;
    color: var(--store-muted);
    font-size: 14px;
    white-space: nowrap;
}

.store-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 12px;
    margin-bottom: 18px;
}

.store-search {
    position: relative;
    display: flex;
    align-items: center;
}

.store-search svg {
    position: absolute;
    left: 17px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    color: #64748b;
    pointer-events: none;
}

.store-search input,
.store-sort {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--store-line);
    border-radius: 14px;
    background: #fff;
    color: var(--store-text);
    font: inherit;
    outline: none;
}

.store-search input {
    padding: 0 18px 0 48px;
}

.store-sort {
    padding: 0 38px 0 14px;
    cursor: pointer;
}

.store-search input:focus,
.store-sort:focus,
.store-filter:focus-visible,
.store-whatsapp:focus-visible,
.store-empty-filter button:focus-visible {
    border-color: var(--store-accent);
    outline: 3px solid color-mix(in srgb, var(--store-accent) 18%, transparent);
    outline-offset: 1px;
}

.store-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 24px;
    scrollbar-width: thin;
}

.store-filter {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--store-line);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.store-filter:hover,
.store-filter.is-active {
    border-color: var(--store-accent);
    background: var(--store-accent);
    color: #fff;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.store-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius);
    background: #fff;
}

.store-card[hidden] {
    display: none !important;
}

.store-card__media {
    position: relative;
    aspect-ratio: 1 / .82;
    overflow: hidden;
    background: #f1f5f9;
}

.store-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.store-card:hover .store-card__media img {
    transform: scale(1.025);
}

.store-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(145deg, #eef2f7, #f8fafc);
}

.store-card__placeholder span {
    display: grid;
    width: 78px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--store-accent);
    font-size: 34px;
    font-weight: 800;
}

.store-card__badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    pointer-events: none;
}

.store-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.93);
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.store-badge--featured {
    background: var(--store-accent);
    color: #fff;
}

.store-badge--out_of_stock {
    background: #fff1f2;
    color: #9f1239;
}

.store-badge--on_request {
    background: #fff7ed;
    color: #9a3412;
}

.store-badge--available {
    background: #ecfdf5;
    color: #047857;
}

.store-card__body {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    padding: 22px;
}

.store-card__category {
    margin: 0 0 8px;
    color: var(--store-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.store-card h3 {
    margin: 0;
    font-size: 23px;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.store-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 13px 0 0;
    color: var(--store-muted);
    font-size: 14.5px;
    line-height: 1.62;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.store-card__footer {
    margin-top: auto;
    padding-top: 24px;
}

.store-price {
    display: flex;
    min-height: 48px;
    flex-direction: column;
    justify-content: end;
    margin-bottom: 14px;
}

.store-price del {
    color: #94a3b8;
    font-size: 13px;
}

.store-price strong {
    color: var(--store-text);
    font-size: 22px;
    letter-spacing: -.02em;
}

.store-whatsapp {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid #16a34a;
    border-radius: 13px;
    background: #16a34a;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.store-whatsapp:hover {
    background: #15803d;
    color: #fff;
    transform: translateY(-1px);
}

.store-whatsapp svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.store-whatsapp--disabled {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.store-empty,
.store-empty-filter {
    padding: 54px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: var(--store-radius);
    background: var(--store-soft);
    text-align: center;
}

.store-empty strong,
.store-empty-filter strong {
    display: block;
    font-size: 23px;
}

.store-empty p,
.store-empty-filter p {
    margin: 10px auto 20px;
    color: var(--store-muted);
}

.store-empty a,
.store-empty-filter button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid var(--store-accent);
    border-radius: 12px;
    background: var(--store-accent);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.store-contact-strip {
    padding: 64px 0;
    border-top: 1px solid var(--store-line);
    background: var(--store-soft);
}

.store-contact-strip__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 36px;
    align-items: center;
}

.store-contact-strip p:not(.store-eyebrow) {
    max-width: 700px;
    margin: 16px 0 0;
    color: var(--store-muted);
    line-height: 1.65;
}

.store-contact-strip__note {
    padding: 14px 16px;
    border: 1px solid var(--store-line);
    border-radius: 14px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 920px) {
    .store-hero__inner,
    .store-contact-strip__inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .store-hero__summary {
        width: fit-content;
    }

    .store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-contact-strip__note {
        width: fit-content;
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .store-container {
        width: min(100% - 28px, 1180px);
    }

    .store-hero {
        padding: 58px 0 62px;
    }

    .store-hero h1 {
        font-size: clamp(36px, 12vw, 54px);
    }

    .store-heading {
        align-items: start;
        flex-direction: column;
    }

    .store-toolbar {
        grid-template-columns: 1fr;
    }

    .store-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .store-card__media {
        aspect-ratio: 1 / .78;
    }

    .store-card__body {
        min-height: 0;
    }

    .store-card__description {
        -webkit-line-clamp: 4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-card__media img,
    .store-whatsapp {
        transition: none;
    }
}

/* ============================================================
   MARGETC STORE - FICHA, CATEGORIAS Y MEJORAS FINALES
============================================================ */
.store-breadcrumbs{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding-block:18px;color:#64748b;font-size:13px}.store-breadcrumbs a{color:#334155;text-decoration:none;font-weight:700}.store-breadcrumbs a:hover{text-decoration:underline}.store-category-strip{border-bottom:1px solid var(--store-line);background:#fff}.store-category-strip__inner{display:flex;gap:10px;overflow:auto;padding-block:18px}.store-category-strip a{display:flex;min-width:170px;flex-direction:column;gap:3px;padding:14px 16px;border:1px solid var(--store-line);border-radius:14px;background:#fff;color:var(--store-text);text-decoration:none}.store-category-strip a:hover{border-color:var(--store-accent)}.store-category-strip strong{font-size:14px}.store-category-strip span{color:var(--store-muted);font-size:12px}.store-card__media{display:block;color:inherit;text-decoration:none}.store-card__category{display:inline-flex;text-decoration:none}.store-card__category:hover{text-decoration:underline}.store-card h3 a{color:inherit;text-decoration:none}.store-card h3 a:hover{text-decoration:underline}.store-card__price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:22px}.store-card__price strong{font-size:22px;letter-spacing:-.02em}.store-card__price del{color:#94a3b8;font-size:13px}.store-card__actions{display:grid;grid-template-columns:.75fr 1.25fr;gap:8px;margin-top:14px}.store-card__detail{display:flex;min-height:48px;align-items:center;justify-content:center;padding:10px 12px;border:1px solid var(--store-line);border-radius:13px;color:#334155;text-decoration:none;font-size:14px;font-weight:800}.store-card__detail:hover{border-color:var(--store-accent);color:var(--store-accent)}.store-card__actions .store-whatsapp{min-width:0}.store-contact-strip__inner>a{display:inline-flex;min-height:48px;align-items:center;justify-content:center;padding:0 18px;border-radius:13px;background:var(--store-accent);color:#fff;text-decoration:none;font-weight:800}.store-text-link{color:var(--store-accent);font-weight:800;text-decoration:none}.store-text-link:hover{text-decoration:underline}

.store-category-hero{padding:54px 0 48px;background:var(--store-soft);border-block:1px solid var(--store-line)}.store-category-hero h1{margin:7px 0 12px;font-size:clamp(38px,6vw,68px);line-height:1;letter-spacing:-.045em}.store-category-hero p{max-width:760px;margin:0;color:var(--store-muted);font-size:17px;line-height:1.65}.store-back-link{display:inline-flex;margin-bottom:22px;color:var(--store-accent);text-decoration:none;font-size:13px;font-weight:800}.store-category-count{display:inline-flex;margin-top:20px;padding:7px 10px;border-radius:999px;background:#fff;border:1px solid var(--store-line);color:#475569;font-size:12px;font-weight:800}

.store-product-hero{padding:40px 0 76px}.store-product-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:56px;align-items:start}.store-gallery{min-width:0;position:sticky;top:18px}.store-gallery__main{overflow:hidden;aspect-ratio:1/1;border:1px solid var(--store-line);border-radius:24px;background:#f8fafc}.store-gallery__main img{display:block;width:100%;height:100%;object-fit:cover}.store-gallery__empty{display:grid;width:100%;height:100%;place-items:center;color:#94a3b8}.store-gallery__thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}.store-gallery__thumb{overflow:hidden;aspect-ratio:1;border:2px solid transparent;border-radius:12px;padding:0;background:#f8fafc;cursor:pointer}.store-gallery__thumb.is-active{border-color:var(--store-accent)}.store-gallery__thumb img{display:block;width:100%;height:100%;object-fit:cover}.store-product-summary{padding-top:14px}.store-product-category{display:inline-flex;margin-bottom:14px;color:var(--store-accent);font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;text-decoration:none}.store-product-summary h1{margin:0;font-size:clamp(38px,5vw,64px);line-height:1.02;letter-spacing:-.045em}.store-product-lead{margin:20px 0 0;color:var(--store-muted);font-size:17px;line-height:1.7}.store-product-status{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.store-product-price{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-top:24px;padding:20px 0;border-block:1px solid var(--store-line)}.store-product-price strong{font-size:clamp(28px,4vw,42px);letter-spacing:-.04em}.store-product-price del{color:#94a3b8}.store-product-meta{display:grid;gap:0;margin:18px 0 0}.store-product-meta div{display:grid;grid-template-columns:120px 1fr;gap:18px;padding:10px 0;border-bottom:1px solid #eef2f7}.store-product-meta dt{color:#64748b;font-size:13px}.store-product-meta dd{margin:0;color:#1e293b;font-weight:800}.store-product-actionbox{margin-top:24px;padding:18px;border:1px solid var(--store-line);border-radius:18px;background:var(--store-soft)}.store-product-actionbox p{margin:10px 0 0;color:#64748b;font-size:13px;line-height:1.55}.store-whatsapp--large{min-height:56px;font-size:16px}.store-product-content{padding:70px 0;background:var(--store-soft);border-block:1px solid var(--store-line)}.store-product-content__grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:34px;align-items:start}.store-product-copy,.store-product-specs{padding:28px;border:1px solid var(--store-line);border-radius:22px;background:#fff}.store-product-copy h2,.store-product-specs h2{margin:0 0 22px;font-size:clamp(28px,4vw,42px);letter-spacing:-.035em}.store-richtext{color:#334155;line-height:1.75}.store-richtext>*:first-child{margin-top:0}.store-richtext>*:last-child{margin-bottom:0}.store-richtext h2,.store-richtext h3,.store-richtext h4{color:#0f172a;line-height:1.2}.store-richtext img{max-width:100%;height:auto;border-radius:14px}.store-richtext table{width:100%;border-collapse:collapse}.store-richtext th,.store-richtext td{padding:10px;border:1px solid var(--store-line);text-align:left}.store-richtext ul,.store-richtext ol{padding-left:22px}.store-related{background:#fff}

@media(max-width:980px){.store-product-layout{grid-template-columns:1fr;gap:30px}.store-gallery{position:static;max-width:760px}.store-product-content__grid{grid-template-columns:1fr}.store-card__actions{grid-template-columns:1fr}}
@media(max-width:640px){.store-breadcrumbs{padding-block:14px}.store-product-hero{padding:18px 0 50px}.store-gallery__main{border-radius:18px}.store-gallery__thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}.store-product-summary{padding-top:0}.store-product-summary h1{font-size:clamp(36px,12vw,52px)}.store-product-meta div{grid-template-columns:92px 1fr}.store-product-copy,.store-product-specs{padding:20px}.store-category-strip a{min-width:145px}.store-card__actions{grid-template-columns:1fr}}


/* FAQ de producto */
.store-product-faq{padding:72px 0;background:#fff;border-bottom:1px solid var(--store-line)}
.store-faq-heading{max-width:760px;margin-bottom:28px}
.store-faq-heading h2{margin:4px 0 12px;font-size:clamp(30px,4vw,46px);line-height:1.08;letter-spacing:-.035em}
.store-faq-heading>p:last-child{margin:0;color:var(--store-muted);line-height:1.65}
.store-faq-list{display:grid;gap:10px;max-width:920px}
.store-faq-item{overflow:hidden;border:1px solid var(--store-line);border-radius:16px;background:#fff}
.store-faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;cursor:pointer;list-style:none;color:#0f172a;font-size:16px;font-weight:850}
.store-faq-item summary::-webkit-details-marker{display:none}
.store-faq-item[open] summary{border-bottom:1px solid #eef2f7}
.store-faq-icon{display:grid;width:30px;height:30px;flex:0 0 30px;place-items:center;border:1px solid var(--store-line);border-radius:50%;font-size:20px;font-weight:500;transition:transform .18s ease}
.store-faq-item[open] .store-faq-icon{transform:rotate(45deg)}
.store-faq-answer{padding:0 22px 22px;color:#475569;line-height:1.72}
.store-faq-answer p{margin:18px 0 0}
@media(max-width:640px){.store-product-faq{padding:52px 0}.store-faq-item summary{padding:17px 16px}.store-faq-answer{padding:0 16px 18px}}
@media(prefers-reduced-motion:reduce){.store-faq-icon{transition:none}}
