/* ==========================================================================
   TIENDA DE ROPA — hoja de estilos
   --------------------------------------------------------------------------
    0. Tipografías            (al principio del archivo)
    1. Variables              colores, fuentes y medidas: cámbialas aquí
    2. Base
    3. Utilidades y botones
    4. Barra de anuncio y cabecera
    5. Portada
    6. Filas de productos y tarjeta de producto
    7. Cinta en movimiento y ventajas
    8. Manifiesto (bloque negro)
    9. Bloques de foto + texto
   10. Opiniones
   11. Boletín
   12. Pie de página
   13. Paneles laterales, carrito, buscador y ventana de talla
   14. Cookies, descuento y botones flotantes
   15. Colección Noche estrellada (colores propios, tomados de la pintura)
   16. Colección El amor perfecto (colores propios, tomados de la camisa)
   17. Fotos en la calle: muro de fotos en movimiento y foto ampliada
   18. Animaciones de entrada

   Anchos de pantalla que cambian el diseño:
     hasta 767 px     móvil
     768 a 1024 px    tablet
     desde 1025 px    escritorio
   ========================================================================== */


/* ==========================================================================
   0. TIPOGRAFÍAS
   --------------------------------------------------------------------------
   Anton (títulos grandes), Lato (texto), Montserrat (títulos y nombres de
   producto) y Libre Baskerville (cursiva). Son libres (licencia SIL OFL) y
   están en public/fonts/, así la página no depende de internet.
   ========================================================================== */

@font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/anton-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/anton-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/lato-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/lato-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/lato-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/lato-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Libre Baskerville';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/librebaskerville-400-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Libre Baskerville';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/librebaskerville-400-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('./fonts/montserrat-500_700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('./fonts/montserrat-500_700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Tipografías urbanas: solo las usa la sección de la colección Noche estrellada.
   Rubik Wet Paint (letras de pintura que chorrea, licencia SIL OFL) y
   Permanent Marker (trazo de marcador, licencia Apache 2.0). */
@font-face {
    font-family: 'Rubik Wet Paint';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/rubikwetpaint-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Rubik Wet Paint';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/rubikwetpaint-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Permanent Marker';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/permanentmarker-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Tipografías de la colección El amor perfecto: UnifrakturCook (letra gótica, como de
   tatuaje) y Playfair Display en cursiva (la del "Eros & Psique" de la camisa).
   Las dos son libres (licencia SIL OFL). */
@font-face {
    font-family: 'UnifrakturCook';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/unifrakturcook-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/playfairdisplay-700-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/playfairdisplay-700-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ==========================================================================
   1. VARIABLES
   ========================================================================== */

:root {
    /* Colores de la marca */
    --hueso: #f1eee8;            /* BLANCO HUESO: fondo de la página y texto sobre negro */
    --onix: #0b0b0c;             /* NEGRO ÓNIX: textos, botones y bloques oscuros */

    /* Tonos intermedios. No son colores nuevos: son mezclas de los dos de arriba */
    --hueso-oscuro: #e6e3dd;     /* fondo de los bloques que se separan del resto (5 % de ónix) */
    --linea: #d1cec9;            /* líneas y bordes (14 % de ónix) */
    --linea-fuerte: #b1aeaa;     /* bordes que deben notarse más (28 % de ónix) */
    --gris: #626160;             /* texto secundario sobre hueso (62 % de ónix) */
    --gris-medio: #72716f;       /* enlaces al pasar el ratón y título tenue del bloque negro */
    --gris-sobre-negro: #a7a5a2; /* texto secundario sobre negro (68 % de hueso) */

    /* Papel de cada color. El resto de la hoja usa solo estos nombres */
    --white: var(--hueso);       /* el "blanco" de la página */
    --black: var(--onix);
    --ink: var(--onix);          /* bloques, botones y textos fuertes */
    --heading: var(--onix);      /* títulos */
    --text: var(--gris);         /* texto secundario */
    --price: var(--gris);
    --muted: var(--gris);
    --soft: var(--hueso-oscuro); /* fondo de los bloques */
    --line: var(--linea);
    --line-strong: var(--linea-fuerte);
    --hairline: rgba(11, 11, 12, .14);     /* líneas finas de los paneles */
    --red: var(--onix);          /* barra de envío gratis y asteriscos */
    --badge-new: var(--onix);    /* etiqueta "Nuevo": negro con letra hueso */
    --badge-pre: var(--hueso);   /* etiqueta "Pre venta": hueso con letra y borde negros */
    --accent: var(--gris-medio); /* color al pasar el ratón por los enlaces */
    --accent-on-dark: var(--gris-sobre-negro);
    /* Avisos de formularios: verde y rojo de siempre, para que se entiendan */
    --ok: #1a7f4b;
    --error: #b3261e;

    /* Tipografías */
    --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --font-head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
    --font-serif: 'Libre Baskerville', Georgia, serif;

    /* Medidas */
    --header-h: 69px;
    --gutter: 30px;              /* separación entre tarjetas de producto */
    --drawer-w: 340px;
    --ease: cubic-bezier(.25, .46, .45, .94);
    --ease-panel: cubic-bezier(.645, .045, .355, 1);   /* entrada de los paneles */
}


/* ==========================================================================
   2. BASE
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Los enlaces internos no quedan tapados por la cabecera fija */
    scroll-padding-top: var(--header-h);
    /* ...ni lo que recibe el foco queda debajo de la barra inferior o del aviso de cookies */
    scroll-padding-bottom: calc(var(--float-base) + 12px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* "clip" recorta igual pero sin convertir el body en zona de scroll: así la
       cabecera sigue pegada arriba cuando se abre un panel */
    overflow-x: clip;
}

/* Con un panel abierto la página de fondo no se desplaza */
html.no-scroll {
    overflow: hidden;
}
html.no-scroll body {
    padding-right: var(--scrollbar, 0px);
}

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

h1, h2, h3, p, ul, ol, figure, fieldset, address {
    margin: 0;
    padding: 0;
}
ul, ol {
    list-style: none;
}
fieldset {
    border: 0;
    min-width: 0;
}
address {
    font-style: normal;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}
button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}
/* Sobre fondos oscuros el contorno del foco es blanco */
.announcement :focus-visible,
.hero :focus-visible,
.manifesto :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--white);
}

::selection {
    background: var(--ink);
    color: var(--white);
}


/* ==========================================================================
   3. UTILIDADES Y BOTONES
   ========================================================================== */

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

.skip-link {
    position: absolute;
    left: 10px;
    top: -60px;
    z-index: 400;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
    transition: top .2s;
}
.skip-link:focus {
    top: 10px;
}

.only-mobile {
    display: none;
}

/* --- Botones --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border: 2px solid transparent;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 1.04px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
}
.btn-block {
    display: flex;
    width: 100%;
}

/* Contorno blanco: va sobre la foto de portada */
.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--ink);
}

/* Blanco macizo: va sobre el bloque negro */
.btn-light {
    border-color: var(--white);
    background: var(--white);
    color: var(--ink);
}
.btn-light:hover {
    background: transparent;
    color: var(--white);
}

/* Negro macizo */
.btn-dark {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}
.btn-dark:hover {
    background: var(--white);
    color: var(--ink);
}
.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.btn-dark:disabled:hover {
    background: var(--ink);
    color: var(--white);
}

/* --- Botones de icono (cabecera) ------------------------------------------ */
.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    transition: color .35s ease, transform .35s ease;
}

/* --- Mensajes de los formularios ------------------------------------------ */
.form-msg {
    min-height: 1.7em;
    font-size: 13px;
}
.form-msg.is-ok {
    color: var(--ok);
}
.form-msg.is-error {
    color: var(--error);
}

/* --- Selector de cantidad -------------------------------------------------- */
.qty {
    display: inline-flex;
    align-items: center;
    height: 48px;
    border: 1px solid var(--ink);
    color: var(--ink);
}
.qty button {
    width: 38px;
    height: 100%;
    font-size: 18px;
    line-height: 1;
}
.qty button:hover:not(:disabled) {
    background: var(--soft);
}
.qty button:disabled {
    opacity: .35;
    cursor: not-allowed;
}
.qty output {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
}
.qty-sm {
    height: 32px;
    border-color: var(--line);
}
.qty-sm button {
    width: 30px;
    font-size: 16px;
}


/* ==========================================================================
   4. BARRA DE ANUNCIO Y CABECERA
   ========================================================================== */

/* --- Barra de anuncio: los mensajes se deslizan uno tras otro --------------- */
.announcement {
    overflow: hidden;
    background: var(--black);
    color: var(--white);
    font-size: 12px;
    line-height: 20.4px;
    text-align: center;
}
.announcement-track {
    display: flex;
}
.announcement-track.is-animated {
    transition: transform .9s cubic-bezier(.2, .75, .2, 1);
}
.announcement-track p {
    flex: 0 0 100%;
    min-width: 0;
    padding: 5px 10px;
}

/* --- Cabecera: se queda pegada arriba al bajar por la página ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    transition: box-shadow .2s;
}
.site-header.is-stuck {
    box-shadow: 0 1px 3px rgba(11, 11, 12, .1);
}

/* Tres columnas: logo | menú centrado | iconos. Las de los lados miden lo
   mismo (un sexto del ancho) para que el menú quede centrado en la página. */
.header-inner {
    display: grid;
    grid-template-columns: minmax(16.667%, max-content) minmax(0, 1fr) minmax(16.667%, max-content);
    align-items: center;
    height: var(--header-h);
    padding: 0 15px;
    transition: height .2s;
}

/* El logo es una imagen: su tamaño se controla con la altura */
.logo {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}
.logo img {
    width: auto;
    height: 50px;
    transition: height .2s;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.main-nav a {
    padding: 5px 17.5px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--black);
    white-space: nowrap;
    transition: color .25s;
}
.main-nav a:hover {
    color: var(--accent);
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
}
.header-actions .icon-btn {
    height: 40px;
    padding: 0 8px;
}
.header-actions svg {
    width: 22px;
    height: 22px;
}
.header-actions .account-btn svg {
    width: 24px;
    height: 24px;
}
@media (hover: hover) and (min-width: 1025px) {
    .header-actions .icon-btn:hover {
        color: var(--accent);
        transform: scale(1.15);
    }
}

