/* =============================================================
   landing-producto.css
   CSS global para landings de productos — Arletex Design System v3.3
   -------------------------------------------------------------
   Prefijo de clases: .ax-*   (canónico del sistema)
   Tokens:            --ax-*  (variables CSS)
   ============================================================= */


/* =============================================================
   §1. TOKENS — color, tipografía, espacio, motion, sombras
   ============================================================= */
:root {
    /* — Color core — */
    --ax-ink:          #1F2530;
    --ax-paper:        #FAF6EE;
    --ax-cream:        #F2EDE4;
    --ax-white:        #FFFFFF;
    --ax-orange:       #F15A29;
    --ax-orange-deep:  #B0401A;
    --ax-purple:       #6A52A2;
    --ax-yellow:       #FFEB3B;
    --ax-yellow-deep:  #C9B900;
    --ax-muted:        #6E6A60;
    --ax-muted-dark:   #A8A39A;
    --ax-rule:         #E5E1D7;
    --ax-whatsapp:     #25D366;
    --ax-whatsapp-deep:#0F8C40;
    --ax-pure-black:   #0A0D14;

    /* — Tipografía — */
    --ax-font-display: 'Anton', 'Arial Narrow', sans-serif;
    --ax-font-accent:  'Fraunces', 'Georgia', serif;
    --ax-font-body:    'Lato', system-ui, sans-serif;
    --ax-font-mono:    'JetBrains Mono', ui-monospace, monospace;

    /* — Espacio (4pt) — */
    --ax-space-1:  4px;
    --ax-space-2:  8px;
    --ax-space-3:  12px;
    --ax-space-4:  16px;
    --ax-space-5:  20px;
    --ax-space-6:  24px;
    --ax-space-8:  32px;
    --ax-space-10: 40px;
    --ax-space-12: 48px;
    --ax-space-16: 64px;
    --ax-space-20: 80px;
    --ax-space-24: 96px;

    /* — Motion — */
    --ax-motion-fast: 180ms;
    --ax-motion-base: 240ms;
    --ax-motion-slow: 420ms;
    --ax-ease-out:    cubic-bezier(.22, 1, .36, 1);
    --ax-ease-in-out: cubic-bezier(.65, 0, .35, 1);

    /* — Sombras sólidas (sin blur, regla N-07) — */
    --ax-shadow-lift-orange: 5px 5px 0 var(--ax-orange);
    --ax-shadow-chunky-orange: 0 6px 0 var(--ax-orange-deep);
    --ax-shadow-chunky-whatsapp: 0 6px 0 var(--ax-whatsapp-deep);
}


/* =============================================================
   §2. RESET LOCAL — solo lo imprescindible para no pelear con Bootstrap
   ============================================================= */
.ax-section *,
.ax-section *::before,
.ax-section *::after {
    box-sizing: border-box;
}


/* =============================================================
   §3. SECTION — bloque vertical principal
   ============================================================= */
.ax-section {
    width: 100%;
    position: relative;
    background: var(--ax-white);
    color: var(--ax-ink);
}

.ax-section--tight   { padding: var(--ax-space-8) 0; }
.ax-section--default { padding: clamp(64px, 8vw, 96px) 0; }
.ax-section--hero    { padding: clamp(96px, 14vw, 160px) 0; }

.ax-section--paper { background: var(--ax-paper); color: var(--ax-ink); }
.ax-section--cream { background: var(--ax-cream); color: var(--ax-ink); }
.ax-section--ink   { background: var(--ax-ink);   color: var(--ax-paper); }

/* Marco editorial: top-rule 2px naranja */
.ax-section--top-border { border-top: 2px solid var(--ax-orange); }

/* Hero visual full-bleed sin padding lateral */
.ax-section--bleed { padding: 0; }


/* =============================================================
   §4. CONTAINER
   ============================================================= */
.ax-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px);
}
.ax-container--narrow { max-width: 720px; }
.ax-container--wide   { max-width: 1600px; }


/* =============================================================
   §5. HERO VISUAL — imagen full-bleed cinematográfica
   ============================================================= */
