/* ==========================================================================
   Casas Cacique — v5: capa de motion y elementos nuevos sobre index.html
   --------------------------------------------------------------------------
   Se carga DESPUÉS de css/tailwind.min.css y va deliberadamente SIN @layer:
   el CSS sin capa gana siempre sobre @layer components, así los overrides
   no pelean por especificidad. Todo va scopeado a body.v5 para no afectar
   index.html (comparten tailwind.min.css).

   Estado inicial oculto de los reveals solo existe cuando <html> tiene la
   clase .v5-js (la pone un script inline en <head>, antes del primer paint).
   Si el módulo js/v5-motion.js no llega a ejecutarse, el script inline
   retira .v5-js a los 3 s y todo queda visible: nunca contenido oculto.

   Plan de motion (resumen — el detalle está en el mensaje de entrega):
     1. Hero: título revelado por máscara línea a línea, parallax al scroll,
        contenido que se desvanece al bajar.
     2. Header: barra de progreso de lectura + vidrio al scrollear + link
        activo (scrollspy) con subrayado.
     3. Franja de cifras (nuevo) con contadores.
     4. Reveal escalonado de cada sección (CSS transitions + IO).
     5. Fotos con reveal por clip-path y parallax suave.
     6. Íconos "Insignia Tallada" que se dibujan (stroke-dashoffset).
     7. Proceso: línea de tiempo que se llena con el scroll (nuevo).
     8. Comparativa: checks que "aparecen" en cascada, barra de pagos
        40/30/30 (nuevo), brillo único en el badge Recomendado.
     9. Spotlight que sigue al cursor en tarjetas (solo hover:hover).
    10. Marquee de zonas de servicio (nuevo) y botón WhatsApp flotante (nuevo).
    11. prefers-reduced-motion: solo opacidad, sin desplazamientos ni parallax.
   ========================================================================== */

body.v5 {
    --v5-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --v5-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --v5-reveal-dur: 700ms;
    --v5-reveal-y: 28px;
}

/* --------------------------------------------------------------------------
   KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes v5-hero-line {
    to {
        opacity: 1;
        transform: none;
        clip-path: inset(-10% -4% -26% -4%);
    }
}

@keyframes v5-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes v5-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes v5-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes v5-sheen {
    to { transform: translateX(420%) skewX(-16deg); }
}

@keyframes v5-fab-ring {
    from {
        transform: scale(1);
        opacity: 0.55;
    }
    to {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   1. HERO
   -------------------------------------------------------------------------- */
.v5 .hero__title-line {
    opacity: 0;
    transform: translateY(0.35em);
    clip-path: inset(0 -4% 100% -4%);
    animation: v5-hero-line 900ms var(--v5-ease-out) forwards;
}

.v5 .hero__title-line:nth-child(1) { animation-delay: 0.15s; }
.v5 .hero__title-line:nth-child(2) { animation-delay: 0.3s; }
.v5 .hero__title-line:nth-child(3) { animation-delay: 0.45s; }

.v5 .hero__subtitle {
    opacity: 0;
    transform: translateY(16px);
    animation: v5-fade-up 800ms var(--v5-ease-out) 0.75s forwards;
}

.v5 .hero__cta-group {
    opacity: 0;
    transform: translateY(16px);
    animation: v5-fade-up 800ms var(--v5-ease-out) 0.95s forwards;
}

/* El indicador "Desliza" ahora anima su contenido interno; el contenedor
   queda libre para que el scroll lo desvanezca (ver js/v5-motion.js). */
.v5 .hero__scroll-indicator {
    opacity: 1;
    animation: none;
    will-change: opacity;
}

.v5 .hero__scroll-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: v5-fade-in 800ms ease 1.2s forwards;
}

.v5 .hero__video-container,
.v5 .hero__content {
    will-change: transform;
}

/* --------------------------------------------------------------------------
   2. HEADER: progreso de lectura, vidrio al scrollear, link activo
   -------------------------------------------------------------------------- */
.v5 .header {
    transition: background-color 300ms var(--v5-ease-out), box-shadow 200ms var(--v5-ease-out);
}

.v5 .header.scrolled {
    background-color: rgba(27, 60, 53, 0.88);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}

.v5 .scroll-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

.v5 .nav__link:not(.nav__link--cta) {
    position: relative;
}

.v5 .nav__link:not(.nav__link--cta)::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 220ms var(--v5-ease-out);
}

.v5 .nav__link.is-active::after {
    transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
    .v5 .nav__link:not(.nav__link--cta):hover::after {
        transform: scaleX(1);
    }
}