/* Circulito con el número de productos del carrito */
.cart-count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 15px;
    background: var(--black);
    color: var(--white);
    font-size: 10px;
    line-height: 15px;
    text-align: center;
    box-shadow: 1px 1px 3px rgba(11, 11, 12, .3);
}

.menu-toggle {
    display: none;
    justify-self: start;
    width: 30px;
    height: 40px;
}
.menu-toggle svg {
    fill: currentColor;
}

/* --- Escritorio: al bajar, la cabecera se encoge un poco -------------------- */
@media (min-width: 1025px) {
    .site-header.is-stuck .header-inner {
        height: 64px;
    }
    .site-header.is-stuck .logo img {
        height: 42px;
    }
}
/* Pantallas de portátil pequeñas: el menú se aprieta para caber en una línea */
@media (min-width: 1025px) and (max-width: 1290px) {
    .header-inner {
        grid-template-columns: max-content minmax(0, 1fr) max-content;
    }
    .main-nav a {
        padding: 5px 8px;
    }
}

/* --- Tablet y móvil: menú de tres rayas, logo al centro --------------------- */
@media (max-width: 1024px) {
    :root {
        --header-h: 60px;
    }
    .header-inner {
        grid-template-columns: 1fr auto 1fr;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .main-nav {
        display: none;
    }
    .logo {
        justify-self: center;
        margin-left: 0;
    }
    .logo img {
        height: 38px;
    }
}
@media (max-width: 767px) {
    .account-btn {
        display: none;
    }
    .header-actions .icon-btn {
        padding: 0 6px;
    }
    .cart-count {
        right: 0;
    }
}

/* --- Barra inferior de accesos rápidos (solo tablet y móvil) ---------------- */
.toolbar {
    display: none;
}
@media (max-width: 1024px) {
    /* Hueco al final de la página para que la barra no tape el pie */
    body {
        padding-bottom: calc(55px + env(safe-area-inset-bottom));
    }
    .toolbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: flex;
        padding: 5px 5px calc(5px + env(safe-area-inset-bottom));
        background: var(--white);
        box-shadow: 0 0 9px rgba(11, 11, 12, .12);
    }
    .toolbar > a,
    .toolbar > button {
        position: relative;
        flex: 1 0 20%;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 0;
        height: 45px;
        padding-top: 4px;
        color: var(--ink);
    }
    /* El texto de cada acceso va pegado abajo */
    .toolbar > a > span:last-child,
    .toolbar > button > span:last-child {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 5px;
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .toolbar .toolbar-logo {
        justify-content: center;
        padding-top: 0;
    }
    .toolbar-logo img {
        width: auto;
        height: 22px;
    }
    .toolbar-icon {
        position: relative;
        display: inline-flex;
    }
    .toolbar .cart-count {
        top: -5px;
        right: -9px;
    }
}


/* ==========================================================================
   5. PORTADA
   ========================================================================== */

.hero {
    position: relative;
    background: var(--ink);
    overflow: hidden;
}
/* Alto de la portada: crece con el ancho de la pantalla, entre 380 y 620 px
   (en pantallas enormes sigue creciendo para no quedar como una franja).
   Súbelo o bájalo cambiando el 37vw y el 620px. La foto se recorta sola. */
.hero-img {
    width: 100%;
    height: clamp(380px, 37vw, max(620px, 32.3vw));
    object-fit: cover;
}
/* Sombra suave en la parte baja de la foto: hace que el botón se lea siempre */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    background: linear-gradient(transparent, rgba(11, 11, 12, .45));
    pointer-events: none;
}
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(16px, 2.2vw, 34px);
    padding: 0 16px 3.5%;
    text-align: center;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.2vw, 64px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 0 22px rgba(241, 238, 232, .35);
}

@media (max-width: 767px) {
    /* En móvil la portada es vertical: su alto depende del ancho de la pantalla */
    .hero-img {
        height: auto;
        aspect-ratio: 390 / 440;
    }
    /* En pantallas muy estrechas el título encoge para caber en una línea */
    .hero-title {
        font-size: clamp(22px, 7.6vw, 30px);
        white-space: nowrap;
    }
    .hero-content {
        gap: 32px;
        padding-bottom: 6.25%;
    }
    .hero .btn {
        min-height: 46px;
        padding: 0 20px;
    }
}


/* ==========================================================================
   6. FILAS DE PRODUCTOS Y TARJETA DE PRODUCTO
   ========================================================================== */

.section-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    color: var(--heading);
}

.product-section {
    margin-bottom: 20px;
}
.product-section .section-title {
    margin-bottom: 16px;
}

/* La fila va de borde a borde de la pantalla, sin márgenes laterales.
   Caben cuatro tarjetas por fila; si hay menos (o sobra alguna en la última
   fila) quedan centradas. --por-fila y --hueco cambian en tablet y móvil. */
.product-grid {
    --por-fila: 4;
    --hueco: var(--gutter);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gutter) var(--hueco);
}

.product-card {
    flex: 0 0 calc((100% - (var(--por-fila) - 1) * var(--hueco)) / var(--por-fila));
    min-width: 0;
}

/* --- Foto ------------------------------------------------------------------ */
.product-media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--soft);
    box-shadow: 0 0 12px rgba(11, 11, 12, .12);
}
/* Velo oscuro que aparece al pasar el ratón */
.product-media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(11, 11, 12, .1);
    opacity: 0;
    transition: opacity .5s;
    pointer-events: none;
}
.product-img-link {
    display: block;
}
/* Todas las fotos se recortan a la misma proporción (18:23, vertical) */
.product-img {
    width: 100%;
    aspect-ratio: 18 / 23;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
/* Segunda foto (img2 en el catálogo): va encima de la primera y aparece y desaparece
   sola con un fundido, para que se vean las dos sin tocar nada (también en móvil).
   Cada foto se queda unos 3 segundos; cambia el 7s para ir más rápido o más lento. */
.product-img-hover {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0;
    transition: transform 2s cubic-bezier(0, 0, .44, 1.18);
    animation: turno-de-foto 7s ease-in-out infinite;
}
@keyframes turno-de-foto {
    0%, 38% { opacity: 0; }
    50%, 88% { opacity: 1; }
    100% { opacity: 0; }
}
.product-media:hover .product-img {
    transform: scale(1.09);
}
/* Con el ratón encima el cambio se detiene, para poder mirar la foto con calma */
.product-media:hover .product-img-hover {
    animation-play-state: paused;
}

/* --- Etiquetas ------------------------------------------------------------- */
.badges {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    pointer-events: none;
}
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 24px;
    padding: 0 5px;
    font-size: 12px;
    line-height: 1;
    color: var(--white);
    background: var(--ink);
}
.badge-nuevo {
    background: var(--badge-new);
    /* Filete claro: la etiqueta negra no se pierde sobre fotos oscuras */
    box-shadow: 0 0 0 1px rgba(241, 238, 232, .4);
}
.badge-preventa {
    background: var(--badge-pre);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
}
/* "-10%": sale sola en todas las tarjetas mientras dura el descuento de lanzamiento */
.badge-descuento {
    background: var(--white);
    color: var(--ink);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--ink);
}

/* --- Botón "Seleccionar opciones" ------------------------------------------
   Escritorio: aparece en el centro de la foto al pasar el ratón; al ponerse
   encima, el texto sube y entra el icono del carrito.
   Tablet y móvil: es un botón pequeño, siempre visible, en la esquina.        */
.quick-add {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 136px;
    max-width: 90%;
    height: 40px;
    padding: 0 15px;
    overflow: hidden;
    border-radius: 15px;
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    line-height: 40px;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -100%);
    transition: opacity .5s ease, transform .5s ease, background-color .25s, color .25s;
}
.quick-add span {
    transition: transform .25s, opacity .15s;
}
.quick-add svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    opacity: 0;
    transform: translateY(30px);
    transition: transform .25s, opacity .15s;
}
@media (hover: hover) and (min-width: 1025px) {
    .product-card:hover .product-media::before {
        opacity: 1;
    }
    .product-card:hover .quick-add {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    .quick-add:hover {
        background: var(--black);
        color: var(--white);
    }
    .quick-add:hover span {
        opacity: 0;
        transform: translateY(-100%);
    }
    .quick-add:hover svg {
        opacity: 1;
        transform: none;
    }
}
/* Con teclado: el botón se muestra al recibir el foco */
.quick-add:focus-visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* --- Texto de la tarjeta --------------------------------------------------- */
.product-info {
    padding-top: 15px;
}
.product-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    line-height: 16.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--heading);
    /* el recorte con puntos suspensivos va en el enlace: así su contorno de foco se ve entero */
}
.product-title a {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    vertical-align: top;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color .25s;
}
.product-title a:hover {
    color: var(--accent);
}
.product-price {
    font-size: 14px;
    line-height: 23.8px;
    color: var(--price);
}
/* Precio rebajado (descuento de lanzamiento): el de antes tachado y el nuevo al lado.
   Vale en las tarjetas, en la ventana de talla, en el buscador y en las colecciones. */
