/* =============================================================================
   Capuchina — hoja de estilo única.
   Organización: tokens → base → utilidades → componentes → responsive.
   Todo el color sale de las variables de :root, así que para cambiar la
   identidad de la marca alcanza con tocar el bloque de tokens.
   ============================================================================= */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    /* Paleta de marca */
    --rosa-600: #e6007e;
    --rosa-500: #ff2e88;
    --rosa-400: #ff5fa2;
    --rosa-300: #ff8fbe;
    --rosa-200: #ffc2da;
    --rosa-100: #ffe4ee;
    --rosa-50:  #fff5f9;
    --tinta:    #1b0a13;
    --lila:     #b58cff;
    --crema:    #f6ece3;
    --verde-wa: #25d366;

    /* Roles semánticos */
    --bg:         var(--rosa-50);
    --surface:    #ffffff;
    --surface-2:  var(--rosa-100);
    --text:       var(--tinta);
    --text-soft:  #7a5666;
    --border:     var(--rosa-200);
    --primary:    var(--rosa-500);
    --primary-ink:#ffffff;
    --accent:     var(--lila);

    /* Tipografía */
    --font-display: "Unbounded", "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Escala y formas */
    --wrap: 1320px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 10px rgba(27, 10, 19, .06);
    --shadow: 0 12px 40px rgba(230, 0, 126, .10);
    --shadow-lg: 0 24px 70px rgba(230, 0, 126, .18);

    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:        #140810;
        --surface:   #21101a;
        --surface-2: #2d1626;
        --text:      #ffeef6;
        --text-soft: #c79cb2;
        --border:    #3d1e31;
        --primary:   var(--rosa-400);
        --primary-ink: #1b0a13;
        --shadow-sm: 0 2px 10px rgba(0, 0, 0, .4);
        --shadow: 0 12px 40px rgba(0, 0, 0, .45);
        --shadow-lg: 0 24px 70px rgba(0, 0, 0, .55);
    }
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -.03em;
    margin: 0 0 .5em;
    font-weight: 800;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; }

a { color: inherit; text-decoration-color: var(--rosa-300); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--primary); }

img, svg { max-width: 100%; height: auto; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

mark { background: var(--rosa-200); color: inherit; border-radius: 4px; padding: 0 .15em; }

/* ── Utilidades ─────────────────────────────────────────────────────────── */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

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

.skip-link {
    position: absolute; left: 50%; translate: -50% -120%;
    z-index: 200; background: var(--primary); color: var(--primary-ink);
    padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 700; text-decoration: none; transition: translate .2s var(--ease);
}
.skip-link:focus { translate: -50% 0; }

/* Honeypot antispam: invisible para personas, visible para bots */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.eyebrow {
    text-transform: uppercase; letter-spacing: .18em; font-size: .72rem;
    font-weight: 800; color: var(--rosa-600); margin: 0 0 .75rem;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--rosa-300); } }

.section-title { margin: 0; }
.section-sub { color: var(--text-soft); margin: .35rem 0 0; max-width: 56ch; }

.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--primary); padding-bottom: 2px; white-space: nowrap; }
.link-arrow:hover { color: var(--primary); }

/* ── Botones ────────────────────────────────────────────────────────────── */
.btn {
    --btn-bg: var(--primary);
    --btn-ink: var(--primary-ink);
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    background: var(--btn-bg); color: var(--btn-ink);
    border: 2px solid transparent; border-radius: var(--radius-pill);
    padding: .8rem 1.5rem; font-weight: 800; font-size: .95rem;
    text-decoration: none; cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--primary); --btn-ink: var(--primary-ink); }