/* --------------------------------------------------------------------------
   3. FRANJA DE CIFRAS (nuevo elemento, bajo el hero)
   -------------------------------------------------------------------------- */
.v5 .stats {
    background: var(--color-primary-dark);
    color: var(--color-text-inverse);
    border-top: 1px solid rgba(200, 161, 101, 0.28);
    border-bottom: 1px solid rgba(200, 161, 101, 0.12);
}

.v5 .stats__container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
}

.v5 .stat {
    text-align: center;
}

.v5 .stat__value,
.v5 .stat__suffix {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.v5 .stat__value {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.v5 .stat__suffix {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    margin-left: 0.3rem;
}

.v5 .stat__label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.68);
}

@media (min-width: 768px) {
    .v5 .stats__container {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .v5 .stat + .stat {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* --------------------------------------------------------------------------
   4. REVEAL ESCALONADO (estado inicial solo con html.v5-js)
   Regla: en el estado revelado NO se declara transform, para que los hover
   con translate de la capa components (tarjetas) sigan funcionando.
   -------------------------------------------------------------------------- */
.v5-js .v5 .stat:not(.is-revealed),
.v5-js .v5 .features__header > :not(.is-revealed),
.v5-js .v5 .feature:not(.is-revealed),
.v5-js .v5 .process__header > :not(.is-revealed),
.v5-js .v5 .process__step:not(.is-revealed),
.v5-js .v5 .models__header > :not(.is-revealed),
.v5-js .v5 .model-card:not(.is-revealed),
.v5-js .v5 .model-comparator-section__header > :not(.is-revealed),
.v5-js .v5 .comparativa__header > :not(.is-revealed),
.v5-js .v5 .comparativa__context-note:not(.is-revealed),
.v5-js .v5 .comparativa__card:not(.is-revealed),
.v5-js .v5 .comparativa__benefit:not(.is-revealed),
.v5-js .v5 .comparativa__payment:not(.is-revealed),
.v5-js .v5 .comparativa__cta:not(.is-revealed),
.v5-js .v5 .specs__header > :not(.is-revealed),
.v5-js .v5 .specs__regulation:not(.is-revealed),
.v5-js .v5 .specs__system:not(.is-revealed),
.v5-js .v5 .contact__info:not(.is-revealed),
.v5-js .v5 .contact__form-container:not(.is-revealed),
.v5-js .v5 .contact__detail:not(.is-revealed) {
    opacity: 0;
    transform: translateY(var(--v5-reveal-y));
}

/* La transición larga vive solo entre "revelado" y "asentado"; después,
   cada componente recupera su transition original (hover rápido). */
.v5-js .v5 .is-revealed:not(.is-settled) {
    transition: opacity var(--v5-reveal-dur) var(--v5-ease-out),
        transform var(--v5-reveal-dur) var(--v5-ease-out);
}

/* --------------------------------------------------------------------------
   5. FOTOS: reveal por máscara + parallax (transform lo pone Motion)
   -------------------------------------------------------------------------- */
/* El recorte va en la <img>, no en el contenedor observado: Chrome descuenta
   el clip-path al calcular la intersección, y un contenedor recortado al 100%
   nunca "entra" al viewport para IntersectionObserver. La transición vive
   solo hasta .is-settled para no pisar el zoom al hover de la imagen. */
.v5-js .v5 .section-photo:not(.is-revealed) img,
.v5-js .v5 .process__image-container:not(.is-revealed) .process__image,
.v5-js .v5 .model-card__image-container:not(.is-revealed) .model-card__image {
    clip-path: inset(0 0 100% 0);
}

.v5-js .v5 .section-photo.is-revealed img,
.v5-js .v5 .process__image-container.is-revealed .process__image,
.v5-js .v5 .model-card__image-container.is-revealed .model-card__image {
    clip-path: inset(0 0 0 0);
}

.v5-js .v5 .section-photo.is-revealed:not(.is-settled) img,
.v5-js .v5 .process__image-container.is-revealed:not(.is-settled) .process__image,
.v5-js .v5 .model-card__image-container.is-revealed:not(.is-settled) .model-card__image {
    transition: clip-path 850ms var(--v5-ease-in-out);
}

.v5 .section-photo img {
    will-change: transform;
}

/* Comparativa: la franja recorta la foto de la cocina entregada; se centra el
   encuadre en el mesón y los muebles (lado derecho), que son el argumento. */
.v5 .comparativa .section-photo img {
    object-position: 68% 50%;
}

/* --------------------------------------------------------------------------
   6. ÍCONOS QUE SE DIBUJAN (stroke-dasharray hereda dentro de <use>)
   72 > largo del path más largo del sprite (rect 16x16 ≈ 61), así el estado
   final no deja huecos.
   -------------------------------------------------------------------------- */
.v5-js .v5 .feature__icon svg,
.v5-js .v5 .comparativa__benefit-icon svg,
.v5-js .v5 .specs__system-icon svg {
    stroke-dasharray: 72;
    stroke-dashoffset: 72;
}

.v5-js .v5 .feature.is-revealed .feature__icon svg,
.v5-js .v5 .comparativa__benefit.is-revealed .comparativa__benefit-icon svg,
.v5-js .v5 .specs__system.is-revealed .specs__system-icon svg {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1000ms var(--v5-ease-out) 250ms;
}

/* --------------------------------------------------------------------------
   7. PROCESO: línea de tiempo ligada al scroll (nuevo, solo ≥1024px)
   -------------------------------------------------------------------------- */
.v5 .process__timeline {
    display: none;
    position: relative;
    height: 14px;
    margin: 0 calc(12.5% - 7px) 2rem;
}

@media (min-width: 1024px) {
    .v5 .process__timeline {
        display: block;
    }
}

.v5 .process__timeline-track,
.v5 .process__timeline-fill {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    border-radius: 2px;
}

.v5 .process__timeline-track {
    background: rgba(27, 60, 53, 0.15);
}

.v5 .process__timeline-fill {
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.v5 .process__timeline-dot {
    position: absolute;
    top: 0;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid rgba(27, 60, 53, 0.25);
    transition: background-color 250ms var(--v5-ease-out), border-color 250ms var(--v5-ease-out),
        transform 250ms var(--v5-ease-out);
}

.v5 .process__timeline-dot:nth-child(3) { left: 0; }
.v5 .process__timeline-dot:nth-child(4) { left: 33.333%; }
.v5 .process__timeline-dot:nth-child(5) { left: 66.666%; }
.v5 .process__timeline-dot:nth-child(6) { left: 100%; }

.v5 .process__timeline-dot.is-active {
    background: var(--color-accent);
    border-color: var(--color-primary);
    transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   7b. PROCESO: par "obra real" (misma vivienda en dos etapas)
   Reusa .section-photo para heredar reveal por máscara + parallax.
   -------------------------------------------------------------------------- */
.v5 .process__site {
    margin: 3rem 0 0;
}

.v5 .process__site-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .v5 .process__site-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.v5 .process__site-photo {
    margin-bottom: 0;
    aspect-ratio: 3.4 / 1;
}

.v5 .process__site-photo img {
    height: 100%;
    max-height: none;
}

.v5 .process__site-badge {
    background: var(--color-primary-dark);
}

@media (max-width: 767px) {
    .v5 .process__site-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.2rem 0.55rem;
        font-size: 0.6rem;
    }
}

.v5 .process__site-caption {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   7d. TARJETAS DE MODELOS COMPACTAS
   Lectura en cuatro golpes: nombre → cifras → precio → cotizar. El relato
   del nombre se pliega; la comparación con el mercado vive una sola vez
   bajo la grilla (.models__note). Sin transform en el estado base para que
   el hover de la capa components siga funcionando.
   -------------------------------------------------------------------------- */
.v5 .model-card__content {
    display: flex;
    flex-direction: column;
}

.v5 .model-card__tagline {
    margin-bottom: 0.75rem;
}

/* Historia del nombre plegada */
.v5 .model-card__story-box {
    margin-bottom: 1rem;
}

.v5 .model-card__story-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 0.2em;
    transition: color 200ms var(--v5-ease-out);
}

.v5 .model-card__story-toggle::-webkit-details-marker {
    display: none;
}

.v5 .model-card__story-toggle::after {
    content: '';
    width: 0.45em;
    height: 0.45em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-0.1em);
    transition: transform 220ms var(--v5-ease-out);
}

.v5 .model-card__story-box[open] .model-card__story-toggle::after {
    transform: rotate(-135deg) translateY(-0.1em);
}

.v5 .model-card__story-toggle:hover {
    color: var(--color-primary);
}

.v5 .model-card__story-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.v5 .model-card__story {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.v5 .model-card__story-box[open] .model-card__story {
    animation: v5-fade-up 320ms var(--v5-ease-out) both;
}

/* Cifras con ícono, cuatro columnas */
.v5 .model-card__specs {
    display: grid;
    grid-auto-flow: column; /* 4 a 6 cifras en una sola fila, columnas iguales */
    grid-auto-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem 0;
    margin: 0 0 1rem;
    border-top: 1px solid rgba(27, 60, 53, 0.1);
    border-bottom: 1px solid rgba(27, 60, 53, 0.1);
}

.v5 .model-card__spec {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.v5 .model-card__spec-icon {
    display: block;
    width: 20px;
    height: 20px;
    margin-bottom: 0.25rem;
    color: var(--color-accent-dark);
}

.v5 .model-card__spec-icon svg {
    width: 100%;
    height: 100%;
}

.v5 .model-card__spec-value,
.v5 .model-card__spec-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

.v5 .model-card__spec-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Precio: total primero, unidad como nota */
.v5 .model-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.6rem;
    margin: 0.25rem 0 1.25rem;
}

.v5 .model-card__price-label {
    flex-basis: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.v5 .model-card__price-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.1;
    color: var(--color-primary);
}

.v5 .model-card__price-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Acciones: CTA a todo el ancho + fila de enlaces */
.v5 .model-card__actions {
    margin-top: auto;
}

.v5 .model-card__cta {
    display: block;
    width: 100%;
    text-align: center;
}

.v5 .model-card__links {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.v5 .model-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.25rem;
    border: 0;
    background: none;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 0.2em;
    cursor: pointer;
    transition: color 200ms var(--v5-ease-out), text-decoration-color 200ms var(--v5-ease-out);
}

.v5 .model-card__link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.v5 .model-card__link:hover {
    color: var(--color-secondary);
    text-decoration-color: currentColor;
}

.v5 .model-card__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mensaje único bajo la grilla */
.v5 .models__note {
    max-width: 48rem;
    margin: 2rem auto 0;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

@media (max-width: 480px) {
    .v5 .model-card__specs {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1rem;
    }

    .v5 .model-card__links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.25rem 1rem;
    }
}

/* --------------------------------------------------------------------------
   7e. PROMOCIÓN DE SEPTIEMBRE (barra en el header, sección, sello, galerías)
   Vigencia 1-30 sept 2026: retirar el bloque HTML al vencer; este CSS puede
   quedarse. html.v5-promo-off = aviso cerrado antes (localStorage).
   -------------------------------------------------------------------------- */
.v5 .promo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 3rem 0.5rem 1.25rem;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-size: 0.875rem;
    line-height: 1.4;
    position: relative;
}

.v5 .promo-bar[hidden],
html.v5-promo-off .v5 .promo-bar {
    display: none !important;
}

.v5 .promo-bar__text {
    margin: 0;
    text-align: center;
}

.v5 .promo-bar__link {
    margin-left: 0.35rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    white-space: nowrap;
}

.v5 .promo-bar__link:hover {
    color: var(--color-primary);
}

.v5 .promo-bar__close {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-primary-dark);
    transition: background-color 200ms var(--v5-ease-out);
}

.v5 .promo-bar__close svg {
    width: 16px;
    height: 16px;
}

.v5 .promo-bar__close:hover {
    background: rgba(27, 60, 53, 0.12);
}

.v5 .promo-bar__close:focus-visible {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .v5 .promo-bar {
        font-size: 0.8125rem;
        padding-left: 0.75rem;
        padding-right: 2.75rem;
    }

    .v5 .promo-bar__text {
        text-align: left;
    }
}

/* Sello en las tarjetas de modelos */
.v5 .model-card__promo {
    flex-basis: 100%;
    order: 10;
    margin-top: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: max-content; /* ocupa su propia línea (flex-basis 100%) pero solo el ancho del texto */
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(200, 161, 101, 0.18);
    color: var(--color-secondary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.v5 .model-card__promo::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-dark);
}

/* Sección */
.v5 .promo {
    padding: 5rem 0;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-top: 4px solid var(--color-accent);
}

.v5 .promo__container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v5 .promo__header {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto 3rem;
}

.v5 .promo__label {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.v5 .promo__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #fff;
}

.v5 .promo__text {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
}

.v5 .promo__lines {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .v5 .promo__lines {
        grid-template-columns: 1fr 1fr;
    }
}

.v5 .promo-line {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 250ms var(--v5-ease-out), box-shadow 250ms var(--v5-ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .v5 .promo-line:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-2xl);
    }

    .v5 .promo-line:hover .promo-line__media img {
        transform: scale(1.04);
    }
}

.v5 .promo-line__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

.v5 .promo-line__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--v5-ease-in-out);
}