.ax-hero-visual {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--ax-ink);
}
.ax-hero-visual__media,
.ax-hero-visual__media picture,
.ax-hero-visual__media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.ax-hero-visual__media img {
    /* Proporciones controladas: ancho-pantalla con ratio 1900/500 desktop, 1080/1080 mobile */
    aspect-ratio: 1900 / 500;
    max-height: 540px;
}
@media (max-width: 767px) {
    .ax-hero-visual__media img {
        aspect-ratio: 1080 / 1080;
        max-height: none;
    }
}


/* =============================================================
   §6. TIPOGRAFÍA — voces aplicadas
   ============================================================= */

/* Display Heavy — H1 hero, mega-text */
.ax-display-heavy {
    font-family: var(--ax-font-display);
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 5.25rem);
    line-height: 0.9;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--ax-ink);
    margin: 0;
}

/* Display Medium — H2 de sección, H3 de card */
.ax-display-medium {
    font-family: var(--ax-font-display);
    font-weight: 400;
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    line-height: 0.95;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    color: var(--ax-ink);
    margin: 0;
}

/* Accent — Fraunces italic, color orange, voz humana
   Regla N-04: lowercase, sin rotate(), max 1 palabra por titular grande */
.ax-display-heavy em,
.ax-display-medium em,
em.ax-accent {
    font-family: var(--ax-font-accent);
    font-style: italic;
    font-weight: 400;
    color: var(--ax-orange);
    text-transform: lowercase;
    letter-spacing: 0;
    /* Compensar la diferencia de altura óptica entre Anton y Fraunces */
    font-size: 0.92em;
    /* La sangría visual genera el "gesto humano" */
    padding: 0 0.05em;
}

/* Body editorial */
.ax-body {
    font-family: var(--ax-font-body);
    font-size: clamp(0.9375rem, 1.05vw, 1.0625rem); /* 15→17px */
    line-height: 1.65;
    color: var(--ax-ink);
}
.ax-body strong { font-weight: 700; }
.ax-body--muted { color: var(--ax-muted); }

/* Lead — párrafo de apertura, Fraunces italic muted */
.ax-lead {
    font-family: var(--ax-font-accent);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.0625rem, 1.4vw, 1.25rem); /* 17→20px */
    line-height: 1.5;
    color: var(--ax-muted);
    margin: 0;
    max-width: 56ch;
}
.ax-section--ink .ax-lead { color: var(--ax-muted-dark); }


/* =============================================================
   §7. SECTION-HEADER — patrón Eyebrow + Heading
   ============================================================= */
.ax-section-header {
    width: 100%;
}

/* §7.1 Apertura RunInHeadline — eyebrow inline con titular */
.ax-section-header--runin {
    display: flex;
    align-items: baseline;
    gap: clamp(.75rem, 1.8vw, 1.25rem);
    flex-wrap: wrap;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: clamp(0.75rem, 1.5vw, 1rem);
    border-bottom: 1px solid var(--ax-rule);
}

