/* ============================================================
   STOREFRONT MODERN · Samsung-grade premium design system
   Spec: container discipline + airy whitespace + single accent
   ============================================================ */

/* ─────────────── DESIGN TOKENS ─────────────── */
:root {
    /* Brand (injected by server) */
    --brand: #3B82F6;
    --brand-rgb: 59, 130, 246;
    --brand-fg: #FFFFFF;

    /* Light mode (default) */
    --bg-page:        #FAFAFA;
    --surface-card:   #FFFFFF;
    --surface-hover:  #F4F4F5;
    --surface-sunken: #F0F0F1;
    --fg-strong:      #0A0A0A;
    --fg-default:     #1F1F23;
    --fg-muted:       #6B6B70;
    --fg-subtle:      #9B9BA0;
    --border-subtle:  #E8E8EA;
    --border-strong:  #D4D4D8;
    --accent-cta:     #0A0A0A;
    --accent-cta-fg:  #FFFFFF;

    /* Container widths */
    --container-default: 1280px;
    --container-wide:    1440px;
    --gutter:            16px;

    /* Spacing scale (4px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 64px;
    --space-11: 80px;
    --space-12: 96px;

    /* Easing */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Durations */
    --dur-fast:    150ms;
    --dur-base:    200ms;
    --dur-medium:  300ms;
    --dur-slow:    400ms;
    --dur-xslow:   700ms;

    /* Header dimensions */
    --announce-h: 36px;
    --header-main-h: 72px;
    --header-nav-h: 56px;
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

/* Dark mode — re-curated, not inverted */
html[data-bio-theme="dark"] {
    --bg-page:        #0A0A0B;
    --surface-card:   #141417;
    --surface-hover:  #1E1E22;
    --surface-sunken: #08080A;
    --fg-strong:      #FAFAFA;
    --fg-default:     #E4E4E7;
    --fg-muted:       #A1A1A6;
    --fg-subtle:      #6B6B70;
    --border-subtle:  #27272A;
    --border-strong:  #3F3F46;
    --accent-cta:     #FAFAFA;
    --accent-cta-fg:  #0A0A0A;
}
@media (prefers-color-scheme: dark) {
    html[data-bio-theme="auto"] {
        --bg-page:        #0A0A0B;
        --surface-card:   #141417;
        --surface-hover:  #1E1E22;
        --surface-sunken: #08080A;
        --fg-strong:      #FAFAFA;
        --fg-default:     #E4E4E7;
        --fg-muted:       #A1A1A6;
        --fg-subtle:      #6B6B70;
        --border-subtle:  #27272A;
        --border-strong:  #3F3F46;
        --accent-cta:     #FAFAFA;
        --accent-cta-fg:  #0A0A0A;
    }
}

/* ─────────────── RESET ─────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg-page);
    color: var(--fg-default);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ─────────────── CONTAINER ─────────────── */
.container {
    max-width: var(--container-default);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container-wide {
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ─────────────── ANNOUNCEMENT BAR ─────────────── */
.announce-bar {
    height: var(--announce-h);
    background: var(--brand);
    color: var(--brand-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.005em;
    text-align: center;
    padding-inline: var(--gutter);
}
.announce-bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; opacity: 0.95; }
.announce-bar a:hover { opacity: 1; }

/* ─────────────── HEADER ─────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-subtle);
}

/* Header main row: logo izquierda, buscador píldora al centro, acciones derecha */
.header-main {
    height: var(--header-main-h);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-4);
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.header-main__left  { display: flex; align-items: center; gap: var(--space-2); }
.header-main__center { justify-self: center; }
.header-main__right { display: flex; align-items: center; gap: var(--space-1); justify-self: end; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--fg-strong);
}
.logo img {
    height: 36px; width: auto;
    max-width: 190px;
    border-radius: 8px;
    object-fit: contain; /* no recortar logos anchos (wordmark) a un cuadradito */
}
/* Modo "solo logo": imagen horizontal grande, sin recorte cuadrado */
.logo--image-only img {
    height: 44px;
    width: auto;
    max-width: 210px;
    border-radius: 0;
    object-fit: contain;
}
.drawer__brand--image-only img {
    height: 38px;
    width: auto;
    max-width: 180px;
    border-radius: 0;
    object-fit: contain;
}
a.site-footer__brand.site-footer__brand--image-only img {
    height: 36px;
    width: auto;
    max-width: 170px;
    border-radius: 0;
    object-fit: contain;
}
.logo__name {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.01em;
    color: var(--fg-strong);
    white-space: nowrap;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-btn {
    width: 40px; height: 40px;
    border: none;
    background: transparent;
    color: var(--fg-default);
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--surface-hover); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn__currency {
    width: auto;
    padding-inline: 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-default);
    gap: 4px;
}

/* Header nav row */
.header-nav {
    height: var(--header-nav-h);
    border-top: 1px solid var(--border-subtle);
    display: none;
}
@media (min-width: 1024px) {
    .header-nav { display: flex; align-items: center; }
}
.header-nav__inner {
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--gutter);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Sin overflow scroll: recortaría el dropdown del submenú.
       Si las categorías no entran, la lista hace wrap a 2ª fila. */
}
.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--space-7);
    align-items: center;
}
.header-nav a {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-muted);
    padding: 16px 0;
    transition: color var(--dur-fast) var(--ease-out);
    display: inline-block;
}
.header-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--dur-base) var(--ease-out);
}
.header-nav a:hover { color: var(--fg-strong); }
.header-nav a:hover::after,
.header-nav a.active::after { transform: scaleX(1); }
.header-nav a.active { color: var(--fg-strong); font-weight: 600; }

/* Mobile header (< 1024) */
.mobile-only { display: inline-flex; }
.desktop-only { display: none; }
@media (min-width: 1024px) {
    .mobile-only { display: none; }
    .desktop-only { display: inline-flex; }
}

/* Mobile: fila de 56px con el LOGO CENTRADO */
@media (max-width: 1023px) {
    :root { --header-main-h: 56px; }
    .header-main { position: relative; }
    .logo__name { font-size: 15px; max-width: 50vw; }

    /* WhatsApp y Buscar ya viven en la barra inferior (Contacto / Buscar): se sacan
       del header en celular para dejar aire y poder centrar el logo sin encimarlo. */
    .header-main__right a.icon-btn--brand[aria-label="WhatsApp"],
    .header-main__right button.icon-btn[aria-label="Buscar"] { display: none; }
    .header-main__right { gap: 4px; }

    /* Logo centrado en el header (posición absoluta). El ancho se acota con calc para
       reservar ~100px a cada lado (hamburguesa a la izq · carrito+cuenta a la der) y
       NO encimarse ni en pantallas angostas (320px). */
    .logo--mobile {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        max-width: min(56vw, calc(100vw - 200px));
        justify-content: center;
        overflow: hidden;
    }
    .logo--mobile img,
    .logo--mobile.logo--image-only img {
        height: auto;
        max-height: 38px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
    }
}

