/* #region -------------------- VARIABLES Y RESET -------------- */
:root {
    --primary: #0284c7;
    --secondary: #0f172a;
    --accent: #10b981;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-muted: #94a3b8;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --shadow-card: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    --header-height: 30px;
    --nav-right: 20px;
    --nav-padding: 20px 10px;
    --nav-gap: 16px;
    --dot-size: 8px;
    --dot-expand: 24px;
    --dot-translate: 0px; 
    --dot-bg: rgba(255, 255, 255, 0.3);
    --dot-active-bg: var(--primary, #3b82f6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar { display: none; }
html {
    scrollbar-width: none;
    scroll-behavior: smooth; 
    overflow-x: hidden;
    scroll-snap-type: y proximity; 
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--secondary);
    background-color: #0f172a;
    line-height: 1.6;
    timeline-scope: --hero-tl, --fases-tl, --comp-tl, --elegir-tl, --steps-tl, --equipo-tl, --precios-tl, --tests-tl, --faq-tl, --contacto-tl;
}

h1, h2, h3, h4 { letter-spacing: -0.03em; font-weight: 700; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
/* #endregion*/

/* #region -------------------- COMPONENTES GLOBALES ----------- */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }

.btn {
    display: inline-block; padding: 14px 36px; border-radius: 50px; font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); text-align: center;
    backdrop-filter: blur(10px); cursor: pointer;
}
.btn-primary {
    background-color: var(--primary); 
    color: var(--white);
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.4); 
    border: none;
    /*animaciones*/
    animation: pulse 2s infinite ease-in-out;
    will-change: transform, box-shadow;
}

/*boton palpitante*/
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 0 25px rgba(2, 132, 199, 0.7); 
    }
}

.btn-primary:hover { 
    animation-play-state: paused; /*pausamos animacion en hover*/
    transform: scale(1.05); 
    box-shadow: 0 0 40px rgba(2, 132, 199, 0.6);
    background-color: #0274b3;
}
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.full-width { width: 100%; display: block; margin-top: 1rem; }

section { position: relative;}
.section-title { margin-bottom: 2rem; font-size: 2.5rem; }
.text-white { color: var(--white); }
.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--secondary); color: var(--white); }
/* #endregion*/

/* #region -------------------- 1. HEADER ---------------------- */
header {
    position: fixed; 
    top: 0; 
    width: 100%; 
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.8); 
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000; 
    display: flex; 
    align-items: center;
}
.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 100%; 
}

header img.logo { 
    height: 100px; 
    width: auto; 
}

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
    color: rgba(255, 255, 255, 0.9); font-size: 0.75rem; font-weight: 450;
    position: relative; padding-bottom: 4px;
}
/* Efecto hover subrayado */
.nav-links a::after {
    content: ''; position: absolute; bottom: 3px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--white));
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.menu-button, .menu-checkbox { display: none; }
/* #endregion */

