/* ============================================================
   TECNOMOTION V2 - BASE STYLES & UTILITIES
   ============================================================ */

/* --- Base HTML Settings --- */
html {
    overflow-x: hidden;
}

body {
    overflow-x: visible;
}

html {
    scroll-padding-top: calc(var(--v2-header-height, 80px) + 30px);
}

/* --- Ambient Background: grano --- */

.v2-bg-grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* --- Container --- */
.v2-container {
    max-width: var(--v2-container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography Utilities --- */
.v2-text-center { text-align: center; }
.v2-text-accent { color: var(--v2-accent); }
.v2-text-primary { color: var(--v2-primary); }
.v2-font-brand { font-family: var(--v2-font-accent); }

/* --- Sectioning --- */
.v2-section {
    padding: var(--v2-section-padding);
}

.v2-bg-soft { background-color: var(--v2-bg-soft); }
.v2-bg-accent { background-color: var(--v2-bg-accent); }

/* --- Buttons --- */
.v2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--v2-radius-sm);
    transition: var(--v2-transition);
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.v2-btn-primary {
    background-color: var(--v2-cta);
    color: var(--v2-secondary);
}

.v2-btn-primary:hover {
    background-color: var(--v2-cta-hover);
    transform: translateY(-2px);
    box-shadow: var(--v2-shadow-medium);
}

.v2-btn-outline {
    background-color: transparent;
    border: 2px solid var(--v2-primary);
    color: var(--v2-primary);
}

.v2-btn-outline:hover {
    background-color: var(--v2-primary-soft);
}

/* --- Layout Grid --- */
.v2-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .v2-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .v2-section {
        padding: 60px 20px;
    }
}

/* --- Global Elements --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Hero Video (full-bleed, texto superpuesto — estilo ouraring.com) --- */
.v2-hero-video {
    position: relative;
    box-sizing: border-box;
    padding: 20px;
    height: 100vh;
    height: 100svh;
    display: flex;
}

.v2-hero-video__frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--v2-shadow-medium);
    /* Fondo que retoma el gris de la foto, visible mientras carga */
    background: linear-gradient(to bottom, rgb(108, 102, 92), rgb(180, 174, 165));
}

.v2-hero-video__el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.v2-hero-video__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 26, 22, 0.32) 0%, rgba(30, 26, 22, 0.05) 32%, rgba(30, 26, 22, 0.1) 78%, rgba(30, 26, 22, 0.4) 100%);
}

.v2-hero-video__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 200px 24px 56px;
    color: #ffffff;
}

.v2-hero-video__eyebrow {
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 18px;
}

.v2-hero-video__title {
    font-family: var(--v2-font-accent);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    color: #ffffff;
    margin: 0;
}

.v2-hero-video__desc {
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 1.15rem;
    margin: 20px 0 0;
    max-width: 420px;
}

.v2-hero-video__actions {
    margin-top: auto;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.v2-hero-video__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.95rem;
    color: #333333;
    background: var(--v2-cta);
    padding: 14px 32px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: var(--v2-transition);
    text-decoration: none;
}

.v2-hero-video__cta:hover {
    background: var(--v2-cta-hover);
    transform: translateY(-2px);
}

.v2-hero-video__cta--secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    transform: translateZ(0);
}

.v2-hero-video__cta--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

/* --- Intro (dos columnas asimétricas, estilo neuralink.com) --- */
.v2-intro {
    /* Poco aire abajo: entre el intro y el respaldo había 240px de vacío
       sumando este padding y el de la sección siguiente. */
    padding: 140px 24px 60px;
}

.v2-intro__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 100px;
    align-items: start;
}

.v2-intro__title {
    font-family: var(--v2-font-accent);
    font-weight: 300;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    text-align: left;
    margin: 0;
    text-transform: lowercase; /* Elimina la T mayúscula y da un look editorial premium */
}

/* --- Word rotate (carrusel vertical, estilo neuralink.com) --- */
.v2-word-rotate {
    position: relative;
    display: inline-block;
    height: 1.35em; /* Mayor altura para evitar que se corten letras como la 'p' */
    overflow: hidden;
    vertical-align: middle;
    text-align: left;
    margin-top: -0.15em; /* Ajuste sutil para centrar ópticamente con la tipografía */
    font-style: italic; /* Itálica en la fuente serif le da un toque extra premium */
    color: #8a5cc4;
}

.v2-word-rotate__word {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: inherit;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
}

.v2-word-rotate__word.is-entering {
    transform: translateY(-100%);
    opacity: 0;
}

.v2-word-rotate__word.is-leaving {
    transform: translateY(100%);
    opacity: 0;
}

/* Nube de puntos: acompaña al carrusel de palabras con una figura por palabra */
.v2-intro__cloud {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 430px;
    margin-inline: auto;
}

.v2-intro__cloud canvas {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .v2-intro__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .v2-intro__cloud {
        max-width: 300px;
        margin-inline: auto;
    }
}

/* --- Pilares: prevención, rehabilitación, reinserción --- */
.v2-pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    max-width: 1080px;
    margin: 0 auto;
}

.v2-pillar {
    position: relative;
    padding-top: 28px;
    border-top: 1px solid rgba(26, 26, 26, 0.12);
}

/* --- Pilares bloqueados (Prevención / Reinserción): "próximamente" --- */
.v2-pillar--locked .v2-pillar__desc,
.v2-pillar--locked .v2-pillar__tags {
    filter: blur(4px);
    opacity: 0.55;
    user-select: none;
}