.ax-section-header__divider {
    font-family: var(--ax-font-accent);
    font-style: italic;
    color: var(--ax-orange);
    font-size: 1.75em;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

@media (max-width: 600px) {
    /* En mobile el divider sobra (los items hacen wrap) */
    .ax-section-header--runin .ax-section-header__divider { display: none; }
    .ax-section-header--runin { gap: var(--ax-space-3); }
}

/* §7.2 Wrapper para titulares largos en RunIn — toma la línea completa */
.ax-section-header__title {
    flex: 1 1 100%;
    min-width: 0;
}
@media (min-width: 900px) {
    /* Si el H1 cabe en línea con el stamp, lo intentamos */
    .ax-section-header__title { flex: 1 1 auto; }
}


/* =============================================================
   §8. EYEBROW STAMP — apertura editorial narrativa
   Estructura: Fraunces italic muted + ::before Anton uppercase con borde rect.
   ============================================================= */
.ax-eyebrow-stamp {
    font-family: var(--ax-font-accent);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.05vw, 1.0625rem);
    color: var(--ax-muted);
    line-height: 1.35;
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.ax-eyebrow-stamp::before {
    content: attr(data-stamp);
    font-family: var(--ax-font-display);
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.22rem 0.6rem;
    line-height: 1;
    border: 1px solid var(--ax-orange);
    color: var(--ax-orange);
    flex-shrink: 0;
    /* Regla dura: radius 0 — el stamp es rectángulo */
    border-radius: 0;
}

.ax-eyebrow-stamp--on-dark { color: var(--ax-muted-dark); }
.ax-eyebrow-stamp--filled-ink::before {
    background: var(--ax-ink); color: var(--ax-paper); border-color: var(--ax-ink);
}
.ax-eyebrow-stamp--filled-orange::before {
    background: var(--ax-orange); color: var(--ax-paper); border-color: var(--ax-orange);
}

/* Variante inline para RunInHeadline */
.ax-eyebrow-stamp--inline {
    flex-shrink: 0;
}


/* §7.3 Apertura Dossier-stack — eyebrow + H1 apilados verticalmente
   Variante usada dentro del hero split, donde el header ocupa una
   sola columna y no necesita el grid 2-col del Dossier canónico. */
.ax-section-header--stack {
    display: grid;
    gap: clamp(0.875rem, 1.5vw, 1.125rem);
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
    border-bottom: 2px solid var(--ax-ink);
    margin: 0;
}
.ax-section--ink .ax-section-header--stack { border-bottom-color: var(--ax-paper); }


/* =============================================================
   §9. HERO SPLIT — sección principal del producto
   Layout 2-col: figura izquierda + contenido derecho (mobile stack)
   Registro: @dossier · Apertura: stack · Marco: top-rule
   ============================================================= */
.ax-hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
}
@media (min-width: 992px) {
    .ax-hero-split {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: clamp(2.5rem, 5vw, 4.5rem);
    }
}

/* Columna media (galería + trust badge) — sticky en desktop.
   Acompaña al usuario mientras lee la columna derecha.
   Offset 113px = header fixed desktop + 16px aire (var memoria). */
.ax-hero-split__media {
    min-width: 0;
    display: grid;
    gap: var(--ax-space-5);
}
@media (min-width: 992px) {
    .ax-hero-split__media {
        position: sticky;
        top: calc(113px + var(--ax-space-4));
        align-self: start;
        /* Importante: overflow visible para no recortar la sombra offset del gallery main.
           El `overflow-y:auto` clamping no se usa — si el contenido excede el viewport en
           pantallas muy bajas, se permite el corte natural antes que recortar la sombra. */
    }
}

/* Figura del hero — imagen enmarcada con sombra offset sólida (regla N-07) */
.ax-hero-figure {
    position: relative;
    margin: 0;
    aspect-ratio: 1 / 1;
    background: var(--ax-paper);
    border: 1px solid var(--ax-ink);
    box-shadow: 8px 8px 0 var(--ax-ink);
    overflow: hidden;
}
.ax-hero-figure picture,
.ax-hero-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 992px) {
    .ax-hero-figure {
        position: sticky;
        top: calc(120px + var(--ax-space-4));
        box-shadow: 10px 10px 0 var(--ax-ink);
    }
}

/* Contenido del hero — stack vertical de bloques */
.ax-hero-content {
    display: grid;
    gap: clamp(1.25rem, 2.2vw, 1.75rem);
    min-width: 0;
}

/* Bloque CTA — botón + microcopy juntos */
.ax-hero-cta {
    display: grid;
    gap: var(--ax-space-3);
    margin-top: var(--ax-space-2);
}

/* H1 dentro del hero split — escala ligeramente menor para no romper col */
.ax-hero-content .ax-display-heavy {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    line-height: 0.92;
}


/* =============================================================
   §10. SPEC LIST — ficha técnica clave/valor
   Definition list con label Lato uppercase + value Mono.
   ============================================================= */