.v5 .promo-line__media:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: -3px;
}

.v5 .promo-line__badge {
    background: var(--color-primary-dark);
}

.v5 .promo-line__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.v5 .promo-line__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.v5 .promo-line__features {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.4rem;
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.v5 .promo-line__features li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
}

.v5 .promo-line__features li::before {
    content: '✓';
    color: var(--color-primary-light);
    font-weight: 700;
    flex-shrink: 0;
}

.v5 .promo-line__link {
    margin-top: auto;
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 0.2em;
    cursor: pointer;
    transition: color 200ms var(--v5-ease-out);
}

.v5 .promo-line__link:hover {
    color: var(--color-secondary);
}

.v5 .promo__plan {
    margin: 2.5rem auto 0;
    max-width: 46rem;
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.v5 .promo__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.v5 .promo__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-weight: 600;
    transition: background-color 200ms var(--v5-ease-out), border-color 200ms var(--v5-ease-out);
}

.v5 .promo__whatsapp:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: none;
    box-shadow: none;
}

.v5 .promo__conditions {
    margin: 2rem auto 0;
    max-width: 52rem;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

/* Reveal escalonado de la sección */
.v5-js .v5 .promo__header > :not(.is-revealed),
.v5-js .v5 .promo-line:not(.is-revealed),
.v5-js .v5 .promo__plan:not(.is-revealed),
.v5-js .v5 .promo__cta:not(.is-revealed),
.v5-js .v5 .promo__conditions:not(.is-revealed) {
    opacity: 0;
    transform: translateY(var(--v5-reveal-y));
}

@media (prefers-reduced-motion: reduce) {
    .v5-js .v5 .promo__header > :not(.is-revealed),
    .v5-js .v5 .promo-line:not(.is-revealed),
    .v5-js .v5 .promo__plan:not(.is-revealed),
    .v5-js .v5 .promo__cta:not(.is-revealed),
    .v5-js .v5 .promo__conditions:not(.is-revealed) {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   7c. OBRAS REALIZADAS (sección nueva; galerías con el modal v5)
   -------------------------------------------------------------------------- */
.v5 .obras {
    padding: 5rem 0;
    background: var(--color-bg-alt);
}

.v5 .obras__container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v5 .obras__header {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 3rem;
}

.v5 .obras__label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.v5 .obras__title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.v5 .obras__subtitle {
    color: var(--color-text-light);
    font-size: 1.0625rem;
    line-height: 1.6;
}

.v5 .obras__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .v5 .obras__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Una sola obra publicada: tarjeta centrada y más ancha que media columna */
.v5 .obras__grid:has(> .obra-card:only-child) {
    grid-template-columns: minmax(0, 40rem);
    justify-content: center;
}

.v5 .obra-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 250ms var(--v5-ease-out), box-shadow 250ms var(--v5-ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .v5 .obra-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-2xl);
    }

    .v5 .obra-card:hover .obra-card__media img {
        transform: scale(1.05);
    }
}

.v5 .obra-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

.v5 .obra-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--v5-ease-in-out);
}

