/* ============================================================
   PARCEROS - Catalogo publico
   Identidad: blanco / negro / naranja #F56E00
   Tipografia: Space Grotesk (display) + Inter (texto)
   ============================================================ */

:root {
    --brand: #F56E00;
    --brand-dark: #D45C00;
    --brand-tint: #FFF2E8;
    --brand-line: #FFD9BC;
    --on-brand: #FFFFFF;

    --ink: #0A0A0A;
    --ink-2: #4B4B52;
    --ink-3: #8A8A93;

    --paper: #FFFFFF;
    --paper-2: #F5F4F2;
    --paper-3: #EDEBE7;
    --line: #E4E2DE;

    --r-xs: 6px;
    --r-sm: 10px;
    --r: 14px;
    --r-lg: 22px;

    --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --body: 'Inter', system-ui, -apple-system, sans-serif;

    --shadow-sm: 0 1px 2px rgba(10, 10, 10, .04);
    --shadow: 0 10px 30px rgba(10, 10, 10, .08);
    --shadow-lg: 0 24px 60px rgba(10, 10, 10, .14);

    --max: 1280px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin: 0;
}

::selection { background: var(--brand); color: var(--on-brand); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Etiqueta pequena en mayusculas (eyebrow) */
.eyebrow {
    font-family: var(--display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand);
}

.eyebrow.muted { color: var(--ink-3); }

.muted { color: var(--ink-2); font-size: 0.92rem; }

/* ============================================================
   HEADER
   ============================================================ */
.store-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.store-header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
}

.store-brand { min-width: 0; }
.brand-text { min-width: 0; }

.store-brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: var(--r-xs);
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    position: relative;
    flex: 0 0 auto;
}

.brand-mark::after {
    content: '';
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 12px;
    height: 12px;
    background: var(--brand);
    border-radius: 2px;
}

.brand-text strong {
    display: block;
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.brand-text small {
    display: block;
    max-width: 24ch;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-logo {
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}

.store-header-actions { display: flex; align-items: center; gap: 10px; }

/* ---- Redes en la navbar ---- */
.social-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-right: 8px;
    margin-right: 4px;
    border-right: 1px solid var(--line);
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--r-xs);
    display: inline-grid;
    place-items: center;
    color: var(--ink);
    font-size: 1.05rem;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}

.social-link:hover {
    color: var(--brand);
    background: var(--brand-tint);
    transform: translateY(-1px);
}

/* ============================================================
   BOTONES
   ============================================================ */
.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: var(--brand);
    color: var(--on-brand);
    font-family: var(--display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.store-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.store-btn:active { transform: translateY(0); }
.store-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.store-btn.dark { background: var(--ink); }
.store-btn.dark:hover { background: var(--brand); }

.store-btn.ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.store-btn.ghost:hover { background: var(--paper-2); border-color: var(--ink); }

.store-btn.sm { padding: 10px 15px; font-size: 0.82rem; }
.store-btn.block { width: 100%; }

.cart-btn { position: relative; padding-right: 18px; }

.cart-count {
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--paper);
    color: var(--brand);
    font-family: var(--display);
    font-size: .74rem;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
}

.icon-link {
    width: 42px;
    height: 42px;
    border-radius: var(--r-xs);
    border: 1px solid var(--line);
    display: inline-grid;
    place-items: center;
    color: var(--ink);
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.icon-link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }

/* ============================================================
   MAIN
   ============================================================ */
.store-main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px 90px; }

/* ---------------- HERO editorial ---------------- */
.hero {
    padding: 76px 0 60px;
    max-width: 1000px;
}

.hero-logo {
    width: auto;
    max-width: min(100%, 420px);
    object-fit: contain;
    margin-bottom: 30px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.hero-eyebrow::before {
    content: '';
    width: 34px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
}

.hero h1 {
    font-size: clamp(2.9rem, 7.2vw, 6.2rem);
    line-height: .92;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 .accent { color: var(--brand); }

.hero h1 .outline {
    -webkit-text-stroke: 2px var(--ink);
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.12rem;
    color: var(--ink-2);
    max-width: 54ch;
    margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.hero-stat strong {
    display: block;
    font-family: var(--display);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-stat span {
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
}

/* ---------------- Marquee ---------------- */
.marquee {
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    padding: 15px 0;
    margin-bottom: 64px;
    border-radius: var(--r);
}

.marquee-track {
    display: flex;
    gap: 46px;
    width: max-content;
    animation: marquee 34s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 46px;
    font-family: var(--display);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee-item::after {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--brand);
    border-radius: 2px;
    transform: rotate(45deg);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ============================================================
   HOME EDITABLE - CARRUSEL DE BANNERS
   ============================================================ */
.hero-carousel {
    position: relative;
    margin: 22px 0 56px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--paper-2);
    outline: none;
}

.hc-viewport { overflow: hidden; }

.hc-track {
    display: flex;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.hc-slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
}

.hc-media {
    display: block;
    position: relative;
    aspect-ratio: var(--hc-ratio, 16 / 9);
    overflow: hidden;
    color: inherit;
}

.hc-media img {
    width: 100%;
    height: 100%;
    object-fit: var(--hc-fit, cover);
}

.hc-noimage {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 1px 1px, var(--paper-3) 1.4px, transparent 0) 0 0 / 22px 22px,
        var(--paper-2);
}

/* Texto sobre la imagen */
.hc-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: clamp(24px, 5vw, 64px);
    color: #fff;
    text-align: left;
    align-items: flex-start;
}

.hc-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, .78) 0%, rgba(10, 10, 10, .45) 45%, rgba(10, 10, 10, 0) 78%);
    z-index: 0;
}

.hc-content.pos-center { align-items: center; text-align: center; }
.hc-content.pos-center::before { background: linear-gradient(180deg, rgba(10, 10, 10, .25), rgba(10, 10, 10, .68)); }