/* #region ------------------------------RESPONSIVE HEADER */
/* hamburguer menu */
@media (max-width: 480px){

header {
position: fixed; 
top: 0; 
width: 100%; 
height: 60px;
background: rgba(15, 23, 42, 0.8); 
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
z-index: 1000; 
display: flex; 
}
header img.logo { 
    position: relative;
    left: -30px;
    margin-top: 5px;
    margin-bottom: 5px;
    height: 160px; 
    width: auto; 
    z-index: 999;
    cursor: pointer;
}

.menu-button {
display: flex; 
flex-direction: column; 
justify-content: space-between;
width: 22px; 
height: 14px; 
cursor: pointer; 
z-index: 1002;
position: relative;

}
.bar {
height: 2px; 
width: 100%; 
background-color: white;
border-radius: 10px;
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.nav-links {
position: fixed; 
top: 0;
left: 33%; 
width: 100%; 
height: 100vh;
background: rgba(15, 23, 42, 0.95); 
backdrop-filter: blur(20px) saturate(180%);
flex-direction: column; 
align-items: center; 
justify-content: center;
gap: 2rem; 
padding: 1rem; 
transform: translateX(100%); 
transition: transform 1s ease;
z-index: 1000;
}


.menu-checkbox:checked ~ .nav-links { transform: translateX(0); }

/*aspa 1*/
.menu-checkbox:checked ~ .menu-button .bar:nth-child(1) {
transform: translateY(6px) rotate(-45deg); background-color: var(--white);
}
/*aspa 2 desaparece */
.menu-checkbox:checked ~ .menu-button .bar:nth-child(2) {
opacity: 0; transform: translateX(10px);
}
/*aspa 3*/
.menu-checkbox:checked ~ .menu-button .bar:nth-child(3) {
transform: translateY(-6px) rotate(45deg); background-color: var(--white);
}

.nav-links a { 
    position: relative;
    text-align: center;
    top: 0px;
    padding-top: 0px;
    font-size: 1.5rem;
    left: -70px; }
}
/* #endregion */

/* #region ---------------------2. SIDE NAV -------------------- */
.side-nav {
  position: fixed;
  top: 50%;
  right: var(--nav-right);
  transform: translateY(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--nav-gap);
  padding: var(--nav-padding);
  background: rgba(15, 23, 42, 0.4);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.nav-dot {
  width: var(--dot-size);
  height: var(--dot-size);
  background: var(--dot-bg);
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  display: block;
  animation: dot-elastic linear both;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-range: cover 0% cover 100%;
  cursor: pointer;
  will-change: transform, height, background;
}

.nav-dot .tooltip {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  color: white;
  font-size: 0.75rem;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  background: var(--secondary, #1e293b);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.nav-dot:hover .tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-5px);
}

@keyframes dot-elastic {
  0%, 100% {
    height: var(--dot-size);
    background: var(--dot-bg);
    transform: translateX(0);             
  }
  50% {
    height: var(--dot-expand);            
    background: var(--dot-active-bg);
    box-shadow: 0 0 10px var(--dot-active-bg);
    transform: translateX(var(--dot-translate)); 
  }
}

@media (hover: hover) {
  .nav-dot:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-5px);
  }
}

/* Asignación de Timelines */
.nav-dot:nth-child(1) { animation-timeline: --hero-tl; }
.nav-dot:nth-child(2) { animation-timeline: --fases-tl; }
.nav-dot:nth-child(3) { animation-timeline: --comp-tl; }
.nav-dot:nth-child(4) { animation-timeline: --elegir-tl; }
.nav-dot:nth-child(5) { animation-timeline: --steps-tl; }
.nav-dot:nth-child(6) { animation-timeline: --equipo-tl; }
.nav-dot:nth-child(7) { animation-timeline: --precios-tl; }
.nav-dot:nth-child(8) { animation-timeline: --tests-tl; }
.nav-dot:nth-child(9) { animation-timeline: --faq-tl; }
.nav-dot:nth-child(10){ animation-timeline: --contacto-tl; }
/* #endregion */

/* #region -----------------------------   RESPONSIVE SIDE-NAV*/
@media (max-width: 480px) {
    :root {
        --nav-right: -5px; /* Asoma ligeramente */
        --nav-padding: 25px 10px;
        --nav-gap: 20px;
        --dot-size: 8px;
        --dot-expand: 40px; 
        --dot-translate: -4px; 
    }

    .side-nav {
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.05);
        border-right: none;
        border-radius: 40px 0 0 40px;
        right: var(--nav-right);
        padding: var(--nav-padding);
        width: 32px;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: visible; 
    }

    @keyframes dot-elastic {
        0%, 100% {
            height: var(--dot-size);
            width: var(--dot-size);
            background: var(--dot-bg);
            transform: translateX(0);
            border-radius: 50%;
        }
        50% {
            height: var(--dot-expand); 
            width: calc(var(--dot-size) + 4px);
            background: var(--dot-active-bg);
            box-shadow: 0 0 15px var(--dot-active-bg);
            transform: translateX(var(--dot-translate));
            border-radius: 20px;
        }
    }

    .nav-dot::before {
        content: '';
        position: absolute;
        right: -10px; 
        height: 100%;
        width: 0;
        background: inherit; 
        backdrop-filter: blur(10px);
        transition: width 0.3s ease;
        z-index: -1;
    }

    .nav-dot {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        animation-name: dot-elastic;
        animation-duration: 1s;
        animation-timing-function: linear;
        animation-fill-mode: both;
    }

    .nav-dot::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 100%;
        background: radial-gradient(ellipse at left, rgba(2, 132, 199, 0.15) 0%, transparent 70%);
        transform: translateY(-50%) translateX(100%);
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }


    .nav-dot:nth-child(n) {
        animation-name: dot-elastic;
    }

    .nav-dot .tooltip { display: none; }
}

/* #endregion*/

/* #region -------------------- 3. HERO ------------------------ */

#hero {
    height: 125vh; /*cuanto de scroll durara */
    view-timeline-name: --hero-tl;
    position: relative;
    background-color: var(--secondary);
    margin: 0;
    padding: 0;
}

/* actualizacion a sticky */
.hero-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    perspective: 1000px;
    animation: hero-zoom-out linear both;
    animation-timeline: --hero-tl;
    animation-range: exit 0% exit 100%;
    will-change: transform, opacity, filter;
}

/* KEYFRAME efecto de alejarse */
@keyframes hero-zoom-out {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
    100% {
        transform: scale(0.6); 
        opacity: 0;
        filter: blur(30px) brightness(0.4);
    }
}

@keyframes kenBurns {
    0% { transform: scale(1.5); }
    100% { transform: scale(1); } 
}

/*carrusell*/
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    padding: 0;
    margin: 0;
    pointer-events: none; 
}

.hero-slider li {
    position: absolute;
    inset: 0;
    list-style: none;
    opacity: 0;
    animation: fadeSlide 20s infinite ease-in-out; 
}


/* Animaciones del Carrusel (Internas) */
@keyframes fadeSlide {
    0%   { opacity: 0; z-index: 1; }
    4%   { opacity: 1; z-index: 2; }
    20%  { opacity: 1; z-index: 2; }
    24%  { opacity: 0; z-index: 1; }
    100% { opacity: 0; z-index: 1; }
}

