/* ==========================================================================
   Tela de malla para hospital — componentes propios de
   /telas/tela-de-malla-para-hospital-medico
   Arletex Design System v3.5 · prefijo `mh-`
   Depende de landing-producto.css (tokens --ax-*, hero, sticky, cross,
   variant-chips, ax-scroller) y de tergal-catalan.css (.tc-specs-grid).
   --------------------------------------------------------------------------
   Mapa de registros (variación §11.6):
     Hero ............ @dossier   · Dossier-stack     · Top-rule    (global)
     .mh-rollos ...... @manifest  · NumberProtagonist · Bleed-edge  · rule-draw
     .ax-cross ....... @showcase  · LabelLateral      · Full-frame  (global)
     Tab Descripción . @technical · LabelLateral      · Side-rule   (tarjeta-beneficio)
     .mh-usos ........ @gallery   · IndexRow          · ax-scroller · lift-orange
     .mh-faq ......... @dossier   · RunInHeadline     · Top-rule    · side-shift

   Reglas duras: radius 0, sombras sólidas sin blur, nada visible <14px,
   tap-size >=44px, prefers-reduced-motion.
   ========================================================================== */

/* Anclas por debajo del header fixed (113/104/158px según breakpoint). */
.ax-section[id] { scroll-margin-top: 116px; }


/* ==========================================================================
   Hero — subtítulos H2 de la ficha (conservan los H2 SEO del legacy)
   ========================================================================== */

.mh-hero-sub {
    margin: var(--ax-space-6, 24px) 0 var(--ax-space-2, 8px);
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: clamp(0.86rem, 1.1vw, 1rem) !important;  /* style.css fuerza h2 a 30px !important */
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--ax-ink, #1F2530);
}