.v5 .obra-card__media:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: -3px;
}

.v5 .obra-card__badge {
    background: var(--color-primary-dark);
}

.v5 .obra-card__count {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.v5 .obra-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.v5 .obra-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
}

.v5 .obra-card__meta {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

.v5 .obra-card__desc {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.v5 .obra-card__link {
    margin-top: auto;
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 0.2em;
    cursor: pointer;
    transition: color 200ms var(--v5-ease-out), text-decoration-color 200ms var(--v5-ease-out);
}

.v5 .obra-card__link:hover {
    color: var(--color-secondary);
    text-decoration-color: currentColor;
}

.v5 .obra-card__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.v5 .obras__note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Reveal escalonado de la sección (misma regla que el resto) */
.v5-js .v5 .obras__header > :not(.is-revealed),
.v5-js .v5 .obra-card:not(.is-revealed) {
    opacity: 0;
    transform: translateY(var(--v5-reveal-y));
}

@media (prefers-reduced-motion: reduce) {
    .v5-js .v5 .obras__header > :not(.is-revealed),
    .v5-js .v5 .obra-card:not(.is-revealed) {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   8. COMPARATIVA: checks en cascada, barra de pagos, brillo del badge
   -------------------------------------------------------------------------- */
.v5-js .v5 .comparativa__list:not(.is-revealed) .comparativa__icon {
    opacity: 0;
    transform: scale(0.4);
}

.v5-js .v5 .comparativa__list.is-revealed .comparativa__icon {
    opacity: 1;
    transform: none;
    transition: opacity 300ms var(--v5-ease-out), transform 420ms var(--v5-ease-out);
}

.v5-js .v5 .comparativa__item:nth-child(1) .comparativa__icon { transition-delay: 0ms; }
.v5-js .v5 .comparativa__item:nth-child(2) .comparativa__icon { transition-delay: 60ms; }
.v5-js .v5 .comparativa__item:nth-child(3) .comparativa__icon { transition-delay: 120ms; }
.v5-js .v5 .comparativa__item:nth-child(4) .comparativa__icon { transition-delay: 180ms; }
.v5-js .v5 .comparativa__item:nth-child(5) .comparativa__icon { transition-delay: 240ms; }
.v5-js .v5 .comparativa__item:nth-child(6) .comparativa__icon { transition-delay: 300ms; }
.v5-js .v5 .comparativa__item:nth-child(7) .comparativa__icon { transition-delay: 360ms; }
.v5-js .v5 .comparativa__item:nth-child(8) .comparativa__icon { transition-delay: 420ms; }
.v5-js .v5 .comparativa__item:nth-child(9) .comparativa__icon { transition-delay: 480ms; }
.v5-js .v5 .comparativa__item:nth-child(10) .comparativa__icon { transition-delay: 540ms; }
.v5-js .v5 .comparativa__item:nth-child(11) .comparativa__icon { transition-delay: 600ms; }

/* Barra de pagos 40 / 30 / 30 */
.v5 .payment-bar {
    display: flex;
    gap: 4px;
    height: 10px;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.v5 .payment-bar__seg {
    flex: 0 0 calc(var(--seg) * 1%);
    height: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.v5 .payment-bar__fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 700ms var(--v5-ease-out);
}

.v5 .payment-bar__seg:nth-child(2) .payment-bar__fill {
    background: var(--color-accent-light);
    transition-delay: 350ms;
}

.v5 .payment-bar__seg:nth-child(3) .payment-bar__fill {
    background: var(--color-accent-dark);
    transition-delay: 700ms;
}

.v5-js .v5 .comparativa__payment.is-revealed .payment-bar__fill {
    transform: scaleX(1);
}

/* Brillo único (una sola vez, al revelarse la tarjeta recomendada) */
.v5 .comparativa__badge-featured {
    overflow: hidden;
}

.v5 .comparativa__badge-featured::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: translateX(0) skewX(-16deg);
    pointer-events: none;
}

.v5-js .v5 .comparativa__card--featured.is-revealed .comparativa__badge-featured::after {
    animation: v5-sheen 1.1s ease-out 800ms 1 both;
}

/* --------------------------------------------------------------------------
   9. SPOTLIGHT QUE SIGUE AL CURSOR (solo puntero fino)
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
    .v5 .model-card,
    .v5 .feature:not(.feature--anchor) {
        position: relative;
    }

    .v5 .model-card::after,
    .v5 .feature:not(.feature--anchor)::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%),
            rgba(200, 161, 101, 0.18), transparent 65%);
        transition: opacity 300ms ease;
    }

    .v5 .model-card:hover::after,
    .v5 .feature:not(.feature--anchor):hover::after {
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   10. MARQUEE DE ZONAS + WHATSAPP FLOTANTE (nuevos)
   -------------------------------------------------------------------------- */
.v5 .marquee {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    overflow: hidden;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(200, 161, 101, 0.2);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.v5 .marquee__track {
    display: flex;
    width: max-content;
}

.v5 .marquee__list {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    animation: v5-marquee 34s linear infinite;
}

.v5 .marquee:hover .marquee__list {
    animation-play-state: paused;
}

.v5 .marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.v5 .marquee__item::after {
    content: '✦';
    font-size: 0.8em;
    color: var(--color-accent);
}

.v5 .marquee__item--lead {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.6);
}

/* WhatsApp flotante */
.v5 .whatsapp-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    visibility: hidden;
    transition: opacity 260ms var(--v5-ease-out), transform 260ms var(--v5-ease-out),
        visibility 0s linear 260ms, background-color 200ms var(--v5-ease-out);
}

.v5 .whatsapp-fab.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 260ms var(--v5-ease-out), transform 260ms var(--v5-ease-out),
        visibility 0s linear 0s, background-color 200ms var(--v5-ease-out);
}

.v5 .whatsapp-fab:hover {
    background: #1FB855;
}

.v5 .whatsapp-fab:active {
    transform: scale(0.97);
}

.v5 .whatsapp-fab svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Anillo de atención: dos pulsos al aparecer, luego quieto */
.v5 .whatsapp-fab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid #25D366;
    opacity: 0;
    pointer-events: none;
}

.v5 .whatsapp-fab.is-visible::before {
    animation: v5-fab-ring 1.4s ease-out 300ms 2;
}

@media (max-width: 480px) {
    .v5 .whatsapp-fab__text {
        display: none;
    }

    .v5 .whatsapp-fab {
        padding: 0.9rem;
    }
}

/* --------------------------------------------------------------------------
   11. ACORDEONES DE ESPECIFICACIONES: contenido entra con fade-up
   -------------------------------------------------------------------------- */
.v5 details[open] .specs__details-content {
    animation: v5-fade-up 320ms var(--v5-ease-out) both;
}

/* --------------------------------------------------------------------------
   11b. SALIDA PARA PÚBLICO TÉCNICO (ficha completa por WhatsApp)
   .btn--whatsapp se conserva solo para el tracking de main.js; el look
   de botón se anula aquí para que lea como un enlace de texto.
   -------------------------------------------------------------------------- */
.v5 .specs__pro-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.v5 .specs__pro-link {
    display: inline;
    padding: 0;
    margin-left: 0.35rem;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 0.2em;
    transition: color 200ms var(--v5-ease-out), text-decoration-color 200ms var(--v5-ease-out);
}

.v5 .specs__pro-link:hover {
    color: var(--color-secondary);
    text-decoration-color: currentColor;
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   13. MODALES (controlador js/v5-modal.js)
   Las animaciones por keyframes de la capa components se anulan y se
   reemplazan por transiciones: así el cierre también anima. En móvil la
   hoja entra y sale por abajo (sale por donde entró).
   -------------------------------------------------------------------------- */
html.v5-modal-lock {
    overflow: hidden;
    scrollbar-gutter: stable; /* conserva el ancho de la barra: sin salto */
}

.v5 .cc-modal-overlay {
    animation: none;
    opacity: 0;
    transition: opacity 240ms var(--v5-ease-out);
}

.v5 .cc-modal-overlay.is-visible {
    opacity: 1;
}

.v5 .cc-modal {
    animation: none;
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    transition: transform 320ms var(--v5-ease-out), opacity 240ms var(--v5-ease-out);
}

.v5 .cc-modal-overlay.is-visible .cc-modal {
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .v5 .cc-modal {
        transform: translateY(100%);
        transition: transform 380ms cubic-bezier(0.32, 0.72, 0, 1), opacity 240ms var(--v5-ease-out);
    }
}

/* Lightbox: la foto completa sobre fondo negro, no recortada */
.v5 .cc-gallery__slide img {
    object-fit: contain;
    background: #000;
}

.v5 .cc-gallery {
    touch-action: pan-y; /* el arrastre horizontal lo gestiona JS */
    cursor: grab;
}

.v5 .cc-gallery.is-dragging {
    cursor: grabbing;
}

.v5 .cc-gallery.is-dragging .cc-gallery__slide img {
    pointer-events: none; /* evita el arrastre nativo de la imagen */
}

.v5 .cc-gallery__slide img {
    -webkit-user-drag: none;
    user-select: none;
}

.v5 .cc-gallery__track {
    transition: transform 380ms var(--v5-ease-out);
}

/* --------------------------------------------------------------------------
   14. SEO / ACCESIBILIDAD: enlace "saltar al contenido" y preguntas frecuentes
   -------------------------------------------------------------------------- */
.v5 .skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 700;
    transition: top 150ms var(--v5-ease-out);
}

.v5 .skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--color-primary-dark);
}