/* Delays del carrusel */
.hero-slider li:nth-child(1) { animation-delay: 0s; }
.hero-slider li:nth-child(2) { animation-delay: 4s; }
.hero-slider li:nth-child(3) { animation-delay: 8s; }
.hero-slider li:nth-child(4) { animation-delay: 12s;}
.hero-slider li:nth-child(5) { animation-delay: 16s;}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transform: scale(1);
    animation: kenBurns 20s infinite alternate ease-in-out;
}


.hero-content {
    position: relative; 
    z-index: 2;
    padding: 0 20px;
    width: 100%;
    max-width: 900px;
}

#hero h2 {
    font-size: clamp(2.5rem, 5vw, 5rem); 
    line-height: 1.1; 
    margin-bottom: 1.5rem;
    background: linear-gradient(
        120deg, 
        #ffffff 20%, 
        #94a3b8 50%, 
        #ffffff 80%
    );
    background-size: 200% auto;
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent; 
    color: transparent; 
    animation: text-shine 6s linear infinite;
    will-change: background-position;
}

@keyframes text-shine {
    to { background-position: 200% center; }
}

.hero-subtitle { 
    font-size: clamp(1rem, 2vw, 1.25rem); 
    color: #cbd5e1; 
    max-width: 600px; 
    margin: 0 auto 2.5rem; 
    line-height: 1.6;
}

/* 5. INDICADOR DE SCROLL */
.scroll-indicator {
    position: absolute; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 10px; 
    z-index: 2; 
    color: var(--white);
    animation: fade-out-quick linear both;
    animation-timeline: --hero-tl;
    animation-range: exit 0% exit 15%;
}

@keyframes fade-out-quick {
    to { opacity: 0; transform: translate(-50%, 20px); }
}

.mouse { 
    width: 26px; 
    height: 40px; 
    border: 2px solid rgba(255, 255, 255, 0.8); 
    border-radius: 20px; 
    display: flex; 
    justify-content: center; 
}

.wheel { 
    width: 4px; 
    height: 6px; 
    background: #fff; 
    border-radius: 2px; 
    margin-top: 6px; 
    animation: wheel 2s infinite; 
}

@keyframes wheel { 
    0% { transform: translateY(0); opacity: 1; } 
    100% { transform: translateY(12px); opacity: 0; } 
}


/* #endregion */

/* #region -------------------- 4. FASES ---------------------- */

#fases-contenedor {
    background-color: var(--secondary); 
    height: 600vh; 
    view-timeline-name: --fases-tl;
    position: relative;
    z-index: 10;
}

/* EL VAGÓN STICKY  */
.deck-container { 
    position: sticky; 
    top: 0; 
    height: 100vh; 
    width: 100%; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilo de fases */
.deck-card {
    position: absolute; 
    inset: 0;
    height: 100vh; 
    width: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: #0f172a; 
    opacity: 0; 
    transform: scale(0.95) translateY(50px);
    transition: all 0.5s ease;
}

/* --- LÓGICA DE APILAMIENTO (STACKING) --- */

.card-1 { 
    z-index: 1; 
    opacity: 1; /* Visible por defecto */
    transform: scale(1) translateY(0);
    animation: scale-down linear both;
    animation-timeline: --fases-tl;
    animation-range: contain 0% contain 100%;
}

.card-2 { 
    z-index: 2;
    animation: card-enter linear both;
    animation-timeline: --fases-tl;
    animation-range: contain 15% contain 30%;
}

.card-3 { 
    z-index: 3;
    animation: card-enter linear both;
    animation-timeline: --fases-tl;
    animation-range: contain 40% contain 60%;
}

.card-4 { 
    z-index: 4;
    animation: card-enter linear both;
    animation-timeline: --fases-tl;
    animation-range: contain 70% contain 95%;
}

/* Efecto de entrada: Aparece, crece y se coloca */
@keyframes card-enter {
    0% { 
        opacity: 0; 
        transform: scale(0.9) translateY(100px); 
        filter: blur(10px);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
        filter: blur(0px);
    }
}

/* Efecto de profundidad para la carta que se queda atrás */
@keyframes scale-down {
    to { transform: scale(0.9); filter: brightness(0.5); }
}

/* --- ESTILOS INTERNOS DE LAS CARTAS --- */
.card-content {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    width: 90%; 
    max-width: 1100px;
    align-items: center; 
    position: relative;
}

.fase-num {
    position: absolute; 
    top: -6rem; 
    left: -2rem; 
    font-size: 8rem; /* Ajustado para móviles */
    font-weight: 900; 
    color: rgba(255, 255, 255, 0.05); 
    line-height: 1; 
    pointer-events: none;
}

.text-group h3 { 
    font-size: clamp(2rem, 4vw, 3.5rem); 
    margin-bottom: 1rem; 
    color: var(--white); 
}
.text-group p { 
    font-size: clamp(1rem, 2vw, 1.25rem); 
    color: #94a3b8; 
}

.img-wrapper img {
    border-radius: 24px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    transform: perspective(1000px) rotateY(-5deg); 
    max-height: 55vh; 
    width: auto; 
    margin: 0 auto;
    background: #1e293b;
}

/* transición a la siguiente sección */
#fases-contenedor::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    background: linear-gradient(to bottom, transparent, var(--bg-light));
    z-index: 20;
    pointer-events: none;
}
/* #endregion*/