.ax-spec-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ax-ink);
    border-bottom: 1px solid var(--ax-ink);
}
.ax-spec-list__row {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    gap: var(--ax-space-4);
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--ax-rule);
}
.ax-spec-list__row:last-child { border-bottom: none; }
.ax-spec-list__label {
    font-family: var(--ax-font-body);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ax-muted);
    margin: 0;
}
.ax-spec-list__value {
    font-family: var(--ax-font-mono, 'Courier New', monospace);
    font-size: clamp(13px, 1vw, 14px);
    color: var(--ax-ink);
    margin: 0;
    line-height: 1.3;
}
.ax-spec-list__value--with-swatch {
    display: flex;
    align-items: center;
    gap: var(--ax-space-3);
    flex-wrap: wrap;
}


/* =============================================================
   §11. CHECK LIST — beneficios con check naranja cuadrado
   ============================================================= */
.ax-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--ax-space-3);
}
.ax-check-list li {
    position: relative;
    padding-left: 30px;
    font-family: var(--ax-font-body);
    font-size: clamp(0.9375rem, 1vw, 1rem);
    line-height: 1.55;
    color: var(--ax-ink);
}
.ax-check-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.35em;
    width: 18px; height: 18px;
    background: var(--ax-orange);
    /* Cuadrado sólido — regla N-06 radius 0 */
}
.ax-check-list li::after {
    content: "";
    position: absolute;
    left: 4px; top: calc(0.35em + 5px);
    width: 10px; height: 5px;
    border-left: 2.5px solid var(--ax-paper);
    border-bottom: 2.5px solid var(--ax-paper);
    transform: rotate(-45deg);
}


/* =============================================================
   §12. BUTTON — base + variantes
   Sombras chunky offset (regla N-07), sin border-radius (N-06),
   min-height 48px (tap-size N-rules).
   ============================================================= */
.ax-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--ax-font-body);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    border: none;
    cursor: pointer;
    min-height: 48px;
    line-height: 1.2;
    transition: transform var(--ax-motion-fast) var(--ax-ease-out),
                box-shadow var(--ax-motion-fast) var(--ax-ease-out);
}
.ax-btn--block { width: 100%; }
.ax-btn i { font-size: 1.3em; line-height: 1; }

.ax-btn--primary {
    background: var(--ax-orange);
    color: var(--ax-paper);
    box-shadow: var(--ax-shadow-chunky-orange);
}
.ax-btn--primary:hover, .ax-btn--primary:focus-visible {
    color: var(--ax-paper);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--ax-orange-deep);
}
.ax-btn--primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--ax-orange-deep);
}

.ax-btn--whatsapp {
    background: var(--ax-whatsapp);
    color: var(--ax-white);
    box-shadow: var(--ax-shadow-chunky-whatsapp);
}
.ax-btn--whatsapp:hover, .ax-btn--whatsapp:focus-visible {
    color: var(--ax-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--ax-whatsapp-deep);
    text-decoration: none;
}
.ax-btn--whatsapp:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--ax-whatsapp-deep);
}

.ax-btn--outline {
    background: transparent;
    color: var(--ax-ink);
    border: 1.5px solid var(--ax-ink);
    box-shadow: none;
}
.ax-btn--outline:hover {
    background: var(--ax-ink);
    color: var(--ax-paper);
}


/* =============================================================
   §13. MICROCOPY — texto fino bajo CTAs / formularios
   ============================================================= */
.ax-microcopy {
    font-family: var(--ax-font-body);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ax-muted);
    margin: 0;
}
.ax-microcopy strong { color: var(--ax-ink); font-weight: 700; }


/* =============================================================
   §14. PRODUCT GALLERY — figura main intercambiable + thumbs strip
   Funciona con el JS legacy (queries por clase + id) y añade
   capa visual ax-* sobre los nodos existentes.
   ============================================================= */
.ax-product-gallery {
    display: grid;
    gap: var(--ax-space-4);
    margin: 0;
}