/* Drawer */
.drawer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out);
}
.drawer.show { opacity: 1; pointer-events: auto; }
.drawer__panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: 86%;
    max-width: 330px;
    background: var(--surface-card);
    border-radius: 20px 0 0 20px;
    padding: 18px 16px;
    transform: translateX(100%);
    transition: transform 280ms var(--ease-out);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.drawer.show .drawer__panel { transform: translateX(0); }

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 6px 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.drawer__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--fg-strong);
    font-weight: 800;
    font-size: 15.5px;
    letter-spacing: -0.01em;
}
.drawer__brand img {
    width: 36px; height: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex: none;
}
.drawer__brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.drawer__close {
    flex: none;
    width: 36px; height: 36px;
    border: none;
    background: var(--surface-hover);
    border-radius: 50%;
    cursor: pointer;
    color: var(--fg-default);
    display: grid;
    place-items: center;
}

.drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.drawer__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--fg-default);
    font-weight: 600;
    font-size: 14.5px;
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.drawer__item:hover { background: var(--surface-hover); color: var(--fg-strong); }
.drawer__item.active {
    background: rgba(var(--brand-rgb), .12);
    color: var(--brand);
}
.drawer__ico {
    flex: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--surface-hover);
}
.drawer__ico img { width: 100%; height: 100%; object-fit: cover; }
.drawer__ico.is-tint {
    background: rgba(var(--brand-rgb), .14);
    color: var(--brand);
}
/* Subcategoría en el drawer: indentada, sin icono */
.drawer__item--sub {
    margin-left: 42px;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--fg-muted);
}

.drawer__foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}
.drawer__support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--brand);
    color: var(--brand-fg);
    font-weight: 700;
    font-size: 14px;
}
.drawer__support:hover { filter: brightness(1.07); }
.drawer__theme {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    color: var(--fg-default);
    font-weight: 600;
    font-size: 14px;
    text-align: left;
}
.drawer__theme:hover { background: var(--surface-hover); }

/* ─────────────── HERO CAROUSEL (banner cards, NOT edge-to-edge) ─────────────── */
.hero {
    padding: var(--space-7) 0 var(--space-5);
}
@media (min-width: 768px) {
    .hero { padding: var(--space-8) 0 var(--space-6); }
}
.hero__viewport {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}
.hero__track {
    display: flex;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.hero__track::-webkit-scrollbar { display: none; }

.hero-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* Sin aspect-ratio fijo: la card toma altura del contenido en mobile */
    background: var(--banner-bg, #F5F1EA);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    padding: var(--space-7) var(--space-6);
    min-height: 360px;
}
@media (min-width: 768px) {
    .hero-card {
        aspect-ratio: 4 / 3;
        min-height: 360px;
        padding: var(--space-9);
        grid-template-columns: 1.1fr 1fr;
        grid-template-rows: 1fr;
    }
}
@media (min-width: 1024px) {
    .hero-card {
        aspect-ratio: 16 / 7;
        min-height: 420px;
        padding: 64px 80px;
    }
}

.hero-card__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    max-width: 560px;
}
.hero-card__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: var(--space-4);
}
.hero-card__title {
    font-size: clamp(28px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--fg-strong);
    margin: 0;
}
.hero-card__subtitle {
    margin-top: var(--space-4);
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--fg-muted);
    line-height: 1.5;
    max-width: 60ch;
}
.hero-card__cta {
    align-self: flex-start;
    margin-top: var(--space-7);
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--accent-cta);
    color: var(--accent-cta-fg);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 999px;
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.hero-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.hero-card__cta svg {
    width: 16px; height: 16px;
    transition: transform var(--dur-base) var(--ease-out);
}
.hero-card__cta:hover svg { transform: translateX(4px); }
.hero-card__fine {
    margin-top: var(--space-6);
    font-size: 12px;
    color: var(--fg-subtle);
    max-width: 60ch;
}
.hero-card__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.hero-card__visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 32px rgba(0,0,0,0.12));
}

/* ─── Modo: imagen al costado izquierdo (texto a la derecha) ─── */
@media (min-width: 768px) {
    .hero-card--side-left { grid-template-columns: 1fr 1.1fr; }
    .hero-card--side-left .hero-card__visual { order: 0; }
    .hero-card--side-left .hero-card__text    { order: 1; }
}

/* ─── Modo: imagen cubre todo (cover, estilo Samsung) ─── */
.hero-card--cover .hero-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-card--cover .hero-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
}
.hero-card--cover { grid-template-columns: 1fr; }
.hero-card--cover .hero-card__text { z-index: 2; color: #fff; }
.hero-card--cover .hero-card__title { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.6); }
.hero-card--cover .hero-card__subtitle { color: rgba(255,255,255,0.92); text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.hero-card--cover .hero-card__eyebrow { color: rgba(255,255,255,0.9); }
.hero-card--cover .hero-card__fine { color: rgba(255,255,255,0.75); }
.hero-card--cover .hero-card__cta {
    background: #fff;
    color: #0A0A0A;
}

/* ─── Modo: background sutil (imagen al 25% como decoración) ─── */
.hero-card--background .hero-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 0;
}
.hero-card--background { grid-template-columns: 1fr; }
.hero-card--background .hero-card__text { z-index: 2; }

/* ─── Modo: contain (imagen completa sin recortar, con espacio alrededor) ─── */
.hero-card--contain .hero-card__visual img {
    object-fit: contain;
    max-height: 90%;
}

/* Mobile: visual va abajo cuando hay imagen */
@media (max-width: 767px) {
    .hero-card:not(.hero-card--cover):not(.hero-card--background) {
        grid-template-rows: auto 1fr;
    }
    .hero-card:not(.hero-card--cover):not(.hero-card--background) .hero-card__visual {
        margin-top: var(--space-5);
        max-height: 200px;
    }
}

/* Carousel dots */
.hero__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
}
.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--border-strong);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--dur-medium) var(--ease-out);
}
.hero__dot.active {
    background: var(--fg-strong);
    width: 28px;
}
.hero__dot:hover:not(.active) { background: var(--fg-muted); }

/* Carousel arrows (desktop) */
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--fg-strong);
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out);
    z-index: 5;
}
.hero__arrow.prev { left: 24px; }
.hero__arrow.next { right: 24px; }
.hero__arrow svg { width: 22px; height: 22px; }
.hero__viewport:hover .hero__arrow { opacity: 1; }
@media (min-width: 1024px) { .hero__arrow { display: flex; } }
@media (hover: none) { .hero__arrow { display: none !important; } }