/* #region ----------------------------- RESPONSIVE FASES */
@media (max-width: 480px) {

    #fases-contenedor {
        height: 400vh !important; 
        padding: 0 !important;

    }


    .deck-container {
        padding: 0 1.5rem;
    }

    .card-content {
        display: flex;
        flex-direction: column-reverse; 
        gap: 1.5rem;
        text-align: center; 
        width: 100%;
        padding-top: 1rem;
    }

    /* Ajustes de Imagen */
    .img-wrapper img {
        max-height: 35vh; 
        width: 100%;
        object-fit: cover;
        transform: perspective(1000px) rotateY(0deg); 
        box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    }

    /* letras más pequeñas */
    .text-group h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .text-group p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Número  */
    .fase-num {
        display: block !important;
        position: absolute !important;
        font-size: 8rem;
        top: -100px;
        left: 50%;
        transform: translateX(-50%);
        opacity: 1;
    }

    .deck-card {
        padding: 1rem;
        align-items: center; 
    }
}
/* #endregion */

/* #region -------------------- 5. COMPARATIVA ---------------- */

#comparativa {
    height: 300vh; 
    view-timeline-name: --comp-tl;
    view-timeline-axis: block;
    background-color: var(--bg-light);
    position: relative;
    z-index: 20;
    overflow: clip; 
}

.sticky-frame {
    position: sticky; 
    top: 0; 
    height: 100vh; 
    width: 100%;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    overflow: visible; 
    z-index: 10;
}

#comparativa .section-title {
    text-align: center; 
    margin-bottom: 2rem;
    opacity: 0;
    animation: fade-up-simple linear both;
    animation-timeline: --comp-tl;
    animation-range: entry 10% entry 30%;
}

.comparativa-header { 
    text-align: center;
    color: var(--secondary);
    margin-bottom: 3rem; 
    position: relative;
    z-index: 100;
    opacity: 0; 
    animation: fade-in-header linear both;
    animation-timeline: --comp-tl;
    animation-range: entry 5% entry 25%;
}

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

@keyframes fade-out-header {
    from { opacity: 1; transform: translateY(0); scale: 1; }
    to   { opacity: 0; transform: translateY(-50px) scale(0.9); }
}


.versus-grid {
    display: flex; 
    gap: 3rem; 
    width: 90%; 
    max-width: 1100px;
    justify-content: center; 
    align-items: center; 
    position: relative;
}

.versus-card { 
    background: white; padding: 3rem 2rem; border-radius: 24px; flex: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; 
    transition: all 0.3s ease;
    will-change: transform, opacity;
}

.versus-list li { margin-bottom: 1.2rem; display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; }
.versus-card h3 { margin-bottom: 1.5rem; font-size: 1.5rem; text-align: center; }

/* --- ANIMACIÓN TARJETA CLINICA --- */
.versus-card.tradicional { 
    background: #f1f5f9; 
    animation: card-left-enter linear both, card-left-compare linear both, card-left-exit linear both;
    animation-timeline: --comp-tl;
    animation-range: entry 10% entry 30%, contain 30% contain 60%, contain 85% contain 100%;
}

/* --- ANIMACIÓN TARJETA RODIHAB --- */
.versus-card.winner { 
    background: #0f172a; color: white; border: 1px solid var(--primary); 
    box-shadow: 0 20px 50px rgba(2, 132, 199, 0.2); 
    position: relative; z-index: 10;
    animation: card-right-enter linear both, card-right-compare linear both, card-right-exit linear both;
    animation-timeline: --comp-tl;
    animation-range: entry 10% entry 30%, contain 30% contain 60%, contain 85% contain 100%;
}

.versus-card.winner h3 { color: var(--primary); }
.versus-card.winner li { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }

.badge-winner { 
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #0f172a; padding: 6px 20px; 
    border-radius: 20px; font-weight: 800; font-size: 0.8rem; box-shadow: 0 0 15px var(--accent); 
}

@keyframes card-left-enter { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes card-right-enter { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes card-left-compare { to { transform: scale(0.9); filter: grayscale(0.5); opacity: 0.7; } }
@keyframes card-right-compare { to { transform: scale(1.1); box-shadow: 0 30px 60px rgba(2, 132, 199, 0.4); } }
@keyframes card-left-exit { to { transform: translateX(-150%) rotate(-10deg); opacity: 0; } }
@keyframes card-right-exit { to { transform: translateX(150%) rotate(10deg); opacity: 0; } }
/* #endregion */

/*#region--------------------------------------RESPONSIVE COMPARATIVA */
@media (max-width: 480px) {
    .versus-grid { flex-direction: column; gap: 2rem; margin-top: 2rem; }
    .sticky-frame { height: auto; position: relative; padding: 4rem 0; }
    #comparativa { height: auto; }
    .versus-card.tradicional, .versus-card.winner { animation: none; transform: none; opacity: 1; }
}
/* #endregion */

/* #region -------------------- 6. POR QUÉ ELEGIR ------------- */

#por-que-elegir {

    height: 300vh; 
    background: var(--bg-light); 
    view-timeline-name: --elegir-tl;
    position: relative;
    z-index: 10;
    margin-top: -50vh; 
}

/* sticky */
.features-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#por-que-elegir .section-title {
    text-align: center; margin-bottom: 4rem;
    opacity: 0;
    animation: fade-up-simple linear both;
    animation-timeline: --elegir-tl;
    animation-range: entry 50% contain 10%;
}