.hc-content.pos-right { align-items: flex-end; text-align: right; }
.hc-content.pos-right::before { background: linear-gradient(270deg, rgba(10, 10, 10, .78) 0%, rgba(10, 10, 10, .45) 45%, rgba(10, 10, 10, 0) 78%); }

.hc-content > * { position: relative; z-index: 1; }

.hc-content .eyebrow { color: var(--brand); }

.hc-content h2 {
    font-size: clamp(1.7rem, 4.4vw, 3.6rem);
    line-height: .98;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    max-width: 18ch;
    color: #fff;
}

.hc-content.pos-center h2 { max-width: 22ch; }
.hc-content p { max-width: 44ch; color: rgba(255, 255, 255, .85); margin: 0; }

/* Portada de marca cuando no hay banners cargados */
.hc-fallback {
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1.4px, transparent 0) 0 0 / 22px 22px,
        var(--ink);
    aspect-ratio: var(--hc-ratio, 16 / 9);
    display: flex;
}
.hc-fallback .hc-content { position: relative; }
.hc-fallback .hc-content::before { display: none; }

/* Flechas y puntos */
.hc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: .95rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease, background .18s ease, color .18s ease;
    z-index: 3;
}

.hc-nav.prev { left: 18px; }
.hc-nav.next { right: 18px; }
.hc-nav:hover { background: var(--brand); color: var(--on-brand); }
.hero-carousel:hover .hc-nav { opacity: 1; }

@media (hover: none) {
    .hc-nav { opacity: 1; background: rgba(255, 255, 255, .85); }
}

.hc-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 3;
}

.hc-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: background .18s ease, width .18s ease;
}

.hc-dots button.on { background: var(--brand); width: 24px; border-radius: 4px; }

@media (max-width: 700px) {
    .hero-carousel { margin: 12px 0 32px; }
    .hero-carousel:not(.full-bleed) { border-radius: var(--r); }

    /* La portada se ajusta al ancho del telefono y nunca se come la pantalla.
       Sin una foto hecha para celular, la caja toma la forma de la propia
       imagen: se ve completa, sin recortes ni franjas. */
    .hc-media {
        aspect-ratio: var(--hc-slide-ratio, var(--hc-ratio, 16 / 9));
        max-height: var(--hc-max-h, 58vh);
    }

    /* Con foto propia para celular manda la proporcion del panel de diseno */
    .hc-media.has-mobile { aspect-ratio: var(--hc-ratio-mobile, 4 / 3); }

    /* La portada de marca (sin banners cargados) la manda su contenido,
       asi el texto y los botones nunca quedan cortados. */
    .hc-fallback {
        aspect-ratio: auto;
        min-height: min(var(--hc-max-h, 58vh), 400px);
    }

    .hc-content { padding: 20px; gap: 10px; }
    .hc-content h2 { max-width: 14ch; }
    .hc-nav { width: 34px; height: 34px; font-size: .82rem; }
    .hc-nav.prev { left: 8px; }
    .hc-nav.next { right: 8px; }
    .hc-dots { bottom: 10px; }
}

/* ============================================================
   FILAS DESPLAZABLES (categorias / productos / marcas)
   ============================================================ */
.rail { position: relative; }

.rail-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }

.rail-nav {
    position: absolute;
    top: 38%;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: opacity .18s ease, background .18s ease, color .18s ease;
    z-index: 2;
}

.rail-nav.prev { left: -14px; }
.rail-nav.next { right: -14px; }
.rail-nav:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.rail-nav.off { opacity: 0; pointer-events: none; }

@media (max-width: 900px) {
    .rail-nav { display: none; }
    .rail-track { gap: 12px; }
}

/* ---------------- Encabezado de seccion ---------------- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: -0.035em;
}

.section-head .count {
    font-family: var(--display);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* ---------------- Filtros ---------------- */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.search-box {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    padding: 0 18px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.search-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-tint);
}

.search-box i { color: var(--ink-3); font-size: .95rem; }

.search-box input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-family: var(--body);
    font-size: .96rem;
    color: var(--ink);
    padding: 15px 0;
}

.search-box input::placeholder { color: var(--ink-3); }

select.store-select {
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--display);
    font-weight: 600;
    font-size: .88rem;
    padding: 14px 16px;
    cursor: pointer;
    outline: none;
    transition: border-color .18s ease;
}
select.store-select:hover { border-color: var(--ink); }
select.store-select:focus { border-color: var(--brand); }

/* Buscador anclado al hacer scroll (solo en pantallas chicas) */
#filterSentinel { height: 1px; margin-bottom: -1px; }

.filter-sticky .filter-bar { margin-bottom: 0; }

@media (max-width: 640px) {
    .filter-sticky {
        position: sticky;
        top: var(--header-h, 68px);
        z-index: 40;
        background: var(--paper);
        margin: 0 -16px 20px;
        padding: 10px 16px;
        transition: box-shadow .22s ease, padding .22s ease;
    }

    .filter-sticky.is-stuck {
        padding: 10px 16px 12px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 22px rgba(10, 10, 10, .07);
    }

    /* Anclado deja solo el buscador, para ocupar poco */
    .filter-sticky.is-stuck .store-select,
    .filter-sticky.is-stuck .filter-bar > .store-btn { display: none; }

    .filter-sticky.is-stuck .search-box { flex: 1 1 100%; }
}

/* Chips de categoria */
.chips {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 34px;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
    flex: 0 0 auto;
    padding: 10px 17px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--paper);
    color: var(--ink-2);
    font-family: var(--display);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: all .16s ease;
}

.chip:hover { border-color: var(--ink); color: var(--ink); }

.chip.active {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--on-brand);
}

.chip span { opacity: .6; font-size: .76rem; margin-left: 4px; }

/* ============================================================
   GRILLA DE PRODUCTOS (presentacion tipo e-commerce)
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 28px 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;             /* que la tarjeta pueda achicarse en pantallas chicas */
    background: var(--paper);
    border-radius: var(--r);
    transition: transform .22s ease;
}

.product-card:hover { transform: translateY(-4px); }