.precio-antes {
    margin-right: 6px;
    text-decoration: line-through;
    opacity: .65;
}
.precio-ahora {
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
}
.product-sizes {
    margin-top: 24px;
    font-size: 14px;
    line-height: 24px;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Tablet y móvil: dos columnas y botón de carrito siempre visible ------- */
@media (max-width: 1024px), (hover: none) {
    .quick-add,
    .quick-add:focus-visible {
        top: auto;
        left: auto;
        right: 10px;
        bottom: 10px;
        min-width: 0;
        width: 36px;
        height: 36px;
        padding: 0;
        opacity: 1;
        transform: none;
    }
    /* El texto queda solo para lectores de pantalla */
    .quick-add span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .quick-add svg {
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
        opacity: 1;
        transform: none;
    }
}
@media (max-width: 1024px) {
    .product-section {
        margin-bottom: 50px;
    }
    .product-section .section-title {
        margin-bottom: 14px;
    }
    .product-grid {
        --por-fila: 2;
        --hueco: 15px;
        gap: 15px;
        padding: 0 7.5px;
    }
    .badges {
        top: 10px;
        right: 10px;
        gap: 2px;
    }
}
@media (max-width: 767px) {
    .product-section {
        margin-bottom: 16px;
    }
    .product-section .section-title {
        margin-bottom: 12px;
    }
    .product-grid {
        --hueco: 10px;
        gap: 15px 10px;
        padding: 0 5px;
    }
    .badges {
        top: 5px;
        right: 5px;
    }
    .quick-add,
    .quick-add:focus-visible {
        right: 5px;
        bottom: 5px;
        width: 32px;
        height: 32px;
    }
    .quick-add svg {
        width: 14px;
        height: 14px;
        margin: -7px 0 0 -7px;
    }
    /* En el celular el nombre puede ocupar dos líneas: en una sola se cortaba
       ("Camisa Noche est…"). Se reservan siempre las dos para que los precios queden alineados */
    .product-title {
        min-height: 32px;
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 1.2px;
    }
    .product-title a {
        display: -webkit-box;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .product-sizes {
        margin-top: 14px;
    }
}


/* ==========================================================================
   7. CINTA EN MOVIMIENTO Y VENTAJAS
   ========================================================================== */

.marquee {
    display: flex;
    align-items: center;
    height: 48px;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
}
.marquee-track {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    will-change: transform;
}
/* Las cintas no se detienen nunca, tampoco con el ratón encima */
.marquee-track.is-running {
    animation: marquee var(--marquee-duration, 30s) linear infinite;
}
/* Sin movimiento: las frases se centran y se reparten en varias líneas */
.marquee-track.is-static {
    width: 100%;
    justify-content: center;
}
.marquee-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}
.marquee-group li {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 22.1px;
    letter-spacing: 1.82px;
    text-transform: uppercase;
    white-space: nowrap;
}
/* Estrella de cuatro puntas entre frase y frase */
.marquee-group li::after {
    content: '✦';
    margin: 0 56px;
    font-size: 12px;
    letter-spacing: 0;
    color: var(--gris-sobre-negro);
}
@keyframes marquee {
    to {
        transform: translateX(var(--marquee-shift, -50%));
    }
}

.trust {
    background: var(--soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
/* Una columna por ventaja, todas del mismo ancho: se reparten solas si añades o quitas alguna */
.trust-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 16px;
    text-align: center;
    color: var(--ink);
}
.trust-list b {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 23.8px;
    letter-spacing: 1.12px;
    text-transform: uppercase;
}
.trust-list span {
    display: block;
    font-size: 13px;
    line-height: 23.8px;
    opacity: .75;
}

@media (max-width: 767px) {
    /* En móvil van de dos en dos; si queda una suelta al final, se centra */
    .trust-list {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
        padding: 22px 12px;
    }
    .trust-list li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}


/* ==========================================================================
   8. MANIFIESTO (bloque negro)
   ========================================================================== */

.manifesto {
    padding: 72px 16px;
    background: var(--ink);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}
.eyebrow {
    font-size: 12px;
    font-weight: 700;
    line-height: 23.8px;
    letter-spacing: .22em;
    text-transform: uppercase;
    opacity: .75;
}
/* El tamaño acompaña al ancho de la pantalla: 30 px en móvil, 64 px en escritorio */
.manifesto-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.6vw, 64px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--gris-medio);
}
/* Segunda línea: solo el contorno de las letras */
.manifesto-title .outline {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--white);
}
.manifesto-text {
    max-width: 560px;
    margin: 22px auto 26px;
    font-size: 17px;
    line-height: 1.55;
    opacity: .85;
}

@media (max-width: 767px) {
    .manifesto .btn {
        min-height: 46px;
        padding: 0 20px;
    }
}


/* ==========================================================================
   9. BLOQUES DE FOTO + TEXTO
   ========================================================================== */

/* Bloque de 1400 px como máximo, centrado: en pantallas más anchas quedan
   márgenes a los lados; en las más estrechas va de borde a borde.
   La foto se recorta sola para llenar su mitad (object-fit: cover). */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    /* 350 px de alto en escritorio, nunca menos de 320 px */
    min-height: clamp(320px, 25vw, 350px);
    margin: 20px auto 0;
    background: var(--soft);
}
.split-media {
    position: relative;
    min-height: 100%;
}
.split-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Variante para un logo: se ve entero (sin recortes) sobre el color de fondo, con un filete
   fino para que el panel no se confunda con el fondo de la página */
.split-media-logo {
    background: var(--white);
}
.split-media-logo img {
    object-fit: contain;
}
.split-media-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--line);
    pointer-events: none;
}
.split-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: 48px 8%;
    color: var(--ink);
}
.split-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.8vw, 38px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--heading);
}
.split-body p {
    font-size: 16px;
    line-height: 1.6;
    opacity: .85;
}

/* Variante con el texto a la izquierda y la foto a la derecha */
.split-reverse {
    /* Algo más alto que el otro bloque: aquí va una foto de grupo */
    min-height: clamp(320px, 30vw, 420px);
    margin-top: 0;
}
/* Encuadre de la foto: se recorta por abajo, nunca por las cabezas */
.split-reverse .split-media img {
    object-position: center 12%;
}
.split-reverse .split-media {
    order: 2;
}

@media (max-width: 767px) {
    .split,
    .split-reverse {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .split {
        margin-top: 16px;
    }
    .split-reverse {
        margin-top: 0;
    }
    /* En móvil la foto siempre va arriba */
    .split .split-media {
        order: 0;
        min-height: 320px;
    }
    /* La foto de grupo se ve entera (es 4:3): así no se corta a nadie por los lados */
    .split-reverse .split-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
    .split-body {
        padding: 28px 20px;
    }
    .split-body .btn {
        min-height: 46px;
        padding: 0 20px;
    }
}


/* ==========================================================================
   10. OPINIONES
   ========================================================================== */

.reviews {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 22px 16px;
}
.reviews-title {
    padding: 10px 0;
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 600;
    line-height: 33.6px;
    letter-spacing: 2px;
    text-align: center;
    color: var(--black);
}
.reviews-carousel {
    position: relative;
}
/* La pista se desplaza de lado; cada tarjeta se "imanta" al borde.
   El relleno deja sitio a la sombra de las tarjetas. */
.reviews-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * 20px) / 5);      /* 5 a la vista */
    column-gap: 20px;
    margin: 0 -10px;
    padding: 10px 10px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 10px;
    scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar {
    display: none;
}
.review-card {
    scroll-snap-align: start;
    overflow: hidden;
    border-radius: 6px;
    background: var(--white);
    box-shadow: 0 7px 12px -4px rgba(11, 11, 12, .22);
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 20px;
    color: var(--ink);
}
.review-photo {
    position: relative;
}
.review-photo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
/* Las estrellas montan sobre el borde inferior de la foto */
.review-stars {
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 5px 1px;
    border: 1px solid var(--black);
    border-radius: 6px;
    background: var(--white);
    font-size: 15px;
    line-height: 1;
    color: var(--black);
    white-space: nowrap;
}
.review-name {
    display: block;
    margin: 20px 10px 8px;
    font-weight: 600;
}
/* Como mucho cuatro líneas; el alto fijo iguala todas las tarjetas */
.review-text {
    display: -webkit-box;
    height: 80px;
    margin: 0 10px 8px;
    font-weight: 500;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}
.reviews-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 2px 4px rgba(11, 11, 12, .55);
    /* Quedan a la altura del tercio inferior de la foto */
    transform: translateY(-170%);
    transition: background-color .2s, color .2s;
}
.reviews-arrow:hover {
    background: var(--ink);
    color: var(--white);
}
.reviews-arrow.prev {
    left: -15px;
}
.reviews-arrow.next {
    right: -15px;
}

@media (max-width: 1350px) {
    .reviews-track {
        grid-auto-columns: calc((100% - 3 * 20px) / 4);  /* 4 a la vista */
    }
}
@media (max-width: 767px) {
    .reviews {
        padding: 16px 16px 0;
    }
    .reviews-title {
        text-align: left;
    }
    /* Una tarjeta entera y el borde de la siguiente: invita a deslizar */
    .reviews-track {
        grid-auto-columns: 49%;
        margin: 0;
        padding: 0 0 16px;
        scroll-padding: 0;
    }
}


/* ==========================================================================
   11. BOLETÍN
   ========================================================================== */

.newsletter {
    padding: 10px 15px;
    background: var(--soft);
    text-align: center;
}
.newsletter-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--black);
}
.newsletter-sub {
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1;
    color: var(--text);
}
.newsletter-form {
    max-width: 1170px;
    margin: 0 auto 15px;
}
/* Campo y botón forman una sola píldora */
.newsletter-field {
    display: flex;
    overflow: hidden;
    border-radius: 46px;
}
.newsletter-field input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--muted);
    border-right: 0;
    border-radius: 20px 0 0 20px;
    background: var(--white);
    font-size: 13px;
    color: var(--ink);
}
.newsletter-field input::placeholder {
    color: var(--text);
    opacity: 1;
    transition: color .2s;
}
.newsletter-field input:focus::placeholder {
    color: transparent;
}
.newsletter-field input:focus-visible {
    outline: 0;
    border-color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
}
.newsletter-field button {
    flex: 0 0 180px;
    height: 40px;
    border: 1px solid var(--ink);
    border-radius: 0 25px 25px 0;
    background: var(--ink);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    transition: background-color .3s, color .3s;
}
.newsletter-field button:focus-visible {
    outline-offset: -4px;
    outline-color: var(--white);
}
@media (hover: hover) and (min-width: 1025px) {
    .newsletter-field button:hover {
        background: var(--white);
        color: var(--ink);
    }
}