/* ─────────────── SECTIONS ─────────────── */
.section { padding: var(--space-9) 0; }
@media (min-width: 768px) { .section { padding: var(--space-11) 0; } }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    gap: var(--space-5);
    flex-wrap: wrap;
}
.section-head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fg-strong);
}
.section-head__sub {
    color: var(--fg-muted);
    font-size: 14px;
    margin-top: var(--space-1);
}
.section-head__link {
    color: var(--brand);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.section-head__link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ─────────────── CHIPS (categorías) ─────────────── */
.chips {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-7);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    color: var(--fg-default);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--border-strong); }
.chip.active {
    background: var(--fg-strong);
    color: var(--accent-cta-fg);
    border-color: var(--fg-strong);
    font-weight: 600;
}

/* ─────────────── PRODUCT CARDS ─────────────── */
.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}
@media (min-width: 640px) { .products { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }
@media (min-width: 1024px) { .products { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); } }

.product-card {
    background: var(--surface-card);
    border: 1px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    color: var(--fg-default);
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-medium) var(--ease-out),
                box-shadow var(--dur-medium) var(--ease-out),
                border-color var(--dur-medium) var(--ease-out);
}
@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px -10px rgba(0,0,0,0.15);
        border-color: var(--border-subtle);
    }
    .product-card:hover .product-card__img img { transform: scale(1.04); }
}
.product-card__img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--surface-sunken);
    position: relative;
}
.product-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}
.product-card__badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.product-card__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--brand);
    color: var(--brand-fg);
}
.product-card__badge--discount { background: #DC2626; }
.product-card__badge--featured { background: var(--accent-cta); color: var(--accent-cta-fg); }
/* Body del product card: TODO CENTRADO (stock + precio + nombre) — estilo Compudemano */
.product-card__body {
    padding: var(--space-4) var(--space-3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}
.product-card__name {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
    color: var(--fg-default);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    max-width: 100%;
    word-wrap: break-word;
}
.product-card__price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}
.product-card__secondary {
    display: block;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fg-muted);
    margin-top: 2px;
}
.product-card__price {
    font-size: 18px;
    font-weight: 800;
    color: #DC2626;
    letter-spacing: -0.005em;
    line-height: 1.2;
}
.product-card__compare {
    font-size: 12px;
    text-decoration: line-through;
    color: var(--fg-subtle);
    line-height: 1.2;
}
.product-card__cuotas {
    font-size: 12px;
    font-weight: 500;
    color: var(--brand);
    margin-top: var(--space-1);
}

/* ─────────────── FOOTER ─────────────── */
.site-footer {
    background:
        radial-gradient(1100px 480px at 85% 0%, rgba(var(--brand-rgb), .07), transparent 65%),
        linear-gradient(180deg, rgba(var(--brand-rgb), .035), rgba(var(--brand-rgb), 0) 55%),
        var(--surface-card);
    border-top: 1px solid rgba(var(--brand-rgb), .22);
    /* El aire vive ADENTRO de la superficie tintada — sin banda gris previa. */
    margin-top: 0;
    padding: var(--space-11) 0 var(--space-6);
}
@media (max-width: 767px) {
    .site-footer { padding-top: var(--space-9); }
}
/* En oscuro el tinte necesita más fuerza para ser perceptible sobre #141417 */
html[data-bio-theme="dark"] .site-footer {
    background:
        radial-gradient(1100px 480px at 85% 0%, rgba(var(--brand-rgb), .16), transparent 65%),
        linear-gradient(180deg, rgba(var(--brand-rgb), .07), rgba(var(--brand-rgb), 0) 55%),
        var(--surface-card);
}
@media (prefers-color-scheme: dark) {
    html[data-bio-theme="auto"] .site-footer {
        background:
            radial-gradient(1100px 480px at 85% 0%, rgba(var(--brand-rgb), .16), transparent 65%),
            linear-gradient(180deg, rgba(var(--brand-rgb), .07), rgba(var(--brand-rgb), 0) 55%),
            var(--surface-card);
    }
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-9);
}
@media (min-width: 1024px) {
    .site-footer__grid { grid-template-columns: 1.1fr 1fr 1.5fr; gap: var(--space-11); align-items: start; }
}
.site-footer h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin: 0 0 var(--space-4);
}
.site-footer__h-gap { margin-top: var(--space-7) !important; }
.site-footer__muted {
    color: var(--fg-muted);
    font-size: 14px;
    margin: 0 0 var(--space-4);
}
.site-footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-6);
}
/* Scoped a los links de texto (la regla genérica .site-footer a rompía
   el centrado flex de los círculos por especificidad). */
.site-footer__links a {
    display: block;
    color: var(--fg-default);
    padding: var(--space-2) 0;
    font-size: 14px;
    transition: color var(--dur-fast) ease;
}
.site-footer__links a:hover { color: var(--brand); }

/* Botones redondos (Maps / Waze / redes) — círculos al color de marca */
.site-footer__round-row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}
.site-footer__round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px; height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-fg);
    box-shadow: 0 2px 6px rgba(var(--brand-rgb), .25);
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease, filter var(--dur-fast) ease;
}
.site-footer__round:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(var(--brand-rgb), .38);
    filter: brightness(1.06) saturate(1.05);
    color: var(--brand-fg);
}
.site-footer__round:focus-visible { outline: 2px solid rgba(var(--brand-rgb), .55); outline-offset: 2px; }
.site-footer__round svg { width: 18px; height: 18px; display: block; }

/* Frase grande de marca (estilo "Unindo pessoas, tecnologia & ideias") */
.site-footer__statement {
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: var(--fg-strong);
    justify-self: end;
    align-self: center;
    text-align: right;
    max-width: 14ch;
    text-wrap: balance;
    padding: var(--space-2) var(--space-2) 0 0;
}
.site-footer__statement span { color: var(--brand); }
@media (max-width: 1023px) {
    .site-footer__statement { justify-self: start; align-self: start; text-align: left; padding: 0; }
}

.site-footer__bottom {
    border-top: 1px solid rgba(var(--brand-rgb), .12);
    padding-top: var(--space-6);
    color: var(--fg-subtle);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
}
.site-footer__bottom a { display: inline; color: var(--brand); padding: 0; font-size: inherit; }
a.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 15px;
    color: var(--fg-strong);
    padding: 0;
}
a.site-footer__brand:hover { color: var(--brand); }
.site-footer__brand img {
    width: 32px; height: 32px;
    border-radius: 9px;
    object-fit: cover;
}