/* Marco de imagen 1:1 identico para todos los productos */
.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--paper-2);
    margin-bottom: 16px;
    transition: border-color .22s ease, box-shadow .22s ease;
}

.product-card:hover .product-media {
    border-color: var(--ink);
    box-shadow: var(--shadow);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.product-card:hover .product-media img { transform: scale(1.045); }

/* Navegacion de fotos dentro de la tarjeta */
.media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--ink);
    font-size: .8rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .18s ease, background .18s ease, color .18s ease;
    z-index: 2;
}

.media-nav.prev { left: 10px; }
.media-nav.next { right: 10px; }

.media-nav:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.product-card:hover .media-nav,
.pdp-main:hover .media-nav { opacity: 1; }

/* En pantallas tactiles no hay hover: siempre visibles */
@media (hover: none) {
    .media-nav { opacity: 1; background: rgba(255, 255, 255, .88); }
}

.media-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 2;
}

.media-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(10, 10, 10, .22);
    transition: background .18s ease, width .18s ease;
}

.media-dots i.on { background: var(--brand); width: 16px; border-radius: 3px; }

/* Marcador de producto sin foto: composicion consistente, no un icono generico */
.media-placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 1px 1px, var(--paper-3) 1.3px, transparent 0) 0 0 / 18px 18px,
        var(--paper-2);
    display: grid;
    place-items: center;
}

.media-placeholder .mono {
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.06em;
    color: #C6C3BD;
    line-height: 1;
}

.media-placeholder .tag {
    position: absolute;
    left: 14px;
    bottom: 12px;
    font-family: var(--display);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.media-placeholder::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 14px;
    width: 14px;
    height: 4px;
    background: var(--brand);
    border-radius: 2px;
}

/* Etiqueta de disponibilidad sobre la imagen */
.media-flag {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-family: var(--display);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    z-index: 2;
}

.media-flag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.media-flag.soft { color: var(--ink-3); }
.media-flag.soft .dot { background: #C6C3BD; }

/* Info */
.product-brand {
    font-family: var(--display);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 6px;
}

.product-name {
    overflow-wrap: anywhere;
    font-family: var(--body);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-price {
    font-family: var(--display);
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--brand);
    margin-bottom: 14px;
}

.product-price.ask { color: var(--ink-3); font-size: 1rem; }

.product-foot { margin-top: auto; display: flex; gap: 8px; align-items: stretch; }

.qty-input {
    width: 62px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-xs);
    font-family: var(--display);
    font-weight: 600;
    font-size: .92rem;
    text-align: center;
    color: var(--ink);
    outline: none;
    background: var(--paper);
    -moz-appearance: textfield;
}
.qty-input:focus { border-color: var(--brand); }
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-add {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid var(--ink);
    border-radius: var(--r-xs);
    background: var(--ink);
    color: #fff;
    font-family: var(--display);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 12px 10px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.btn-add:hover { background: var(--brand); border-color: var(--brand); }

/* ---------------- Estados vacios ---------------- */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--r-lg);
    background: var(--paper-2);
}

.empty-state i { font-size: 2rem; color: var(--brand); margin-bottom: 16px; display: block; }
.empty-state h2 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 10px; }
.empty-state p { color: var(--ink-2); margin: 0 0 22px; }

/* ---------------- Paginado ---------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 56px;
}

.pagination a, .pagination span {
    min-width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    padding: 0 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-xs);
    font-family: var(--display);
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink-2);
    transition: all .16s ease;
}

.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ============================================================
   FICHA DE PRODUCTO (PDP)
   ============================================================ */
.product-link { display: block; color: inherit; }
.product-name .product-link:hover { color: var(--brand); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 28px 0 6px;
    font-family: var(--display);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.breadcrumb a:hover { color: var(--brand); }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.breadcrumb span { opacity: .5; }

.pdp {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    padding: 26px 0 60px;
    align-items: start;
}

/* ---- Galeria ---- */
.pdp-main {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--paper-2);
}

.pdp-main img { width: 100%; height: 100%; object-fit: cover; }

.pdp-main .media-placeholder .mono { font-size: 5rem; }

.pdp-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }

.pdp-thumb {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--paper-2);
    cursor: pointer;
    transition: border-color .16s ease, transform .16s ease;
}

.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { border-color: var(--ink); transform: translateY(-2px); }
.pdp-thumb.active { border-color: var(--brand); border-width: 2px; }

/* ---- Info ---- */
.pdp-title {
    font-size: clamp(1.8rem, 3.4vw, 2.9rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 8px 0 12px;
}

.pdp-sku {
    font-size: .85rem;
    color: var(--ink-3);
    margin-bottom: 20px;
}
.pdp-sku strong { color: var(--ink-2); font-family: var(--display); }

.pdp-price {
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 16px;
}
.pdp-price.ask { color: var(--ink-3); font-size: 1.4rem; }

.pdp-stock { margin-bottom: 26px; }

.pdp-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}

.pdp-actions .qty-input { width: 82px; font-size: 1rem; }

.pdp-actions .btn-add {
    flex: 1;
    background: var(--brand);
    border-color: var(--brand);
    font-size: .95rem;
    padding: 16px 20px;
}
.pdp-actions .btn-add:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.pdp-actions-secondary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.pdp-actions-secondary .store-btn { flex: 1 1 auto; }

.pdp-highlights {
    list-style: none;
    margin: 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
}

.pdp-highlights li {
    position: relative;
    padding-left: 26px;
    font-size: .95rem;
    color: var(--ink-2);
}

.pdp-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 10px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
}

/* ---- Detalle + ficha tecnica ---- */
.pdp-details {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 56px;
    padding: 46px 0;
    border-top: 1px solid var(--line);
}

.pdp-details h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 8px 0 18px;
}

.pdp-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-2);
    max-width: 68ch;
}

.pdp-specs .data-table th {
    width: 42%;
    text-transform: none;
    letter-spacing: .04em;
    font-size: .78rem;
}

.pdp-specs .data-table td { font-weight: 500; }

.pdp-related { padding: 10px 0 20px; }