.v2-pillar__lock {
    position: absolute;
    left: 0;
    top: 130px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(241, 236, 230, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(26, 26, 26, 0.12);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: var(--v2-font-main);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #555555;
}

.v2-pillar__lock i {
    font-size: 0.75rem;
    color: #8a5cc4;
}

/* --- Pilar activo (Rehabilitación): disponible ahora, lleva a la propuesta --- */
a.v2-pillar--active {
    display: block;
    text-decoration: none;
    color: inherit;
    border-top: 2px solid #8a5cc4;
    margin-top: -1px;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

a.v2-pillar--active:hover {
    transform: translateY(-6px);
}

.v2-pillar__badge {
    display: inline-block;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: #8a5cc4;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.v2-pillar__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.85rem;
    color: #8a5cc4;
}

.v2-pillar__cta i {
    font-size: 0.75rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

a.v2-pillar--active:hover .v2-pillar__cta i {
    transform: translateY(4px);
}

.v2-pillar__number {
    display: block;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--v2-primary-hover);
    margin-bottom: 20px;
}

.v2-pillar__title {
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 1.4rem;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.v2-pillar__desc {
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #555555;
    margin: 0 0 24px;
}

.v2-pillar__tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v2-pillar__tags li {
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.85rem;
    color: #333333;
    padding-left: 16px;
    position: relative;
}

.v2-pillar__tags li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 1px;
    background: var(--v2-primary-hover);
}

@media (max-width: 860px) {
    .v2-pillars__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .v2-pillar__lock {
        top: auto;
        bottom: -14px;
    }
}

/* --- Propuesta de Rehabilitación (destino del scroll) --- */
.v2-rehab {
    scroll-margin-top: 100px;
}

.v2-rehab__header {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 72px;
}

.v2-rehab__eyebrow {
    display: block;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a5cc4;
    margin-bottom: 16px;
}

.v2-rehab__title {
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    color: #1a1a1a;
    margin: 0;
}

.v2-rehab__eyebrow,
.v2-rehab__title {
    opacity: 0;
    transform: translateY(22px);
}

.v2-rehab.is-arriving .v2-rehab__eyebrow,
.v2-rehab.is-arriving .v2-rehab__title {
    animation: v2-rehab-fade-in 0.75s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.v2-rehab.is-arriving .v2-rehab__title {
    animation-delay: 0.1s;
}

@keyframes v2-rehab-fade-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Apertura: el claim y el año en puntos --- */
.v2-rehab__hero {
    padding: 140px 0 120px;
}

.v2-rehab__claim {
    max-width: 780px;
    margin: 0 auto 64px;
    text-align: center;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    line-height: 1.4;
    color: #555555;
}

.v2-rehab__claim strong {
    font-weight: 400;
    color: #1a1a1a;
}

.v2-rehab__claim-accent {
    color: #8a5cc4 !important;
}

/* --- Un año en 365 puntos ---
   La figura es alta a propósito: ese alto es el recorrido de scroll que dura la
   secuencia. El canvas queda fijo mientras el usuario la atraviesa. */
.v2-gap {
    position: relative;
    height: 500vh;
    margin: 40px 0 0;
}

/* Canvas y texto van dentro de un mismo contenedor pegajoso. Cuando eran dos
   sticky independientes con tope en vh, se encimaban según el alto de pantalla. */
.v2-gap__pegado {
    position: sticky;
    top: 10vh;
    top: 10svh;
    height: 82vh;
    height: 82svh;
    display: flex;
    flex-direction: column;
}

.v2-gap__canvas {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

.v2-gap__actos {
    position: relative;
    flex: 0 0 auto;
    height: 250px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
}

/* Los rótulos se acumulan en vez de reemplazarse: el recorrido queda a la vista
   como un listado y el que corresponde a la etapa actual va encendido. */
.v2-gap__acto {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 7px 0 7px 16px;
    border-left: 2px solid transparent;
    /* Los que todavía no llegaron se insinúan: así se ve desde el principio que
       el recorrido tiene cuatro etapas, en vez de aparecer de la nada. */
    opacity: 0.1;
    pointer-events: none;
    transition: opacity 0.55s ease, border-color 0.45s ease;
}

.v2-gap__acto.is-visto {
    opacity: 0.34;
}

.v2-gap__acto.is-activo {
    opacity: 1;
    border-left-color: #8a5cc4;
}

.v2-gap__cifra {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-shrink: 0;
    min-width: 132px;
    font-family: var(--v2-font-accent);
    font-weight: 200;
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    line-height: 1;
    color: #6b6259;
    transition: color 0.5s ease;
}

.v2-gap__cifra b {
    font-weight: 200;
    font-variant-numeric: tabular-nums;
}

.v2-gap__cifra i {
    font-style: normal;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 0.85rem;
    color: #9a938c;
}

.v2-gap__cifra--fuerte { color: #3d3733; }
.v2-gap__cifra--rehab { color: #7a5fb0; }

.v2-gap__acto p {
    margin: 0;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: clamp(0.9rem, 1.35vw, 1.05rem);
    line-height: 1.5;
    color: #4a4440;
}

.v2-gap__acto p b {
    font-weight: 500;
    color: #3d3733;
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    /* Sin scrollytelling: los cuatro actos se leen uno debajo del otro */
    .v2-gap { height: auto; }
    .v2-gap__pegado {
        position: static;
        height: auto;
        display: block;
    }
    .v2-gap__canvas,
    .v2-gap__actos { position: static; }
    .v2-gap__canvas { height: 48vh; margin-top: 0; }
    .v2-gap__actos { height: auto; }
    .v2-gap__acto {
        position: static;
        opacity: 1;
        transform: none;
        margin-bottom: 28px;
    }
}

@media (max-width: 700px) {

    /* Menos alto y el copy con más lugar: en vertical la cifra va sobre el texto */
    /* Más abajo: con 8svh la primera fila de la grilla quedaba pegada al borde
       inferior de la píldora del nav, que la tapaba. */
    .v2-gap__pegado {
        top: 15vh;
        top: 15svh;
        height: 80vh;
        height: 80svh;
    }

    /* El canvas toma lo que sobra: las reglas viejas le fijaban 52vh más 14vh de
       margen, que dentro del contenedor flex desbordaban y tapaban el copy. */
    .v2-gap__canvas {
        height: auto;
        margin-top: 0;
    }

    .v2-gap__actos {
        height: 250px;
        gap: 0;
    }

    .v2-gap__acto {
        padding: 5px 0 5px 12px;
        gap: 10px;
    }

    .v2-gap__cifra {
        min-width: 86px;
        font-size: 1.5rem;
    }

    .v2-gap__cifra i { font-size: 0.72rem; }
    .v2-gap__acto p { font-size: 0.86rem; line-height: 1.4; }
}

/* --- Bloques internos --- */
.v2-rehab__block {
    padding: 70px 0;
}

.v2-rehab__split {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 80px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}

.v2-rehab__block-title {
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #1a1a1a;
    margin: 0;
}

.v2-rehab__block-body p {
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 1.02rem;
    line-height: 1.8;
    color: #555555;
    margin: 0 0 20px;
}

.v2-rehab__block-body p:last-child { margin-bottom: 0; }

.v2-rehab__block-body strong {
    font-weight: 500;
    color: #1a1a1a;
}

.v2-rehab__block-body .v2-rehab__emphasis {
    padding-left: 20px;
    border-left: 2px solid #8a5cc4;
    color: #1a1a1a;
}

.v2-rehab__block-head {
    max-width: 1080px;
    margin: 0 auto 56px;
}

.v2-rehab__label {
    display: block;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a5cc4;
    margin-bottom: 14px;
}

/* --- Las tres mediciones clínicas --- */
.v2-measures {
    max-width: 1080px;
    margin: 72px auto 0;
    padding-top: 56px;
    border-top: 1px solid rgba(26, 26, 26, 0.12);
}

.v2-measures__intro,
.v2-measures__outro {
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: #555555;
    max-width: 620px;
    margin: 0;
}

.v2-measures__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 40px 0;
}

.v2-measure {
    position: relative;
    padding: 26px 22px 24px;
    border: 1px solid transparent;
    border-top-color: rgba(54, 69, 79, 0.16);
    border-radius: 18px;
    transition: var(--v2-transition);
}

.v2-measure:hover {
    border-color: rgba(138, 92, 196, 0.28);
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.v2-measure__icon,
.v2-audience__icon {
    display: block;
    width: 66px;
    height: 66px;
    margin-bottom: 20px;
}

.v2-measure__icon canvas,
.v2-audience__icon canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.v2-measure__num {
    display: block;
    margin-bottom: 10px;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: #8a5cc4;
}

.v2-measure h4 {
    margin: 0;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.v2-measures__outro {
    font-weight: 500;
    color: #1a1a1a;
}

/* --- Planes --- */
.v2-plans {
    max-width: 1080px;
    margin: 0 auto;
}

.v2-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0 0 48px;
}

.v2-tabs-nav__btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.95rem;
    color: #8a8a8a;
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--v2-transition);
}

.v2-tabs-nav__btn:hover {
    border-color: rgba(138, 92, 196, 0.4);
    color: #1a1a1a;
}

.v2-tabs-nav__btn.is-active {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.v2-tab-panel {
    display: none;
    animation: v2-fade-in 0.4s ease-out;
}

.v2-tab-panel.is-active {
    display: block;
}

.v2-tab-panel__layout {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 24px;
}

.v2-plan__name {
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 24px;
}

.v2-plan__inherits {
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.9rem;
    color: #8a5cc4;
    margin: 0 0 16px;
}

.v2-plan__includes {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-plan__includes li {
    position: relative;
    padding-left: 20px;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    color: #333333;
}

.v2-plan__includes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 1px;
    background: #8a5cc4;
}

.v2-plan__for {
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #666666;
    margin: 0 0 24px;
}

.v2-plan__edge {
    padding-top: 24px;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #1a1a1a;
    margin: 0 0 32px;
}

.v2-tab-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(26, 26, 26, 0.03);
    border: 1px dashed rgba(26, 26, 26, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.v2-tab-placeholder span {
    font-family: var(--v2-font-mono, monospace);
    font-size: 0.85rem;
    color: #8a8a8a;
    letter-spacing: 0.05em;
}

@keyframes v2-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Neuralia Preview (Home) --- */
.v2-neuralia-preview {
    background: #37332F;
    color: #ffffff;
    padding: 120px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.v2-neuralia-preview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
}

.v2-neuralia-preview__eyebrow {
    display: inline-block;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c3b1e1; /* softer purple for the dark brown background */
    margin-bottom: 24px;
}

.v2-neuralia-preview__title {
    font-family: var(--v2-font-accent);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: #ffffff; /* Explicitly set to white for legibility */
    margin: 0 0 24px;
}

.v2-neuralia-preview__desc {
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85); /* Slightly brighter for legibility */
    margin: 0 0 48px;
}

.v2-neuralia-preview__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.95rem;
    color: #ffffff;
    background: #8a5cc4;
    border: 1px solid #8a5cc4;
    border-radius: 999px;
    text-decoration: none;
    transition: var(--v2-transition);
}

.v2-neuralia-preview__cta:hover {
    background: #7648b0;
    border-color: #7648b0;
    transform: translateY(-2px);
}

.v2-neuralia-preview__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-neuralia-preview__visual:hover .v2-neuralia-preview__img {
    transform: translateY(-8px) scale(1.02);
}

@media (max-width: 900px) {
    .v2-neuralia-preview__grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    .v2-neuralia-preview__content {
        display: contents; /* Unwraps children so they can participate in flex order */
    }
    .v2-neuralia-preview__eyebrow { order: 1; margin-bottom: 12px; }
    .v2-neuralia-preview__title { order: 2; margin-bottom: 16px; }
    .v2-neuralia-preview__desc { order: 3; margin-bottom: 24px; }
    .v2-neuralia-preview__visual { order: 4; margin-bottom: 24px; }
    .v2-neuralia-preview__actions { order: 5; }
}


/* --- Para quién es --- */
.v2-audience {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 64px;
    max-width: 1080px;
    margin: 0 auto;
}

.v2-audience__item {
    padding: 28px 24px 26px;
    border: 1px solid transparent;
    border-top-color: rgba(54, 69, 79, 0.16);
    border-radius: 20px;
    outline: none;
    transition: var(--v2-transition);
}

.v2-audience__item:hover,
.v2-audience__item:focus-visible {
    border-color: rgba(138, 92, 196, 0.28);
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(54, 45, 40, 0.06);
}

.v2-audience__icon {
    margin-bottom: 22px;
}

.v2-audience__item h4 {
    margin: 0 0 12px;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 1.15rem;
    color: #1a1a1a;
}

.v2-audience__item p {
    margin: 0;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #5a5550;
}

.v2-flow {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1080px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
}

.v2-flow__step {
    padding-top: 20px;
    border-top: 1px solid rgba(26, 26, 26, 0.12);
}

.v2-flow__num {
    display: block;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: #8a5cc4;
    margin-bottom: 14px;
}

.v2-flow__step h4 {
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.98rem;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.v2-flow__step p {
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 0.85rem;
    line-height: 1.65;
    color: #666666;
    margin: 0;
}

/* --- Cierre --- */
.v2-rehab__close {
    padding: 40px 0 140px;
    text-align: center;
}

.v2-rehab__closing-line {
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.4;
    color: #1a1a1a;
    max-width: 620px;
    margin: 0 auto 40px;
}

.v2-rehab__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.95rem;
    color: #ffffff;
    background: #8a5cc4;
    border-radius: 999px;
    padding: 15px 34px;
    transition: var(--v2-transition);
}

.v2-rehab__cta:hover {
    background: #7a4bb4;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .v2-rehab__hero { padding: 100px 0 80px; }
    .v2-rehab__block { padding: 60px 0; }
    .v2-rehab__close { padding: 20px 0 100px; }

    .v2-rehab__split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .v2-plans,
    .v2-audience {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .v2-measures__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .v2-flow {
        grid-template-columns: 1fr;
        gap: 24px;
    }

}

/* --- Contacto --- */
.v2-contact {
    padding: 180px 24px 120px;
    position: relative;
    z-index: 1;
}

.v2-contact__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 100px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}

.v2-contact__eyebrow {
    display: block;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a5cc4;
    margin-bottom: 20px;
}

.v2-contact__title {
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.v2-contact__desc {
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #555555;
    max-width: 380px;
    margin: 0 0 48px;
}

.v2-contact__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 28px;
    border-top: 1px solid rgba(26, 26, 26, 0.12);
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.9rem;
    color: #555555;
}

.v2-contact__meta a {
    color: #1a1a1a;
    transition: var(--v2-transition);
}

.v2-contact__meta a:hover {
    color: #8a5cc4;
}

/* --- Formulario: campos de línea, sin cajas --- */
.v2-contact__form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.v2-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-field label {
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.95rem;
    color: #333333;
}

.v2-field__optional {
    font-weight: 400;
    color: #8a8a8a;
    font-size: 0.85rem;
}

.v2-field input,
.v2-field select,
.v2-field textarea {
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 1rem;
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.v2-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Custom Select Dropdown */
.v2-custom-select {
    position: relative;
    user-select: none;
    width: 100%;
}

.v2-custom-select__trigger {
    background: #ffffff;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 1rem;
    color: #1a1a1a;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.v2-custom-select__trigger::after {
    content: '';
    width: 12px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.v2-custom-select.is-open .v2-custom-select__trigger {
    border-color: #8a5cc4;
    box-shadow: 0 0 0 4px rgba(138, 92, 196, 0.1);
}

.v2-custom-select.is-open .v2-custom-select__trigger::after {
    transform: rotate(180deg);
}

.v2-custom-select__options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

.v2-custom-select.is-open .v2-custom-select__options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.v2-custom-select__option {
    padding: 14px 16px;
    font-family: var(--v2-font-main);
    font-size: 0.95rem;
    color: #333333;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.v2-custom-select__option:hover {
    background: #f4f1fa;
    color: #8a5cc4;
}

.v2-custom-select__option.selected {
    background: #f4f1fa;
    color: #8a5cc4;
    font-weight: 500;
}

.v2-field input:focus,
.v2-field textarea:focus {
    outline: none;
    border-color: #8a5cc4;
    box-shadow: 0 0 0 4px rgba(138, 92, 196, 0.1);
}

.v2-contact__submit {
    align-self: flex-start;
    margin-top: 16px;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 1rem;
    color: #ffffff;
    background: #1a1a1a;
    border: none;
    border-radius: 999px;
    padding: 16px 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(26, 26, 26, 0.2);
}

.v2-contact__submit:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.25);
}

@media (max-width: 900px) {
    .v2-contact {
        padding: 160px 24px 100px;
    }
    .v2-contact__grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .v2-contact__desc {
        margin-bottom: 32px;
    }
}

/* --- Hero Section --- */
.v2-hero {
    padding-top: calc(var(--v2-header-height) + 60px);
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.v2-hero .v2-grid-2 {
    gap: 64px;
}

.v2-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--v2-font-main);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--v2-primary-hover);
    background-color: var(--v2-primary-soft);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.v2-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.v2-hero__description {
    font-size: 1.2rem;
    color: var(--v2-text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.v2-hero__actions {
    display: flex;
    gap: 16px;
}

.v2-hero__image-wrapper {
    position: relative;
    border-radius: var(--v2-radius-lg);
    overflow: hidden;
    box-shadow: var(--v2-shadow-medium);
}

.v2-hero__image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(195, 177, 225, 0) 60%, rgba(54, 69, 79, 0.35) 100%);
    pointer-events: none;
}

.v2-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--v2-transition);
}

.v2-hero__image-wrapper:hover .v2-hero__image {
    transform: scale(1.03);
}

/* --- Problem Section --- */
.v2-problem__header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.v2-problem__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.v2-problem__lead {
    font-size: 1.2rem;
    color: var(--v2-text-muted);
}

.v2-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.v2-card-simple {
    padding: 40px;
    background: var(--v2-white);
    border-radius: var(--v2-radius-md);
    box-shadow: var(--v2-shadow-soft);
    transition: var(--v2-transition);
    border: 1px solid var(--v2-gray-100);
}

.v2-card-simple:hover {
    transform: translateY(-10px);
    box-shadow: var(--v2-shadow-medium);
    border-color: var(--v2-primary-soft);
}

.v2-card-simple__icon {
    font-size: 2.5rem;
    color: var(--v2-primary);
    margin-bottom: 24px;
}

.v2-card-simple h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

/* --- Ecosystem Section --- */
.v2-ecosystem__header {
    margin-bottom: 80px;
}

.v2-ecosystem__title {
    font-size: 2.5rem;
}

.v2-ecosystem__grid {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.v2-ecosystem__item {
    flex: 1;
    background: var(--v2-white);
    padding: 40px;
    border-radius: var(--v2-radius-md);
    box-shadow: var(--v2-shadow-soft);
    position: relative;
}

.v2-ecosystem__meta {
    position: absolute;
    top: -20px;
    left: 40px;
    width: 40px;
    height: 40px;
    background: var(--v2-primary);
    color: var(--v2-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-family: var(--v2-font-accent);
}

.v2-ecosystem__connector {
    flex: 0 0 100px;
    display: flex;
    justify-content: center;
}

.v2-connector-line {
    width: 100%;
    height: 2px;
    border-top: 2px dashed var(--v2-primary);
    position: relative;
}

.v2-connector-line::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: -14px;
    color: var(--v2-primary);
    font-size: 1.5rem;
}

/* --- Product Section --- */
.v2-products__header { margin-bottom: 80px; }
.v2-products__title { font-size: 2.5rem; }

.v2-product-row { margin-bottom: 120px; }
.v2-product-row:last-child { margin-bottom: 0; }

.v2-product__badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--v2-primary-soft);
    color: var(--v2-primary);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v2-product__info-side h3 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.v2-product__features {
    margin-top: 32px;
}

.v2-product__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.v2-product__features i {
    color: var(--v2-accent);
}

.v2-product__img {
    border-radius: var(--v2-radius-md);
    box-shadow: var(--v2-shadow-medium);
}

/* --- Neuralia Section --- */
.v2-neuralia__title { font-size: 2.5rem; margin-bottom: 24px; }
.v2-neuralia__description { font-size: 1.1rem; color: var(--v2-text-muted); margin-bottom: 40px; }

.v2-neuralia__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.v2-stat-card {
    background: var(--v2-white);
    padding: 24px;
    border-radius: var(--v2-radius-sm);
    box-shadow: var(--v2-shadow-soft);
}

.v2-stat-card h4 { margin-bottom: 8px; color: var(--v2-primary); }
.v2-stat-card p { font-size: 0.9rem; margin: 0; }

.v2-dashboard-preview {
    background: var(--v2-black);
    border-radius: var(--v2-radius-md);
    overflow: hidden;
    box-shadow: var(--v2-shadow-medium);
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
}

.v2-preview-header {
    background: #222;
    padding: 12px 20px;
    color: var(--v2-white);
    font-size: 0.8rem;
    border-bottom: 1px solid #333;
}

.v2-preview-body {
    flex: 1;
    padding: 20px;
    display: flex;
    gap: 10px;
}

.v2-chart-placeholder {
    flex: 1;
    background: #1a1a1a;
    border-radius: 4px;
    background-image: linear-gradient(90deg, #222 1px, transparent 1px), linear-gradient(#222 1px, transparent 1px);
    background-size: 20px 20px;
}

/* --- Respaldo institucional --- */
.v2-institutional {
    padding: 40px 24px 90px;
}

.v2-institutional__panel {
    max-width: 1160px;
    margin: 0 auto;
    padding: 56px 40px 48px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid rgba(26, 26, 26, 0.07);
    box-shadow: 0 30px 70px rgba(54, 45, 40, 0.06);
}

.v2-institutional__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 48px;
}

.v2-institutional__label::before,
.v2-institutional__label::after {
    content: '';
    height: 1px;
    width: 64px;
    background: linear-gradient(90deg, transparent, rgba(26, 26, 26, 0.18));
}

.v2-institutional__label::after {
    background: linear-gradient(90deg, rgba(26, 26, 26, 0.18), transparent);
}

.v2-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 8px 0;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.v2-marquee__content {
    display: flex;
    align-items: center;
    gap: 72px;
    width: max-content;
    animation: v2-marquee-scroll 34s linear infinite;
}

.v2-marquee__content img {
    height: 46px;
    width: auto;
    filter: grayscale(1) opacity(0.5);
    transition: var(--v2-transition);
}

.v2-marquee__content img:hover {
    filter: grayscale(0) opacity(1);
}

@keyframes v2-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Responsive Overrides --- */
@media (max-width: 768px) {
    .v2-hero {
        padding-top: calc(var(--v2-header-height) + 40px);
        text-align: center;
    }

    .v2-hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .v2-hero__actions {
        justify-content: center;
        flex-direction: column;
    }

    .v2-hero-video__actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .v2-hero-video__cta {
        width: 100%;
    }

    .v2-hero__image {
        transform: none;
        margin-top: 40px;
    }

    .v2-grid-3 {
        grid-template-columns: 1fr;
    }

    .v2-ecosystem__grid {
        flex-direction: column;
    }

    .v2-ecosystem__connector {
        transform: rotate(90deg);
        height: 60px;
    }

    .v2-product-row--reverse {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .v2-neuralia__stats {
        grid-template-columns: 1fr;
    }
}


/* --- Pack (home): resumen de los tres planes, con salida a /rehab-x --- */
.v2-pack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.v2-pack__card {
    display: flex;
    flex-direction: column;
    padding: 26px 22px 24px;
    border: 1px solid transparent;
    border-top-color: rgba(54, 69, 79, 0.14);
    border-radius: 18px;
    transition: var(--v2-transition);
}

.v2-pack__card:hover {
    border-color: rgba(138, 92, 196, 0.28);
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(54, 45, 40, 0.06);
}

.v2-pack__tier {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a5cc4;
    border: 1px solid rgba(138, 92, 196, 0.3);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 22px;
}

.v2-pack__name {
    margin: 0 0 14px;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 1.18rem;
    line-height: 1.3;
    color: #1a1a1a;
}

.v2-pack__line {
    margin: 0 0 26px;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(26, 26, 26, 0.68);
}

.v2-pack__meta {
    padding-top: 18px;
    border-top: 1px solid rgba(54, 69, 79, 0.1);
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: rgba(26, 26, 26, 0.5);
}

.v2-pack__actions {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-pack__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #403c38;
    color: #ffffff;
    border-radius: 999px;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--v2-transition);
}

.v2-pack__btn:hover {
    background: #2b2825;
}

.v2-pack__link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.85rem;
    color: rgba(26, 26, 26, 0.6);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: var(--v2-transition);
}