/* Slot main — reutiliza la misma estética que .ax-hero-figure */
.ax-product-gallery__main {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--ax-paper);
    border: 1px solid var(--ax-ink);
    box-shadow: 8px 8px 0 var(--ax-ink);
    overflow: hidden;
}
.ax-product-gallery__main .ax-product-gallery__slide,
.ax-product-gallery__main .picture,
.ax-product-gallery__main .picture-popelina-superpopelina,
.ax-product-gallery__main [class*="picture-"] {
    /* slides ocupan el slot completo (incluye la clase genérica .picture
       que usan fieltro, animal-print, back/satin y bandera) */
    width: 100%; height: 100%;
}
.ax-product-gallery__main a { display: block; width: 100%; height: 100%; }
.ax-product-gallery__main picture,
.ax-product-gallery__main img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
}
@media (min-width: 992px) {
    .ax-product-gallery__main { box-shadow: 10px 10px 0 var(--ax-ink); }
}

/* Lupa — zoom de la imagen principal siguiendo el cursor.
   Solo en punteros finos (mouse): en touch el hover no aplica y la
   imagen queda en su estado base. El origen del zoom (--ax-zoom-x/y)
   lo actualiza landing-producto.js en cada mousemove; como el valor
   de `transform` (la escala) no cambia al moverse, el cambio de
   transform-origin aplica al instante y la lupa sigue al cursor.
   La escala SÍ transiciona al entrar/salir. */
@media (hover: hover) and (pointer: fine) {
    .ax-product-gallery__main { cursor: zoom-in; }
    .ax-product-gallery__main img {
        transform-origin: var(--ax-zoom-x, 50%) var(--ax-zoom-y, 50%);
        transition: transform var(--ax-motion-base) var(--ax-ease-out);
        will-change: transform;
    }
    .ax-product-gallery__main--zooming img {
        transform: scale(var(--ax-zoom-scale, 2.2));
    }
}
@media (prefers-reduced-motion: reduce) {
    .ax-product-gallery__main img { transition: none; }
    .ax-product-gallery__main--zooming img { transform: none; }
    .ax-product-gallery__main { cursor: default; }
}

/* Strip de miniaturas — auto-fit con tamaño mínimo */
.ax-product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ax-space-3);
}
.ax-product-gallery__thumb {
    display: block;
    aspect-ratio: 1 / 1;
    border: 1.5px solid var(--ax-ink);
    background: var(--ax-paper);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--ax-motion-fast) var(--ax-ease-out),
                box-shadow var(--ax-motion-fast) var(--ax-ease-out),
                border-color var(--ax-motion-fast) var(--ax-ease-out);
}
.ax-product-gallery__thumb picture,
.ax-product-gallery__thumb img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
}
.ax-product-gallery__thumb:hover,
.ax-product-gallery__thumb:focus-visible {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 var(--ax-orange);
    border-color: var(--ax-ink);
}
.ax-product-gallery__thumb--active {
    border-color: var(--ax-orange);
    border-width: 2px;
}


/* =============================================================
   §15. RATING — 5 estrellas + link reseñas
   ============================================================= */
.ax-rating {
    display: inline-flex;
    align-items: center;
    gap: var(--ax-space-3);
    font-family: var(--ax-font-body);
}
.ax-rating__stars {
    position: relative;
    display: inline-block;
    line-height: 1;
    font-size: 18px;
    color: var(--ax-rule);
    letter-spacing: 2px;
}
.ax-rating__stars::before { content: "★★★★★"; }
.ax-rating__stars-fill {
    position: absolute;
    top: 0; left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #F5B400; /* dorado para estrellas — único uso */
    letter-spacing: 2px;
}
.ax-rating__stars-fill::before { content: "★★★★★"; }
.ax-rating__link {
    font-size: 13px;
    color: var(--ax-muted);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--ax-motion-fast) var(--ax-ease-out);
}
.ax-rating__link:hover,
.ax-rating__link:focus-visible {
    color: var(--ax-orange);
}


/* =============================================================
   §16. COLOR SWATCH — selector de color cuadrado (regla N-06 radius 0)
   Tooltip con nombre del color vía attr(data-color-name).
   ============================================================= */
.ax-color-swatches {
    display: inline-flex;
    align-items: center;
    gap: var(--ax-space-2);
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ax-color-swatch {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--ax-ink);
    cursor: pointer;
    transition: transform var(--ax-motion-fast) var(--ax-ease-out),
                box-shadow var(--ax-motion-fast) var(--ax-ease-out);
    flex-shrink: 0;
    background-clip: padding-box;
    background-color: var(--ax-paper);
}