@media (max-width: 900px) {
    .pdp { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
    .pdp-details { grid-template-columns: 1fr; gap: 30px; padding: 32px 0; }
}

@media (max-width: 640px) {
    .breadcrumb { padding-top: 18px; font-size: .68rem; }
    .pdp { gap: 26px; padding-bottom: 40px; }
    .pdp-thumb { width: 62px; height: 62px; }
    .pdp-title { margin-top: 4px; }
    .pdp-actions .qty-input { width: 66px; }
    .pdp-actions .btn-add { padding: 14px 12px; font-size: .85rem; }
}

/* ---- Ampliar imagen en la ficha ---- */
.pdp-main.zoomable { cursor: zoom-in; }

.pdp-zoom-hint {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    font-family: var(--display);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-2);
    opacity: 0;
    transition: opacity .18s ease;
    z-index: 2;
}

.pdp-main:hover .pdp-zoom-hint { opacity: 1; }

@media (hover: none) {
    .pdp-zoom-hint { opacity: 1; }
}

/* ---- Lightbox ---- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(10, 10, 10, .93);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 4vw;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox .lb-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--r);
    background: #fff;
}

.lightbox .lb-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease;
}
.lightbox .lb-close:hover { background: var(--brand); }

.lightbox .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .18s ease;
}
.lightbox .lb-nav:hover { background: var(--brand); }
.lightbox .lb-prev { left: 3vw; }
.lightbox .lb-next { right: 3vw; }
.lightbox.single .lb-nav, .lightbox.single .lb-counter { display: none; }

.lightbox .lb-counter {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, .75);
    font-family: var(--display);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
}

@media (max-width: 640px) {
    .lightbox { padding: 8vh 4vw; }
    .lightbox .lb-nav { width: 42px; height: 42px; }
    .lightbox .lb-prev { left: 8px; }
    .lightbox .lb-next { right: 8px; }
}

/* ---- Buscador en vivo ---- */
.search-clear {
    border: 0;
    background: transparent;
    color: var(--ink-3);
    font-size: 1.4rem;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
    transition: color .16s ease;
}
.search-clear:hover { color: var(--brand); }

#catalogResults { transition: opacity .18s ease; position: relative; }
#catalogResults.is-loading { opacity: .45; pointer-events: none; }

#catalogResults.is-loading::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-left: -15px;
    border: 3px solid var(--line);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CARRITO
   ============================================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, .38);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .26s ease;
    z-index: 95;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(440px, 100%);
    background: var(--paper);
    border-left: 1px solid var(--line);
    z-index: 100;
    transform: translateX(102%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-head h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: -0.02em; }

.icon-btn {
    background: transparent;
    border: 0;
    color: var(--ink-3);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--r-xs);
    font-family: var(--body);
    transition: color .16s ease, background .16s ease;
}
.icon-btn:hover { color: var(--ink); background: var(--paper-2); }

.cart-body {
    flex: 1 1 auto;
    min-height: 0;            /* deja que la lista se achique y scrollee */
    overflow-y: auto;
    padding: 8px 24px;
}

/* Paso 1 en movil: primero el pedido, los datos de contacto despues */
.cart-drawer.fields-hidden #checkoutFields { display: none; }

.cart-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 5px;
}

.cart-item-price { font-size: .82rem; color: var(--ink-3); }
.cart-item-price strong { color: var(--brand); font-family: var(--display); }

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: var(--r-xs);
    overflow: hidden;
}

.qty-control button {
    background: var(--paper);
    border: 0;
    color: var(--ink);
    width: 32px;
    height: 34px;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--display);
    transition: background .15s ease, color .15s ease;
}
.qty-control button:hover { background: var(--brand); color: var(--on-brand); }

.qty-control span {
    min-width: 34px;
    text-align: center;
    font-family: var(--display);
    font-size: .9rem;
    font-weight: 700;
}