.features-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem;
    max-width: 1000px; width: 100%; margin: 0 auto;
}

/* TARJETAS */
.feature-card {
    background: var(--white); padding: 3rem 2rem; border-radius: 24px;
    text-align: center; border: 1px solid rgba(226, 232, 240, 0.8); 
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0.8) translateY(50px);
}

/* ANIMACIÓN:'contain' para que ocurra MIENTRAS está sticky */
.feature-card {
    animation: pop-center linear both;
    animation-timeline: --elegir-tl;
}

/* CASCADA: Definimos cuándo aparece cada una según el % de scroll */
.feature-card:nth-child(1) { animation-range: contain 10% contain 30%; }
.feature-card:nth-child(2) { animation-range: contain 25% contain 55%; }
.feature-card:nth-child(3) { animation-range: contain 40% contain 55%; }
.feature-card:nth-child(4) { animation-range: contain 55% contain 70%; }


/* Animación POP */
@keyframes pop-center {
    0% { 
        opacity: 0; 
        transform: scale(0.5) translateY(50px); 
        filter: blur(10px); 
    }
    60% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
        filter: blur(0);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
        filter: blur(0); 
    }
}

/* ANIMACIÓN TÍTULO */
@keyframes fade-up-simple { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}


/* HOVER TARJETA */
.feature-card:hover {
    transform: translateY(-15px) scale(1.03) !important; /* !important para sobrescribir la animación */
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.15);
    z-index: 10;
}

.feature-card:hover .icon-feat { transform: scale(1.2) rotate(10deg); }

.icon-feat { 
    font-size: 3.5rem; margin-bottom: 1.5rem; display: inline-block; 
    transition: transform 0.3s ease;
}

.feature-card h3 { margin-bottom: 1rem; color: var(--secondary); font-size: 1.3rem; }
.feature-card p { color: var(--text-muted); line-height: 1.6; }


/* RESPONSIVE */
@media (max-width: 480px) {
    #por-que-elegir { height: auto; padding: 4rem 0; margin-top: 0; }
    .features-sticky-wrapper { 
        position: relative; 
        height: auto; 
        top: auto; 
        display: block; 
    }
    .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    
    /* En móvil quitamos el scrollytelling y las mostramos todas */
    .feature-card {
        opacity: 1;
        transform: none;
        animation: fade-up-simple linear both;
        animation-timeline: view();
        animation-range: entry 10% entry 30%;
    }
    /* SIN DELAY EN MOVIL */
    .feature-card:nth-child(n) { animation-range: entry 10% entry 30%; }
}
/*TRANSICION A LA SIGUIENTE SECCION*/
#por-que-elegir::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5Vh; /* Altura del difuminado */
    background: linear-gradient(
        to bottom,
        rgba(248, 250, 252, 0) 0%,      
        rgba(15, 23, 42, 0.4) 40%,      
        #0f172a 100%                
    );
    z-index: 20;
    pointer-events: none;
}
/* #endregion */

/* #region -------------------- 7. PASOS ---------------------- */

#como-funciona {
    height: 300vh;
    view-timeline-name: --steps-tl;
    background: #0f172a; 
    margin-top: -1px;
    z-index: 20;
    position: relative;
    overflow: clip; 
}

/* STICKY */
#como-funciona .sticky-frame {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* TÍTULO */
#como-funciona .section-title {
    text-align: center;
    color: var(--white);
    margin-bottom: 4rem;
    animation: title-appear linear both;
    animation-timeline: --steps-tl;
    animation-range: entry 10% entry 30%;
}

@keyframes title-appear {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.steps-wrapper {
    display: flex; 
    justify-content: space-between; 
    width: 90%; 
    max-width: 1000px;
    position: relative; 
    margin-top: 3rem;
}

/* LÍNEA CONECTORA */
.connector-line {
    position: absolute; 
    top: 40px; 
    left: 0; 
    height: 2px;
    background: rgba(255,255,255,0.1);
    width: 100%; 
    z-index: 0;
}

.connector-line::after {
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    height: 100%;
    background: var(--primary); 
    width: 0%; 
    box-shadow: 0 0 15px var(--primary);
    
    /* Animación horizontal por defecto */
    animation: line-progress linear both; 
    animation-timeline: --steps-tl; 
    animation-range: contain 10% contain 80%;
}

@keyframes line-progress { to { width: 100%; } }

/* PASOS INDIVIDUALES */
.step-item {
    position: relative; z-index: 1; text-align: center; flex: 1;
    display: flex; flex-direction: column; align-items: center; 
    opacity: 0.2; 
    transform: scale(0.9); 
    filter: blur(2px);
    transition: all 0.5s ease;
    animation: step-active linear both; 
    animation-timeline: --steps-tl;
}

/* Tiempos de activación secuencial */
.step-item:nth-child(2) { animation-range: contain 15% contain 35%; }
.step-item:nth-child(3) { animation-range: contain 40% contain 60%; }
.step-item:nth-child(4) { animation-range: contain 65% contain 85%; }

@keyframes step-active { 
    to { opacity: 1; transform: scale(1); filter: blur(0); } 
}

/* BURBUJA DEL ICONO */
.step-number {
    width: 80px; 
    height: 80px;
    background: #0f172a; 
    border: 2px solid var(--primary);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Evita que se aplaste en móvil */
    font-size: 1.5rem;
    font-weight: bold;
}

.step-item:hover .step-number {
    transform: scale(1.1);
    background: var(--primary);
    box-shadow: 0 0 40px rgba(2, 132, 199, 0.6);
}

.step-item h3 { color: white; margin-bottom: 0.5rem; font-size: 1.3rem; }
.step-item p { color: var(--text-muted); font-size: 1rem; padding: 0 15px; line-height: 1.5; }

/* TRANSICIÓN INFERIOR */
#como-funciona::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh; 
    background: linear-gradient(
        to bottom,
        rgba(248, 250, 252, 0) 0%,      
        var(--bg-light) 100%                 
    );
    z-index: 20;
    pointer-events: none;
}

