/* ==========================================================================
   Tela tusor — componentes propios de /telas/tusor
   Arletex Design System v3.5 · prefijo `tus-`
   Depende de landing-producto.css (tokens --ax-*, hero, sticky bar,
   ax-color-swatch, ax-cross) y de tergal-catalan.css (.tc-specs-grid de
   la ficha técnica del tab Descripción).
   --------------------------------------------------------------------------
   Mapa de registros (variación §11.6):
     Hero ............. @dossier   · Dossier-stack  · Top-rule    (global)
     .ax-cross ........ @showcase  · LabelLateral   · Full-frame  (global)
     .tus-weave ....... @technical · MegaTextBg     · Crop-marks  · fondo ink
     Ficha técnica .... @technical · LabelLateral   · Side-rule   (tarjeta-beneficio)
     .tus-usos ........ @gallery   · IndexRow       · Brick-stack · lift-orange
     .tus-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],
.tus-weave[id] { scroll-margin-top: 116px; }


/* ==========================================================================
   Hero — H2 SEO del legacy dentro de la ficha
   ========================================================================== */

.tus-hero-kicker {
    margin: 0.5rem 0 0;
    font-family: var(--ax-font-accent, 'Fraunces', Georgia, serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem) !important;  /* style.css fuerza h2 a 30px !important */
    line-height: 1.3;
    text-transform: none;
    color: var(--ax-orange-deep, #B0401A);
}

.tus-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);
}

.product-infor-tab-content .tc-spec-value a,
.product-infor-tab-content .descripcion-ventaja a,
.tus-hero .ax-body a,
.tus-hero .ax-spec-list__value a,
.tus-weave__p a {
    color: inherit;
    font-weight: 700;
    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);
}


/* ==========================================================================
   .tus-weave — "Rollos de tela tusor": texto + close-up de la trama
   Registro @technical · Apertura MegaTextBg · Marco Crop-marks · fondo ink
   Firma de página: muestra de tafetán (trama y urdimbre) junto al eyebrow.
   ========================================================================== */