.cart-remove {
    background: none;
    border: 0;
    padding: 4px 0 0;
    font-family: var(--body);
    font-size: .76rem;
    color: var(--ink-3);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cart-remove:hover { color: var(--brand); }

.cart-foot {
    flex: 0 0 auto;
    max-height: 62vh;
    overflow-y: auto;
    padding: 22px 24px;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.cart-total span {
    font-family: var(--display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.cart-total strong {
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ink);
}

/* ============================================================
   FORMULARIOS
   ============================================================ */
.form-row { margin-bottom: 16px; }

.form-row label {
    display: block;
    font-family: var(--display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: .96rem;
    padding: 14px 16px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.form-control:disabled { background: var(--paper-2); color: var(--ink-3); }
textarea.form-control { resize: vertical; min-height: 84px; }

.form-row small.muted { display: block; margin-top: 6px; font-size: .8rem; }

.code-input {
    letter-spacing: .5em;
    text-align: center;
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 700;
    padding: 18px 16px 18px 22px;
}

/* Paneles / auth */
.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px;
}

.auth-wrap { max-width: 480px; margin: 56px auto; }
.auth-wrap h1 { font-size: 2rem; text-transform: uppercase; margin-bottom: 8px; }
.auth-wrap .sub { color: var(--ink-2); font-size: .95rem; margin: 0 0 28px; }

.alert {
    padding: 14px 16px;
    border-radius: var(--r-sm);
    font-size: .9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert.error { background: #FFF1F2; border-color: #FECDD3; color: #9F1239; }
.alert.ok { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.alert.info { background: var(--brand-tint); border-color: var(--brand-line); color: #8A3E00; }

.link { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--brand-dark); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-family: var(--display);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.badge.in { background: var(--brand-tint); border-color: var(--brand-line); color: #8A3E00; }
.badge.out { color: var(--ink-3); }

/* Tabla simple (mi cuenta) */
.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
    text-align: left;
    font-family: var(--display);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 10px 6px;
    border-bottom: 1px solid var(--line);
}

.data-table td { padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: .92rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.store-footer { background: var(--ink); color: #fff; margin-top: auto; }

.store-footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 64px 24px 32px;
}

/* Con flex el pie aguanta cualquier cantidad de columnas.
   Ojo: repeat(auto-fit) no se puede combinar con tracks en fr. */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-top > .footer-brand { flex: 1 1 280px; min-width: 240px; }
.footer-top > .footer-col { flex: 1 1 150px; min-width: 140px; }

.footer-word {
    font-family: var(--display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    line-height: .95;
    margin-bottom: 14px;
}

.footer-word .accent { color: var(--brand); }

.footer-note { color: rgba(255, 255, 255, .6); font-size: .92rem; max-width: 34ch; }

.footer-col h4 {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
}

.footer-col a, .footer-col div {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    padding: 5px 0;
    transition: color .16s ease;
}

.footer-col a:hover { color: var(--brand); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 26px;
    color: rgba(255, 255, 255, .45);
    font-size: .8rem;
}

.footer-bottom a { color: rgba(255, 255, 255, .45); }
.footer-bottom a:hover { color: var(--brand); }

/* ============================================================
   WHATSAPP FLOTANTE + TOAST
   ============================================================ */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--on-brand);
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 30px rgba(245, 110, 0, .38);
    z-index: 60;
    transition: transform .18s ease, background .18s ease;
}
.wa-float:hover { transform: scale(1.07); background: var(--brand-dark); }

.store-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    padding: 14px 22px;
    border-radius: var(--r-sm);
    font-family: var(--display);
    font-size: .88rem;
    font-weight: 600;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-toast i { color: var(--brand); }

/* ============================================================
   BLOQUES DEL HOME
   ============================================================ */
.home-block { margin: 0 0 72px; }

/* ============================================================
   TARJETAS DE CATEGORIA
   ============================================================ */
.cat-block .rail-track { padding-bottom: 8px; }

.cat-card {
    flex: 0 0 clamp(240px, 30vw, 320px);
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.cat-card:hover {
    border-color: var(--ink);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cat-media {
    position: relative;
    aspect-ratio: var(--cat-ratio, 4 / 2);
    overflow: hidden;
    background: var(--paper-2);
}

.cat-media img {
    width: 100%;
    height: 100%;
    object-fit: var(--cat-fit, cover);
    transition: transform .5s cubic-bezier(.2, .6, .2, 1);
}

.cat-card:hover .cat-media img { transform: scale(1.05); }

/* Sin foto cargada: monograma sobre trama */
.cat-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 1px 1px, var(--paper-3) 1.4px, transparent 0) 0 0 / 18px 18px,
        var(--paper-2);
}

.cat-placeholder span {
    font-family: var(--display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--ink-3);
}

.cat-count {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 30px;
    height: 26px;
    padding: 0 9px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    font-family: var(--display);
    font-size: .78rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
}

.cat-info {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.cat-info h3 {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0;
}

.cat-info p {
    margin: 0;
    font-size: .87rem;
    line-height: 1.5;
    color: var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-go {
    margin-top: auto;
    padding-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brand);
}

.cat-go i { font-size: .68rem; transition: transform .2s ease; }
.cat-card:hover .cat-go i { transform: translateX(4px); }

/* Variante en grilla */
.cat-grid-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.cat-grid .cat-card { flex: 1 1 auto; }

@media (max-width: 900px) {
    .home-block { margin-bottom: 52px; }
    .cat-card { flex-basis: 74vw; max-width: 300px; }
}

@media (max-width: 640px) {
    .home-block { margin-bottom: 42px; }
    .section-head { margin-bottom: 18px; }
    .cat-card { flex-basis: 68vw; }
    .cat-info { padding: 13px 15px 15px; }
    .cat-info h3 { font-size: .96rem; }
    .cat-info p { font-size: .83rem; -webkit-line-clamp: 2; }
    .cat-grid-track { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}

/* ============================================================
   MENU PRINCIPAL (escritorio)
   ============================================================ */
.main-nav { flex: 1; min-width: 0; display: flex; justify-content: center; }

.mn-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.mn-item { position: relative; }

.mn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--r-xs);
    font-family: var(--display);
    font-size: .87rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    white-space: nowrap;
    transition: color .16s ease, background .16s ease;
}

.mn-link i { font-size: .62rem; opacity: .5; transition: transform .18s ease; }
.mn-link:hover { color: var(--brand); background: var(--brand-tint); }
.mn-item:hover > .mn-link i { transform: rotate(180deg); }

.mn-link.active { color: var(--brand); }

.mn-link.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

/* Submenu desplegable */
.mn-sub {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 226px;
    max-height: 68vh;
    overflow-y: auto;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    z-index: 90;
}

/* Puente invisible para que el mouse llegue al submenu */
.mn-item.has-sub::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.mn-item:hover > .mn-sub,
.mn-item:focus-within > .mn-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mn-sub a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--r-xs);
    font-size: .86rem;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .14s ease, background .14s ease;
}

.mn-sub a:hover, .mn-sub a.active { color: var(--brand); background: var(--brand-tint); }

/* ============================================================
   BOTON HAMBURGUESA
   ============================================================ */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    background: var(--paper);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: border-color .16s ease;
}

.nav-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .22s ease, opacity .18s ease, background .18s ease;
}

.nav-toggle:hover { border-color: var(--brand); }
.nav-toggle:hover span { background: var(--brand); }

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   CAJON DE MENU (movil)
   ============================================================ */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 120;
}

.nav-overlay.open { opacity: 1; pointer-events: auto; }

.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, 86vw);
    background: var(--paper);
    border-right: 1px solid var(--line);
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    z-index: 130;
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.nav-drawer.open { transform: translateX(0); visibility: visible; }

.nd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--line);
}

.nd-title {
    font-family: var(--display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nd-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    background: var(--paper);
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color .16s ease, color .16s ease;
}

.nd-close:hover { border-color: var(--brand); color: var(--brand); }

.nd-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 20px;
    -webkit-overflow-scrolling: touch;
}