/* RESPONSIVE*/

@media (max-width: 480px) {
    #como-funciona {
        height: 300vh;
        padding: 0;
    }

    #como-funciona .sticky-frame {
        position: sticky;
        height: 100vh;
        top: 0;
        padding: 20px;
        justify-content: center;
    }
    /*  A COLUMNA */
    .steps-wrapper {
        flex-direction: column;
        gap: 0;
        height: 70vh;
        justify-content: space-around;
        margin-top: 1rem;
        padding-left: 5px;
    }
    /*  LÍNEA VERTICAL */
    .connector-line {
        display: block;
        width: 2px;
        height: 100%;
        top: 0;
        left: 45px;  
    }
    /* ANIMACIÓN VERTICAL*/

    .connector-line::after {
        width: 100%;
        height: 0%;
        animation-name: line-progress-vertical;
        animation-timeline: --steps-tl;
        animation-range: contain 10% contain 80%;
    }

    @keyframes line-progress-vertical { to { height: 100%; } }

    .step-item {
        flex-direction: row;
        text-align: left;
        gap: 20px;
        align-items: center;
    }

    .step-number {
        margin-bottom: 0;
    }

    .step-item p {
        padding: 0;
        font-size: 0.9rem;
    }
}

/* #endregion */

/* #region -------------------- 8. EQUIPO --------------------- */

#equipo {
    height: 300vh; 
    background: var(--bg-light); 
    view-timeline-name: --equipo-tl;
    position: relative;
    z-index: 20;
    overflow: clip; 
}

/* GRADIENTE INFERIOR */
#equipo::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 30vh;
    background: linear-gradient(
        to bottom,
        rgba(248, 250, 252, 0) 0%, 
        rgba(248, 250, 252, 0.8) 50%, 
        #0f172a 100%
    );
    z-index: 5; pointer-events: none;
}

/* STICKY */
.team-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#equipo .container {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* ANIMACIÓN TÍTULO */
.section-title {
    animation: fade-in-up linear both;
    animation-timeline: --equipo-tl;
    animation-range: entry 10% entry 30%;
}

.team-subtitle {
    max-width: 700px; margin: 0 auto 3rem; color: var(--text-muted);
    animation: fade-in-up linear both;
    animation-timeline: --equipo-tl;
    animation-range: entry 20% entry 40%;
}

/* GRID */
.team-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem; 
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* efecto deslizante de tarjetas */
.team-card {
    background: var(--white); border-radius: 24px; padding: 2.5rem;
    box-shadow: var(--shadow-card); 
    border: 1px solid #e2e8f0;
    text-align: left;
    opacity: 0;
    transform: translateY(100px);
}

/* animaciones tarjeta 1 */
.team-card:nth-child(1) {
    animation: slide-up-card linear both;
    animation-timeline: --equipo-tl;
    animation-range: contain 10% contain 35%; /*orden de entrada 1*/
}
/*animacion tarjeta 2*/
.team-card:nth-child(2) {
    animation: slide-up-card linear both;
    animation-timeline: --equipo-tl;
    animation-range: contain 25% contain 50%; /*orden de entrada 1*/
}