/* ─────────────── BARRA INFERIOR TIPO APP (mobile) ─────────────── */
.app-tabbar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 150;
    background: var(--surface-card);
    border-top: 1px solid var(--border-subtle);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .10);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    align-items: center;
    justify-content: space-around;
}
@media (max-width: 1023px) {
    .app-tabbar { display: flex; }
    /* El colchón para la tabbar vive DENTRO del footer (superficie tintada):
       así no queda una tira gris de página entre el footer y la barra. */
    body { padding-bottom: 0; }
    .site-footer { padding-bottom: calc(var(--space-8) + 70px + env(safe-area-inset-bottom)); }
}
.app-tabbar__tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--fg-muted);
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
}
.app-tabbar__tab svg { width: 22px; height: 22px; }
.app-tabbar__tab:hover { color: var(--fg-strong); }
.app-tabbar__tab.active {
    color: var(--brand);
    background: rgba(var(--brand-rgb), .08);
}
.app-tabbar__fab {
    flex: none;
    width: 54px; height: 54px;
    margin-top: -26px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-fg);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 22px rgba(var(--brand-rgb), .38);
    border: 4px solid var(--surface-card);
    transition: transform .15s ease;
}
.app-tabbar__fab:active { transform: scale(.94); }
.app-tabbar__fab svg { width: 24px; height: 24px; }

/* ─────────────── CONTACTO ─────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}
@media (min-width: 900px) {
    .contact-grid { grid-template-columns: 1.4fr 1fr; }
}
.contact-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}
.contact-card__header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 700;
    color: var(--fg-strong);
}
.contact-card__body { padding: var(--space-5) var(--space-6); }
.contact-vendors {
    display: grid;
    /* auto-fill + minmax(0,...) → se reacomoda en filas y NO desborda la tarjeta
       (antes, con 1fr y min-width:auto, los vendedores extra se recortaban). */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-3);
    align-content: start;
}
.contact-vendor {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0; /* permite truncar el texto en vez de empujar/desbordar */
    padding: var(--space-4);
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all var(--dur-fast) var(--ease-out);
}
.contact-vendor > div { min-width: 0; }
.contact-vendor:hover { background: var(--surface-hover); transform: translateY(-1px); }
.contact-vendor__icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #25D366;
    color: #FFF;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-vendor__icon svg { width: 18px; height: 18px; }
.contact-vendor__name { font-weight: 700; font-size: 14px; color: var(--fg-strong); }
.contact-vendor__role { font-size: 11px; color: var(--fg-muted); }
.contact-map {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}

/* ─────────────── PRODUCT CARDS · NUEVA VERSIÓN (con wishlist/stock/envío gratis) ─────────────── */
.product-card__shipping {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #EC4899;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
    z-index: 2;
    font-size: 7px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px;
}
.product-card__shipping svg { width: 16px; height: 16px; margin-bottom: 2px; }

.product-card__actions {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    z-index: 3;
    opacity: 1;
}
@media (hover: hover) and (min-width: 768px) {
    .product-card__actions { opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
    .product-card:hover .product-card__actions { opacity: 1; }
}
.product-card__action-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    color: #16181d; /* el círculo es blanco en ambos temas → ícono siempre oscuro (antes invisible en modo oscuro) */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-fast) var(--ease-out);
}
.product-card__action-btn:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.product-card__action-btn.active {
    background: var(--brand);
    color: var(--brand-fg);
    border-color: var(--brand);
}
.product-card__action-btn svg { width: 18px; height: 18px; }

.product-card__stock {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
    text-transform: lowercase;
    line-height: 1.4;
    letter-spacing: 0.01em;
    margin: 0;
}
.product-card__stock.in-stock {
    background: #10B981;
    color: #fff;
}
.product-card__stock.out-stock {
    background: var(--surface-hover);
    color: var(--fg-muted);
}

/* Precio rojo prominente */
.product-card__price {
    font-size: 18px;
    font-weight: 800;
    color: #DC2626;
    letter-spacing: -0.005em;
}
@media (min-width: 768px) {
    .product-card__price { font-size: 20px; }
}

/* Reorder badges para nuevo layout — los apilamos verticalmente top-left */
.product-card__badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 3;
}
/* Si HAY badges (TOP / discount), corremos el shipping para abajo */
.product-card__badges:not(:empty) ~ .product-card__shipping {
    top: 50%;
    transform: translateY(-50%);
    left: var(--space-3);
}

/* ─────────────── RAIL SECTIONS · Swiper con scrollbar ─────────────── */
.rail-section {
    padding: var(--space-7) 0;
}
@media (min-width: 768px) {
    .rail-section { padding: var(--space-8) 0; }
}
.rail-section + .rail-section {
    padding-top: 0;
}

/* Swiper override — scrollbar tipo Compudemano (rojo / gris claro) */
.products-swiper {
    padding-bottom: 24px !important;  /* espacio para scrollbar */
    overflow: visible;
}
.products-swiper .swiper-scrollbar {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: var(--surface-hover) !important;
    border-radius: 4px !important;
}
.products-swiper .swiper-scrollbar-drag {
    background: #DC2626 !important;
    border-radius: 4px !important;
    cursor: grab;
}
.products-swiper .swiper-scrollbar-drag:active { cursor: grabbing; }

/* Brands swiper - sin scrollbar */
.brands-swiper {
    overflow: visible;
}

/* ─── Tamaño FIJO de las cards en swiper (no se comprimen aunque haya pocos productos) ─── */
.products-swiper .swiper-slide {
    /* ancho fijo por slide: garantiza que 2 productos se vean igual a 20 */
    width: 160px;
    height: auto;
}
@media (min-width: 480px) {
    .products-swiper .swiper-slide { width: 170px; }
}
@media (min-width: 768px) {
    .products-swiper .swiper-slide { width: 180px; }
}
@media (min-width: 1024px) {
    .products-swiper .swiper-slide { width: 190px; }
}
@media (min-width: 1280px) {
    .products-swiper .swiper-slide { width: 200px; }
}
.products-swiper .product-card {
    height: 100%;
    min-height: 310px;
}

/* Brands swiper - también ancho fijo */
.brands-swiper .swiper-slide {
    width: 130px;
    height: auto;
}
@media (min-width: 768px) { .brands-swiper .swiper-slide { width: 150px; } }
@media (min-width: 1024px) { .brands-swiper .swiper-slide { width: 160px; } }

.rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    gap: var(--space-3);
}
.rail-head__title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}
.rail-head__icon {
    width: 36px; height: 36px;
    background: var(--brand);
    color: var(--brand-fg);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rail-head__icon svg { width: 20px; height: 20px; }
.rail-head__brand {
    width: 44px; height: 44px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rail-head__brand img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0);
}
html[data-bio-theme="dark"] .rail-head__brand img { filter: invert(0.9); }
.rail-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fg-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 768px) { .rail-head h2 { font-size: 26px; } }
.rail-head__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-default);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: 999px;
    transition: all var(--dur-fast) var(--ease-out);
    white-space: nowrap;
    flex-shrink: 0;
}
.rail-head__more:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
}