/* Tooltip — caja ink editorial flotando arriba del swatch */
.ax-color-swatch::after {
    content: attr(data-color-name);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ax-ink);
    color: var(--ax-paper);
    font-family: var(--ax-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 10px;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--ax-motion-fast) var(--ax-ease-out),
                bottom var(--ax-motion-fast) var(--ax-ease-out);
    z-index: 5;
}
/* Flechita inferior del tooltip (triángulo apuntando al swatch) */
.ax-color-swatch::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--ax-ink);
    opacity: 0;
    transition: opacity var(--ax-motion-fast) var(--ax-ease-out);
    pointer-events: none;
    z-index: 6;
}

.ax-color-swatch:hover::after,
.ax-color-swatch:focus-visible::after {
    opacity: 1;
    bottom: calc(100% + 10px);
}
.ax-color-swatch:hover::before,
.ax-color-swatch:focus-visible::before {
    opacity: 1;
    bottom: calc(100% + 4px);
}

.ax-color-swatch:hover,
.ax-color-swatch:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ax-orange);
}

.ax-color-swatch--active {
    box-shadow: 0 0 0 3px var(--ax-orange);
}
.ax-color-swatch--active:hover,
.ax-color-swatch--active:focus-visible {
    box-shadow: 0 0 0 3px var(--ax-orange), 4px 4px 0 var(--ax-orange);
}

/* Limpiar selección — link sutil bajo los swatches. JS lo muestra solo
   cuando hay un color activo (toggle del atributo hidden). */
.ax-color-clear {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    /* dentro del .ax-spec-list__value--with-swatch (flex + wrap) esto fuerza
       al link a su propia línea, debajo de la fila de swatches */
    flex-basis: 100%;
    gap: 5px;
    margin-top: var(--ax-space-2);
    padding: 2px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--ax-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ax-muted);
    text-decoration: none;
    line-height: 1.2;
    transition: color var(--ax-motion-fast) var(--ax-ease-out);
}
.ax-color-clear[hidden] { display: none; }
.ax-color-clear:hover,
.ax-color-clear:focus-visible {
    color: var(--ax-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ax-color-clear__x {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}


/* =============================================================
   §17. TRUST BADGE — logo de confianza (envíos, garantías)
   ============================================================= */
.ax-trust-badge {
    display: block;
    max-width: 320px;
    margin: var(--ax-space-4) auto 0;
    justify-self: center; /* centra dentro del grid item (.ax-hero-split__media) */
}
.ax-trust-badge img { display: block; width: 100%; height: auto; }


/* =============================================================
   §14. ACCESIBILIDAD — focus visible, motion, contrast
   ============================================================= */
.ax-section :focus-visible {
    outline: 3px solid var(--ax-orange);
    outline-offset: 3px;
    border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
    .ax-section *,
    .ax-section *::before,
    .ax-section *::after {
        transition-duration: 0ms !important;
        animation-duration: 0ms !important;
    }
}


/* =============================================================
   §17b. COLOR CHIP — trigger compacto que abre el color sheet.
   Estructura: [▪ swatch][ Color: NOMBRE ][▾]
   Escala a N colores: el sheet maneja la grilla completa.
   ============================================================= */
.ax-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: transparent;
    border: 1.5px solid var(--ax-ink);
    color: var(--ax-ink);
    font-family: var(--ax-font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: 0;
    min-height: 44px;
    line-height: 1.2;
    transition: background var(--ax-motion-fast) var(--ax-ease-out),
                color var(--ax-motion-fast) var(--ax-ease-out),
                transform var(--ax-motion-fast) var(--ax-ease-out);
    text-decoration: none;
}
.ax-color-chip:hover,
.ax-color-chip:focus-visible {
    background: var(--ax-ink);
    color: var(--ax-paper);
}
.ax-color-chip__swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1.5px solid currentColor;
    background-color: var(--ax-paper);
    flex-shrink: 0;
    background-clip: padding-box;
}
.ax-color-chip__label {
    flex: 1;
    text-align: left;
    color: inherit;
    font-weight: 400;
}
.ax-color-chip__label strong {
    font-weight: 700;
}
.ax-color-chip__caret {
    font-size: 11px;
    color: var(--ax-orange);
    flex-shrink: 0;
    line-height: 1;
}
.ax-color-chip:hover .ax-color-chip__caret,
.ax-color-chip:focus-visible .ax-color-chip__caret {
    color: var(--ax-paper);
}

/* Variante on-dark (uso dentro de .ax-sticky-bar de fondo ink) */
.ax-color-chip--on-dark {
    border-color: var(--ax-paper);
    color: var(--ax-paper);
}
.ax-color-chip--on-dark:hover,
.ax-color-chip--on-dark:focus-visible {
    background: var(--ax-paper);
    color: var(--ax-ink);
}
.ax-color-chip--on-dark:hover .ax-color-chip__caret,
.ax-color-chip--on-dark:focus-visible .ax-color-chip__caret {
    color: var(--ax-orange);
}

/* Variante icon-only — solo muestra el swatch (sin texto ni caret).
   Ideal para sticky bars donde el espacio es premium.
   Mantiene tap target 44x44 (regla a11y). */
.ax-color-chip--icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    gap: 0;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.ax-color-chip--icon .ax-color-chip__label,
.ax-color-chip--icon .ax-color-chip__caret {
    display: none;
}
.ax-color-chip--icon .ax-color-chip__swatch {
    width: 22px;
    height: 22px;
}


/* =============================================================
   §17c. COLOR SHEET — drawer mobile / modal desktop con grilla
   de TODOS los colores disponibles. Reusable entre triggers
   (sticky bar chip + hero "+N colores" chip).
   ============================================================= */
.ax-color-sheet {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}
.ax-color-sheet[hidden] { display: none; }
.ax-color-sheet--open { display: flex; }

.ax-color-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 37, 48, 0.72);   /* ink @ 72% */
    cursor: pointer;
    animation: ax-fade-in 200ms var(--ax-ease-out);
}