/* Casilla dibujada a mano: la de verdad sigue ahí, invisible, para el teclado */
.newsletter-consent {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
    line-height: 23.8px;
    cursor: pointer;
}
.newsletter-consent input {
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0;
    opacity: 0;
    cursor: pointer;
}
.check-box {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border: 1px solid var(--text);
    border-radius: 2px;
    background: var(--white);
    color: var(--white);
    transition: background-color .2s ease-in-out, border-color .2s ease-in-out;
}
.check-box svg {
    width: 12px;
    height: 12px;
    transform: scale(0);
    transition: transform .25s ease-in-out;
}
.newsletter-consent input:checked + .check-box {
    border-color: var(--black);
    background: var(--black);
}
.newsletter-consent input:checked + .check-box svg {
    transform: scale(1);
}
.newsletter-consent input:focus-visible + .check-box {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* Respuesta del formulario: recuadro verde o rojo */
.newsletter .form-msg {
    min-height: 0;
}
.newsletter .form-msg:not(:empty) {
    display: table;
    margin: 10px auto 0;
    padding: 6px 12px;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: var(--white);
}

@media (max-width: 1024px) {
    .newsletter {
        padding: 50px 15px;
    }
    .newsletter-title {
        margin-bottom: 10px;
        font-size: 16px;
    }
    .newsletter-sub {
        margin-bottom: 10px;
        font-size: 16px;
    }
    .newsletter-form {
        margin-bottom: 10px;
    }
    /* 16 px evita que iPhone haga zoom al tocar el campo */
    .newsletter-field input {
        font-size: 16px;
    }
}
@media (max-width: 767px) {
    .newsletter-field input {
        text-align: center;
    }
    .newsletter-field button {
        flex-basis: 111px;
    }
}


/* ==========================================================================
   12. PIE DE PÁGINA
   ========================================================================== */

.site-footer {
    background: var(--black);
    color: var(--white);
}
/* Cuatro columnas de 300 px; la cuarta queda libre */
.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}
.footer-col {
    padding: 5px 15px 0;
}
.footer-col:nth-child(3) {
    padding-top: 0;
}
.footer-heading {
    margin-bottom: 30px;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
/* En escritorio el título no es un botón: solo lo es en móvil (acordeón) */
.footer-heading button {
    display: block;
    width: 100%;
    font-weight: inherit;
    text-align: left;
    text-transform: inherit;
    letter-spacing: inherit;
    cursor: default;
}
.footer-panel {
    font-size: 14px;
    line-height: 23.8px;
}
.footer-panel li + li {
    margin-top: 12px;
}
.footer-panel ul:not(.footer-plain) a {
    text-transform: uppercase;
}
.footer-panel a {
    transition: color .25s;
}
.footer-panel a:hover {
    color: var(--accent-on-dark);
}
/* Icono de Instagram con el nombre de la cuenta al lado */
.footer-social {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 3px 0;
    transition: color .25s, transform .5s;
}
.footer-social svg {
    flex-shrink: 0;
}
.footer-social:hover {
    transform: translateY(-5px);
}
.footer-panel .footer-social {
    transition: color .25s, transform .5s;
}
/* Rótulo que aparece encima del icono (solo si el enlace lleva data-tip="texto") */
.footer-social[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    padding: 8px 10px;
    background: var(--white);
    color: var(--ink);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity .2s;
    pointer-events: none;
}
.footer-social:hover::after,
.footer-social:focus-visible::after {
    opacity: 1;
}
.footer-bottom {
    padding: 20px 15px 20px;
    font-size: 16px;
    line-height: 1;
    text-align: center;
}

/* --- Tablet: dos columnas, la tercera baja ---------------------------------- */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 15px;
        padding: 20px 7.5px;
    }
    .footer-col,
    .footer-col:nth-child(3) {
        padding: 0 7.5px;
    }
    .footer-bottom {
        padding-bottom: 15px;
    }
}

/* --- Móvil: cada columna es un acordeón ------------------------------------- */
@media (max-width: 767px) {
    .only-desktop {
        display: none;
    }
    .only-mobile {
        display: inline;
    }
    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
        padding: 5px 15px;
    }
    .footer-col,
    .footer-col:nth-child(3) {
        padding: 0;
    }
    .footer-heading {
        margin-bottom: 0;
    }
    .footer-heading button {
        position: relative;
        padding: 15px 30px 15px 0;
        cursor: pointer;
    }
    /* El signo "+" son dos líneas; al abrir, una desaparece y queda "–" */
    .footer-heading button::before,
    .footer-heading button::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 0;
        width: 12px;
        height: 1px;
        background: currentColor;
        transition: transform .35s ease-in-out, opacity .35s ease-in-out;
    }
    .footer-heading button::after {
        transform: rotate(90deg);
    }
    .footer-heading button[aria-expanded="true"]::before {
        transform: rotate(180deg);
    }
    .footer-heading button[aria-expanded="true"]::after {
        opacity: 0;
    }
    /* El panel se abre animando la altura de la fila de la rejilla */
    .footer-panel {
        display: grid;
        grid-template-rows: 0fr;
        visibility: hidden;
        transition: grid-template-rows .25s ease-in-out, padding .25s ease-in-out, visibility 0s .25s;
    }
    .footer-panel-inner {
        min-height: 0;
        overflow: hidden;
    }
    .footer-col.is-open .footer-panel {
        grid-template-rows: 1fr;
        visibility: visible;
        padding: 5px 0 15px;
        transition: grid-template-rows .25s ease-in-out, padding .25s ease-in-out, visibility 0s;
    }
    .footer-bottom {
        padding: 20px 15px 15px;
    }
}


/* ==========================================================================
   13. PANELES LATERALES, CARRITO, BUSCADOR Y VENTANA DE TALLA
   ========================================================================== */

/* Capa oscura detrás del panel abierto */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(11, 11, 12, .7);
    opacity: 0;
    transition: opacity .3s ease-in-out;
}
.overlay.is-visible {
    opacity: 1;
    transition-duration: .25s;
}

.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 210;
    display: flex;
    flex-direction: column;
    width: calc(100vw - 65px);
    max-width: calc(100vw - 65px);
    background: var(--white);
    color: var(--ink);
    visibility: hidden;
    transition: transform .5s var(--ease-panel), visibility 0s .5s;
}
.drawer-left {
    left: 0;
    transform: translate3d(-104%, 0, 0);
}
.drawer-right {
    right: 0;
    transform: translate3d(104%, 0, 0);
}
.drawer.is-open {
    transform: none;
    visibility: visible;
    transition: transform .5s var(--ease-panel), visibility 0s;
}
@media (min-width: 641px) {
    .drawer {
        width: var(--drawer-w);
    }
}
@media (max-width: 360px) {
    .drawer {
        width: calc(100vw - 50px);
        max-width: calc(100vw - 50px);
    }
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    min-height: 50px;
    padding: 5px 0 5px 20px;
    border-bottom: 1px solid var(--hairline);
}
.drawer-title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--heading);
}
.drawer-close,
.modal-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: var(--ink);
}
.drawer-close svg,
.modal-close svg {
    transition: transform .3s;
}
.drawer-close:hover svg,
.modal-close:hover svg {
    transform: rotate(180deg);
}

/* Botón negro redondeado de los paneles */
.btn-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 5px 25px;
    border-radius: 5px;
    background: var(--black);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    transition: opacity .25s;
}
.btn-panel:hover {
    opacity: .8;
}

/* --- Menú móvil ------------------------------------------------------------ */
/* El botón de cerrar va por fuera del panel, pegado a su borde derecho */
.menu-close {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--white);
}
.drawer-menu .drawer-title {
    font-family: var(--font-body);
    letter-spacing: 0;
}
.drawer-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 14px 28px;
    color: var(--ink);
}
.menu-label {
    margin-bottom: 10px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .65;
}
.menu-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.menu-tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--soft);
}
.menu-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Si el número de colecciones es impar, la última ocupa las dos columnas */
.menu-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 3 / 2;
}
/* Nombre de la colección sobre un degradado oscuro */
.menu-tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 8px 11px;
    background: linear-gradient(transparent, rgba(11, 11, 12, .72));
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: center;
    color: var(--white);
}
.menu-links {
    margin-top: 12px;
}
.menu-links a {
    display: flex;
    align-items: center;
    min-height: 50px;
    border-top: 1px solid var(--line);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.menu-links a span {
    margin-left: auto;
    font-size: 16px;
    font-weight: 400;
}
.menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.menu-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 4px 6px;
    border: 1.5px solid var(--ink);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background-color .2s, color .2s;
}
.menu-actions button:hover {
    background: var(--ink);
    color: var(--white);
}
.menu-actions svg {
    flex-shrink: 0;
}
.menu-info {
    margin-top: 8px;
    padding: 16px;
    background: var(--soft);
    font-size: 13px;
    line-height: 1.7;
}

/* --- Buscador -------------------------------------------------------------- */
.search-form {
    flex-shrink: 0;
    padding: 30px 20px;
    border-bottom: 1px solid var(--hairline);
}
.search-form select,
.search-field input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background-color: var(--white);
    color: var(--ink);
    transition: border-color .2s;
}
.search-form select {
    margin-bottom: 20px;
    padding: 0 30px 0 15px;
    font-size: 14px;
    color: var(--ink);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' fill='none' stroke='%23626160' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-position: calc(100% - 10px) 50%;
    background-size: auto 18px;
    background-repeat: no-repeat;
}
.search-field {
    position: relative;
}
.search-field input {
    padding: 0 50px 0 20px;
    font-size: 13px;
    -webkit-appearance: none;
    appearance: none;
}
.search-field input::-webkit-search-cancel-button {
    display: none;
}
.search-form select:focus,
.search-field input:focus {
    border-color: var(--ink);
    outline: 0;
}
.search-field button {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 40px;
    color: var(--ink);
}
.search-quick {
    margin: 10px 0 0 20px;
    font-size: 12px;
    color: var(--text);
}
.search-quick span {
    color: var(--heading);
}
.search-quick button {
    font-size: 12px;
    color: inherit;
    transition: color .2s;
}
.search-quick button:hover {
    color: var(--black);
}
.search-status {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    line-height: 25px;
    color: var(--heading);
    box-shadow: 0 3px 10px rgba(11, 11, 12, .1);
}
.search-status:empty {
    padding: 0;
    box-shadow: none;
}
.search-results {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px;
}
.search-results li + li {
    margin-top: 20px;
}
.search-result {
    display: flex;
    gap: 15px;
}
.search-result img {
    flex: 0 0 80px;
    width: 80px;
    aspect-ratio: 18 / 23;
    object-fit: cover;
    border-radius: 3px;
    background: var(--soft);
}
.search-result-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.search-result-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    color: var(--heading);
    transition: color .25s;
}
.search-result:hover .search-result-name {
    color: var(--accent);
}
.search-result-price {
    color: var(--text);
}