.v2-pack__link:hover {
    color: #8a5cc4;
    text-decoration-color: rgba(138, 92, 196, 0.4);
}

/* --- Par de acciones al cierre de una sección --- */
.v2-rehab__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 28px;
}

.v2-rehab__cta-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.95rem;
    color: rgba(26, 26, 26, 0.72);
    border-bottom: 1px solid rgba(26, 26, 26, 0.25);
    padding-bottom: 2px;
    transition: var(--v2-transition);
}

.v2-rehab__cta-alt:hover {
    color: #8a5cc4;
    border-bottom-color: #8a5cc4;
}

/* --- Página de producto: hero oscuro, pantalla completa y mínima --- */
.v2-prod-hero {
    position: relative;
    min-height: 82vh;
    min-height: 82svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 190px 24px 96px;
    background: #37332F url('/assets/images/hero-rehab.jpg') no-repeat center center / cover;
}

.v2-prod-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.4) 50%, rgba(26,26,26,0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

/* El hero es flex column: sin ancho explícito el container se encogería al texto
   y el `margin: 0 auto` lo centraría en vez de alinearlo al margen de la grilla. */
.v2-prod-hero > .v2-container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.v2-prod-hero__eyebrow {
    display: block;
    margin-bottom: 22px;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c3b1e1;
}

.v2-prod-hero__title {
    margin: 0 0 56px;
    font-family: var(--v2-font-accent);
    font-weight: 200;
    font-size: clamp(3.5rem, 12vw, 9rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.v2-prod-hero__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.v2-prod-hero__desc {
    max-width: 520px;
    margin: 0;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

/* Entrada escalonada al cargar */
.v2-prod-hero__eyebrow,
.v2-prod-hero__title,
.v2-prod-hero__desc {
    opacity: 0;
    transform: translateY(18px);
    animation: v2-hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.v2-prod-hero__title { animation-delay: 0.1s; }
.v2-prod-hero__desc { animation-delay: 0.2s; }

@keyframes v2-hero-in {
    to { opacity: 1; transform: translateY(0); }
}

/* Señal de scroll: etiqueta + línea que se descuelga en loop */
.v2-scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    padding-bottom: 4px;
}

.v2-scroll-cue__text {
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--v2-transition);
}

.v2-scroll-cue:hover .v2-scroll-cue__text { color: #c3b1e1; }

.v2-scroll-cue__line {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.v2-scroll-cue__line::after {
    content: '';
    display: block;
    width: 1px;
    height: 40%;
    background: #c3b1e1;
    animation: v2-cue 2.2s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes v2-cue {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(250%); }
}

/* --- Barra de progreso de lectura --- */
.v2-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 1100;
    pointer-events: none;
}

.v2-progress__bar {
    display: block;
    height: 100%;
    width: 0;
    background: #8a5cc4;
    transform-origin: left center;
    transition: width 0.1s linear;
}

/* --- Sub-nav de secciones (página de producto) --- */
.v2-subnav {
    position: fixed;
    top: 98px;
    left: 50%;
    z-index: 950;
    display: flex;
    align-items: center;
    gap: 2px;
    max-width: calc(100% - 48px);
    padding: 5px;
    border-radius: 999px;
    border: 1px solid rgba(54, 69, 79, 0.08);
    background: rgba(243, 239, 234, 0.94);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 8px 28px rgba(54, 45, 40, 0.10);
    overflow-x: auto;
    scrollbar-width: none;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -14px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-subnav::-webkit-scrollbar { display: none; }

.v2-subnav.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.v2-subnav__item {
    padding: 8px 17px;
    border-radius: 999px;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.82rem;
    white-space: nowrap;
    color: rgba(26, 26, 26, 0.55);
    transition: var(--v2-transition);
}

.v2-subnav__item:hover { color: #1a1a1a; }

.v2-subnav__item.is-active {
    background: #8a5cc4;
    color: #ffffff;
}

/* Los anclajes caen debajo del nav y de la sub-nav */
.v2-rehab__block[data-rail] {
    scroll-margin-top: 150px;
}

/* --- Revelado de bloques al entrar en pantalla --- */
.v2-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .v2-reveal,
    .v2-prod-hero__eyebrow,
    .v2-prod-hero__title,
    .v2-prod-hero__desc {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
    .v2-scroll-cue__line::after { animation: none; }
}

@media (max-width: 700px) {
    .v2-subnav { top: 84px; }
    .v2-subnav__item {
        padding: 7px 13px;
        font-size: 0.76rem;
    }
}

@media (max-width: 900px) {
    .v2-pack { grid-template-columns: 1fr; }
    .v2-prod-hero { padding: 150px 24px 72px; }

    /* La bajada y la señal de scroll se apilan cuando no entran a lo ancho */
    .v2-prod-hero__foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
}

/* --- Personas: quienes usan la tecnología y quienes la construyen --- */
.v2-people {
    padding: 140px 24px 40px;
}

.v2-people__title {
    margin: 0 0 72px;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-align: center;
    color: #1a1a1a;
}

.v2-people__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 920px;
    margin: 0 auto;
}

.v2-people__card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    /* Duotono: el gradiente de marca toma el color y la foto aporta la luz.
       Así las dos tarjetas leen como una misma familia visual. */
    background-blend-mode: color;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.v2-people__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(54, 45, 40, 0.16);
}

/* Las dos son moradas, en dos tonos distintos de la familia lavanda: la de
   pacientes tira a cálida, la del equipo a fría. El degradé va de un tinte
   lavado arriba a un violeta sólido abajo. */
.v2-people__card--pacientes {
    --solido: 58, 44, 88;
    background-image:
        linear-gradient(180deg, #D6C9EC 0%, #7B67A8 100%),
        url('/assets/video/Fondo%20prueba.jpg');
}

.v2-people__card--equipo {
    --solido: 40, 38, 74;
    background-image:
        linear-gradient(180deg, #C2BEE6 0%, #5C589B 100%),
        url('/assets/images/carousel/equipo-tecnomotion.webp');
    /* La foto tiene mucho techo: el encuadre baja para centrar al equipo */
    background-position: center 68%;
}

/* Oscurecido inferior: mantiene legible el texto sobre cualquier foto */
/* El velo toma el tono sólido de cada tarjeta: el degradé se cierra hacia abajo
   hasta quedar opaco, que es donde apoya el texto. */
.v2-people__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(var(--solido), 0) 24%,
        rgba(var(--solido), 0.5) 62%,
        rgba(var(--solido), 0.94) 100%
    );
}

.v2-people__body {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 34px;
}

.v2-people__label {
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.v2-people__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.88rem;
    color: #ffffff;
    transition: var(--v2-transition);
}

.v2-people__cta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-people__card:hover .v2-people__cta {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.8);
}

.v2-people__card:hover .v2-people__cta svg {
    transform: translate(2px, -2px);
}

@media (max-width: 760px) {
    .v2-people {
        padding: 100px 24px 20px;
    }
    .v2-people__title {
        margin-bottom: 48px;
    }
    .v2-people__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 420px;
    }
    .v2-people__body {
        padding: 26px;
        gap: 18px;
    }
}

/* --- El hilo: la tarjeta del pilar se deshace en puntos que caen y, al llegar,
   se abren a lo ancho formando el borde superior del panel de abajo. Es la misma
   materia de arriba reordenándose en el desarrollo de abajo. --- */
.v2-thread {
    position: relative;
    height: 360px;
    margin: -70px 0 0;
    pointer-events: none;
}

.v2-thread__canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* La nebulosa detrás de la tarjeta se contrae hacia su pie y se apaga: de ese
   punto salen las partículas que bajan. El scroll maneja escala y opacidad. */
.v2-pillar--active::before {
    content: '';
    position: absolute;
    inset: -70px -50px -60px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(
        60% 50% at 50% 50%,
        rgba(138, 92, 196, 0.20) 0%,
        rgba(138, 92, 196, 0.09) 45%,
        rgba(138, 92, 196, 0) 72%
    );
    filter: blur(14px);
    transform-origin: 50% 92%;
    transform: scale(var(--neb-escala, 1));
    opacity: var(--neb-opacidad, 0);
    pointer-events: none;
}

/* --- El marco que se abre --- */
.v2-rehab__shell {
    --abrir: 1;
    position: relative;
    padding: 4px 0;
}

.v2-rehab__frame {
    position: absolute;
    top: 0;
    bottom: 0;
    /* Arranca al ancho de la tarjeta del pilar y se abre hasta el ancho completo */
    left: calc((1 - var(--abrir)) * 36%);
    right: calc((1 - var(--abrir)) * 36%);
    border: 1px solid rgba(54, 69, 79, 0.1);
    border-radius: calc(26px + var(--abrir) * 22px);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 30px 70px rgba(54, 45, 40, calc(var(--abrir) * 0.045));
}

.v2-rehab__inner {
    position: relative;
    /* Nunca se oculta del todo: si el JS no corre, se lee igual */
    opacity: calc(0.2 + var(--abrir) * 0.8);
}

@media (prefers-reduced-motion: reduce) {
    .v2-thread,
    .v2-rehab__shell {
        --hilo: 1;
        --abrir: 1;
    }
    .v2-rehab__inner { opacity: 1; }
}

@media (max-width: 900px) {
    .v2-thread {
        height: 170px;
        margin: -30px 0 0;
    }
    .v2-rehab__frame {
        left: 0;
        right: 0;
        border-radius: 24px;
    }
}

/* --- El pack: tres cosas distintas que una sola membresía engloba.
   El marco de puntos es el contenedor: es lo que lo diferencia del resto. --- */
/* El rótulo del bloque se centra con el marco, si no queda descolgado */
.v2-rehab__block-head:has(+ .v2-bundle) {
    text-align: center;
}

.v2-bundle {
    position: relative;
    max-width: 660px;
    margin: 0 auto 64px;
    padding: 48px 40px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(138, 92, 196, 0.25);
    border-radius: 34px;
    box-shadow: 0 16px 40px rgba(54, 45, 40, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.v2-bundle__items {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.v2-bundle__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 6px;
    border-radius: 16px;
    transition: var(--v2-transition);
}

.v2-bundle__item:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-2px);
}

.v2-bundle__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(138, 92, 196, 0.12);
    color: #8a5cc4;
    font-size: 1.6rem;
    transition: var(--v2-transition);
}

.v2-bundle__item:hover .v2-bundle__icon {
    color: #ffffff;
    background: #8a5cc4;
    transform: scale(1.05);
}

.v2-bundle__name {
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.95rem;
    color: #4a4440;
}

.v2-bundle__total {
    position: relative;
    margin: 34px 0 0;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

@media (max-width: 700px) {
    .v2-bundle {
        padding: 34px 18px 30px;
    }
    .v2-bundle__items { gap: 4px; }
    .v2-bundle__icon { width: 44px; height: 44px; }
    .v2-bundle__name { font-size: 0.8rem; }
}

/* --- Retrato del equipo + las disciplinas que lo componen --- */
.v2-team {
    padding: 20px 0 50px;
}

.v2-team__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.v2-team__frame {
    position: relative;
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
}

.v2-team__photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    /* Tinte muy desaturado: sólo para que herede la temperatura de marca */
    background-image:
        linear-gradient(180deg, #EFECF4 0%, #9A93A8 100%),
        url('/assets/images/carousel/equipo-tecnomotion.webp');
    background-blend-mode: color;
    background-size: cover;
    background-position: center 58%;
}

.v2-team__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 52px 22px 18px;
    background: linear-gradient(180deg, rgba(40, 36, 44, 0) 0%, rgba(40, 36, 44, 0.8) 100%);
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.9);
}