.btn--dark { --btn-bg: var(--tinta); --btn-ink: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--text); border-color: currentColor; }
.btn--ghost:hover { --btn-bg: var(--surface-2); }
.btn--wa { --btn-bg: var(--verde-wa); --btn-ink: #06301a; }
.btn--google { --btn-bg: var(--surface); --btn-ink: var(--text); border-color: var(--border); }
.btn--lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn--sm { padding: .5rem 1rem; font-size: .82rem; }
.btn--block { width: 100%; }
.icon-wa { width: 1.15em; height: 1.15em; flex: none; }
.icon-google { width: 1.2em; height: 1.2em; flex: none; }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; flex: none;
    background: transparent; border: 0; border-radius: var(--radius-pill);
    cursor: pointer; color: inherit;
    transition: background .18s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-pill); padding: .4rem .9rem;
    font-size: .85rem; font-weight: 600; text-decoration: none;
}
.chip:hover { background: var(--rosa-100); border-color: var(--primary); }
.chip--remove { background: var(--rosa-100); border-color: var(--rosa-300); }
.chip--clear { border-style: dashed; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; }

/* ── Barra superior y ticker ────────────────────────────────────────────── */
.topbar { background: var(--tinta); color: var(--rosa-100); font-size: .84rem; }
.topbar__inner { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; }
.topbar p { margin: 0; }
.topbar strong { color: #fff; }
.topbar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rosa-400); flex: none; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.ticker { background: var(--primary); color: var(--primary-ink); overflow: hidden; padding: .4rem 0; }
.ticker__track { display: flex; gap: 2rem; white-space: nowrap; width: max-content; animation: slide 30s linear infinite; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 90;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex; align-items: center; gap: 1rem;
    min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--primary); flex: none; }