/* --- Cuenta ---------------------------------------------------------------- */
.account-form {
    padding: 20px;
    overflow-y: auto;
}
/* Campo con etiqueta flotante: sube y se achica al escribir */
.field {
    position: relative;
    margin-bottom: 20px;
}
.field input {
    width: 100%;
    height: 42px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 14px;
    color: var(--ink);
    transition: border-color .2s, padding .2s;
}
.field label {
    position: absolute;
    top: 9px;
    left: 14px;
    font-size: 14px;
    line-height: 24px;
    color: var(--text);
    pointer-events: none;
    transform-origin: left top;
    transition: transform .2s;
}
.field label span {
    color: var(--red);
}
.field input:focus {
    border-color: var(--ink);
    outline: 0;
}
.field input:focus,
.field input:not(:placeholder-shown) {
    padding: 18px 14px 6px;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
    transform: translateY(-6px) scale(.8);
}
.account-form .btn-panel {
    font-weight: 400;
    text-transform: none;
}
.account-form .form-msg {
    margin-top: 10px;
}
.account-links {
    font-size: 14px;
    color: var(--text);
}
.account-links a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .25s;
}
.account-links a:hover {
    color: var(--accent);
}

/* --- Carrito --------------------------------------------------------------- */
/* Avance hacia el envío gratis */
.cart-shipping {
    flex-shrink: 0;
    padding: 10px 20px 4px;
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 0 10px rgba(11, 11, 12, .08);
    font-size: 13px;
    color: var(--text);
}
.cart-shipping b {
    font-weight: 700;
    color: var(--red);
}
.cart-progress {
    position: relative;
    height: 9px;
    margin: 12px 12px 14px 0;
    border-radius: 5px;
    background: rgba(11, 11, 12, .12);
}
.cart-progress span {
    position: relative;
    display: block;
    height: 100%;
    min-width: 9px;
    border-radius: 5px;
    background: var(--red);
    transition: width .4s;
}
/* Camión que viaja en la punta de la barra */
.cart-progress svg {
    position: absolute;
    top: 50%;
    right: -12px;
    width: 26px;
    height: 20px;
    padding: 1px 2px;
    border-radius: 4px;
    background: var(--white);
    color: var(--red);
    transform: translateY(-50%);
    max-width: none;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 20px;
}
/* Sin productos la lista no ocupa sitio: el aviso de carrito vacío sube */
.cart-items:empty {
    display: none;
}
.cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid var(--hairline);
}
.cart-item img {
    width: 80px;
    aspect-ratio: 18 / 23;
    object-fit: cover;
    border-radius: 3px;
    background: var(--soft);
}
.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--heading);
}
.cart-item-meta {
    font-size: 13px;
}
.cart-item-price {
    margin-bottom: 8px;
    color: var(--price);
}
.cart-item-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -6px -8px 0 0;
    color: var(--muted);
    transition: color .2s;
}
.cart-item-remove:hover {
    color: var(--red);
}
.cart-empty {
    flex: 1;
    padding: 40px 20px 20px;
    text-align: center;
}
.cart-empty svg {
    margin: 0 auto 14px;
    color: var(--line-strong);
}
.cart-empty p {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text);
}
.cart-empty .btn-panel {
    display: inline-flex;
    width: auto;
}
.cart-foot {
    flex-shrink: 0;
    padding: 15px 20px calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--hairline);
    box-shadow: 0 0 10px rgba(11, 11, 12, .1);
}
/* Subtotal y envío: dos líneas pequeñas encima del total */
.cart-linea {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 14px;
    line-height: 1.9;
    color: var(--text);
}
.cart-subtotal {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--hairline);
    color: var(--heading);
}
.cart-subtotal span {
    font-size: 18px;
    font-weight: 700;
}
.cart-subtotal strong {
    font-size: 18px;
    font-weight: 700;
}
.cart-note {
    margin: 4px 0 14px;
    font-size: 13px;
    color: var(--text);
}
#checkoutBtn {
    font-size: 11px;
    letter-spacing: 3px;
}
@media (max-width: 641px) {
    #cartDrawer {
        width: 300px;
    }
}

/* --- Ventana para elegir talla -------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s var(--ease), visibility 0s .3s;
}
.modal.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity .3s var(--ease), visibility 0s;
}
.modal-box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    width: 100%;
    max-width: 720px;
    margin: auto;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 10px 40px rgba(11, 11, 12, .35);
    transform: translateY(16px);
    transition: transform .3s var(--ease);
}
.modal.is-open .modal-box {
    transform: none;
}
.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 44px;
    height: 44px;
    background: var(--white);
}
.quick-media {
    background: var(--soft);
}
.quick-media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 18 / 23;
    object-fit: cover;
}
.quick-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 30px 30px;
}
.quick-title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--heading);
}
.quick-price {
    margin-top: 6px;
    font-size: 18px;
    color: var(--price);
}
.quick-sizes {
    margin-top: 22px;
}
.quick-sizes legend {
    margin-bottom: 8px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.size-option {
    position: relative;
    cursor: pointer;
}
.size-option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.size-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    font-size: 13px;
    font-weight: 700;
    transition: border-color .2s, background-color .2s, color .2s;
}
.size-option:hover span {
    border-color: var(--ink);
}
.size-option input:checked + span {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}
.size-option input:focus-visible + span {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}
.quick-buy {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.quick-buy .btn {
    flex: 1;
    padding: 0 14px;
}
@media (max-width: 389px) {
    .quick-buy {
        flex-wrap: wrap;
    }
    .quick-buy .btn {
        flex: 1 1 100%;
    }
}

/* En móvil la ventana sube desde abajo */
@media (max-width: 599px) {
    .modal {
        align-items: flex-end;
        padding: 0;
    }
    .modal-box {
        grid-template-columns: 110px minmax(0, 1fr);
        max-width: none;
        margin: auto 0 0;
        transform: translateY(100%);
    }
    .quick-media img {
        height: auto;
    }
    .quick-body {
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    }
    .quick-title {
        padding-right: 34px;
        font-size: 13px;
    }
    .quick-sizes {
        margin-top: 14px;
    }
    .quick-buy {
        margin-top: 16px;
    }
}

/* En pantallas táctiles los campos van a 16 px: así iPhone no hace zoom al tocarlos */
@media (max-width: 1024px) {
    .search-form select,
    .search-field input,
    .field input {
        font-size: 16px;
    }
}


/* ==========================================================================
   14. COOKIES, DESCUENTO Y BOTONES FLOTANTES
   --------------------------------------------------------------------------
   Todo lo que flota abajo se apoya en --float-base: la altura de lo que haya
   pegado al borde inferior (nada, la barra del móvil o el aviso de cookies).
   Así nada queda tapado.
   ========================================================================== */

:root {
    --float-base: 0px;
}
@media (max-width: 1024px) {
    :root {
        --float-base: calc(55px + env(safe-area-inset-bottom));
    }
}
/* --cookie-h lo mide public/script.js mientras el aviso está a la vista */
html.has-cookie-bar {
    --float-base: var(--cookie-h, 68px);
}
html.has-cookie-bar body {
    padding-bottom: var(--cookie-h, 68px);
}
html.has-cookie-bar .toolbar {
    visibility: hidden;
}

/* --- Aviso de cookies ------------------------------------------------------- */
.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px 30px;
    padding: 15px 35px calc(15px + env(safe-area-inset-bottom));
    background: var(--white);
    box-shadow: 0 0 9px rgba(11, 11, 12, .14);
    font-size: 14px;
}
.cookie-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 20px;
}
.cookie-actions a {
    border-bottom: 2px solid var(--line);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--heading);
    transition: opacity .25s;
}
.cookie-actions a:hover {
    opacity: .7;
}
.btn-cookie {
    min-width: 100px;
    height: 38px;
    padding: 0 18px;
    border: 2px solid var(--black);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    transition: background-color .25s, border-color .25s;
}
.btn-cookie-ghost {
    border-color: rgba(11, 11, 12, .45);
    background: var(--white);
    color: var(--text);
    padding: 0 25px;
}
.btn-cookie-ghost:hover {
    background: rgba(11, 11, 12, .05);
}
.btn-cookie-solid {
    background: var(--black);
    color: var(--white);
}
.btn-cookie-solid:hover {
    border-color: var(--text);
    background: var(--text);
}

/* --- Volver arriba: el marco se va llenando según se baja por la página ----- */
.back-top {
    position: fixed;
    right: 30px;
    bottom: calc(var(--float-base) + 40px);
    z-index: 95;
    width: 50px;
    height: 50px;
    padding: 2px;
    border-radius: 10%;
    background: conic-gradient(var(--black) var(--scroll-angle, 0deg), var(--line-strong) 0);
    color: var(--black);
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: opacity .5s ease-in-out, transform .5s ease-in-out, visibility 0s .5s, bottom .3s var(--ease);
}
.back-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .5s ease-in-out, transform .5s ease-in-out, visibility 0s, bottom .3s var(--ease);
}
.back-top span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8%;
    background: var(--white);
}
.back-top:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--ink);
}
/* Al pasar el ratón la flecha sale por arriba y vuelve a entrar por abajo */
@media (hover: hover) {
    .back-top:hover svg {
        animation: back-top-arrow .5s ease-in-out;
    }
}
@keyframes back-top-arrow {
    0% { transform: translateY(0); }
    49% { transform: translateY(-28px); }
    50% { transform: translateY(28px); }
    100% { transform: translateY(0); }
}

