/* ==========================================================================
   Manta de Colores — componentes propios de /telas/manta/colores
   Arletex Design System v3.5 · prefijo `mc-`
   Depende de landing-producto.css (tokens --ax-*, hero, sticky, sheet, cross).
   --------------------------------------------------------------------------
   Mapa de registros (variación §11.6):
     Hero ............ @dossier   · Dossier-stack     · Top-rule     (global)
     .mc-promos ...... @showcase  · RunInHeadline     · Crop-marks   · ghost-fill
     .ax-cross ....... @showcase  · LabelLateral      · Full-frame   (global)
     Tab Descripción . @technical · LabelLateral      · Side-rule    (tarjeta-beneficio)
     .mc-uses ........ @gallery   · IndexRow          · Bleed-edge   · zoom de foto
     .mc-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ítulo H2 de la ficha (conserva el H2 SEO del legacy)
   ========================================================================== */

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

/* 21 swatches: la fila se parte en varias líneas sin apretar el tap-size. */
.mc-hero .ax-color-swatches { flex-wrap: wrap; }

/* ==========================================================================
   .mc-promos — banners legacy (rollos + Fiubags) con Crop-marks
   ========================================================================== */

.mc-promos {
    background: var(--ax-white, #FFFFFF);
    padding: clamp(56px, 8vw, 88px) 0;
}

.mc-promos__list {
    display: grid;
    gap: clamp(40px, 6vw, 64px);
}

.mc-promos__title {
    margin: 0 0 clamp(16px, 2.4vw, 24px);
    max-width: 38ch;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: clamp(1.25rem, 2.4vw, 1.75rem) !important;  /* style.css fuerza h2 a 30px !important */
    font-weight: 700;
    line-height: 1.3;
    color: var(--ax-ink, #1F2530);
}

.mc-promos__title a {
    color: var(--ax-orange-deep, #B0401A);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.mc-promos__title i {
    color: var(--ax-orange, #F15A29);
    font-size: 0.8em;
}

/* Marco de corte: cuatro escuadras fuera de la imagen. */
.mc-promos__frame {
    position: relative;
    display: block;
    padding: 14px;
}

.mc-promos__frame::before,
.mc-promos__frame::after,
.mc-promos__crop::before,
.mc-promos__crop::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--ax-ink, #1F2530);
    border-style: solid;
    pointer-events: none;
}

.mc-promos__frame::before { top: 0;    left: 0;  border-width: 2px 0 0 2px; }
.mc-promos__frame::after  { top: 0;    right: 0; border-width: 2px 2px 0 0; }
.mc-promos__crop::before  { bottom: 0; left: 0;  border-width: 0 0 2px 2px; }
.mc-promos__crop::after   { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.mc-promos__frame img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--ax-ink, #1F2530);
}

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

.mc-promos__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: var(--ax-space-4, 16px);
    padding: 10px 20px;
    border: 2px solid var(--ax-ink, #1F2530);
    background: transparent;
    color: var(--ax-ink, #1F2530);
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

/* ghost-fill */
.mc-promos__link:hover,
.mc-promos__link:focus-visible {
    background: var(--ax-ink, #1F2530);
    color: var(--ax-paper, #FAF6EE);
    text-decoration: none;
}

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


/* ==========================================================================
   .mc-uses — prendas de manta (Bleed-edge, pie solo con título)
   Grid CSS puro: vive en el tab "Usos", que nace oculto.
   ========================================================================== */

.mc-uses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 32px 0 8px;
    padding: 0;
    list-style: none;
}

@media (min-width: 992px) {
    .mc-uses { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 575px) {
    .mc-uses { grid-template-columns: 1fr; }
}

.mc-use {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--ax-ink, #1F2530);
    border-left: 6px solid var(--ax-orange, #F15A29);
    text-align: left;
}

.mc-use picture {
    display: block;
    aspect-ratio: 1 / 1;   /* assets 500×500 */
    overflow: hidden;
}

.mc-use img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
}

.mc-use__num {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 10px;
    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.08em;
    line-height: 1;
}

.mc-use__cap {
    flex: 1 1 auto;
    padding: 12px 14px 14px;
    background: var(--ax-ink, #1F2530);
    color: var(--ax-white, #FFFFFF);
}

.mc-use__title {
    margin: 0;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: 16px !important;  /* style.css: h4 global */
    font-weight: 700;
    line-height: 1.3;
    color: var(--ax-white, #FFFFFF);
}

/* Sin descripción: el pie solo lleva el título; el hover acerca la foto. */
@media (hover: hover) {
    .mc-use:hover img { transform: scale(1.04); }
}


/* 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;
}

/* 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);
}

.mc-info__title {
    margin: 0 0 12px;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: clamp(0.86rem, 1.1vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ax-ink, #1F2530);
}


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

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

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

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

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

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

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

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

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

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

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

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

.mc-faq__q-text {
    flex: 1;
    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);
    margin: 0;
    transition: color var(--ax-motion-fast) var(--ax-ease-out);
}

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

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

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

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

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

.mc-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) {
    .mc-promos__link,
    .mc-use img,
    .mc-faq__item,
    .mc-faq__q,
    .mc-faq__q-text,
    .mc-faq__q::after {
        transition: none !important;
    }
    .mc-use:hover img { transform: none; }
}