.ax-color-sheet__panel {
    position: relative;
    background: var(--ax-paper);
    color: var(--ax-ink);
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    max-height: 85vh;
}

.ax-color-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ax-space-3);
    padding: 16px 20px;
    border-bottom: 1px solid var(--ax-rule);
    flex-shrink: 0;
}
.ax-color-sheet__title {
    font-family: var(--ax-font-display);
    font-weight: 400;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--ax-ink);
    margin: 0;
}
.ax-color-sheet__close {
    background: transparent;
    border: 1.5px solid var(--ax-ink);
    color: var(--ax-ink);
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    border-radius: 0;
    padding: 0;
    display: grid;
    place-items: center;
    transition: background var(--ax-motion-fast) var(--ax-ease-out),
                color var(--ax-motion-fast) var(--ax-ease-out);
    font-family: var(--ax-font-body);
}
.ax-color-sheet__close:hover,
.ax-color-sheet__close:focus-visible {
    background: var(--ax-ink);
    color: var(--ax-paper);
}

.ax-color-sheet__grid {
    list-style: none;
    margin: 0;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 20px 12px;
    overflow-y: auto;
    flex: 1;
}
.ax-color-sheet__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.ax-color-sheet__item .ax-color-swatch {
    width: 52px;
    height: 52px;
}
/* Tooltip del swatch oculto dentro del sheet (label visible debajo) */
.ax-color-sheet__grid .ax-color-swatch::after,
.ax-color-sheet__grid .ax-color-swatch::before {
    display: none;
}
.ax-color-sheet__name {
    font-family: var(--ax-font-body);
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    color: var(--ax-ink);
    max-width: 100%;
    word-break: break-word;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Mobile: bottom sheet (desliza desde abajo) */
@media (max-width: 767px) {
    .ax-color-sheet--open { align-items: flex-end; }
    .ax-color-sheet__panel {
        border-top: 3px solid var(--ax-orange);
        animation: ax-slide-up 280ms var(--ax-ease-out);
    }
}

/* Desktop: modal centrado con sombra offset orange */
@media (min-width: 768px) {
    .ax-color-sheet--open {
        align-items: center;
        justify-content: center;
        padding: 32px;
    }
    .ax-color-sheet__panel {
        max-width: 640px;
        border: 2px solid var(--ax-ink);
        box-shadow: 10px 10px 0 var(--ax-orange);
        animation: ax-fade-scale-in 240ms var(--ax-ease-out);
    }
}

@keyframes ax-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes ax-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes ax-fade-scale-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .ax-color-sheet__panel,
    .ax-color-sheet__backdrop {
        animation: none !important;
    }
}