/* --- Pestaña y ventana del descuento ---------------------------------------- */
.promo-tab {
    position: fixed;
    left: 16px;
    bottom: calc(var(--float-base) + 16px);
    z-index: 160;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 16px;
    border-radius: 10px;
    background: var(--white);
    color: var(--black);
    box-shadow: 0 0 1px rgba(11, 11, 12, .2), 0 6px 24px rgba(11, 11, 12, .2);
    font-family: Arial, Helvetica, sans-serif;
    transition: bottom .3s var(--ease);
}
.promo-tab-open {
    min-height: 40px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}
.promo-tab-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
@media (min-width: 1025px) {
    .promo-tab {
        left: 25px;
        bottom: calc(var(--float-base) + 25px);
        padding: 13px 12px 13px 20px;
    }
}

.promo-box {
    position: relative;
    width: 100%;
    max-width: 397px;
    margin: auto;
    padding: 35px 30px;
    border-radius: 10px;
    background: var(--white);
    color: var(--black);
    box-shadow: 0 0 1px rgba(11, 11, 12, .2), 0 26px 80px rgba(11, 11, 12, .2);
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    transform: translateY(16px);
    transition: transform .3s var(--ease);
}
.modal.is-open .promo-box {
    transform: none;
}
/* La caja recibe el foco al abrirse (para lectores de pantalla); no necesita contorno */
.promo-box:focus {
    outline: 0;
}
.promo-box .modal-close {
    top: 14px;
    right: 14px;
    background: none;
}
.promo-title {
    padding: 0 20px;
    font-size: 22px;
    font-weight: 700;
    line-height: 26px;
}
.promo-text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 20px;
}
.promo-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 45px;
    margin-top: 24px;
    border-radius: 5px;
    background: var(--ink);
    color: var(--white);
    font-size: 14px;
    transition: opacity .2s;
}
.promo-submit:hover {
    opacity: .8;
}

.noscript {
    padding: 20px;
    background: var(--soft);
    color: var(--ink);
    text-align: center;
}

/* --- Tablet y móvil ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .back-top {
        right: 15px;
        bottom: calc(var(--float-base) + 5px);
        width: 40px;
        height: 40px;
    }
}
@media (max-width: 767px) {
    .cookie-bar {
        flex-direction: column;
        padding: 15px 20px calc(15px + env(safe-area-inset-bottom));
        text-align: center;
    }
    /* "Sí, acepto" ocupa su propia línea, debajo de los otros dos */
    .cookie-actions {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: center;
        gap: 12px 20px;
    }
    .btn-cookie-solid {
        grid-column: 1 / -1;
        justify-self: center;
    }
    /* En móvil no hay botón de volver arriba */
    .back-top {
        display: none;
    }
    .promo-tab-open {
        font-size: 16px;
    }
}

/* --- Ajustes finos de tablet y móvil ---------------------------------------- */
@media (max-width: 1024px) {
    /* El rótulo del icono social no se sale por la izquierda */
    .footer-social::after {
        left: 0;
        transform: none;
    }
}

/* --- Móvil apaisado (poca altura) -------------------------------------------- */
@media (max-height: 480px) {
    /* Buscador y carrito se desplazan enteros; cabecera y pie del panel quedan fijos */
    #searchDrawer,
    #cartDrawer {
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    #searchDrawer .drawer-head,
    #cartDrawer .drawer-head {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--white);
    }
    #cartDrawer .cart-foot {
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: var(--white);
    }
    .search-results,
    .cart-items {
        flex: none;
        overflow: visible;
    }
}
@media (min-width: 560px) and (max-width: 767px) and (orientation: landscape) {
    /* El aviso de cookies vuelve a una sola fila para no comerse media pantalla */
    .cookie-bar {
        flex-direction: row;
        padding: 10px 20px;
        text-align: left;
    }
    .cookie-actions {
        display: flex;
        gap: 12px;
    }
    .btn-cookie-solid {
        grid-column: auto;
    }
}


/* ==========================================================================
   15. COLECCIÓN NOCHE ESTRELLADA
   --------------------------------------------------------------------------
   No usa los colores de la marca: los suyos están tomados de la pintura de
   Van Gogh. Cámbialos aquí.
   ========================================================================== */

.noche {
    --n-fondo: #131b3f;          /* azul de la noche: el más oscuro del cielo */
    --n-cobalto: #2a3e8e;        /* azul vivo de las pinceladas */
    --n-celeste: #849cc2;        /* azul claro de los remolinos */
    --n-amarillo: #dcbf3a;       /* amarillo de las estrellas y la luna */
    --n-cipres: #1b231e;         /* verde casi negro del ciprés */
    /* Tipografía urbana de la sección: pintura que chorrea para lo grande, marcador para los rótulos */
    --n-pintura: 'Rubik Wet Paint', 'Anton', Impact, sans-serif;
    --n-marcador: 'Permanent Marker', 'Montserrat', 'Arial Black', sans-serif;
    /* Lo que comparten las colecciones (círculos de detalles y bloque de la camisa)
       toma de aquí sus colores y letras: cada colección pone los suyos */
    --d-fondo: var(--n-fondo);
    --d-acento: var(--n-amarillo);
    --d-suave: var(--n-celeste);
    --d-rotulo: var(--n-marcador);
    --d-titular: var(--n-pintura);
    background: var(--n-fondo);
    color: var(--white);
}
.noche :focus-visible {
    outline-color: var(--n-amarillo);
}

/* --- Cabecera: la pintura a la derecha y el texto sobre el azul ------------- */
.noche-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(440px, 42vw, 620px);
    overflow: hidden;
}
.noche-fondo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Encuadre: se ven la luna y el remolino grande */
    object-position: 80% 10%;
}
/* Velo azul que se desvanece hacia la derecha: deja leer el texto y ver la pintura */
.noche-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(19, 27, 63, .97) 0%, rgba(19, 27, 63, .88) 30%, rgba(19, 27, 63, 0) 68%);
}
/* Franja con los colores de la colección */
.noche-banner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 6px;
    background: linear-gradient(90deg, var(--n-cipres) 0 20%, var(--n-cobalto) 20% 40%, var(--n-celeste) 40% 60%, var(--n-amarillo) 60% 80%, var(--white) 80% 100%);
}
.noche-texto {
    position: relative;
    z-index: 2;
    width: min(100%, 760px);
    padding: 60px 30px 66px clamp(20px, 5vw, 72px);
}
.noche-titulo {
    margin-top: 10px;
    font-family: var(--n-pintura);
    font-size: clamp(44px, 6vw, 88px);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: .01em;
    text-transform: uppercase;
    /* Ligeramente torcido, como una pintada */
    transform: rotate(-2.5deg);
    transform-origin: left center;
}
.noche-titulo span {
    display: block;
    color: var(--n-amarillo);
}
/* Rótulo de encima del título, a marcador */
.noche .eyebrow {
    font-family: var(--n-marcador);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .06em;
    text-transform: none;
    color: var(--n-celeste);
    opacity: 1;
    transform: rotate(-2.5deg);
    transform-origin: left center;
}
/* Los botones de la sección también van a marcador */
.noche .btn {
    font-family: var(--n-marcador);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: .05em;
}
.noche-intro {
    max-width: 440px;
    margin: 26px 0 28px;
    font-size: 17px;
    line-height: 1.55;
}
.btn-noche {
    border-color: var(--n-amarillo);
    background: var(--n-amarillo);
    color: var(--n-fondo);
}
.btn-noche:hover {
    background: transparent;
    color: var(--n-amarillo);
}

/* --- Detalles: cuatro círculos con aro del color de la colección -------------
   Los usan las dos colecciones (la pintura aquí, el estampado en El amor perfecto) */
:is(.noche-detalles, .amor-detalles) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
    padding: 46px 20px 42px;
    text-align: center;
}
:is(.noche-detalles, .amor-detalles) img {
    width: min(100%, 168px);
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px var(--d-fondo), 0 0 0 6px var(--d-acento);
    transition: transform .6s var(--ease);
}
@media (hover: hover) {
    :is(.noche-detalles, .amor-detalles) li:hover img {
        transform: scale(1.06) rotate(5deg);
    }
}
:is(.noche-detalles, .amor-detalles) span {
    display: block;
    margin-top: 16px;
    font-family: var(--d-rotulo);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .04em;
    color: var(--white);
}

/* --- La camisa: varias fotos de la misma prenda y un solo precio ------------- */
.destacado {
    padding: 0 var(--gutter);
}
/* --fotos (cuántas fotos hay, hasta 4) lo pone public/script.js. Con dos fotos no se
   estiran a todo el ancho: quedan centradas, a buen tamaño, y la franja de compra las acompaña. */