.logo__mark { width: 34px; height: 34px; }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.05em; color: var(--text); }
.logo--footer .logo__text { color: #fff; }

.menu-toggle { display: none; }
.burger, .burger::before, .burger::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
[aria-expanded="true"] .burger { background: transparent; }
[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }

.nav { flex: 1; }
.nav__list { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.nav__link {
    display: inline-block; padding: .55rem .75rem; border-radius: var(--radius-pill);
    font-weight: 700; font-size: .92rem; text-decoration: none;
}
.nav__link:hover, .nav__link.is-active { background: var(--rosa-100); color: var(--rosa-600); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nav__link:hover,
    :root:not([data-theme="light"]) .nav__link.is-active { background: var(--surface-2); color: var(--rosa-300); }
}

/* Mega menú */
.mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); padding: 2rem 0;
    opacity: 0; visibility: hidden; translate: 0 -8px;
    transition: opacity .2s var(--ease), translate .2s var(--ease), visibility .2s;
}
.has-mega { position: static; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; translate: 0 0; }
.mega__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 340px; gap: 2.5rem; }
.mega__title { font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; color: var(--text-soft); font-weight: 800; margin: 0 0 .75rem; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.mega a { text-decoration: none; font-weight: 600; }
.mega a:hover { color: var(--primary); }
.mega__all { color: var(--primary); font-weight: 800; }
.mega__promo { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; display: block; }
.mega__promo img { width: 100%; height: 100%; object-fit: cover; }
.mega__promo span { position: absolute; inset: auto 0 0 0; padding: 1rem; background: linear-gradient(transparent, rgba(27, 10, 19, .85)); color: #fff; display: grid; font-size: .8rem; }
.mega__promo strong { font-family: var(--font-display); font-size: 1.1rem; }

.site-header__actions { display: flex; align-items: center; gap: .25rem; flex: none; }

/* Buscador */
.search { position: relative; display: flex; align-items: center; gap: .25rem; }
.search--header input {
    width: 220px; background: var(--surface-2); border: 1px solid transparent;
    border-radius: var(--radius-pill); padding: .6rem 1rem; font-size: .88rem;
}
.search--header input:focus { border-color: var(--primary); background: var(--surface); outline: none; }
.search--big { max-width: 640px; gap: .5rem; margin-top: 1.25rem; }
.search--big input {
    flex: 1; background: var(--surface); border: 2px solid var(--border);
    border-radius: var(--radius-pill); padding: 1rem 1.5rem; font-size: 1.02rem;
}
.search--big input:focus { border-color: var(--primary); outline: none; }
.search__suggest {
    position: absolute; top: calc(100% + .5rem); left: 0; right: 0; z-index: 60;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: .5rem; max-height: 60vh; overflow-y: auto;
}
.search__suggest a {
    display: flex; gap: .75rem; align-items: center; padding: .5rem;
    border-radius: var(--radius-sm); text-decoration: none;
}
.search__suggest a:hover, .search__suggest a.is-active { background: var(--rosa-100); }
.search__suggest img { width: 44px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.search__suggest strong { display: block; font-size: .9rem; }
.search__suggest small { color: var(--text-soft); }

/* El acceso de búsqueda sólo existe en mobile (en desktop está el input) */
.search-mobile { display: none; }

.bag-btn { position: relative; }
.bag-btn__count {
    position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px;
    background: var(--primary); color: var(--primary-ink); border-radius: var(--radius-pill);
    font-size: .68rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px;
}

/* ── Drawer (lista de consulta) ─────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(27, 10, 19, .5); backdrop-filter: blur(2px); }
.drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
    background: var(--surface); display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg); animation: slideIn .25s var(--ease);
}
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem; border-bottom: 1px solid var(--border); }
.drawer__head h2 { margin: 0; font-size: 1.1rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer__foot { padding: 1.25rem; border-top: 1px solid var(--border); background: var(--surface-2); }
.drawer__note { font-size: .8rem; color: var(--text-soft); margin: 0 0 .75rem; }
.bag-item { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px dashed var(--border); }
.bag-item strong { display: block; font-size: .92rem; }
.bag-item small { color: var(--text-soft); }
.bag-item button { background: none; border: 0; cursor: pointer; color: var(--text-soft); font-size: 1.2rem; line-height: 1; }
.bag-empty { color: var(--text-soft); text-align: center; padding: 2rem 1rem; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero__bg {
    position: absolute; inset: -30% -10% auto -10%; height: 120%;
    background:
        radial-gradient(45% 55% at 15% 25%, var(--rosa-200) 0%, transparent 60%),
        radial-gradient(40% 50% at 85% 10%, var(--lila) 0%, transparent 55%),
        radial-gradient(50% 60% at 60% 90%, var(--rosa-300) 0%, transparent 60%);
    opacity: .75; filter: blur(10px); z-index: -1;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero__title { margin: 0 0 1rem; }
.hero__title em { font-style: normal; color: var(--primary); position: relative; }
.hero__title em::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .18em;
    background: var(--rosa-200); z-index: -1; border-radius: 4px;
}
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text-soft); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; margin: 0; font-size: .85rem; color: var(--text-soft); }
.hero__facts strong { display: block; color: var(--text); font-size: .95rem; }

.hero__media { position: relative; }
.hero__img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; }
.hero__img--a { width: 100%; aspect-ratio: 4/5; }
.hero__img--b { position: absolute; right: -6%; bottom: -12%; width: 46%; aspect-ratio: 4/5; border: 6px solid var(--surface); }
.hero__sticker {
    position: absolute; top: -1rem; left: -1rem; background: var(--tinta); color: #fff;
    padding: .6rem 1.1rem; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 800;
    rotate: -6deg; box-shadow: var(--shadow);
}

/* ── Tiras de categorías ────────────────────────────────────────────────── */
.cat-strip { padding: clamp(2rem, 5vw, 4rem) 0 0; }
.cat-strip__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; aspect-ratio: 4/5; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease); }
.cat-tile:hover img { scale: 1.06; }
.cat-tile__label {
    position: absolute; inset: auto .75rem .75rem .75rem;
    background: var(--surface); color: var(--text); border-radius: var(--radius-pill);
    padding: .65rem 1.1rem; font-weight: 800; display: flex; justify-content: space-between; align-items: center;
}

/* ── Carrusel ───────────────────────────────────────────────────────────── */
.carousel { padding: clamp(2.5rem, 5vw, 4.5rem) 0 0; }
.carousel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.carousel__nav { display: flex; align-items: center; gap: .5rem; }
.carousel__nav .icon-btn { border: 1px solid var(--border); background: var(--surface); }
/* El carrusel vive dentro del ancho de contenido (mismo que el título), no de
   borde a borde: se ve una cantidad exacta de tarjetas enteras y el resto se
   recorre con las flechas. --cols define cuántas entran por vista. */
.carousel__track {
    --cols: 4;
    --gap: 1rem;
    list-style: none; margin: 0;
    padding: .25rem 0 1rem;
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    gap: var(--gap);
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: thin; scrollbar-color: var(--rosa-300) transparent;
}
.carousel__track > * { scroll-snap-align: start; }
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--rosa-300); border-radius: 99px; }