.product-rail {
    position: relative;
}
.product-rail__track {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-5);
}
.product-rail__track::-webkit-scrollbar { display: none; }
.product-rail__item {
    flex: 0 0 calc(50% - 8px);
    scroll-snap-align: start;
}
@media (min-width: 640px) { .product-rail__item { flex: 0 0 calc(33.333% - 11px); } }
@media (min-width: 900px) { .product-rail__item { flex: 0 0 calc(25% - 12px); } }
@media (min-width: 1200px) { .product-rail__item { flex: 0 0 calc(20% - 13px); } }
@media (min-width: 1400px) { .product-rail__item { flex: 0 0 calc(16.666% - 14px); } }

/* Barra de progreso del scroll (rojo brand) */
.product-rail__progress {
    height: 4px;
    background: var(--surface-hover);
    border-radius: 4px;
    overflow: hidden;
    margin-top: var(--space-2);
}
.product-rail__progress-fill {
    height: 100%;
    background: #DC2626;
    border-radius: 4px;
    transition: width var(--dur-fast) linear;
}

/* ─────────────── MARCAS (Swiper) ─────────────── */
.section--brands { background: var(--surface-sunken); }

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-5);
    transition: all var(--dur-fast) var(--ease-out);
    overflow: hidden;
}
.brand-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.brand-card img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
    filter: grayscale(0);
    transition: opacity var(--dur-base) var(--ease-out);
}
.brand-card:hover img { opacity: 0.85; }
.brand-card__text {
    font-weight: 700;
    font-size: 13px;
    color: var(--fg-default);
    text-align: center;
}

/* Dark mode: brand logos invertir si son negros */
html[data-bio-theme="dark"] .brand-card img {
    filter: grayscale(0.6) invert(0.85);
}
html[data-bio-theme="dark"] .brand-card:hover img {
    filter: grayscale(0) invert(0.85);
}

/* ─────────────── HOME BUILDER · banners y promo text ─────────────── */
.hb-banner-single {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--dur-medium) var(--ease-out);
}
.hb-banner-single:hover { transform: translateY(-2px); }
.hb-banner-single img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.hb-banner-double {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
@media (min-width: 640px) {
    .hb-banner-double { grid-template-columns: 1fr 1fr; }
}
.hb-banner-double__item {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--dur-medium) var(--ease-out);
}
.hb-banner-double__item:hover { transform: translateY(-2px); }
.hb-banner-double__item img { width: 100%; height: auto; display: block; }

.hb-banner-wide {
    margin: var(--space-7) 0;
}
.hb-banner-wide a { display: block; }
.hb-banner-wide img { width: 100%; height: auto; display: block; }

.hb-promo {
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: var(--space-7) var(--space-6);
    text-align: center;
}
@media (min-width: 768px) { .hb-promo { padding: var(--space-9) var(--space-7); } }
.hb-promo__title {
    margin: 0 0 var(--space-3);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--fg-strong);
}
.hb-promo__text {
    margin: 0 auto var(--space-5);
    color: var(--fg-muted);
    max-width: 60ch;
    line-height: 1.6;
}
.hb-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-cta);
    color: var(--accent-cta-fg);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 999px;
    transition: transform var(--dur-fast) var(--ease-out);
}
.hb-promo__cta:hover { transform: translateY(-2px); }

/* ─────────────── CONTACTO INLINE (sección "Hablá con nosotros") ─────────────── */
.section--contact {
    background: var(--surface-sunken);
    border-top: 1px solid var(--border-subtle);
}
.contact-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}
@media (min-width: 768px)  { .contact-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .contact-row { grid-template-columns: 1fr 1.2fr 1fr; } }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.status-pill > span:first-child {
    width: 7px; height: 7px;
    border-radius: 50%;
}
.status-pill--open {
    background: color-mix(in srgb, #10B981 14%, transparent);
    color: #059669;
}
.status-pill--open > span:first-child { background: #10B981; }
.status-pill--closed {
    background: color-mix(in srgb, var(--fg-muted) 14%, transparent);
    color: var(--fg-muted);
}
.status-pill--closed > span:first-child { background: var(--fg-muted); }

/* Horarios */
.hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
}
.hours-row:last-child { border-bottom: 0; }
.hours-row--today {
    background: color-mix(in srgb, var(--brand) 8%, transparent);
}
.hours-row__day {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--fg-strong);
    font-weight: 500;
}
.hours-row__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #10B981;
}
.hours-row__dot.closed { background: var(--fg-subtle); }
.hours-row__badge {
    font-size: 10px;
    background: var(--brand);
    color: var(--brand-fg);
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.hours-row__time {
    font-weight: 600;
    color: var(--fg-strong);
}
.hours-row__time.closed {
    color: var(--fg-muted);
    font-weight: 500;
}

/* ─────────────── BUSCADOR PÍLDORA DEL HEADER (estilo mayorista) ─────────────── */
.header-pill-search {
    display: none;
    align-items: center;
    gap: 8px;
    max-width: 560px;
    width: 100%;
    justify-self: center;
    background: var(--brand);
    border-radius: 999px;
    padding: 5px 5px 5px 18px;
}
@media (min-width: 1024px) {
    .header-pill-search { display: flex; }
}
.header-pill-search__spark {
    width: 18px; height: 18px;
    flex: none;
    color: var(--brand-fg);
    opacity: .9;
}
.header-pill-search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--brand-fg);
    font-size: 15px;
    font-weight: 500;
    outline: none;
}
.header-pill-search input::placeholder {
    color: var(--brand-fg);
    opacity: .85;
}
.header-pill-search button {
    flex: none;
    width: 38px; height: 38px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    background: var(--brand-fg);
    color: var(--brand);
    display: grid;
    place-items: center;
    transition: transform .15s ease;
}
.header-pill-search button svg { width: 18px; height: 18px; }
.header-pill-search button:hover { transform: scale(1.06); }

/* Cotización inline en el header (desktop) */
.header-rate {
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    white-space: nowrap;
    margin-right: 6px;
}
/* La cotización inline vive SOLO en desktop; en mobile va en la barra verde
   (rates-bar). Sin gatear el display por media query, .header-rate{display:inline-flex}
   (declarado DESPUÉS de .desktop-only) le ganaba por orden de fuente y se mostraba
   en el header de celular, encimándose con el logo. */
@media (min-width: 1024px) { .header-rate { display: inline-flex; } }
.header-rate__label { color: var(--fg-muted); }
.header-rate__sep { color: var(--border-strong); }
.header-rate strong { color: var(--fg-strong); font-weight: 800; }

/* Botones de acción con borde de marca (estilo Atacado) */
.icon-btn--brand {
    border: 1.5px solid rgba(var(--brand-rgb), .45);
    border-radius: 12px;
    color: var(--brand);
}
.icon-btn--brand:hover {
    background: rgba(var(--brand-rgb), .12);
}