.v5 .footer__social {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .v5 .footer__social {
        justify-content: flex-start;
    }
}

.v5 .footer__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color 200ms var(--v5-ease-out);
}

.v5 .footer__social-link svg {
    width: 20px;
    height: 20px;
}

.v5 .footer__social-link:hover {
    color: var(--color-accent);
}

.v5 .footer__faq {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.v5 .models__note-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 0.2em;
    transition: color 200ms var(--v5-ease-out);
}

.v5 .models__note-link:hover {
    color: var(--color-secondary);
}

.v5 .faq {
    padding: 5rem 0;
    background: var(--color-bg);
}

.v5 .faq__container {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v5 .faq__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.v5 .faq__label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.v5 .faq__title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-primary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
}

.v5 .faq__list {
    display: grid;
    gap: 0.75rem;
}

.v5 .faq__item {
    background: var(--color-bg-alt);
    border-radius: 0.75rem;
    border: 1px solid rgba(27, 60, 53, 0.08);
    transition: box-shadow 200ms var(--v5-ease-out);
}

.v5 .faq__item[open] {
    box-shadow: var(--shadow-md);
}

.v5 .faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    list-style: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--color-primary);
}

.v5 .faq__question::-webkit-details-marker {
    display: none;
}

.v5 .faq__question::after {
    content: '';
    flex-shrink: 0;
    width: 0.6em;
    height: 0.6em;
    border-right: 2px solid var(--color-accent-dark);
    border-bottom: 2px solid var(--color-accent-dark);
    transform: rotate(45deg) translateY(-0.15em);
    transition: transform 220ms var(--v5-ease-out);
}