/* =============================================================
   §18. STICKY CTA BAR — barra flotante mobile
   Aparece solo en mobile cuando el CTA principal del hero
   queda fuera del viewport (IntersectionObserver en JS).
   Contiene color picker compacto + CTA WhatsApp.
   ============================================================= */
.ax-sticky-bar { display: none; }
.ax-sticky-bar__colors {
    display: flex;
    gap: var(--ax-space-2);
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ax-sticky-bar__cta { flex: 1; min-width: 0; }

@media (max-width: 767px) {
    .ax-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--ax-ink);
        color: var(--ax-paper);
        padding: 12px 16px;
        gap: var(--ax-space-3);
        align-items: center;
        border-top: 3px solid var(--ax-orange);
        transform: translateY(0);
        opacity: 1;
        transition: transform var(--ax-motion-base) var(--ax-ease-out),
                    opacity var(--ax-motion-fast) var(--ax-ease-out);
        will-change: transform;
    }
    .ax-sticky-bar--hidden {
        transform: translateY(110%);
        opacity: 0;
        pointer-events: none;
    }

    /* Reserva espacio al final del body para que la barra no tape el footer */
    body.ax-has-sticky-bar { padding-bottom: 80px; }

    /* Swatches dentro de la barra oscura — borde paper + tooltip invertido */
    .ax-sticky-bar .ax-color-swatch {
        border-color: var(--ax-paper);
        width: 32px;
        height: 32px;
    }
    .ax-sticky-bar .ax-color-swatch::after {
        background: var(--ax-paper);
        color: var(--ax-ink);
    }
    .ax-sticky-bar .ax-color-swatch::before {
        border-top-color: var(--ax-paper);
    }
    .ax-sticky-bar .ax-color-swatch--active {
        box-shadow: 0 0 0 3px var(--ax-orange);
    }

    /* CTA WhatsApp compacto dentro del sticky bar */
    .ax-sticky-bar__cta .ax-btn {
        width: 100%;
        padding: 12px 14px;
        min-height: 44px;
        font-size: 12.5px;
        letter-spacing: 0.04em;
        box-shadow: 0 4px 0 var(--ax-whatsapp-deep);
    }
    .ax-sticky-bar__cta .ax-btn:active {
        transform: translateY(2px);
        box-shadow: 0 2px 0 var(--ax-whatsapp-deep);
    }

    /* Chip de color en sticky bar — muestra "Color: [swatch] ▾".
       El prefijo "Color:" va antes del swatch (order -1) y se oculta
       el nombre dinámico del color para mantenerlo compacto. */
    .ax-sticky-bar .ax-color-chip {
        flex-shrink: 0;
        padding: 8px 12px;
        gap: 8px;
    }
    .ax-sticky-bar .ax-color-chip__label {
        order: -1;          /* "Color:" antes del swatch */
        flex: 0 0 auto;     /* no expandir */
    }
    .ax-sticky-bar .ax-color-chip__label strong {
        display: none;      /* ocultar el nombre ("Blanco") */
    }
}


/* =============================================================
   §19. UTILIDADES MÍNIMAS — solo lo necesario
   ============================================================= */
.ax-screen-reader-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Scroll-lock que preserva posición (usado por el color sheet).
   El JS guarda scrollY, aplica top:-scrollY al body y restaura con
   scrollTo(0, scrollY) al cerrar. Fijar el body evita el salto al
   top que provoca overflow:hidden en <html> en navegadores mobile. */
body.ax-scroll-locked {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}