/* Nav de categorías con icono */
.header-nav__burger {
    display: none;
    margin-right: var(--space-4);
    flex: none;
}
@media (min-width: 1024px) {
    .header-nav__burger { display: inline-flex; }
}
.header-nav ul { flex-wrap: wrap; }
.header-nav li { flex: none; position: relative; }

/* ---- Submenú desplegable (subcategorías) ---- */
.header-nav__caret { opacity: .55; transition: transform var(--dur-fast) ease; }
.header-nav li.has-sub:hover .header-nav__caret { transform: rotate(180deg); }
.nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: -6px;
    min-width: 210px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
    padding: 8px;
    z-index: 140;
}
.header-nav li.has-sub:hover .nav-sub,
.header-nav li.has-sub:focus-within .nav-sub { display: block; }
.nav-sub a {
    display: block;
    padding: 9px 12px !important;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-default);
}
.nav-sub a::after { content: none !important; }
.nav-sub a:hover { background: var(--surface-hover); color: var(--brand); }
.nav-sub a.active { color: var(--brand); font-weight: 700; }
.header-nav__cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.header-nav__label { display: inline-block; }
.header-nav__ico {
    width: 24px; height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: var(--surface-hover);
}
.header-nav__ico img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.header-nav__ico.is-tint,
.cat-strip__circle.is-tint {
    background: rgba(var(--brand-rgb), .14);
    color: var(--brand);
}
.cat-strip__circle.is-tint .cat-strip__initial {
    color: var(--brand);
    text-shadow: none;
}

/* ─────────────── SUGERENCIAS EN VIVO DEL BUSCADOR ─────────────── */
.header-pill-search,
.header-search__form { position: relative; }

.sf-suggest {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
    overflow: hidden auto;
    max-height: min(70vh, 560px);
}
.sf-suggest.open { display: block; }

.sf-suggest__head {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fg-muted);
    padding: 12px 16px 6px;
    background: var(--surface-sunken);
}
.sf-suggest__cat {
    display: block;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fg-strong);
    text-decoration: none;
    border-bottom: 1px solid var(--border-subtle);
}
.sf-suggest__cat:hover { background: var(--surface-hover); color: var(--brand); }

.sf-suggest__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-subtle);
}
.sf-suggest__item:hover { background: var(--surface-hover); }
.sf-suggest__thumb {
    flex: none;
    width: 48px; height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-sunken);
}
.sf-suggest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-suggest__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sf-suggest__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--fg-strong);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sf-suggest__brand {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fg-muted);
}
.sf-suggest__price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--brand);
}
.sf-suggest__price--out { color: var(--fg-muted); font-weight: 600; }

.sf-suggest__all {
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
    background: var(--surface-sunken);
    color: var(--brand);
    font-size: 13.5px;
    font-weight: 700;
    padding: 12px 16px;
    text-align: center;
}
.sf-suggest__all:hover { background: var(--surface-hover); }

/* ─────────────── BARRA DE COTIZACIONES (multimoneda) ─────────────── */
/* Compacta: una sola línea, con separadores sutiles y scroll horizontal si no
   entra (nunca hace wrap a 2 líneas ni ocupa alto de más). */
.rates-bar {
    background: var(--brand);
    color: var(--brand-fg);
    font-size: 11.5px;
    line-height: 1;
    padding: 5px 0;
}
@media (min-width: 1024px) {
    /* En desktop la cotización vive dentro del header (inline) */
    .rates-bar { display: none; }
}
.rates-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.rates-bar__inner::-webkit-scrollbar { display: none; }
.rates-bar__item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 0 11px;
    white-space: nowrap;
    opacity: .97;
}
.rates-bar__item + .rates-bar__item { border-left: 1px solid rgba(255, 255, 255, .28); }
.rates-bar__item strong { font-weight: 700; }

/* ─────────────── BARRA DE BÚSQUEDA DEL HEADER ─────────────── */
.header-search {
    display: none;
    border-top: 1px solid var(--border-subtle);
    background: var(--surface-card);
    padding: 10px 16px;
}
.header-search.open { display: block; }
@media (min-width: 1024px) {
    /* En desktop el buscador píldora está siempre visible — la barra toggle es mobile */
    .header-search, .header-search.open { display: none; }
}
.header-search__form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface-sunken);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 6px 8px 6px 16px;
}
.header-search__form:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .15);
}
.header-search__form svg {
    width: 18px; height: 18px;
    flex: none;
    color: var(--fg-muted);
}
.header-search__form input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--fg-strong);
    font-size: 15px;
    outline: none;
}
.header-search__form button {
    flex: none;
    border: none;
    cursor: pointer;
    background: var(--brand);
    color: var(--brand-fg);
    font-weight: 700;
    font-size: 13.5px;
    padding: 8px 18px;
    border-radius: 999px;
    transition: filter .15s ease;
}
.header-search__form button:hover { filter: brightness(1.08); }