@keyframes slide-up-card {
    0% { opacity: 0; transform: translateY(100px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* ESTILOS DE LA TARJETA */
.team-card:hover { 
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.15);
    border-color: var(--primary);
    transition: all 0.3s ease;
}

.team-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }

.team-img { 
    width: 120px; height: 140px; border-radius: 50%; object-fit: cover; 
    border: 3px solid var(--primary); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.team-info h3 { color: var(--secondary); font-size: 1.25rem; margin-bottom: 0.25rem; }
.team-info .colegiado { font-size: 0.85rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.team-bio { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* RESPONSIVE */
@media (max-width: 480px) {
    #equipo { height: auto; }
    .team-sticky-wrapper { position: relative; height: auto; padding: 4rem 0; }
    .team-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .team-card {
        opacity: 1; transform: none;
        animation: fade-in-up linear both;
        animation-timeline: view();
        animation-range: entry 10% entry 30%;
    }
    .team-card:nth-child(n) { animation-range: entry 10% entry 30%; }
}
/* #endregion */

/* #region -------------------- 9. PRECIOS -------------------- */
#precios {

    height: 300vh;
    background: #0f172a; 
    view-timeline-name: --precios-tl;
    position: relative;
    z-index: 20;
    margin-top: -1px;
    overflow: clip; 
}

/* STICKY */
.pricing-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px; 
}

/* HEADER */
.pricing-header {
    text-align: center; margin-bottom: 3rem; color: white;
    opacity: 0;
    animation: fade-up-simple linear both;
    animation-timeline: --precios-tl;
    animation-range: entry 10% entry 25%;
}

.eyebrow {
    color: var(--primary); font-weight: bold; letter-spacing: 1px; 
    text-transform: uppercase; display: block; margin-bottom: 0.5rem; font-size: 0.9rem;
}

#precios .section-title { margin-bottom: 1rem; color: var(--white); }
#precios p { color: var(--text-muted); }

/* CONTENEDOR DE TARJETAS */
.pricing-track { 
    display: flex; 
    justify-content: center; 
    gap: 3rem; 
    margin-top: 1rem;
    position: relative;
}

/* ESTILOS BASE TARJETA */
.price-card {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem; 
    border-radius: 24px; 
    width: 350px; 
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(100px) rotateX(20deg) scale(0.9);
    transform-origin: center bottom;
}

/* ANIMACIÓN SCROLL-DRIVEN */
.price-card {
    animation: card-3d-entry linear both;
    animation-timeline: --precios-tl;
}

/* Entrada escalonada */
.price-card:nth-child(1) { animation-range: contain 10% contain 35%; }
.price-card.popular { animation-range: contain 20% contain 45%; }


/* TARJETA RECOMENDADA */
.price-card.popular {
    background: linear-gradient(180deg, rgba(2,132,199,0.15) 0%, rgba(15,23,42,0.9) 100%);
    border-color: var(--primary); 
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.best-value {
    position: absolute; top: 0; right: 0; 
    background: var(--accent); color: #0f172a; 
    font-size: 0.75rem; font-weight: 800; 
    padding: 6px 14px; 
    border-radius: 0 24px 0 12px;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.2);
}

/* TEXTOS Y ELEMENTOS */
.price-amount { font-size: 3.5rem; font-weight: 800; color: white; margin: 1.5rem 0; line-height: 1; }
.price-amount .currency { font-size: 1.5rem; vertical-align: super; opacity: 0.7; }
.price-amount .period { font-size: 1rem; color: var(--text-muted); font-weight: 400; margin-left: 5px; }

.savings { color: var(--accent); font-size: 0.95rem; margin-bottom: 1.5rem; font-weight: 600; }

.benefit-list { text-align: left; margin: 2rem 0; list-style: none; color: #cbd5e1; font-size: 0.95rem; }
.benefit-list li { margin-bottom: 1rem; display: flex; gap: 10px; line-height: 1.4; }
.icon { color: var(--primary); font-weight: bold; flex-shrink: 0; }
.popular .icon { color: var(--accent); } 

/* BOTONES ESPECÍFICOS */
.btn-outline { 
    border: 1px solid rgba(255,255,255,0.3); color: white; width: 100%; display: block;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); transform: translateY(-3px); }

.price-card.popular .btn-primary { 
    width: 100%; display: block; box-shadow: 0 10px 30px rgba(2, 132, 199, 0.3); 
    animation: pulse 3s infinite ease-in-out;
}

/* KEYFRAMES */
@keyframes card-3d-entry {
    to { 
        opacity: 1; 
        transform: translateY(0) rotateX(0) scale(1); 
    }
}
/* #endregion */

/* #region ------------------------------ RESPONSIVE PRECIOS */
@media (max-width: 480px) {
    #precios { height: auto; }
    .pricing-sticky-wrapper { position: relative; height: auto; padding: 4rem 0; display: block; }
    .pricing-track { flex-direction: column; align-items: center; gap: 2rem; }
    .price-card { width: 90%; max-width: 400px; opacity: 1; transform: none; animation: none; }
    .price-card.popular { transform: scale(1.02); margin: 1rem 0; }
}
/* #endregion */

/* #region -------------------- 10. TESTIMONIOS --------------- */

#testimonios {
    height: 300vh; 
    top: 100px;
    background: var(--bg-light);
    view-timeline-name: --tests-tl;
    position: relative;
    overflow: clip;
}

/* GRADIENTE */
#testimonios::before {
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; 
    height: 20vh;
    background: linear-gradient(to bottom, var(--bg-light) 0%, transparent 100%);
    z-index: 5; pointer-events: none;
}

/*ESTILO STICKY PARA PARAR EL SCROLL*/
.testimonials-sticky-wrapper {
    position: sticky;
    top: -100px;
    height: 150vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-testimonials { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
    max-width: 800px; 
    width: 90%;
    margin: 0 auto; 
}

/* ESTRUCTURA BASE CHAT */
.chat-bubble { 
    max-width: 85%; 
    display: flex; 
    flex-direction: column; 
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    filter: blur(5px);
}

/* ANIMACIÓN */
.chat-bubble {
    animation-timeline: --tests-tl;
    animation-fill-mode: both;
    animation-name: chat-pop-in;
}

.chat-bubble:nth-child(1) { animation-range: contain 10% contain 25%; align-self: flex-start; }
.chat-bubble:nth-child(2) { animation-range: contain 30% contain 45%; align-self: flex-end; align-items: flex-end; }
.chat-bubble:nth-child(3) { animation-range: contain 50% contain 65%; align-self: flex-start; }


/* KEYFRAMES DEL CHAT */
@keyframes chat-pop-in {
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0);
    }
}