.destacado-fotos,
.destacado-compra {
    max-width: calc(var(--fotos, 4) * 470px);
    margin-left: auto;
    margin-right: auto;
}
.destacado-fotos {
    display: grid;
    grid-template-columns: repeat(var(--fotos, 4), minmax(0, 1fr));
    gap: var(--gutter);
}
.destacado-foto {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(241, 238, 232, .2);
    border-radius: 5px;
    background: #fff;
}
/* Las fotos de producto son verticales, 3:4 */
.destacado-foto img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
/* Rótulo de cada foto ("Espalda", "Frente"), a marcador y algo torcido */
.destacado-pie {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 4px 12px 6px;
    background: var(--d-fondo);
    color: var(--white);
    font-family: var(--d-rotulo);
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: .04em;
    transform: rotate(-3deg);
}
@media (hover: hover) {
    .destacado-foto:hover img {
        transform: scale(1.06);
    }
}
/* Franja de compra: nombre y tallas a la izquierda; precio y botón a la derecha */
.destacado-compra {
    display: flex;
    align-items: center;
    gap: 18px 40px;
    margin-top: var(--gutter);
    padding: 22px 28px;
    border: 1px solid rgba(241, 238, 232, .22);
}
.destacado-datos {
    flex: 1;
    min-width: 0;
}
.destacado-nombre {
    font-family: var(--d-rotulo);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .03em;
}
.destacado-tallas {
    margin-top: 4px;
    font-size: 14px;
    color: var(--d-suave);
}
.destacado-precio {
    font-family: var(--d-titular);
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: .01em;
    white-space: nowrap;
    color: var(--d-acento);
}
.destacado-precio .precio-antes {
    display: block;
    margin: 0 0 2px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: right;
    color: var(--d-suave);
    opacity: 1;
}
.destacado-precio .precio-ahora {
    font-weight: inherit;
    color: inherit;
}
.noche-credito {
    padding: 34px 20px 38px;
    font-family: var(--n-marcador);
    font-size: 14px;
    letter-spacing: .04em;
    text-align: center;
    color: var(--n-celeste);
}

@media (max-width: 1024px) {
    .destacado {
        padding: 0 7.5px;
    }
    .destacado-fotos {
        gap: 15px;
    }
    .destacado-compra {
        margin-top: 15px;
    }
}
@media (max-width: 767px) {
    /* En móvil la pintura va arriba y el texto abajo, sobre el azul */
    .noche-banner {
        align-items: flex-end;
        min-height: 580px;
    }
    .noche-fondo {
        object-position: center top;
    }
    .noche-banner::before {
        background: linear-gradient(0deg, rgba(19, 27, 63, .98) 0%, rgba(19, 27, 63, .92) 44%, rgba(19, 27, 63, .55) 62%, rgba(19, 27, 63, 0) 84%);
    }
    .noche-texto {
        padding: 0 20px 44px;
    }
    .noche-intro {
        font-size: 16px;
    }
    :is(.noche-detalles, .amor-detalles) {
        gap: 22px;
        padding: 36px 16px 32px;
    }
    :is(.noche-detalles, .amor-detalles) span {
        margin-top: 12px;
        font-size: 13px;
        letter-spacing: .02em;
    }
    .noche-titulo {
        font-size: clamp(36px, 12vw, 56px);
    }
    /* Aquí el rótulo cae sobre la pintura: va en claro y con sombra para que se lea */
    .noche .eyebrow {
        font-size: 16px;
        color: var(--white);
        text-shadow: 0 1px 8px rgba(19, 27, 63, .95);
    }
    .destacado-nombre {
        font-size: 23px;
    }
    /* Fotos de dos en dos; nombre, precio y botón apilados y centrados */
    .destacado {
        padding: 0 5px;
    }
    .destacado-fotos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .destacado-pie {
        left: 8px;
        bottom: 8px;
        padding: 3px 9px 4px;
        font-size: 13px;
    }
    .destacado-compra {
        flex-direction: column;
        margin-top: 10px;
        padding: 24px 18px;
        text-align: center;
    }
    .destacado-compra .btn {
        width: 100%;
    }
    .destacado-precio .precio-antes {
        text-align: center;
    }
}



/* ==========================================================================
   16. COLECCIÓN EL AMOR PERFECTO
   --------------------------------------------------------------------------
   Sus colores salen de la camisa: el verde de la tela y el dorado del
   estampado de Eros y Psique. Cámbialos aquí.
   ========================================================================== */

.amor {
    --a-verde: #153b30;          /* verde de la tela: fondo de la sección */
    --a-verde-hondo: #0c251d;    /* el mismo verde, casi negro: rótulos y letra sobre dorado */
    --a-oro: #e5d06a;            /* dorado del estampado */
    --a-salvia: #a8c0b0;         /* verde claro: texto secundario */
    /* Letras: gótica (como de tatuaje) para lo grande y cursiva clásica, la de la camisa, para los rótulos */
    --a-gotica: 'UnifrakturCook', 'Old English Text MT', Georgia, serif;
    --a-clasica: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    /* Colores y letras de los círculos de detalles y del bloque de la camisa */
    --d-fondo: var(--a-verde);
    --d-acento: var(--a-oro);
    --d-suave: var(--a-salvia);
    --d-rotulo: var(--a-clasica);
    --d-titular: var(--a-gotica);
    background: var(--a-verde);
    color: var(--white);
    /* La cinta dorada va torcida y se sale un poco por los lados: aquí se recorta */
    overflow: hidden;
}
.amor :focus-visible {
    outline-color: var(--a-oro);
}

/* --- Cabecera: la foto a la izquierda y el texto a la derecha, sobre el verde -- */
.amor-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 1760px;
    min-height: clamp(480px, 44vw, 680px);
    margin: 0 auto;
    overflow: hidden;
}
.amor-foto {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(58%, 1050px);
    overflow: hidden;
}
/* La foto se acerca y se aleja muy despacio, como si respirara */
.amor-fondo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Encuadre: el estampado de la espalda queda entero a la vista */
    object-position: center 46%;
    animation: amor-respira 20s ease-in-out infinite alternate;
}
@keyframes amor-respira {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}
/* Velo: la foto se funde con el verde hacia el lado del texto y se oscurece un poco abajo */
.amor-foto::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(270deg, #153b30 0%, rgba(21, 59, 48, .55) 18%, rgba(21, 59, 48, 0) 44%),
        linear-gradient(0deg, rgba(12, 37, 29, .5) 0%, rgba(12, 37, 29, 0) 26%);
}
.amor-texto {
    position: relative;
    z-index: 2;
    width: min(46%, 660px);
    padding: 60px clamp(20px, 5vw, 72px) 76px 20px;
}
.amor-titulo {
    margin-top: 8px;
    font-family: var(--a-gotica);
    font-size: clamp(54px, 6.6vw, 108px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: .01em;
}
.amor-titulo span {
    display: block;
    color: var(--a-oro);
}
/* Rótulo de encima del título, en la cursiva de la camisa */
.amor .eyebrow {
    font-family: var(--a-clasica);
    font-size: 17px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .06em;
    text-transform: none;
    color: var(--a-oro);
    opacity: 1;
}
.amor-laurel {
    width: 210px;
    margin-top: 18px;
}
.amor-intro {
    max-width: 440px;
    margin: 20px 0 28px;
    font-size: 17px;
    line-height: 1.55;
}
/* Los botones de la sección van en la misma cursiva */
.amor .btn {
    font-family: var(--a-clasica);
    font-size: 17px;
    font-style: italic;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: none;
}
.btn-amor {
    border-color: var(--a-oro);
    background: var(--a-oro);
    color: var(--a-verde-hondo);
}
.btn-amor:hover {
    background: transparent;
    color: var(--a-oro);
}

/* --- Cinta dorada en movimiento, un poco torcida ------------------------------ */
.amor-cinta {
    position: relative;
    z-index: 3;
    height: 54px;
    margin: -16px -24px 0;
    background: var(--a-oro);
    color: var(--a-verde-hondo);
    box-shadow: 0 8px 26px rgba(12, 37, 29, .45);
    transform: rotate(-1.4deg);
}
.amor-cinta .marquee-group li {
    font-family: var(--a-clasica);
    font-size: 18px;
    font-style: italic;
    letter-spacing: .12em;
}
.amor-cinta .marquee-group li::after {
    margin: 0 34px;
    font-style: normal;
    color: var(--a-verde);
}

/* --- La frase de la espalda, entre dos flechas como las del estampado --------- */
.amor-frase {
    display: grid;
    grid-template-columns: auto minmax(0, 780px) auto;
    align-items: center;
    justify-content: center;
    gap: 0 clamp(18px, 4vw, 56px);
    padding: 84px 20px 22px;
    text-align: center;
}
.amor-frase blockquote {
    margin: 0;
}
.amor-frase blockquote p {
    font-family: var(--a-clasica);
    font-size: clamp(24px, 3.3vw, 46px);
    font-style: italic;
    font-weight: 700;
    line-height: 1.22;
}
.amor-frase em {
    font-style: inherit;
    color: var(--a-oro);
}
.amor-frase figcaption {
    grid-column: 1 / -1;
    margin-top: 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--a-salvia);
}
.amor-flecha {
    width: clamp(34px, 4vw, 54px);
    height: auto;
    color: var(--a-oro);
}

/* --- Detalles y camisa: lo que cambia respecto a la otra colección ------------ */
.amor-detalles span,
.amor .destacado-nombre,
.amor .destacado-pie {
    font-style: italic;
    font-weight: 700;
}
.amor .destacado-foto {
    border-color: rgba(229, 208, 106, .3);
    background: var(--a-verde-hondo);
}
/* Rótulo de cada foto: derecho y en dorado */
.amor .destacado-pie {
    padding: 4px 12px 5px;
    background: var(--a-verde-hondo);
    color: var(--a-oro);
    transform: none;
}
.amor .destacado-compra {
    border-color: rgba(229, 208, 106, .34);
}
.amor .destacado-precio {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
}
.amor-credito {
    padding: 34px 20px 42px;
    font-family: var(--a-clasica);
    font-size: 15px;
    font-style: italic;
    font-weight: 700;
    letter-spacing: .03em;
    text-align: center;
    color: var(--a-salvia);
}