.nd-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 14px 12px;
    border: 0;
    border-radius: var(--r-xs);
    background: transparent;
    font-family: var(--display);
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: color .14s ease, background .14s ease;
}

.nd-link i { font-size: .72rem; opacity: .38; transition: transform .2s ease; }
.nd-link:hover { background: var(--paper-2); }
.nd-link.active { color: var(--brand); }

.nd-group { border-bottom: 1px solid var(--line); }
.nd-group:last-child { border-bottom: 0; }

.nd-toggle[aria-expanded="true"] { color: var(--brand); }
.nd-toggle[aria-expanded="true"] i { transform: rotate(180deg); opacity: 1; }

.nd-sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .26s ease;
}

.nd-sub-inner { overflow: hidden; min-height: 0; }
.nd-group.open .nd-sub { grid-template-rows: 1fr; }

.nd-sub a {
    display: block;
    padding: 11px 12px 11px 24px;
    font-size: .9rem;
    color: var(--ink-2);
    border-left: 2px solid var(--line);
    margin-left: 12px;
    transition: color .14s ease, border-color .14s ease;
}

.nd-sub a:hover, .nd-sub a.active { color: var(--brand); border-left-color: var(--brand); }

.nd-foot {
    padding: 16px 20px 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 9px;
    background: var(--paper-2);
}

.nd-social {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

/* Ocultamos el menu de escritorio y mostramos la hamburguesa */
@media (max-width: 1040px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .store-header-inner { gap: 12px; }
    .store-brand { flex: 1; min-width: 0; }
}

body.nav-open { overflow: hidden; }

/* ============================================================
   PAGINAS PROPIAS (contenido cargado desde el panel)
   ============================================================ */
.cms-page { max-width: 760px; margin: 0 auto 90px; }

.cms-head { padding: 8px 0 26px; border-bottom: 3px solid var(--ink); margin-bottom: 34px; }

.cms-head h1 {
    font-size: clamp(2rem, 5.2vw, 3.4rem);
    line-height: .98;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.cms-body { font-size: 1.02rem; line-height: 1.75; color: var(--ink-2); }

.cms-body > *:first-child { margin-top: 0; }

.cms-body h2, .cms-body h3, .cms-body h4, .cms-body h5 {
    color: var(--ink);
    font-family: var(--display);
    letter-spacing: -0.03em;
    margin: 40px 0 14px;
    line-height: 1.15;
}

.cms-body h2 { font-size: 1.6rem; }
.cms-body h3 { font-size: 1.28rem; }
.cms-body h4 { font-size: 1.08rem; }

.cms-body p { margin: 0 0 18px; }
.cms-body strong, .cms-body b { color: var(--ink); font-weight: 600; }

.cms-body a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cms-body a:hover { color: var(--brand-dark); }

.cms-body ul, .cms-body ol { margin: 0 0 20px; padding-left: 22px; }
.cms-body li { margin-bottom: 8px; }
.cms-body ul { list-style: none; padding-left: 0; }

.cms-body ul li {
    position: relative;
    padding-left: 22px;
}

.cms-body ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: .62em;
    width: 7px;
    height: 7px;
    background: var(--brand);
    border-radius: 2px;
}

.cms-body ol li::marker { color: var(--brand); font-weight: 700; }

.cms-body blockquote {
    margin: 26px 0;
    padding: 18px 22px;
    border-left: 3px solid var(--brand);
    background: var(--paper-2);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 1.05rem;
    color: var(--ink);
}

.cms-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r);
    display: block;
    margin: 26px 0;
}

.cms-body figure { margin: 26px 0; }
.cms-body figure img { margin: 0 0 10px; }
.cms-body figcaption { font-size: .82rem; color: var(--ink-3); text-align: center; }

.cms-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: var(--r);
    margin: 26px 0;
    display: block;
}

.cms-body hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

.cms-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: .92rem;
}

.cms-body th, .cms-body td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.cms-body th { color: var(--ink); font-family: var(--display); font-weight: 700; }

.cms-body pre {
    background: var(--paper-2);
    padding: 16px;
    border-radius: var(--r-sm);
    overflow-x: auto;
    font-size: .86rem;
}

@media (max-width: 640px) {
    .cms-page { margin-bottom: 60px; }
    .cms-head { margin-bottom: 26px; padding-bottom: 20px; }
    .cms-body { font-size: .98rem; }
}

/* ============================================================
   BARRA DE AVISOS
   ============================================================ */
.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, .9);
    font-size: .78rem;
    letter-spacing: .01em;
}

.topbar-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 9px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 6vw, 70px);
    flex-wrap: wrap;
}

.topbar-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-item i { color: var(--brand); font-size: .82rem; }

/* ============================================================
   BOTONES REDONDOS DE LA BARRA
   ============================================================ */
.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 1.02rem;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.icon-btn:hover { background: var(--paper-2); color: var(--brand); }

.cart-icon .cart-count {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--brand);
    color: var(--on-brand);
    font-family: var(--display);
    font-size: .66rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
}

/* ---- Buscador desplegable de la barra ---- */
.head-search {
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.hs-form {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hs-form > i {
    color: var(--ink-3);
    font-size: .95rem;
}

.hs-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 12px 16px;
    font-family: var(--body);
    font-size: .95rem;
    background: var(--paper-2);
    color: var(--ink);
}

.hs-form input:focus { outline: none; border-color: var(--brand); background: var(--paper); }

.hs-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    flex: 0 0 auto;
}
.hs-close:hover { color: var(--brand); background: var(--paper-2); }

/* ============================================================
   ANCHO COMPLETO (el banner sale de la caja del contenido)
   ============================================================ */
.full-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
}

/* ============================================================
   ENLACE "VER TODOS" DE CADA SECCION
   ============================================================ */
.section-head { align-items: center; }
.section-head p.muted { margin: 8px 0 0; }
.section-head h2 { margin: 6px 0 0; }

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color .16s ease, border-color .16s ease;
}

.section-link:hover { color: var(--brand); border-bottom-color: var(--brand); }
.section-link i { font-size: .72rem; transition: transform .18s ease; }
.section-link:hover i { transform: translateX(3px); }