.v5 .faq__item[open] .faq__question::after {
    transform: rotate(-135deg) translateY(-0.15em);
}

.v5 .faq__question:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
    border-radius: 0.75rem;
}

.v5 .faq__answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

.v5 .faq__item[open] .faq__answer {
    animation: v5-fade-up 300ms var(--v5-ease-out) both;
}

.v5-js .v5 .faq__header > :not(.is-revealed),
.v5-js .v5 .faq__item:not(.is-revealed) {
    opacity: 0;
    transform: translateY(var(--v5-reveal-y));
}

@media (prefers-reduced-motion: reduce) {
    .v5-js .v5 .faq__header > :not(.is-revealed),
    .v5-js .v5 .faq__item:not(.is-revealed) {
        transform: none;
    }

    .v5 .faq__item[open] .faq__answer {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   12. REDUCED MOTION: menos y más suave, nunca cero
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .v5 .hero__title-line {
        transform: none;
        clip-path: none;
        animation: v5-fade-in 500ms ease forwards;
    }

    .v5 .hero__subtitle,
    .v5 .hero__cta-group {
        transform: none;
        animation: v5-fade-in 500ms ease forwards;
    }

    .v5-js .v5 .is-revealed:not(.is-settled) {
        transition: opacity 250ms ease;
    }

    .v5-js .v5 .stat:not(.is-revealed),
    .v5-js .v5 .features__header > :not(.is-revealed),
    .v5-js .v5 .feature:not(.is-revealed),
    .v5-js .v5 .process__header > :not(.is-revealed),
    .v5-js .v5 .process__step:not(.is-revealed),
    .v5-js .v5 .models__header > :not(.is-revealed),
    .v5-js .v5 .model-card:not(.is-revealed),
    .v5-js .v5 .model-comparator-section__header > :not(.is-revealed),
    .v5-js .v5 .comparativa__header > :not(.is-revealed),
    .v5-js .v5 .comparativa__context-note:not(.is-revealed),
    .v5-js .v5 .comparativa__card:not(.is-revealed),
    .v5-js .v5 .comparativa__benefit:not(.is-revealed),
    .v5-js .v5 .comparativa__payment:not(.is-revealed),
    .v5-js .v5 .comparativa__cta:not(.is-revealed),
    .v5-js .v5 .specs__header > :not(.is-revealed),
    .v5-js .v5 .specs__regulation:not(.is-revealed),
    .v5-js .v5 .specs__system:not(.is-revealed),
    .v5-js .v5 .contact__info:not(.is-revealed),
    .v5-js .v5 .contact__form-container:not(.is-revealed),
    .v5-js .v5 .contact__detail:not(.is-revealed) {
        transform: none;
    }

    .v5-js .v5 .section-photo:not(.is-revealed) img,
    .v5-js .v5 .process__image-container:not(.is-revealed) .process__image,
    .v5-js .v5 .model-card__image-container:not(.is-revealed) .model-card__image {
        clip-path: none;
        opacity: 0;
    }

    .v5-js .v5 .section-photo.is-revealed img,
    .v5-js .v5 .process__image-container.is-revealed .process__image,
    .v5-js .v5 .model-card__image-container.is-revealed .model-card__image {
        clip-path: none;
        opacity: 1;
    }

    .v5-js .v5 .section-photo.is-revealed:not(.is-settled) img,
    .v5-js .v5 .process__image-container.is-revealed:not(.is-settled) .process__image,
    .v5-js .v5 .model-card__image-container.is-revealed:not(.is-settled) .model-card__image {
        transition: opacity 250ms ease;
    }

    .v5-js .v5 .feature__icon svg,
    .v5-js .v5 .comparativa__benefit-icon svg,
    .v5-js .v5 .specs__system-icon svg {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }

    .v5-js .v5 .comparativa__list:not(.is-revealed) .comparativa__icon {
        transform: none;
    }

    .v5 .marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .v5 .marquee__list {
        animation: none;
    }

    .v5 .marquee__list[aria-hidden="true"] {
        display: none;
    }

    .v5 .payment-bar__fill {
        transition-duration: 1ms;
    }

    .v5 .whatsapp-fab {
        transform: none;
    }

    .v5 .whatsapp-fab.is-visible::before,
    .v5-js .v5 .comparativa__card--featured.is-revealed .comparativa__badge-featured::after,
    .v5 details[open] .specs__details-content {
        animation: none;
    }

    .v5 .hero__scroll-inner {
        animation: v5-fade-in 400ms ease 1s forwards;
    }

    .v5 .cc-modal-overlay,
    .v5 .cc-modal,
    .v5 .cc-gallery__track {
        transition-duration: 1ms;
    }

    .v5 .cc-modal {
        transform: none;
    }
}