/* Primer H2 del hero, pegado al H1 (conserva el «Tela De Cortina De Malla Médica»). */
.mh-hero-sub--lead {
    margin-top: var(--ax-space-3, 12px);
    color: var(--ax-orange-deep, #B0401A);
}

/* Muestrario del hero: 1 color. El hint dice qué hace el dot. */
.mh-swatch-hint {
    display: block;
    margin: 0 0 8px;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    color: var(--ax-muted, #6E6A60);
}

.mh-swatch-hint strong { color: var(--ax-ink, #1F2530); }

/* El blanco necesita borde propio: sobre fondo blanco el swatch
   desaparecería sin él. */
.mh-swatch--blanco { box-shadow: inset 0 0 0 1px var(--ax-rule, #E5E1D7); }

/* Enlace de composición en el hero: ink + subrayado naranja (no azul Bootstrap). */
.ax-spec-list__value a {
    color: var(--ax-ink, #1F2530);
    text-decoration: underline;
    text-decoration-color: var(--ax-orange, #F15A29);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* Nota bajo los chips de presentación (140 cm / 59 cm). */
.mh-variant-note {
    margin: 8px 0 0;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ax-muted, #6E6A60);
}

.mh-variant-note strong { color: var(--ax-ink, #1F2530); }


/* ==========================================================================
   .mh-rollos — banda ink con las dos presentaciones del rollo
   Registro @manifest · Apertura NumberProtagonist · Marco Bleed-edge
   El ancho es la cifra protagonista: 140 cm (cortina completa) y
   59 cm (franja de malla del cabezal). Sustituye la tabla del legacy.
   ========================================================================== */

.mh-rollos {
    background: var(--ax-ink, #1F2530);
    color: var(--ax-white, #FFFFFF);
    padding: clamp(48px, 7vw, 80px) 0;
}

.mh-rollos__head {
    max-width: 56ch;
    margin: 0 0 clamp(28px, 4vw, 44px);
}

.mh-rollos__eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 12px;
    background: var(--ax-orange, #F15A29);
    color: var(--ax-ink, #1F2530);
    font-family: var(--ax-font-mono, 'JetBrains Mono', ui-monospace, monospace);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.mh-rollos__title {
    margin: 0;
    font-family: var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    font-size: clamp(1.7rem, 4.2vw, 2.9rem) !important;  /* style.css fuerza h2 a 30px !important */
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--ax-white, #FFFFFF);
}

.mh-rollos__title em {
    font-family: var(--ax-font-accent, 'Fraunces', Georgia, serif);
    font-style: italic;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0;
    color: var(--ax-orange, #F15A29);
}

.mh-rollos__note {
    margin: clamp(14px, 2vw, 18px) 0 0;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: clamp(0.98rem, 1.3vw, 1.08rem);
    line-height: 1.6;
    color: var(--ax-muted-dark, #A8A39A);
}

.mh-rollos__note strong { color: var(--ax-white, #FFFFFF); }

.mh-rollos__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .mh-rollos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.mh-rollos__card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 3.2vw, 32px) clamp(18px, 2.6vw, 28px) clamp(22px, 3vw, 28px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

/* rule-draw: la regla naranja crece al pasar el cursor por la ficha. */
.mh-rollos__card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: var(--ax-orange, #F15A29);
    transition: width 320ms cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) {
    .mh-rollos__card:hover::after,
    .mh-rollos__card:focus-within::after { width: 100%; }
}

/* El protagonista es el ancho; el kicker conserva el nombre del
   producto dentro del mismo <h3> (SEO intacto). */
.mh-rollos__name {
    margin: 0;
    font-size: 16px !important;  /* style.css fuerza h3 a 25px en móvil */
    font-weight: 400;
    line-height: 1;
}

.mh-rollos__kicker {
    display: block;
    margin: 0 0 8px;
    font-family: var(--ax-font-mono, 'JetBrains Mono', ui-monospace, monospace);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--ax-muted-dark, #A8A39A);
}

.mh-rollos__value {
    display: block;
    font-family: var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    font-size: clamp(3rem, 8vw, 4.4rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ax-white, #FFFFFF);
}

.mh-rollos__unit {
    margin-left: 0.12em;
    font-size: 0.34em;
    letter-spacing: 0.08em;
    color: var(--ax-orange, #F15A29);
}

.mh-rollos__label {
    display: block;
    margin-top: 12px;
    font-family: var(--ax-font-mono, 'JetBrains Mono', ui-monospace, monospace);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--ax-muted-dark, #A8A39A);
}

.mh-rollos__data {
    margin: clamp(18px, 2.6vw, 24px) 0 clamp(20px, 2.8vw, 26px);
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.mh-rollos__data li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: 14px;
    line-height: 1.4;
    color: var(--ax-muted-dark, #A8A39A);
}

.mh-rollos__data strong {
    font-weight: 700;
    text-align: right;
    color: var(--ax-white, #FFFFFF);
}

.mh-rollos__cta { margin-top: auto; }


/* ==========================================================================
   .mh-anatomia — dónde va la malla dentro de la cortina de hospital.
   Franja clara bajo la banda ink: explica el producto a quien llega
   buscando «cortina médica» sin saber que la malla es solo el cabezal.
   Registro @technical · Apertura LabelLateral · Marco Double-rule.
   ========================================================================== */

.mh-anatomia {
    background: var(--ax-paper, #FAF6EE);
    padding: clamp(44px, 6vw, 72px) 0;
    border-bottom: 1px solid var(--ax-rule, #E5E1D7);
}

.mh-anatomia__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 4vw, 44px);
    align-items: start;
}

@media (min-width: 940px) {
    .mh-anatomia__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

.mh-anatomia__label {
    display: block;
    margin: 0 0 10px;
    font-family: var(--ax-font-mono, 'JetBrains Mono', ui-monospace, monospace);
    font-size: clamp(0.86rem, 1.1vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--ax-ink, #1F2530);
}

.mh-anatomia__title {
    margin: 0 0 clamp(14px, 2vw, 18px);
    font-family: var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    font-size: clamp(1.6rem, 3.6vw, 2.5rem) !important;  /* style.css fuerza h2 a 30px */
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.08;
    text-transform: uppercase;
    color: var(--ax-ink, #1F2530);
}

.mh-anatomia__title em {
    font-family: var(--ax-font-accent, 'Fraunces', Georgia, serif);
    font-style: italic;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0;
    color: var(--ax-orange, #F15A29);
}

.mh-anatomia__text {
    margin: 0;
    max-width: 58ch;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: clamp(0.98rem, 1.3vw, 1.06rem);
    line-height: 1.65;
    color: var(--ax-muted, #6E6A60);
}

.mh-anatomia__text strong { color: var(--ax-ink, #1F2530); }

.mh-anatomia__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: mh-step;
    border-top: 2px solid var(--ax-ink, #1F2530);
}

.mh-anatomia__step {
    counter-increment: mh-step;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: clamp(14px, 2vw, 20px);
    padding: clamp(16px, 2.4vw, 22px) 0;
    border-bottom: 1px solid var(--ax-rule, #E5E1D7);
}

.mh-anatomia__step::before {
    content: counter(mh-step, decimal-leading-zero);
    font-family: var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1;
    color: var(--ax-orange, #F15A29);
}

.mh-anatomia__step-title {
    display: block;
    margin: 0 0 6px;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: clamp(0.98rem, 1.3vw, 1.08rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--ax-ink, #1F2530);
}

.mh-anatomia__step-text {
    margin: 0;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ax-muted, #6E6A60);
}

.mh-anatomia__step-text strong { color: var(--ax-ink, #1F2530); }


/* ==========================================================================
   Tab Descripción — ficha técnica sobre .tarjeta-beneficio (global)
   ========================================================================== */

/* Enlace dentro de la ficha técnica: ink + subrayado naranja (no azul Bootstrap). */
.product-infor-tab-content .tc-spec-value a {
    color: var(--ax-ink, #1F2530);
    text-decoration: underline;
    text-decoration-color: var(--ax-orange, #F15A29);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* tergal-catalan.css deja .tc-spec-label en 11px; piso de legibilidad 14px. */
.product-infor-tab-content .tc-spec-label {
    font-size: 14px;
    color: var(--ax-ink, #1F2530);
}


/* ==========================================================================
   .mh-usos — carrusel de usos: riel scroll-snap global (.ax-scroller,
   landing-producto.css §26 + ax-scroller.js). Bastidor ink con sombra
   sólida, hover lift-orange y pie en Anton. Funciona dentro del tab
   oculto (no mide al iniciar).
   ========================================================================== */

/* Las flechas suben la media del pie para quedar centradas en la foto. */
.mh-usos { --ax-scroller-nav-top: calc(50% - 22px); margin: 32px 0 8px; }

.mh-media { margin: 0; }

.mh-media__box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: var(--mh-ratio, 4 / 3);
    background: var(--ax-white, #FFFFFF);
    border: 2px solid var(--ax-ink, #1F2530);
    box-shadow: 8px 8px 0 var(--ax-ink, #1F2530);
    overflow: hidden;
    max-width: 100%;
}

.mh-media--1-1 { --mh-ratio: 1 / 1; }

.mh-media__box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mh-usos__media { margin: 0; }

.mh-usos__media .mh-media__box {
    box-shadow: 4px 4px 0 var(--ax-ink, #1F2530);
    transition:
        transform var(--ax-motion-base, 240ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1)),
        box-shadow var(--ax-motion-base, 240ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1));
}

/* lift-orange, el gesto canónico del catálogo. */
.mh-usos__media .mh-media__box:hover,
.mh-usos__media .mh-media__box:focus-within {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--ax-orange, #F15A29);
}

.mh-usos__label {
    margin: 14px 0 0;
    font-family: var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    font-weight: 400;
    font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.1rem) !important;  /* style.css: h4 global */
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    color: var(--ax-ink, #1F2530);
}


/* ==========================================================================
   .mh-faq — acordeón ax-faq.js (data-ax-faq), exclusivo por grupo.
   Sin JS, <details> nativo sigue funcionando (SEO intacto).
   ========================================================================== */

.mh-faqsec__grid {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: start;
}

@media (min-width: 940px) {
    .mh-faqsec__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
    .mh-faqsec__aside { position: sticky; top: 130px; }
}

.mh-faqsec__title { margin: 0.6rem 0 0; }

.mh-faqsec__note {
    margin: clamp(1rem, 2.4vw, 1.4rem) 0;
    max-width: 42ch;
    font-family: var(--ax-font-accent);
    font-style: italic;
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    line-height: 1.5;
    color: var(--ax-muted);
}

.mh-faq { display: flex; flex-direction: column; gap: 12px; }

.mh-faq__item {
    background: var(--ax-white);
    border: 1.5px solid var(--ax-rule);
    transition: border-color var(--ax-motion-fast) var(--ax-ease-out),
                box-shadow var(--ax-motion-fast) var(--ax-ease-out);
}

.mh-faq__item:hover { border-color: var(--ax-ink); }

.mh-faq__item[open] {
    border-color: var(--ax-ink);
    border-left: 4px solid var(--ax-orange);
    box-shadow: 5px 5px 0 var(--ax-ink);
}

.mh-faq__q {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 44px;
    padding: clamp(13px, 1.8vw, 17px) clamp(16px, 2.2vw, 22px);
    /* side-shift */
    transition: padding-left var(--ax-motion-fast) var(--ax-ease-out);
}

.mh-faq__q::-webkit-details-marker { display: none; }
.mh-faq__q::marker { content: ""; }
.mh-faq__item:hover .mh-faq__q { padding-left: calc(clamp(16px, 2.2vw, 22px) + 5px); }

.mh-faq__q:focus-visible {
    outline: 3px solid var(--ax-purple, #6A52A2);
    outline-offset: 2px;
}

.mh-faq__q-text {
    flex: 1;
    margin: 0;
    font-family: var(--ax-font-body);
    font-weight: 700;
    font-size: clamp(0.98rem, 1.4vw, 1.12rem) !important;  /* style.css fuerza h3 a 25px en móvil */
    line-height: 1.35;
    color: var(--ax-ink);
    transition: color var(--ax-motion-fast) var(--ax-ease-out);
}

.mh-faq__q::after {
    content: '+';
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    font-family: var(--ax-font-display);
    font-size: 1.35rem;
    line-height: 1;
    background: var(--ax-cream);
    color: var(--ax-orange-deep, #B0401A);
    border: 1.5px solid var(--ax-ink);
    transition: transform var(--ax-motion-fast) var(--ax-ease-out),
                background var(--ax-motion-fast) var(--ax-ease-out),
                color var(--ax-motion-fast) var(--ax-ease-out);
}

.mh-faq__item[open] .mh-faq__q-text { color: var(--ax-orange-deep, #B0401A); }

.mh-faq__item[open] .mh-faq__q::after {
    transform: rotate(45deg);
    background: var(--ax-orange);
    color: var(--ax-paper);
    border-color: var(--ax-orange);
}

.mh-faq__a {
    margin: 0;
    max-width: 72ch;
    padding: 0 clamp(16px, 2.2vw, 22px) clamp(16px, 2.2vw, 20px);
    font-family: var(--ax-font-body);
    font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
    line-height: 1.65;
    color: var(--ax-muted);
}

.mh-faq__a strong { color: var(--ax-ink); }

.mh-faq__a a {
    color: var(--ax-ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--ax-orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}


/* ==========================================================================
   Motion — prefers-reduced-motion (regla dura)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .mh-usos__media .mh-media__box,
    .mh-rollos__card::after,
    .mh-faq__item,
    .mh-faq__q,
    .mh-faq__q-text,
    .mh-faq__q::after {
        transition: none !important;
    }
    .mh-usos__media .mh-media__box:hover,
    .mh-usos__media .mh-media__box:focus-within {
        transform: none;
        box-shadow: 7px 7px 0 var(--ax-orange, #F15A29);
    }
}