/* ============================================================
   BALDOSAS DE CATEGORIA (compactas, con el nombre debajo)
   ============================================================ */
.tile-track { gap: 14px; }

.cat-tile {
    flex: 0 0 var(--cat-tile-w, clamp(104px, 15vw, 136px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
    color: inherit;
    min-width: 0;
}

.tile-media {
    width: 100%;
    aspect-ratio: var(--cat-tile-ratio, 1 / 1);
    border-radius: var(--cat-tile-radius, var(--r));
    overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.cat-tile:hover .tile-media {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tile-media img {
    width: 100%;
    height: 100%;
    object-fit: var(--cat-fit, cover);
}

.tile-mono {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ink-3);
}

.tile-name {
    font-family: var(--display);
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.cat-tile:hover .tile-name { color: var(--brand); }
.tile-count { font-size: .7rem; color: var(--ink-3); margin-top: -4px; }

/* ============================================================
   FILA DE PRODUCTOS
   ============================================================ */
.prod-rail { gap: 18px; align-items: stretch; }

.prod-rail .product-card {
    flex: 0 0 clamp(190px, 23vw, 250px);
    min-width: 0;
}

/* Etiqueta sobre la foto (Nuevo, Mas vendido...) */
.product-card { position: relative; }

/* Con etiqueta no hace falta el guioncito de la ficha sin foto */
.product-card.has-tag .media-placeholder::before { display: none; }

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--brand);
    color: var(--on-brand);
    font-family: var(--display);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
}

/* ============================================================
   MARCAS
   ============================================================ */
.brand-rail { gap: 14px; }

.brand-chip {
    flex: 0 0 var(--brand-chip-w, clamp(132px, 17vw, 160px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--paper);
    color: inherit;
    text-align: center;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.brand-chip:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.brand-logo-box {
    width: var(--brand-logo-w, 62px);
    height: var(--brand-logo-w, 62px);
    border-radius: var(--brand-logo-radius, 50%);
    overflow: hidden;
    background: var(--paper-2);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.brand-logo-box img { width: 100%; height: 100%; object-fit: var(--brand-fit, cover); }

.brand-mono {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink-3);
    letter-spacing: -0.03em;
}

.brand-chip strong {
    font-family: var(--display);
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-chip small { font-size: .7rem; color: var(--ink-3); }

/* ============================================================
   BARRA DE BENEFICIOS
   ============================================================ */
.feature-block { margin-bottom: 56px; }

/* Carrusel: se ve un beneficio a la vez y rota solo, en todas las pantallas */
.feature-bar {
    display: flex;
    gap: 0;
    padding: 22px 0;
    background: var(--paper-2);
    border-radius: var(--r-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.feature-bar::-webkit-scrollbar { width: 0; height: 0; }

.feature-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 8px 16px;
    min-width: 0;
}

.feature-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--paper);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    box-shadow: var(--shadow);
}

.feature-item strong {
    display: block;
    font-family: var(--display);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.feature-item small {
    display: block;
    font-size: .78rem;
    color: var(--ink-2);
    margin-top: 2px;
}

/* Puntitos del carrusel */
.feature-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.feature-dots:empty { display: none; }

.feature-dots button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.feature-dots button.on {
    width: 18px;
    border-radius: 3px;
    background: var(--brand);
}

/* ============================================================
   PIE
   ============================================================ */
.footer-brand { max-width: 320px; }

.footer-logo {
    height: 46px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    margin-bottom: 14px;
    display: block;
}

.footer-social { display: flex; gap: 8px; margin-top: 18px; }

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .95rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.footer-social a:hover { background: var(--brand); transform: translateY(-2px); }

.footer-plain { color: rgba(255, 255, 255, .55); font-size: .86rem; display: block; }

.footer-pay { display: inline-flex; gap: 14px; font-size: 1.15rem; color: rgba(255, 255, 255, .55); }
.footer-pay i { transition: color .18s ease; }
.footer-pay i:hover { color: var(--brand); }

/* ============================================================
   AJUSTES PARA CELULAR
   ============================================================ */
@media (max-width: 900px) {
    .topbar-inner { padding: 8px 16px; gap: 20px; }
    .feature-bar { padding: 18px 0; }
    .feature-item { padding: 8px 12px; gap: 10px; }
    .feature-icon { width: 36px; height: 36px; font-size: .92rem; }
}

@media (max-width: 640px) {
    .topbar { font-size: .72rem; }
    .store-header-inner { padding: 12px 16px; gap: 8px; }
    .icon-btn { width: 38px; height: 38px; }
    .hs-form { padding: 12px 16px; gap: 8px; }
    .hs-form > i { display: none; }
    .hs-form .store-btn { display: none; }

    .section-head { flex-wrap: nowrap; gap: 12px; align-items: flex-end; }
    .section-head h2 { font-size: 1.35rem; }
    .section-head .eyebrow { font-size: .62rem; }
    .section-link { font-size: .74rem; }

    /* Las filas se salen del margen para que se vea que hay mas al costado */
    .cat-tiles-block .rail,
    .prod-block .rail,
    .brand-block .rail,
    .cat-block .rail {
        margin-left: -16px;
        margin-right: -16px;
    }

    .cat-tiles-block .rail-track,
    .prod-block .rail-track,
    .brand-block .rail-track,
    .cat-block .rail-track {
        padding-left: 16px;
        padding-right: 16px;
        scroll-padding-left: 16px;
    }

    .tile-track { gap: 10px; }
    .cat-tile { flex-basis: min(var(--cat-tile-w, 136px), 34vw); }
    .tile-name { font-size: .76rem; }
    .tile-count { font-size: .66rem; }

    .prod-rail { gap: 12px; }
    .prod-rail .product-card { flex-basis: 60vw; max-width: 220px; }

    .brand-chip { flex-basis: min(var(--brand-chip-w, 160px), 42vw); padding: 14px 10px; }
    .brand-logo-box {
        width: min(var(--brand-logo-w, 62px), 22vw);
        height: min(var(--brand-logo-w, 62px), 22vw);
    }

    .feature-bar { border-radius: var(--r); padding: 16px 0; }
    .feature-item { padding: 4px 16px; }
    .feature-item strong { font-size: .88rem; }
    .feature-item small { display: block; }

    .footer-top { gap: 26px; }
    .footer-brand { max-width: none; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 380px) {
    .feature-item { padding: 4px 12px; }
    .feature-item strong { font-size: .84rem; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .hero { padding: 48px 0 40px; }
    .footer-top { gap: 30px; }
}

@media (max-width: 640px) {
    .hide-sm { display: none; }
    .social-nav { gap: 0; padding-right: 6px; }
    .social-link { width: 34px; height: 34px; font-size: .98rem; }
    .brand-logo { max-width: 150px; }
    .hero-logo { margin-bottom: 22px; }
    .wrap, .store-header-inner, .store-main, .store-footer-inner { padding-left: 16px; padding-right: 16px; }
    .store-main { padding-bottom: 64px; }
    .store-btn { padding: 12px 16px; }
    .hero { padding: 32px 0 28px; }
    .hero-stats { gap: 24px; }
    .hero-stat strong { font-size: 1.45rem; }
    .marquee { margin-bottom: 44px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
    .product-name { font-size: .87rem; min-height: 2.6em; }
    .product-price { font-size: 1.1rem; }
    .btn-add { font-size: .74rem; padding: 11px 6px; }
    .qty-input { width: 48px; }
    .auth-wrap { margin: 28px auto; }
    .panel { padding: 22px; }

    /* Carrito: mas aire para la lista de productos */
    .cart-head { padding: 16px 18px; }
    .cart-body { padding: 4px 18px; }
    .cart-item { padding: 13px 0; gap: 10px; }
    .cart-item-name { font-size: .88rem; }
    .cart-foot { padding: 16px 18px; max-height: 58vh; }
    .cart-total { margin-bottom: 12px; }
    .cart-total strong { font-size: 1.5rem; }
    .cart-foot .form-row { margin-bottom: 12px; }
    .cart-foot .form-control { padding: 12px 14px; }
    .cart-foot textarea.form-control { min-height: 62px; }
}

/* ============================================================
   PORTADA DE MARCA (cuando todavia no hay banners cargados)
   ============================================================ */
.hc-fallback {
    background:
        radial-gradient(circle at 78% 30%, rgba(245, 110, 0, .16), transparent 58%),
        radial-gradient(circle at 1px 1px, rgba(10, 10, 10, .05) 1.3px, transparent 0) 0 0 / 20px 20px,
        linear-gradient(135deg, #FAF7F2 0%, #F2EDE6 100%);
    aspect-ratio: auto;
    min-height: clamp(320px, 42vw, 460px);
    align-items: center;
}

.hc-fallback .hc-content {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
    padding: clamp(30px, 5vw, 56px) 24px;
    color: var(--ink);
}

.hc-fallback .hc-content::before { display: none; }
.hc-fallback h2 { color: var(--ink); }
.hc-fallback p { color: var(--ink-2); }
.hc-fallback .hc-accent { color: var(--brand); }

.hc-logo {
    height: clamp(46px, 6.4vw, 68px);
    width: auto;
    max-width: 210px;
    object-fit: contain;
    padding: 8px 12px;
    background: #fff;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow);
    margin-bottom: 6px;
}

.hc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.store-btn.ghost.light {
    background: var(--paper);
    border-color: var(--line);
    color: var(--ink);
}
.store-btn.ghost.light:hover { border-color: var(--brand); color: var(--brand); background: var(--paper); }

/* Las redes ya estan en el menu del celular: sacamos el duplicado de la barra */
@media (max-width: 900px) {
    .social-nav { display: none; }
}

@media (max-width: 700px) {
    .hc-fallback { min-height: 380px; }
    .hc-fallback .hc-content { padding: 30px 16px; }
}

/* ============================================================
   TEXTO DENTRO / FUERA DE LA IMAGEN
   Se elige desde Panel > Tienda online > Diseno de la web.
   El PHP agrega .text-in (encima) o .text-off (sin texto).
   ============================================================ */

/* ---- Baldosas de categoria ---- */
.cat-tile.text-in { gap: 0; }
.cat-tile.text-in .tile-media { position: relative; }

.tile-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, 0) 100%);
}

.tile-caption .tile-name { color: #fff; }
.tile-caption .tile-count { color: rgba(255, 255, 255, .82); margin-top: 0; }
.cat-tile.text-in:hover .tile-name { color: #fff; }

.cat-tile.text-off { gap: 0; }

/* ---- Tarjetas grandes de categoria ---- */
.cat-card.text-in { position: relative; }

.cat-card.text-in .cat-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 46px 18px 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .5) 60%, rgba(0, 0, 0, 0) 100%);
}

.cat-card.text-in .cat-info h3 { color: #fff; }
.cat-card.text-in .cat-info p { color: rgba(255, 255, 255, .84); }
.cat-card.text-in .cat-go { color: #fff; }
.cat-card.text-off .cat-info { display: none; }

/* ---- Marcas ---- */
/* Con el texto encima, el logo pasa a ocupar toda la tarjeta */
.brand-chip.text-in {
    padding: 0;
    border: 0;
    background: transparent;
}

.brand-chip.text-in .brand-logo-box {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    background: var(--paper);
}

.brand-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 8px 9px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: center;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .42) 55%, rgba(0, 0, 0, 0) 100%);
}

.brand-caption strong {
    font-family: var(--display);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-caption small { font-size: .68rem; color: rgba(255, 255, 255, .82); }

@media (max-width: 640px) {
    .brand-chip.text-in .brand-logo-box { width: 100%; height: auto; }
    .brand-caption { padding: 20px 6px 7px; }
    .brand-caption strong { font-size: .76rem; }
    .tile-caption { padding: 24px 8px 8px; }
}