/* ─────────────── PÁGINA DE CATEGORÍA (/categoria/{slug}) ─────────────── */
.cat-hero {
    padding: 22px 0 6px;
}
.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 13px;
    color: var(--fg-muted);
    margin-bottom: 16px;
}
.crumbs a { color: var(--fg-muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs__sep { color: var(--border-strong); }
.crumbs [aria-current] { color: var(--fg-strong); font-weight: 600; }

.cat-hero__row {
    display: flex;
    align-items: center;
    gap: 18px;
}
.cat-hero__img {
    flex: none;
    width: 72px; height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}
.cat-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero__title {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fg-strong);
    margin: 0;
    line-height: 1.1;
}
.cat-hero__sub {
    color: var(--fg-muted);
    font-size: 15px;
    margin: 6px 0 0;
}
.cat-hero__count {
    color: var(--fg-muted);
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

/* ---- Layout 2 columnas: sidebar de filtros + grilla ---- */
.cat-page { padding: 8px 0 40px; }
.cat-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}
@media (min-width: 1024px) {
    .cat-page__grid { grid-template-columns: 264px minmax(0, 1fr); gap: 28px; }
}

/* Botón "Filtros" (solo mobile) */
.filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: start;
    padding: 10px 18px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: var(--surface-card);
    color: var(--fg-strong);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.filters-toggle__badge {
    background: var(--brand);
    color: var(--brand-fg);
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 999px;
    padding: 1px 8px;
}
@media (min-width: 1024px) {
    .filters-toggle { display: none; }
}

/* Sidebar */
.filters { display: none; flex-direction: column; gap: 14px; }
.filters.open { display: flex; }
@media (min-width: 1024px) {
    .filters { display: flex; position: sticky; top: calc(var(--header-main-h) + 12px); max-height: calc(100vh - var(--header-main-h) - 24px); overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
}
.filters form { display: flex; flex-direction: column; gap: 14px; }

.fcard {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px;
}
.fcard__title {
    font-size: 14px;
    font-weight: 800;
    color: var(--fg-strong);
    margin-bottom: 10px;
}

/* Drill-down de categorías */
.fdrill { display: flex; flex-direction: column; }
.fdrill__up {
    color: var(--fg-muted);
    font-size: 13.5px;
    font-weight: 600;
    padding: 5px 0;
}
.fdrill__up:hover { color: var(--brand); }
.fdrill__current {
    color: var(--fg-strong);
    font-size: 14px;
    font-weight: 800;
    padding: 7px 0 5px;
}
.fdrill__item {
    color: var(--fg-default);
    font-size: 14px;
    padding: 6px 0 6px 14px;
}
.fdrill__item:hover { color: var(--brand); }

/* Precio */
.fprice {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fprice input {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--surface-sunken);
    color: var(--fg-strong);
    font-size: 13.5px;
    outline: none;
}
.fprice input:focus { border-color: var(--brand); }
.fprice span { color: var(--fg-muted); }
.fapply {
    margin-top: 10px;
    width: 100%;
    padding: 9px;
    border: none;
    border-radius: 10px;
    background: var(--brand);
    color: var(--brand-fg);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}
.fapply:hover { filter: brightness(1.07); }

/* Checkboxes */
.fcheck {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--fg-default);
}
.fcheck:hover { color: var(--fg-strong); }
.fcheck input {
    width: 17px; height: 17px;
    accent-color: var(--brand);
    cursor: pointer;
    flex: none;
}
.fcheck span { flex: 1; min-width: 0; }
.fcheck em {
    font-style: normal;
    font-size: 12px;
    color: var(--fg-muted);
    background: var(--surface-sunken);
    border-radius: 999px;
    padding: 1px 8px;
}

.fclear {
    display: block;
    text-align: center;
    color: var(--brand);
    font-size: 13.5px;
    font-weight: 700;
    padding: 4px 0;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.pager__btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    color: var(--fg-strong);
    font-size: 14px;
    font-weight: 600;
}
.pager__btn:hover { border-color: var(--brand); color: var(--brand); }
.pager__btn.is-off { opacity: .4; pointer-events: none; }
.pager__info { color: var(--fg-muted); font-size: 13.5px; }

/* ─────────────── FRANJA DE CATEGORÍAS (círculos con foto) ─────────────── */
.cat-strip {
    padding: 20px 0 4px;
}
.cat-strip__track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cat-strip__track::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
    .cat-strip__track { justify-content: center; flex-wrap: wrap; overflow: visible; }
}
.cat-strip__item {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 86px;
    text-decoration: none;
}
.cat-strip__circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cat-strip__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-strip__initial {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-fg);
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.cat-strip__name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fg-strong);
    text-align: center;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-strip__item:hover .cat-strip__circle {
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: 0 6px 16px rgba(var(--brand-rgb), .22);
}
.cat-strip__item:hover .cat-strip__name { color: var(--brand); }

/* ─────────────── REDUCED MOTION ─────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===========================================================================
   CARRITO (drawer multi-producto) — usa las vars del design system, así que
   se adapta solo a claro/oscuro.
   ========================================================================= */
.nube-cart-trigger { position: relative; }
.nube-cart-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9999px;
    background: var(--brand); color: var(--brand-fg);
    font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
    box-shadow: 0 2px 6px rgba(var(--brand-rgb), .45);
}
.nube-cart-badge.pop { animation: nbCartPop .32s var(--ease-spring); }
@keyframes nbCartPop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

body.nube-cart-lock { overflow: hidden; }

.nube-cart {
    position: fixed; inset: 0; z-index: 1000;
    visibility: hidden; pointer-events: none;
}
.nube-cart.open { visibility: visible; pointer-events: auto; }
.nube-cart__overlay {
    position: absolute; inset: 0;
    background: rgba(10,10,11,.5); backdrop-filter: blur(2px);
    opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.nube-cart.open .nube-cart__overlay { opacity: 1; }
.nube-cart__panel {
    position: absolute; top: 0; right: 0; height: 100%;
    width: min(420px, 92vw);
    background: var(--surface-card); color: var(--fg-default);
    border-left: 1px solid var(--border-subtle);
    box-shadow: -18px 0 50px rgba(10,10,11,.28);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--dur-medium) var(--ease-out);
}
.nube-cart.open .nube-cart__panel { transform: translateX(0); }

.nube-cart__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid var(--border-subtle);
}
.nube-cart__head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--fg-strong); }
.nube-cart__close {
    width: 34px; height: 34px; border-radius: 9999px; border: 1px solid var(--border-subtle);
    background: var(--surface-hover); color: var(--fg-strong); font-size: 16px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.nube-cart__close:hover { border-color: var(--brand); color: var(--brand); }

.nube-cart__items { flex: 1 1 auto; overflow-y: auto; padding: 8px 16px; }

.nube-cart__empty {
    flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 40px 24px; text-align: center; color: var(--fg-muted);
}
.nube-cart__empty svg { width: 54px; height: 54px; color: var(--fg-subtle); }
.nube-cart__empty p { margin: 6px 0 0; font-weight: 700; color: var(--fg-strong); }
.nube-cart__empty span { font-size: 13px; }

.nube-cart-row {
    display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
    padding: 12px 4px; border-bottom: 1px solid var(--border-subtle);
}
.nube-cart-row__img {
    width: 56px; height: 56px; border-radius: 12px; overflow: hidden;
    background: var(--surface-sunken); flex: none;
}
.nube-cart-row__img img { width: 100%; height: 100%; object-fit: cover; }
.nube-cart-row__name { font-size: 14px; font-weight: 600; color: var(--fg-strong); line-height: 1.25; }
.nube-cart-row__price { font-size: 12px; color: var(--fg-muted); margin: 2px 0 6px; }
.nube-cart-row__sub { font-size: 14px; font-weight: 800; color: var(--fg-strong); white-space: nowrap; }

.nube-cart-qty { display: flex; align-items: center; gap: 8px; }
.nube-cart-qty button {
    width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border-subtle);
    background: var(--surface-hover); color: var(--fg-strong); font-size: 15px; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.nube-cart-qty button:hover { border-color: var(--brand); color: var(--brand); }
.nube-cart-qty span { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }
.nube-cart-row__del {
    width: auto !important; padding: 0 8px; font-size: 11px !important; color: var(--fg-muted) !important;
    border-color: transparent !important; background: transparent !important; margin-left: 4px;
}
.nube-cart-row__del:hover { color: #e0245e !important; }

.nube-cart__foot { border-top: 1px solid var(--border-subtle); padding: 16px 20px 20px; }
.nube-cart__total-row {
    display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px;
}
.nube-cart__total-row span { font-size: 14px; color: var(--fg-muted); }
.nube-cart__total-row strong { font-size: 22px; font-weight: 800; color: var(--fg-strong); }

.nube-cart__form { display: flex; flex-direction: column; gap: 8px; }
.nube-cart__form input, .nube-cart__form textarea {
    width: 100%; padding: 11px 13px; border-radius: 12px;
    border: 1px solid var(--border-subtle); background: var(--surface-card); color: var(--fg-default);
    font-size: 14px; font-family: inherit;
}
.nube-cart__form input:focus, .nube-cart__form textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .18);
}
.nube-cart__submit {
    margin-top: 6px; padding: 14px; border: 0; border-radius: 14px; cursor: pointer;
    background: var(--brand); color: var(--brand-fg); font-size: 15px; font-weight: 800;
    box-shadow: 0 8px 20px rgba(var(--brand-rgb), .35);
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.nube-cart__submit:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(var(--brand-rgb), .45); }
.nube-cart__clear {
    width: 100%; margin-top: 8px; padding: 8px; border: 0; background: transparent;
    color: var(--fg-muted); font-size: 13px; cursor: pointer; text-decoration: underline;
}