.v2-team__roles {
    margin: 0;
}

.v2-team__role {
    padding: 18px 0;
    border-top: 1px solid rgba(54, 69, 79, 0.12);
}

.v2-team__role:first-child {
    border-top: 0;
    padding-top: 0;
}

.v2-team__role dt {
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 1rem;
    color: #1a1a1a;
}

.v2-team__role dd {
    margin: 5px 0 0;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #7a736c;
}

@media (max-width: 860px) {
    .v2-team__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .v2-team__photo { aspect-ratio: 3 / 2; }
}

/* --- Valores: definición corta, sin recuadros --- */
.v2-values {
    margin: 0;
}

.v2-values dt {
    margin-top: 26px;
    font-family: var(--v2-font-main);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a5cc4;
}

.v2-values dt:first-child {
    margin-top: 0;
}

.v2-values dd {
    margin: 8px 0 0;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.75;
    color: #5a5550;
}

@media (max-width: 700px) {
    .v2-team__photo { aspect-ratio: 1 / 1; }
    .v2-team__caption { padding: 48px 20px 20px; }
}

/* --- Páginas legales: texto largo, una sola columna, sin adornos --- */
.v2-prod-hero--legal {
    min-height: auto;
    padding: 190px 24px 80px;
}

.v2-prod-hero--legal .v2-prod-hero__title {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.v2-prod-hero--legal .v2-prod-hero__foot {
    justify-content: flex-start;
}

.v2-legal {
    padding: 90px 24px 140px;
}

.v2-legal__body {
    max-width: 720px;
    margin: 0 auto;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.85;
    color: #4a4440;
}

.v2-legal__body h2 {
    margin: 64px 0 18px;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

.v2-legal__body h2:first-child {
    margin-top: 0;
}

.v2-legal__body p {
    margin: 0 0 18px;
}

.v2-legal__body strong {
    font-weight: 500;
    color: #1a1a1a;
}

.v2-legal__body a {
    color: #7a5fb0;
    border-bottom: 1px solid rgba(122, 95, 176, 0.3);
    transition: var(--v2-transition);
}

.v2-legal__body a:hover {
    border-bottom-color: #7a5fb0;
}

.v2-legal__body ul {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.v2-legal__body li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}

.v2-legal__body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 8px;
    height: 1px;
    background: rgba(138, 92, 196, 0.6);
}

/* Bloques destacados dentro del texto legal */
.v2-legal__intro,
.v2-legal__contact,
.v2-legal__signature {
    padding: 26px 28px;
    margin: 0 0 40px;
    border-radius: 18px;
    border: 1px solid rgba(54, 69, 79, 0.1);
    background: rgba(255, 255, 255, 0.42);
}

.v2-legal__contact,
.v2-legal__signature {
    margin: 32px 0;
}

.v2-legal__intro p:last-child,
.v2-legal__contact p:last-child,
.v2-legal__signature p:last-child {
    margin-bottom: 0;
}

.v2-legal__section {
    margin-bottom: 8px;
}

@media (max-width: 700px) {
    .v2-prod-hero--legal { padding: 150px 24px 60px; }
    .v2-legal { padding: 60px 24px 100px; }
    .v2-legal__intro,
    .v2-legal__contact,
    .v2-legal__signature { padding: 20px 20px; }
}

/* --- Formulario de contacto: errores y estado del envío --- */
.v2-field--trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.v2-field__error {
    margin: 6px 0 0;
    min-height: 1em;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.8rem;
    color: #b0413e;
}

.v2-field input.is-invalid,
.v2-field textarea.is-invalid {
    border-bottom-color: #b0413e;
}

.v2-contact__status {
    margin: 16px 0 0;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.88rem;
    line-height: 1.6;
}

.v2-contact__status.is-error { color: #b0413e; }
.v2-contact__status.is-ok { color: #3f7d5c; }

.v2-contact__submit[disabled] {
    opacity: 0.6;
    cursor: progress;
}

/* Deber de informar: va junto al formulario, no escondido en la política */
.v2-contact__aviso {
    margin: 18px 0 0;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 0.78rem;
    line-height: 1.65;
    color: #8a827a;
}

.v2-contact__aviso a {
    color: #7a5fb0;
    border-bottom: 1px solid rgba(122, 95, 176, 0.3);
    transition: var(--v2-transition);
}

.v2-contact__aviso a:hover { border-bottom-color: #7a5fb0; }

/* --- El año en 365 puntos, versión compacta (página de producto) --- */
.v2-anio {
    margin: 80px 0 0;
}

.v2-anio__canvas {
    display: block;
    width: 100%;
    height: 190px;
}

.v2-anio__pie {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 40px;
    margin-top: 26px;
}

.v2-anio__dato {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 0.9rem;
    color: #6b6259;
}

.v2-anio__dato b {
    font-weight: 500;
    font-size: 1.05rem;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}

.v2-anio__dato em {
    font-style: normal;
    color: #a8a29c;
}

.v2-anio__marca {
    align-self: center;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.v2-anio__marca--sesion { background: #3d3733; }
.v2-anio__marca--rehab { background: rgba(138, 92, 196, 0.55); }

@media (max-width: 700px) {
    .v2-anio { margin-top: 48px; }
    .v2-anio__canvas { height: 130px; }
    .v2-anio__pie {
        justify-content: flex-start;
        gap: 8px 20px;
    }
    .v2-anio__dato em { display: none; }
}

/* --- Manifiesto: una sola frase que sostiene toda la página --- */
.v2-manifiesto {
    max-width: 860px;
    margin: 0 auto;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: clamp(1.6rem, 3.6vw, 2.9rem);
    line-height: 1.28;
    letter-spacing: -0.01em;
    text-align: center;
    color: #8a827a;
}

.v2-manifiesto strong {
    display: block;
    font-weight: 300;
    color: #1a1a1a;
}

.v2-manifiesto__pie {
    margin: 26px 0 0;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: #a8a29c;
}

/* --- Neuralia: las tres visualizaciones --- */
.v2-nrl-visual {
    margin: 64px 0 0;
    padding: 28px 24px 22px;
    border: 1px solid rgba(54, 69, 79, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.4);
}

.v2-nrl-visual canvas {
    display: block;
    width: 100%;
    height: 300px;
}

.v2-nrl-visual--senal canvas {
    height: 160px;
}

.v2-nrl-visual figcaption,
.v2-nrl-panel figcaption {
    margin-top: 18px;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: #a8a29c;
}

/* Panel clínico de ejemplo */
.v2-nrl-panel {
    margin: 64px 0 0;
    padding: 22px 24px 20px;
    border: 1px solid rgba(54, 69, 79, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.4);
}

.v2-nrl-panel__fila {
    display: grid;
    grid-template-columns: 10px minmax(0, 1.5fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px 4px;
    border-top: 1px solid rgba(54, 69, 79, 0.08);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-nrl-panel__fila:first-child { border-top: 0; }

.v2-nrl-panel.is-in .v2-nrl-panel__fila { opacity: 1; transform: none; }
.v2-nrl-panel.is-in .v2-nrl-panel__fila:nth-child(1) { transition-delay: 0.05s; }
.v2-nrl-panel.is-in .v2-nrl-panel__fila:nth-child(2) { transition-delay: 0.17s; }
.v2-nrl-panel.is-in .v2-nrl-panel__fila:nth-child(3) { transition-delay: 0.29s; }
.v2-nrl-panel.is-in .v2-nrl-panel__fila:nth-child(4) { transition-delay: 0.41s; }

.v2-nrl-panel__punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(54, 69, 79, 0.22);
}

/* El caso que pide atención late, para que salte a la vista */
.v2-nrl-panel__fila--alerta .v2-nrl-panel__punto {
    background: #8a5cc4;
    animation: v2-nrl-late 2.2s ease-in-out infinite;
}

@keyframes v2-nrl-late {
    0%, 100% { box-shadow: 0 0 0 0 rgba(138, 92, 196, 0.45); }
    70%      { box-shadow: 0 0 0 9px rgba(138, 92, 196, 0); }
}

.v2-nrl-panel__caso {
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 0.95rem;
    color: #4a4440;
}

.v2-nrl-panel__barra {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: rgba(54, 69, 79, 0.09);
    overflow: hidden;
}

.v2-nrl-panel__barra i {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 999px;
    background: rgba(54, 69, 79, 0.35);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.v2-nrl-panel.is-in .v2-nrl-panel__barra i { transform: scaleX(var(--carga)); }
.v2-nrl-panel__fila--alerta .v2-nrl-panel__barra i { background: #8a5cc4; }

.v2-nrl-panel__estado {
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.8rem;
    white-space: nowrap;
    color: #9a938c;
}

.v2-nrl-panel__fila--alerta .v2-nrl-panel__estado { color: #7a5fb0; }

@media (prefers-reduced-motion: reduce) {
    .v2-nrl-panel__fila { opacity: 1; transform: none; }
    .v2-nrl-panel__barra i { transform: scaleX(var(--carga)); transition: none; }
    .v2-nrl-panel__fila--alerta .v2-nrl-panel__punto { animation: none; }
}

@media (max-width: 700px) {
    .v2-nrl-visual { padding: 18px 14px 16px; }
    .v2-nrl-visual canvas { height: 220px; }
    .v2-nrl-visual--senal canvas { height: 150px; }
    .v2-nrl-panel__fila {
        grid-template-columns: 8px 1fr;
        gap: 8px 12px;
    }
    .v2-nrl-panel__barra,
    .v2-nrl-panel__estado { grid-column: 2; }
}

/* Mapa de presión: la escala evita que haya que adivinar qué significa el color */
.v2-nrl-visual--mapa canvas {
    height: 260px;
}

.v2-nrl-escala {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a8a29c;
}

.v2-nrl-escala i {
    display: block;
    width: min(180px, 34vw);
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(54, 69, 79, 0.16) 0%, rgba(138, 92, 196, 0.45) 55%, rgba(138, 92, 196, 0.9) 100%);
}

@media (max-width: 700px) {
    .v2-nrl-visual--mapa canvas { height: 190px; }
}

/* ============================================================
   RITMO DE PÁGINA
   Todos los bloques tenían la misma forma: rótulo, título a la
   izquierda, texto a la derecha. Repetido diez veces se vuelve una
   pared. Estos recursos cambian el tempo cada tanto.
   ============================================================ */

/* --- 1. Banda oscura: el corte más fuerte en una página clara --- */
.v2-rehab__block--oscuro {
    background: #37332F;
    color: rgba(255, 255, 255, 0.72);
    padding: 110px 0;
}

.v2-rehab__block--oscuro .v2-rehab__label { color: #c3b1e1; }
.v2-rehab__block--oscuro .v2-rehab__block-title { color: #ffffff; }
.v2-rehab__block--oscuro .v2-rehab__block-body p { color: rgba(255, 255, 255, 0.66); }
.v2-rehab__block--oscuro .v2-rehab__block-body strong { color: #ffffff; }

.v2-rehab__block--oscuro .v2-rehab__block-body .v2-rehab__emphasis {
    border-left-color: #c3b1e1;
    color: rgba(255, 255, 255, 0.92);
}

.v2-rehab__block--oscuro .v2-measures__intro,
.v2-rehab__block--oscuro .v2-measures__outro {
    color: rgba(255, 255, 255, 0.55);
}

.v2-rehab__block--oscuro .v2-measure {
    border-top-color: rgba(255, 255, 255, 0.16);
}

.v2-rehab__block--oscuro .v2-measure:hover {
    border-color: rgba(195, 177, 225, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.v2-rehab__block--oscuro .v2-measure h4 { color: #ffffff; }
.v2-rehab__block--oscuro .v2-measure__num { color: #c3b1e1; }

/* --- 2. Split invertido: el texto pasa a la izquierda --- */
.v2-rehab__split--invertido {
    grid-template-columns: 1.15fr 1fr;
}

.v2-rehab__split--invertido .v2-rehab__block-title {
    order: 2;
}

.v2-rehab__split--invertido .v2-rehab__block-body {
    order: 1;
}

/* --- 3. Cita de respiro: un compás entre bloques --- */
.v2-quote {
    max-width: 900px;
    margin: 0 auto;
    padding: 90px 0;
    text-align: center;
}

.v2-quote p {
    margin: 0;
    font-family: var(--v2-font-accent);
    font-weight: 200;
    font-size: clamp(1.7rem, 3.6vw, 2.9rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #3d3733;
}

.v2-quote cite {
    display: block;
    margin-top: 22px;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a8a29c;
}

/* --- 4. Entradas con dirección: no todo sube desde abajo --- */
.v2-desde-izq,
.v2-desde-der {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-desde-izq { transform: translateX(-34px); }
.v2-desde-der { transform: translateX(34px); }

.v2-desde-izq.is-in,
.v2-desde-der.is-in {
    opacity: 1;
    transform: none;
}

/* --- 5. Línea de tiempo: los pasos dejan de ser cinco columnas de texto --- */
.v2-flow--linea {
    position: relative;
    padding-top: 46px;
}

.v2-flow--linea::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(54, 69, 79, 0.14);
}

/* El trazo violeta avanza con el scroll (lo escribe el JS) */
.v2-flow--linea::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #8a5cc4;
    transform: scaleX(var(--avance, 0));
    transform-origin: left center;
    transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.v2-flow--linea .v2-flow__step {
    position: relative;
    border-top: 0;
    padding-top: 0;
}

.v2-flow--linea .v2-flow__step::before {
    content: '';
    position: absolute;
    top: -37px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #F1ECE6;
    box-shadow: inset 0 0 0 1px rgba(54, 69, 79, 0.3);
    transition: box-shadow 0.4s ease, background-color 0.4s ease;
}

.v2-flow--linea .v2-flow__step.is-alcanzado::before {
    background: #8a5cc4;
    box-shadow: inset 0 0 0 1px #8a5cc4;
}

/* El paso donde está parada la línea: nodo con halo y título encendido */
.v2-flow--linea .v2-flow__step.is-activo::before {
    transform: scale(1.35);
    box-shadow: inset 0 0 0 1px #8a5cc4, 0 0 0 5px rgba(138, 92, 196, 0.18);
    animation: v2-nodo 1.7s ease-in-out infinite;
}

@keyframes v2-nodo {
    0%, 100% { box-shadow: inset 0 0 0 1px #8a5cc4, 0 0 0 4px rgba(138, 92, 196, 0.20); }
    50%      { box-shadow: inset 0 0 0 1px #8a5cc4, 0 0 0 9px rgba(138, 92, 196, 0.05); }
}

/* Los pasos que la línea todavía no alcanzó quedan atenuados */
.v2-flow--linea .v2-flow__step {
    opacity: 0.42;
    transition: opacity 0.6s ease;
}

.v2-flow--linea .v2-flow__step.is-alcanzado { opacity: 1; }

.v2-flow--linea .v2-flow__step.is-activo h4 { color: #7a5fb0; }

.v2-flow--linea .v2-flow__step h4,
.v2-flow--linea .v2-flow__step .v2-flow__num {
    transition: color 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
    .v2-desde-izq,
    .v2-desde-der { opacity: 1; transform: none; }
    .v2-flow--linea::after { transform: scaleX(1); }
    .v2-flow--linea .v2-flow__step {
        opacity: 1;
        animation: none;
    }
}

@media (max-width: 900px) {
    .v2-rehab__block--oscuro { padding: 70px 0; }
    .v2-rehab__split--invertido { grid-template-columns: 1fr; }
    .v2-rehab__split--invertido .v2-rehab__block-title { order: 1; }
    .v2-rehab__split--invertido .v2-rehab__block-body { order: 2; }
    .v2-quote { padding: 60px 0; }
    .v2-flow--linea::before,
    .v2-flow--linea::after { display: none; }
    .v2-flow--linea .v2-flow__step::before { display: none; }
    .v2-flow--linea { padding-top: 0; }
}

/* --- Qué mira la supervisión: seis señales con su gráfico --- */
.v2-vigila {
    margin-top: 80px;
}

.v2-vigila__head {
    max-width: 720px;
    margin-bottom: 54px;
}

.v2-vigila__titulo {
    margin: 14px 0 0;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

.v2-vigila__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.v2-vigila__item {
    padding: 28px 24px 26px;
    border: 1px solid transparent;
    border-top-color: rgba(54, 69, 79, 0.16);
    border-radius: 20px;
    outline: none;
    transition: var(--v2-transition);
}

.v2-vigila__item:hover,
.v2-vigila__item:focus-visible {
    border-color: rgba(138, 92, 196, 0.28);
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(54, 45, 40, 0.06);
}

.v2-vigila__icono {
    display: block;
    width: 62px;
    height: 62px;
    margin-bottom: 20px;
}

.v2-vigila__icono canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.v2-vigila__item h5 {
    margin: 0 0 10px;
    font-family: var(--v2-font-main);
    font-weight: 400;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.v2-vigila__item p {
    margin: 0;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #5a5550;
}

/* --- Salida hacia Neuralia: el marco de puntos invita al clic --- */
.v2-hacia {
    position: relative;
    display: block;
    max-width: 620px;
    margin: 56px auto 0;
    padding: 26px 34px;
    text-align: center;
}

.v2-hacia__marco {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.v2-hacia__marco canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Texto corrido, no flex: el gap metía un espacio antes de la coma */
.v2-hacia__texto {
    position: relative;
    display: block;
    font-family: var(--v2-font-main);
    font-weight: 300;
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.5;
    color: #4a4440;
}

.v2-hacia__texto b {
    font-weight: 500;
    color: #7a5fb0;
}

.v2-hacia__texto i {
    display: inline-block;
    margin-left: 8px;
    font-style: normal;
    color: #8a5cc4;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-hacia:hover .v2-hacia__texto i {
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .v2-vigila__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .v2-vigila { margin-top: 52px; }
    .v2-vigila__grid { grid-template-columns: 1fr; }
    .v2-vigila__icono { width: 50px; height: 50px; }
    .v2-hacia { padding: 22px 24px; }
}

/* Los recuadros de visualización sobre la banda oscura: el fondo blanco al 40%
   y el texto en gris los volvían ilegibles ahí. */
.v2-rehab__block--oscuro .v2-nrl-visual,
.v2-rehab__block--oscuro .v2-nrl-panel {
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.04);
}

.v2-rehab__block--oscuro .v2-nrl-visual figcaption,
.v2-rehab__block--oscuro .v2-nrl-panel figcaption {
    color: rgba(255, 255, 255, 0.45);
}

/* --- Componentes dentro de una banda oscura ---
   Las tarjetas y listas están pensadas para fondo claro: título casi negro y
   texto gris. Sobre la banda oscura eso queda ilegible. Se cubre acá todo lo
   que puede caer adentro, no sólo lo que hoy cae, para que mover un bloque a
   oscuro no vuelva a romper la legibilidad. */
.v2-rehab__block--oscuro .v2-audience__item,
.v2-rehab__block--oscuro .v2-vigila__item,
.v2-rehab__block--oscuro .v2-plan,
.v2-rehab__block--oscuro .v2-pack__card,
.v2-rehab__block--oscuro .v2-flow__step {
    border-top-color: rgba(255, 255, 255, 0.18);
}

.v2-rehab__block--oscuro .v2-audience__item:hover,
.v2-rehab__block--oscuro .v2-audience__item:focus-visible,
.v2-rehab__block--oscuro .v2-vigila__item:hover,
.v2-rehab__block--oscuro .v2-vigila__item:focus-visible,
.v2-rehab__block--oscuro .v2-plan:hover,
.v2-rehab__block--oscuro .v2-pack__card:hover {
    border-color: rgba(195, 177, 225, 0.45);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.v2-rehab__block--oscuro .v2-audience__item h4,
.v2-rehab__block--oscuro .v2-vigila__item h5,
.v2-rehab__block--oscuro .v2-flow__step h4,
.v2-rehab__block--oscuro .v2-plan__name,
.v2-rehab__block--oscuro .v2-pack__name,
.v2-rehab__block--oscuro .v2-vigila__titulo {
    color: #ffffff;
}

.v2-rehab__block--oscuro .v2-audience__item p,
.v2-rehab__block--oscuro .v2-vigila__item p,
.v2-rehab__block--oscuro .v2-flow__step p,
.v2-rehab__block--oscuro .v2-plan__for,
.v2-rehab__block--oscuro .v2-pack__line {
    color: rgba(255, 255, 255, 0.66);
}

.v2-rehab__block--oscuro .v2-flow__num,
.v2-rehab__block--oscuro .v2-plan__tier,
.v2-rehab__block--oscuro .v2-pack__tier {
    color: #c3b1e1;
    border-color: rgba(195, 177, 225, 0.4);
}

.v2-rehab__block--oscuro .v2-plan__edge,
.v2-rehab__block--oscuro .v2-pack__meta {
    color: rgba(255, 255, 255, 0.85);
    border-top-color: rgba(255, 255, 255, 0.16);
}

.v2-rehab__block--oscuro .v2-plan__includes li,
.v2-rehab__block--oscuro .v2-plan__inherits {
    color: rgba(255, 255, 255, 0.7);
}

/* La cita de respiro y la salida hacia Neuralia */
.v2-rehab__block--oscuro .v2-quote p,
.v2-quote--oscuro p { color: #ffffff; }

.v2-rehab__block--oscuro .v2-quote cite,
.v2-quote--oscuro cite { color: rgba(255, 255, 255, 0.45); }

.v2-rehab__block--oscuro .v2-hacia__texto { color: rgba(255, 255, 255, 0.78); }
.v2-rehab__block--oscuro .v2-hacia__texto b { color: #c3b1e1; }