/* En pantallas muy anchas la cabecera queda centrada: la foto también se funde por la izquierda */
@media (min-width: 1761px) {
    .amor-foto::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(90deg, #153b30 0%, rgba(21, 59, 48, 0) 14%);
    }
}
@media (max-width: 767px) {
    /* En móvil la foto va arriba y el texto debajo, sobre el verde */
    .amor-banner {
        display: block;
        min-height: 0;
    }
    .amor-foto {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1.04;
    }
    .amor-fondo {
        object-position: center 30%;
    }
    .amor-foto::after {
        background: linear-gradient(0deg, #153b30 0%, rgba(21, 59, 48, .6) 14%, rgba(21, 59, 48, 0) 40%);
    }
    .amor-texto {
        width: 100%;
        margin-top: -40px;
        padding: 0 20px 56px;
    }
    .amor .eyebrow {
        font-size: 15px;
    }
    .amor-titulo {
        font-size: clamp(50px, 16vw, 70px);
    }
    .amor-laurel {
        width: 180px;
    }
    .amor-intro {
        font-size: 16px;
    }
    .amor-cinta {
        height: 46px;
        margin-top: -14px;
    }
    .amor-cinta .marquee-group li {
        font-size: 15px;
    }
    .amor-cinta .marquee-group li::after {
        margin: 0 22px;
    }
    .amor-frase {
        gap: 0 12px;
        padding: 60px 12px 12px;
    }
    .amor-flecha {
        width: 26px;
    }
    .amor-frase figcaption {
        margin-top: 22px;
        font-size: 11px;
    }
    .amor .destacado-precio {
        font-size: 42px;
    }
}


/* ==========================================================================
   17. FOTOS EN LA CALLE: MURO DE FOTOS EN MOVIMIENTO Y FOTO AMPLIADA
   --------------------------------------------------------------------------
   Las fotos y sus columnas las arma public/script.js (lista LOOKBOOK). Allí
   está también la velocidad (VELOCIDAD_MURO).
   ========================================================================== */

.lookbook {
    padding: 78px 0 66px;
    background: var(--white);
    color: var(--ink);
}
.lookbook-cabecera {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 20px;
    text-align: center;
}
.lookbook .eyebrow {
    color: var(--text);
    opacity: 1;
}
.lookbook-titulo {
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: clamp(42px, 7.4vw, 112px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--ink);
}
/* Segunda línea: solo el contorno de las letras */
.lookbook-titulo .outline {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink);
}
.lookbook-texto {
    max-width: 520px;
    margin: 18px auto 0;
    font-size: 16px;
    line-height: 1.55;
}

/* --- El muro ------------------------------------------------------------------ */
.muro-marco {
    position: relative;
}
.muro {
    --muro-hueco: 16px;          /* separación entre fotos */
    height: clamp(540px, 88vh, 920px);
    overflow: hidden;
    /* Las fotos aparecen y se desvanecen suavemente por arriba y por abajo */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.muro-columnas {
    display: flex;
    align-items: flex-start;
    gap: var(--muro-hueco);
    height: 100%;
    padding: 0 var(--muro-hueco);
}
.muro-columna {
    flex: 1 1 0;
    min-width: 0;
}
/* Cada columna lleva sus fotos dos veces: al recorrer la mitad vuelve al principio sin que se note.
   --muro-duracion lo calcula public/script.js según la altura de la columna. */
.muro-pista {
    display: flex;
    flex-direction: column;
    will-change: transform;
    animation: muro-sube var(--muro-duracion, 70s) linear infinite;
}
/* Las columnas pares bajan en vez de subir */
.muro-columna:nth-child(even) .muro-pista {
    animation-name: muro-baja;
}
@keyframes muro-sube {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}
@keyframes muro-baja {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}
/* Con el ratón encima sigue moviéndose. Solo se detiene con el botón de pausa
   y cuando se recorre con el teclado (para que la foto elegida no se escape) */
.muro.is-pausado .muro-pista,
.muro:has(.muro-foto:focus-visible) .muro-pista {
    animation-play-state: paused;
}
.muro-foto {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 100%;
    margin-bottom: var(--muro-hueco);
    overflow: hidden;
    border-radius: 6px;
    background: var(--ink);
    cursor: zoom-in;
}
/* Fotos 4:5; las alargadas (alta: true en la lista) son 9:16 */
.muro-foto img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.muro-foto.es-alta img {
    aspect-ratio: 9 / 16;
}
/* Nombre de las camisas que salen en la foto: aparece al pasar el ratón */
.muro-etiqueta {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 4px 10px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: left;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
@media (hover: hover) {
    .muro-foto:hover img {
        transform: scale(1.07);
    }
    .muro-foto:hover .muro-etiqueta {
        opacity: 1;
        transform: none;
    }
}
.muro-foto:focus-visible {
    outline-color: var(--white);
    outline-offset: -4px;
}
.muro-foto:focus-visible .muro-etiqueta {
    opacity: 1;
    transform: none;
}
/* Botón para detener o reanudar el movimiento. Va centrado: en las esquinas de abajo
   coincidiría con los botones flotantes (volver arriba y descuento) */
.muro-pausa {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 2;
    margin-left: -22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 0 0 1.5px rgba(241, 238, 232, .6);
}
.muro-pausa .icono-seguir,
.muro-pausa[aria-pressed="true"] .icono-pausa {
    display: none;
}
.muro-pausa[aria-pressed="true"] .icono-seguir {
    display: block;
}
.lookbook-botones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
    padding: 0 20px;
}

/* --- Foto ampliada ------------------------------------------------------------ */
.visor {
    padding: 16px;
    background: rgba(11, 11, 12, .9);
}
.visor :focus-visible {
    outline-color: var(--white);
}
.visor-caja {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    transform: translateY(14px) scale(.98);
    transition: transform .3s var(--ease);
}
.visor.is-open .visor-caja {
    transform: none;
}
.visor-cerrar {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.visor-escena {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}
/* El tamaño sale de la pantalla, no del archivo: así no salta al cambiar la foto pequeña por la grande */
.visor-escena img {
    --alto-max: calc(100vh - 196px);
    --ancho-max: min(92vw, 860px);
    flex-shrink: 0;
    width: auto;
    max-width: none;
    height: min(var(--alto-max), calc(var(--ancho-max) * 1.25));
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
    background: #1b1b1d;
}
.visor-escena img.es-alta {
    height: min(var(--alto-max), calc(var(--ancho-max) * 16 / 9));
    aspect-ratio: 9 / 16;
}
@supports (height: 100dvh) {
    .visor-escena img {
        --alto-max: calc(100dvh - 196px);
    }
}
.visor-flecha {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    transition: transform .2s var(--ease);
}
@media (hover: hover) {
    .visor-flecha:hover {
        transform: scale(1.1);
    }
}
.visor-pie {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: var(--white);
}
.visor-cuenta {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gris-sobre-negro);
}
/* Las camisas de la foto: cada una abre la ventana de talla */
.visor-productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.visor-producto {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border: 1px solid rgba(241, 238, 232, .38);
    border-radius: 4px;
    color: var(--white);
    text-align: left;
    transition: background-color .25s var(--ease), color .25s var(--ease);
}
.visor-producto img {
    width: 36px;
    height: 46px;
    border-radius: 2px;
    object-fit: cover;
}
.visor-producto b {
    display: block;
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .04em;
}
.visor-producto small {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: var(--gris-sobre-negro);
}
.visor-producto:hover {
    background: var(--white);
    color: var(--ink);
}
.visor-producto:hover small {
    color: var(--gris);
}

@media (max-width: 767px) {
    .lookbook {
        padding: 60px 0 52px;
    }
    .lookbook-cabecera {
        margin-bottom: 28px;
    }
    .muro {
        --muro-hueco: 10px;
        height: clamp(480px, 78vh, 700px);
    }
    .muro-pausa {
        bottom: 16px;
    }
    .lookbook-botones .btn {
        width: 100%;
    }
    .visor {
        padding: 10px;
    }
    /* Las flechas van encima de la foto, a los lados */
    .visor-flecha {
        position: absolute;
        top: 50%;
        z-index: 1;
        width: 40px;
        height: 40px;
        margin-top: -20px;
        background: rgba(241, 238, 232, .9);
    }
    .visor-anterior {
        left: 8px;
    }
    .visor-siguiente {
        right: 8px;
    }
    .visor-escena img {
        --ancho-max: 94vw;
    }
}


/* ==========================================================================
   18. ANIMACIONES DE ENTRADA
   --------------------------------------------------------------------------
   Lo que lleva data-aparece en el HTML empieza oculto y entra cuando el
   visitante llega hasta ahí (public/script.js le pone la clase a-la-vista).
     data-aparece           sube y aparece
     data-aparece="abrir"   lo que lleva dentro se abre desde el centro hacia los lados
     data-aparece="trazo"   dibujo de líneas que se va trazando
   --retraso (en el propio elemento) hace que entre un poco después.
   ========================================================================== */

.con-apariciones [data-aparece=""] {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity .9s var(--ease) var(--retraso, 0s), transform .9s var(--ease) var(--retraso, 0s);
}
.con-apariciones [data-aparece=""].a-la-vista {
    opacity: 1;
    transform: none;
}
/* El recorte va en lo de dentro: si fuera en la propia pieza, el navegador la daría por
   invisible y nunca avisaría de que ya está a la vista */
.con-apariciones [data-aparece="abrir"] > * {
    clip-path: inset(0 50%);
    transition: clip-path 1.2s var(--ease) var(--retraso, 0s);
}
.con-apariciones [data-aparece="abrir"].a-la-vista > * {
    clip-path: inset(0 0);
}
.con-apariciones [data-aparece="trazo"] path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.9s var(--ease) var(--retraso, 0s);
}
.con-apariciones [data-aparece="trazo"].a-la-vista path {
    stroke-dashoffset: 0;
}

/* --- Hueco de la fila de productos mientras carga -----------------------------
   Las tarjetas las dibuja script.js. Hasta que lo hace, la fila guarda el alto de
   una tarjeta (foto 18:23 + nombre, precio y tallas): así lo que va debajo no pega
   un salto al abrir la página. En cuanto la fila está dibujada, el hueco se va.    */
.product-grid:empty:not(.is-pintada)::before {
    content: "";
    flex: 0 0 calc((100% - (var(--por-fila) - 1) * var(--hueco)) / var(--por-fila));
    aspect-ratio: 18 / 23;
    margin-bottom: 103px;
}
@media (max-width: 767px) {
    .product-grid:empty:not(.is-pintada)::before {
        margin-bottom: 109px;
    }
}