/* Flechas apagadas cuando no hay más para recorrer de ese lado */
.carousel__nav .icon-btn:disabled { opacity: .3; cursor: default; }
.carousel__nav .icon-btn:disabled:hover { background: var(--surface); }

@media (max-width: 1200px) { .carousel__track { --cols: 3; } }
@media (max-width: 900px)  { .carousel__track { --cols: 2; } }
@media (max-width: 640px)  { .carousel__track { --cols: 2; --gap: .85rem; } }

/* ── Tarjeta de producto ────────────────────────────────────────────────── */
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; border: 1px solid transparent; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { border-color: var(--rosa-200); transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--surface-2); }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), scale .5s var(--ease); }
.card__img--back { opacity: 0; }
.card__media:hover .card__img--back { opacity: 1; }
.card__media:hover .card__img--front { opacity: 0; }
.card__body { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card__cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); margin: 0; font-weight: 700; }
.card__title { font-size: 1.02rem; margin: 0; font-family: var(--font-body); font-weight: 800; letter-spacing: -.01em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__summary { font-size: .84rem; color: var(--text-soft); margin: 0; }
.card__foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card__foot .btn { position: relative; z-index: 1; }

.badge {
    position: absolute; top: .75rem; left: .75rem; z-index: 2;
    background: var(--tinta); color: #fff; font-size: .68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em;
    padding: .35rem .7rem; border-radius: var(--radius-pill);
}
.badge--nuevo { background: var(--primary); color: var(--primary-ink); }
.badge--kids { background: var(--lila); color: #1b0a13; }
.badge--edicion-limitada { background: var(--tinta); color: var(--rosa-300); }
.badge--agotado { top: auto; bottom: .75rem; background: var(--surface); color: var(--text); }

.swatches { list-style: none; display: flex; gap: .3rem; align-items: center; padding: 0; margin: .1rem 0; }
.swatches__more { font-size: .72rem; color: var(--text-soft); }
.swatch { width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 1px solid rgba(27, 10, 19, .18); display: block; }
.swatch--lg { width: 34px; height: 34px; }

.price { margin: 0; display: flex; flex-direction: column; }
.price__value { font-weight: 800; font-size: 1rem; }
.price__note { font-size: .66rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: .06em; }
.price--placeholder .price__value { text-decoration: line-through solid var(--rosa-300) 2px; opacity: .75; }
.price--lg .price__value { font-size: 1.8rem; font-family: var(--font-display); }
.price__disclaimer {
    background: var(--surface-2); border-left: 4px solid var(--primary);
    padding: .75rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .85rem; margin: .75rem 0 0;
}

/* ── Grillas ────────────────────────────────────────────────────────────── */
.grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ── Cabeceras de página, migas ─────────────────────────────────────────── */
.breadcrumbs { padding: 1rem 0 0; font-size: .82rem; color: var(--text-soft); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }

.page-head { padding: 1.5rem 0 1rem; }
.page-head h1 { margin-bottom: .5rem; }
.page-head__intro { color: var(--text-soft); max-width: 62ch; font-size: 1.02rem; }
.page-head__count { font-size: .85rem; color: var(--text-soft); margin: 0; }
.page-head--hero { padding-top: 3rem; }

.search-head { padding: 1.5rem 0 .5rem; }
.search-head h1 { margin-bottom: .25rem; }
.search-head__count { color: var(--text-soft); margin: 1rem 0 0; }

/* ── Filtros ────────────────────────────────────────────────────────────── */
.filters {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem; margin-top: 1.25rem;
}
.filters__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.filters__submit { margin-left: auto; }
.filters__active { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .85rem; padding-top: .85rem; border-top: 1px dashed var(--border); }
.filters__activeLabel { font-size: .8rem; color: var(--text-soft); font-weight: 700; }

.field { display: grid; gap: .3rem; font-size: .82rem; font-weight: 700; color: var(--text-soft); }
.field > span { text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
.field input, .field select, .field textarea {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: .65rem .85rem; font-weight: 500; color: var(--text); min-width: 150px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; }
.field small { font-weight: 500; color: var(--text-soft); }

/* ── Paginación ─────────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2.5rem 0 0; flex-wrap: wrap; }
.pagination__list { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.pagination__list a, .pagination__list span {
    display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .5rem;
    border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; border: 1px solid var(--border);
}
.pagination__list a:hover { background: var(--rosa-100); }
.pagination__list .is-current { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pagination__arrow { text-decoration: none; font-weight: 700; }

/* ── Bloques editoriales ────────────────────────────────────────────────── */
.split { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.split__inner, .split--flat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split--flat { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.split__media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.split__content h2 { margin-top: 0; }

.audiences { padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.audiences__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.aud-card { display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.aud-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.aud-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.aud-card__body { padding: 1.25rem; }
.aud-card__body h3 { margin: 0 0 .25rem; }
.aud-card__body p { color: var(--text-soft); font-size: .88rem; margin: 0 0 .75rem; }

.values { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.values--alt { background: var(--surface-2); margin-top: 2rem; }
.values__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.values__list li { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }
.values__list h3 { margin: 0 0 .4rem; font-family: var(--font-body); font-size: 1.05rem; }
.values__list p { margin: 0; color: var(--text-soft); font-size: .9rem; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-home { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.faq-home__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: start; }
.faq-list { display: grid; gap: .6rem; }
.faq-list--wide { max-width: 800px; margin-inline: auto; }
.faq-list details {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.25rem;
}
.faq-list summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: .75rem 0 0; color: var(--text-soft); }

/* ── Producto ───────────────────────────────────────────────────────────── */
.product { padding-bottom: 2rem; }
.product__layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-top: 1.5rem; }

.gallery { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: .75rem; }
.gallery__main { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.gallery__main img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.gallery__thumbs { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 90px; gap: .6rem; padding: 0; margin: 0; overflow-x: auto; }
.gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: none; cursor: pointer; }
.gallery__thumb.is-active { border-color: var(--primary); }
.gallery__thumb img { aspect-ratio: 3/4; object-fit: cover; }

.product__cat { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--text-soft); }
.product__cat a { text-decoration: none; }
.product__title { margin: .25rem 0 .75rem; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.product__summary { color: var(--text-soft); font-size: 1.05rem; }
.product__price { margin: 1.25rem 0; }
.product__stock { font-size: .88rem; font-weight: 700; margin: 1rem 0; }
.product__stock.is-in { color: #1d8f5a; }
.product__stock.is-out { color: var(--text-soft); }
.product__actions { display: grid; gap: .6rem; margin: 1.5rem 0; }
.product__actionsNote { font-size: .8rem; color: var(--text-soft); margin: .25rem 0 0; }

.option { border: 0; padding: 0; margin: 1.25rem 0; }
.option legend { font-weight: 800; font-size: .9rem; padding: 0; display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.option__help { font-weight: 600; font-size: .8rem; color: var(--primary); }
.option__row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.swatch-opt, .size-opt { position: relative; cursor: pointer; }
.swatch-opt input, .size-opt input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.swatch-opt .swatch { outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .15s; }
.swatch-opt input:checked + .swatch { outline-color: var(--primary); }
.size-opt span {
    display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 .75rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-weight: 700; background: var(--surface);
}
.size-opt input:checked + span { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.size-opt input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

.specs { display: grid; gap: .1rem; margin: 1.5rem 0; border-top: 1px solid var(--border); }
.specs > div { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.specs dt { color: var(--text-soft); font-weight: 700; }
.specs dd { margin: 0; }

.accordion { display: grid; gap: .5rem; margin-top: 1.5rem; }
.accordion details { border-bottom: 1px solid var(--border); padding: .85rem 0; }
.accordion summary { font-weight: 800; cursor: pointer; }
.accordion ul { margin: .75rem 0 0; padding-left: 1.1rem; color: var(--text-soft); }
.accordion p { color: var(--text-soft); margin: .75rem 0 0; }

.size-chart { padding: clamp(2rem, 4vw, 3rem) 0; }
.table-wrap { overflow-x: auto; margin-top: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.product-faq { padding: clamp(2rem, 4vw, 3rem) 0; background: var(--surface-2); }

/* ── Listado / estados vacíos ───────────────────────────────────────────── */
.empty { text-align: center; padding: clamp(3rem, 8vw, 5rem) 0; }
.empty h1, .empty h2 { margin-bottom: .5rem; }
.empty p { color: var(--text-soft); max-width: 52ch; margin-inline: auto; }
.empty__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.empty__links { margin-top: 2.5rem; }
.empty__links h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); }
.empty__links .chips { justify-content: center; }
.empty .search--big { margin-inline: auto; }
.empty--404 { padding-top: 4rem; }

.seo-text { padding: clamp(2rem, 4vw, 3.5rem) 0; color: var(--text-soft); }
.seo-text h2 { font-size: 1.1rem; font-family: var(--font-body); color: var(--text); }
.seo-text p { max-width: 80ch; font-size: .92rem; }

/* ── Prosa / documentos ─────────────────────────────────────────────────── */
.prose { padding-bottom: 3rem; }
.prose--doc { max-width: 820px; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose ul { padding-left: 1.2rem; color: var(--text-soft); }
.prose li { margin-bottom: .4rem; }
.prose__meta { font-size: .82rem; color: var(--text-soft); background: var(--surface-2); padding: .75rem 1rem; border-radius: var(--radius-sm); }

.cta-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); margin-top: 2.5rem; text-align: center; }
.cta-box h2 { margin-top: 0; }
.cta-box p { color: var(--text-soft); }
.cta-box--wide { margin-bottom: 3rem; }

/* ── Formularios ────────────────────────────────────────────────────────── */
.form { display: grid; gap: 1rem; max-width: 640px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__legal { font-size: .8rem; color: var(--text-soft); margin: 0; }
.form__dev { font-size: .8rem; background: var(--surface-2); border-radius: var(--radius-sm); padding: .85rem 1rem; color: var(--text-soft); }
.form__dev code { background: rgba(27, 10, 19, .08); padding: .1em .35em; border-radius: 4px; font-size: .95em; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; }

.alert { border-radius: var(--radius); padding: .9rem 1.2rem; margin: 1rem 0; font-weight: 600; border: 1px solid; }
.alert--ok { background: #e7f8ee; border-color: #97dbb4; color: #145c37; }
.alert--error { background: #ffe9ef; border-color: var(--rosa-300); color: #8c1039; }
.alert--info { background: var(--surface-2); border-color: var(--border); color: var(--text); }

/* ── Contacto ───────────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; padding-bottom: 3.5rem; align-items: start; }
.contact__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.contact__card h2 { font-size: 1.2rem; margin-top: 0; }
.contact__card--wa { background: var(--surface-2); }
.contact__list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact__list > li > span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); font-weight: 800; }
.contact__list p { margin: 0; }
.contact__social { list-style: none; padding: 0; margin: 0; display: flex; gap: 1rem; flex-wrap: wrap; font-weight: 700; }

/* ── Auth y cuenta ──────────────────────────────────────────────────────── */
.auth { padding: 2.5rem 0 4rem; }
.auth__inner { display: grid; grid-template-columns: 1fr .8fr; gap: 3rem; align-items: center; }
.auth__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 560px; }
.auth__card h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.auth__lead { color: var(--text-soft); }
.auth__divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--text-soft); font-size: .8rem; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth__note { font-size: .82rem; background: var(--surface-2); padding: .85rem 1rem; border-radius: var(--radius-sm); color: var(--text-soft); margin-top: 1rem; }
.auth__note code { font-size: .95em; word-break: break-all; }
.auth__alt { font-size: .9rem; margin-top: 1.25rem; }
.auth__aside img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.auth .form { max-width: none; }

.account { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; padding-bottom: 3.5rem; align-items: start; }
.account__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.account__card h2 { font-size: 1.15rem; margin-top: 0; }
.account__empty { color: var(--text-soft); font-size: .9rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.newsletter { background: var(--primary); color: var(--primary-ink); padding: clamp(2rem, 4vw, 3rem) 0; }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.newsletter h2 { margin: 0 0 .35rem; font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
.newsletter p { margin: 0; opacity: .9; }
.newsletter__form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter__form input {
    flex: 1; min-width: 220px; border: 0; border-radius: var(--radius-pill);
    padding: .9rem 1.4rem; background: #fff; color: var(--tinta);
}

.site-footer { background: var(--tinta); color: var(--rosa-100); margin-top: 3rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.site-footer__pitch { color: rgba(255, 228, 238, .7); font-size: .88rem; max-width: 38ch; }
.site-footer h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-family: var(--font-body); color: var(--rosa-300); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; color: rgba(255, 228, 238, .85); font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem !important; }
.social a { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .08); border-radius: var(--radius-pill); padding: .45rem .9rem; font-size: .82rem; font-weight: 700; }
.social a:hover { background: var(--primary); color: #fff; }
.social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social .icon-wa { fill: currentColor; stroke: none; }
.site-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 228, 238, .6); }
.site-footer__legal p { margin: 0; }

.wa-float {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--verde-wa); color: #06301a; font-weight: 800; font-size: .88rem;
    padding: .8rem 1.2rem; border-radius: var(--radius-pill);
    text-decoration: none; box-shadow: var(--shadow-lg);
}
.wa-float:hover { transform: translateY(-2px); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
    .values__list { grid-template-columns: repeat(2, 1fr); }
    .mega__inner { grid-template-columns: 1fr 1fr; }
    .mega__promo { display: none; }
}

@media (max-width: 900px) {
    .menu-toggle { display: inline-grid; }

    /* Con el menú abierto el header pasa a fixed, así el panel siempre arranca
       justo debajo de la barra sin importar dónde estaba el scroll. */
    body.menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; }
    .nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 85;
        background: var(--surface); padding: 1.5rem var(--gutter) 4rem;
        overflow-y: auto; overscroll-behavior: contain;
        translate: -100% 0; visibility: hidden;
        transition: translate .25s var(--ease), visibility .25s;
    }
    .nav.is-open { translate: 0 0; visibility: visible; }
    .nav__list { flex-direction: column; align-items: stretch; gap: .25rem; }
    .nav__link { padding: .85rem 1rem; font-size: 1.05rem; }
    .mega { position: static; opacity: 1; visibility: visible; translate: 0; box-shadow: none; border: 0; padding: 0 0 1rem 1rem; display: none; }
    .has-mega.is-open .mega { display: block; }
    .mega__inner { grid-template-columns: 1fr; gap: 1.25rem; width: 100%; }
    .search--header { display: none; }
    .search-mobile { display: inline-grid; }
    .hero__inner, .product__layout, .contact, .auth__inner, .faq-home__inner, .newsletter__inner, .split__inner, .split--flat { grid-template-columns: 1fr; }
    .auth__aside { display: none; }
    .gallery { position: static; }
    .cat-strip__list { grid-template-columns: repeat(2, 1fr); }
    .audiences__list { grid-template-columns: 1fr; }
    .hero__img--b { display: none; }
}

@media (max-width: 640px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
    .values__list, .form__row { grid-template-columns: 1fr; }
    .grid--products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .85rem; }
    .card__body { padding: .75rem; }
    .card__summary { display: none; }
    /* En dos columnas no entran precio y botón en la misma línea: se apilan. */
    .card__foot { flex-direction: column; align-items: stretch; gap: .5rem; }
    .card__foot .btn { width: 100%; }
    .price__note { line-height: 1.3; }
    .filters__submit { margin-left: 0; width: 100%; }
    .field input, .field select { width: 100%; min-width: 0; }
    .field { flex: 1 1 140px; }
    .specs > div { grid-template-columns: 1fr; gap: .1rem; }
    .wa-float span { display: none; }
    .wa-float { padding: .9rem; }
}

/* ── Impresión ──────────────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .wa-float, .ticker, .topbar, .drawer, .carousel__nav { display: none !important; }
    body { background: #fff; color: #000; }
}