.chat-content {
    padding: 1.5rem; 
    font-size: 1rem; 
    line-height: 1.6;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

/* Izquierda */
.t-left .chat-content { 
    background: white; 
    color: var(--secondary);
    border-radius: 20px 20px 20px 0;
    border: 1px solid #e2e8f0;
}

/* Derecha */
.t-right .chat-content { 
    background: var(--primary); 
    color: white; 
    border-radius: 20px 20px 0 20px;
}

/* DATOS AUTOR */
.chat-author { 
    display: flex; align-items: center; gap: 10px; margin-top: 10px; 
}
.t-right .chat-author { flex-direction: row-reverse; text-align: right; }

.avatar { 
    width: 40px; height: 40px; 
    background: #cbd5e1; color: var(--secondary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-weight: bold; border: 2px solid white;
}
.t-right .avatar { background: var(--accent); color: #0f172a; }

.author-info strong { display: block; font-size: 0.9rem; }
.author-info span { font-size: 0.8rem; color: var(--text-muted); }
/* #endregion */

/* #region ------------------------------------ RESPONSIVE TESTIMONIOS */
@media (max-width: 480px) {
    #testimonios { height: auto; padding: 100px 0; }
    .testimonials-sticky-wrapper { position: relative; height: auto; display: block; }
    
/*QUITAMOS EL STICKY*/
    .chat-bubble {
        opacity: 1; transform: none; filter: none;
        animation: simple-fade linear both;
        animation-timeline: view();
        animation-range: entry 10% entry 30%;
    }
    .chat-bubble:nth-child(n) { animation-range: entry 10% entry 30%; }
}
@keyframes simple-fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* #endregion */

/* #region -------------------- 11. FAQ ----------------------- */

#faq {
    padding: 120px 0;
    background: var(--bg-light);
    view-timeline-name: --faq-tl;
    position: relative;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 4rem;
    align-items: start;
}

/* STICKY  */
.faq-header-sticky {
    position: sticky;
    top: 100px; 
    text-align: left;
}

.faq-header-sticky p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 300px;
}

/* Decoración visual */
.faq-decoration {
    font-size: 15rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.05;
    position: absolute;
    top: -80px;
    left: -50px;
    z-index: -1;
    pointer-events: none;
}

/* LISTA DE PREGUNTAS */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ESTILO DE LAS TARJETAS */
details {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    animation: fade-in-right linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 25%;
}

details:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: var(--primary);
}

details[open] {
    box-shadow: 0 15px 30px rgba(2, 132, 199, 0.1);
    border-color: var(--primary);
}

/* CABECERA DE LA PREGUNTA */
summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; 
}

summary::-webkit-details-marker { display: none; }

/*MOVIMIENTO DE + A x*/
.icon-toggle {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    line-height: 1;
    font-weight: 300;
}

details[open] .icon-toggle {
    transform: rotate(45deg);
    color: var(--accent);
}

/* RESPUESTA */
.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    animation: slide-down 0.3s ease-out;
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-right {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
/* #endregion*/

/*  #region ----------------------------RESPONSIVE FAQ */
@media (max-width: 480px) {
    .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
    
    .faq-header-sticky { 
        position: relative; 
        top: 0; 
        text-align: center; 
        margin-bottom: 2rem;
    }
    .faq-header-sticky p { margin: 1rem auto; }
    .faq-decoration { display: none; }
}

/* #endregion */

/* #region -------------------- 12. CONTACTO ------------------- */

#contacto-home {
    min-height: 90vh; 
    padding: 100px 0; 
    background: var(--bg-light);
    view-timeline-name: --contacto-tl;
    
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

#rehab-form {
    background: white; 
    padding: 4rem 3rem; 
    border-radius: 30px; 
    max-width: 600px;
    width: 100%;
    margin: 0 auto; 
    box-shadow: 0 20px 60px -10px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    animation: form-reveal linear both;
    animation-timeline: view();
    animation-range: entry 10% contain 40%;
}

@keyframes form-reveal {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#rehab-form h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

#rehab-form input, #rehab-form select, #rehab-form textarea {
    width: 100%; 
    padding: 1.2rem; 
    margin-bottom: 1.2rem;
    border: 1px solid #e2e8f0; 
    background: #f8fafc;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}


#rehab-form input:focus, 
#rehab-form select:focus, 
#rehab-form textarea:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1); 
    transform: translateY(-2px);
}

#rehab-form textarea {
    resize: vertical;
    min-height: 120px;
}
/* #endregion*/

/* #region--------------------- FOOTER -------------------- */

footer { 
    background: var(--secondary); 
    color: rgba(255, 255, 255, 0.6); 
    padding: 1rem 0; 
    text-align: center; 
    font-size: 0.9rem;
    position: relative;
    z-index: 20;
}
footer p { margin: 0; }

/* #endregion */

.no-scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
}