.tus-weave {
    position: relative;
    overflow: hidden;
    background: var(--ax-ink, #1F2530);
    color: var(--ax-paper, #FAF6EE);
    padding: clamp(40px, 5vw, 64px) 0;
    border-top: 4px solid var(--ax-orange, #F15A29);
}

/* MegaTextBg: "TUSOR" gigante, casi imperceptible, detrás del texto. */
.tus-weave::before {
    content: "TUSOR";
    position: absolute;
    left: -0.04em;
    bottom: -0.2em;
    font-family: var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    font-size: clamp(6rem, 17vw, 15rem);
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--ax-paper, #FAF6EE);
    opacity: 0.03;
    pointer-events: none;
    white-space: nowrap;
}

.tus-weave .ax-container { position: relative; }

.tus-weave__grid {
    display: grid;
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
}

@media (min-width: 992px) {
    .tus-weave__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

.tus-weave__eyebrow-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
}

/* Muestra de tafetán: hilos cruzados en crudo sobre ink (decorativa). */
.tus-weave__swatch {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: var(--ax-ink, #1F2530);
    background-image:
        repeating-linear-gradient(0deg, #F1F0DE 0 3px, transparent 3px 6px),
        repeating-linear-gradient(90deg, rgba(241, 240, 222, 0.55) 0 3px, transparent 3px 6px);
    border: 1.5px solid var(--ax-paper, #FAF6EE);
}

.tus-weave__eyebrow {
    margin: 0;
    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;
    text-transform: uppercase;
    color: var(--ax-yellow, #FFEB3B);
}

.tus-weave__title {
    margin: 0 0 20px;
    font-family: var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    font-size: clamp(2.1rem, 5.4vw, 3.8rem) !important;  /* style.css fuerza h2 a 30px !important */
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--ax-paper, #FAF6EE);
}

.tus-weave__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);
}

.tus-weave__p {
    max-width: 62ch;
    margin: 0 0 14px;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: clamp(0.98rem, 1.3vw, 1.08rem);
    line-height: 1.7;
    color: var(--ax-muted-dark, #A8A39A);
}

.tus-weave__p strong,
.tus-weave__p a { color: var(--ax-paper, #FAF6EE); }

/* Tres datos del rollo en fila, separados por reglas verticales. */
.tus-weave__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1.5px solid rgba(250, 246, 238, 0.25);
    border-bottom: 1.5px solid rgba(250, 246, 238, 0.25);
}

.tus-weave__facts li {
    padding: 14px 12px;
    border-left: 1.5px solid rgba(250, 246, 238, 0.25);
}

.tus-weave__facts li:first-child { border-left: 0; padding-left: 0; }

.tus-weave__num {
    display: block;
    font-family: var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    line-height: 1;
    text-transform: uppercase;
    color: var(--ax-paper, #FAF6EE);
}

.tus-weave__label {
    display: block;
    margin-top: 6px;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ax-muted-dark, #A8A39A);
}

.tus-weave__cta { margin-top: 24px; }

/* Close-up de la trama con crop-marks en las esquinas. */
.tus-weave__figure {
    margin: 0;
    max-width: 440px;
    width: 100%;
    justify-self: center;
}

.tus-weave__frame {
    position: relative;
    padding: 14px;
}

.tus-weave__link {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1.5px solid rgba(250, 246, 238, 0.35);
}

.tus-weave__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ax-motion-base, 240ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1));
}

.tus-weave__link:hover .tus-weave__img,
.tus-weave__link:focus-visible .tus-weave__img { transform: scale(1.04); }

.tus-weave__link:focus-visible {
    outline: 3px solid var(--ax-orange, #F15A29);
    outline-offset: 3px;
}

.tus-weave__crop {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--ax-orange, #F15A29);
    border-style: solid;
    border-width: 0;
}

.tus-weave__crop--tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.tus-weave__crop--tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.tus-weave__crop--bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.tus-weave__crop--br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }

.tus-weave__caption {
    margin: 10px 14px 0;
    font-family: var(--ax-font-accent, 'Fraunces', Georgia, serif);
    font-style: italic;
    font-size: 15px;
    line-height: 1.4;
    color: var(--ax-muted-dark, #A8A39A);
}


/* ==========================================================================
   .tus-usos — "Para qué sirve la tela tusor" (tab Usos, 3 fotos)
   Registro @gallery · Marco Brick-stack · Hover lift-orange
   Pie SIEMPRE debajo de la foto — nunca cambia el alto de la ficha.
   ========================================================================== */

.tus-usos__title {
    margin: 0 0 8px;
    font-family: var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    font-size: clamp(1.6rem, 3.4vw, 2.4rem) !important;  /* style.css fuerza h3 */
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--ax-ink, #1F2530);
}

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

.tus-usos {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin: 28px 0 8px;
    padding: 0;
    list-style: none;
    counter-reset: tus-uso;
}

@media (min-width: 576px) {
    .tus-usos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .tus-usos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tus-usos__item {
    display: flex;
    flex-direction: column;
    background: var(--ax-white, #FFFFFF);
    border: 2px solid var(--ax-ink, #1F2530);
    box-shadow: 5px 5px 0 var(--ax-ink, #1F2530);
    counter-increment: tus-uso;
    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));
}

@media (hover: hover) {
    .tus-usos__item:hover {
        transform: translate(-3px, -3px);
        box-shadow: 8px 8px 0 var(--ax-orange, #F15A29);
    }
}

.tus-usos__media {
    position: relative;
    margin: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 2px solid var(--ax-ink, #1F2530);
}

/* IndexRow: número de uso en tab ink sobre la esquina de la foto. */
.tus-usos__media::before {
    content: counter(tus-uso, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 6px 10px;
    background: var(--ax-ink, #1F2530);
    color: var(--ax-paper, #FAF6EE);
    font-family: var(--ax-font-mono, 'JetBrains Mono', ui-monospace, monospace);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

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

.tus-usos__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 16px 18px 20px;
}

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

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


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

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

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

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

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

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

.tus-faq__item {
    background: var(--ax-white, #FFFFFF);
    border: 1.5px solid var(--ax-rule, #D8D2C6);
    transition: border-color var(--ax-motion-fast, 160ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1)),
                box-shadow var(--ax-motion-fast, 160ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1));
}

.tus-faq__item:hover { border-color: var(--ax-ink, #1F2530); }

.tus-faq__item[open] {
    border-color: var(--ax-ink, #1F2530);
    border-left: 4px solid var(--ax-orange, #F15A29);
    box-shadow: 5px 5px 0 var(--ax-ink, #1F2530);
}

.tus-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, 160ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1));
}

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

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

.tus-faq__q-text {
    flex: 1;
    margin: 0;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    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, #1F2530);
    transition: color var(--ax-motion-fast, 160ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1));
}

.tus-faq__q::after {
    content: '+';
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    font-family: var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    font-size: 1.35rem;
    line-height: 1;
    background: var(--ax-cream, #F2EDE4);
    color: var(--ax-orange-deep, #B0401A);
    border: 1.5px solid var(--ax-ink, #1F2530);
    transition: transform var(--ax-motion-fast, 160ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1)),
                background var(--ax-motion-fast, 160ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1)),
                color var(--ax-motion-fast, 160ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1));
}

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

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

.tus-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, 'Lato', system-ui, sans-serif);
    font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
    line-height: 1.65;
    color: var(--ax-muted, #6E6A60);
}

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

.tus-faq__a a {
    color: var(--ax-ink, #1F2530);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--ax-orange, #F15A29);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}


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

@media (prefers-reduced-motion: reduce) {
    .tus-weave__img,
    .tus-usos__item,
    .tus-faq__item,
    .tus-faq__q,
    .tus-faq__q-text,
    .tus-faq__q::after {
        transition: none !important;
    }
    .tus-weave__link:hover .tus-weave__img,
    .tus-weave__link:focus-visible .tus-weave__img,
    .tus-usos__item:hover {
        transform: none;
    }
}