.nube-cart-toast {
    position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
    z-index: 1100; max-width: 90vw;
    background: var(--fg-strong); color: var(--bg-page);
    padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
    box-shadow: 0 12px 30px rgba(10,10,11,.35);
    opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.nube-cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
    .nube-cart__panel { width: 100vw; }
}

/* ===========================================================================
   BANNERS: tipos nuevos — simple (1 imagen full), doble (2 columnas),
   horizontal ancho (franja baja full width). Van al final para sobrescribir
   las reglas base de .hero-card.
   ========================================================================= */

/* ─── Banner simple: una imagen cubriendo toda la card ─── */
.hero-card--full-single { grid-template-columns: 1fr !important; }
.hero-card--full-single .hero-card__bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.hero-card--full-single .hero-card__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%);
}
.hero-card--full-single .hero-card__text { z-index: 2; color: #fff; }
.hero-card--full-single .hero-card__title { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.hero-card--full-single .hero-card__subtitle { color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero-card--full-single .hero-card__eyebrow { color: rgba(255,255,255,.9); }
.hero-card--full-single .hero-card__fine { color: rgba(255,255,255,.75); }
.hero-card--full-single .hero-card__cta { background: #fff; color: #0A0A0A; }

/* ─── Banner horizontal ancho: franja baja, imagen cover + texto encima ─── */
.hero-card--full-wide {
    grid-template-columns: 1fr !important;
    aspect-ratio: auto !important;
    min-height: 200px !important;
    padding: var(--space-7) var(--space-8);
}
@media (min-width: 768px) {
    .hero-card--full-wide { aspect-ratio: 24 / 7 !important; min-height: 220px !important; }
}
.hero-card--full-wide .hero-card__bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.hero-card--full-wide .hero-card__text { z-index: 2; color: #fff; justify-content: center; }
.hero-card--full-wide .hero-card__title {
    color: #fff; font-size: clamp(22px, 3.5vw, 42px); text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.hero-card--full-wide .hero-card__subtitle { color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.hero-card--full-wide .hero-card__eyebrow { color: rgba(255,255,255,.9); }
.hero-card--full-wide .hero-card__fine { color: rgba(255,255,255,.75); }
.hero-card--full-wide .hero-card__cta { background: #fff; color: #0A0A0A; }

/* ─── Banner doble: 2 imágenes lado a lado (+ caption opcional debajo) ─── */
.hero-card--double {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    aspect-ratio: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
.hero-card--double .hero-card__double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
}
.hero-card--double .hero-card__double-col { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.hero-card--double .hero-card__double-col img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card--double .hero-card__text { padding: var(--space-6) var(--space-7); align-items: flex-start; }
@media (max-width: 640px) {
    .hero-card--double .hero-card__double { grid-template-columns: 1fr; }
}

/* ===========================================================================
   CARRUSEL DE PRODUCTOS con IMAGEN LATERAL (promo a un costado).
   minmax(0,1fr) en la columna del swiper evita que desborde el grid.
   ========================================================================= */
.rail-body { width: 100%; }
/* Flexbox (no grid): es la forma confiable de poner un Swiper junto a un
   elemento fijo. flex:1 + min-width:0 le da al swiper un ancho acotado, así
   Swiper detecta el overflow y habilita flechas/arrastre/scrollbar. */
.rail-body--with-aside {
    display: flex;
    gap: 16px;
    align-items: stretch;
}
.rail-body--aside-right { flex-direction: row-reverse; } /* imagen a la derecha */
.rail-aside { flex: 0 0 clamp(200px, 26%, 300px); }
.rail-body--with-aside .products-swiper {
    flex: 1 1 0;
    min-width: 0;   /* CLAVE: sin esto el swiper crece con su contenido y desborda */
    overflow: hidden; /* el swiper recorta dentro del marco y Swiper mide bien */
}

.rail-aside {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-sunken);
    min-height: 220px;
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
a.rail-aside:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.rail-aside img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
    /* Apilado: imagen arriba, productos abajo (ambas variantes). */
    .rail-body--with-aside,
    .rail-body--aside-right { flex-direction: column; }
    .rail-aside { flex: 0 0 auto; min-height: 0; max-height: 220px; margin-bottom: 4px; }
}

/* ===========================================================================
   CARRUSEL "ENMARCADO": cuando un carrusel tiene imagen lateral, encerramos
   cabecera + imagen + productos en una tarjeta (como la referencia DOOGEE),
   para que no quede suelto. Fondo sutil para que las cards blancas resalten.
   ========================================================================= */
.rail-card {
    background: var(--surface-hover);
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 16px 18px 18px;
    box-shadow: 0 8px 26px rgba(0,0,0,.05);
    /* El carrusel usa overflow:visible (peek). Dentro del marco eso se salía por
       la derecha; lo contenemos clipeando al borde redondeado de la tarjeta. */
    overflow: hidden;
}
.rail-section--carded .rail-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}
/* Las cards blancas necesitan un borde sutil para separarse del fondo del marco. */
.rail-section--carded .product-card { border-color: var(--border-subtle); }
.rail-section--carded .product-card:hover { border-color: var(--brand); }

@media (max-width: 768px) {
    .rail-card { padding: 12px 12px 14px; border-radius: 18px; }
}

/* ── Flechas de navegación del carrusel enmarcado (mover para ver más) ── */
.products-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 12;
    width: 40px; height: 40px;
    border-radius: 9999px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-card);
    color: var(--fg-strong);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.16);
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.products-arrow--prev { left: 6px; }
.products-arrow--next { right: 6px; }
.products-arrow:hover { background: var(--brand); color: var(--brand-fg); border-color: var(--brand); }
.products-arrow svg { width: 18px; height: 18px; }
/* Swiper agrega esta clase cuando no hay más para ese lado → ocultar. */
.products-arrow.swiper-button-disabled { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
    /* En mobile alcanza con el arrastre/scrollbar. */
    .products-arrow { display: none; }
}
