 :root {
            --primary: #99a49d;
            --light: #cac9c2;
            --rosa: #d1a5a4;
            --gray: #84868a;
            --dark: #51575b;
        }

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

        body {
            font-family: 'Montserrat', sans-serif;
            color: var(--primary);
            overflow-x: hidden;
            background: #f8f7f5;
            -webkit-tap-highlight-color: transparent;
        }

        @font-face {
            font-family: 'TAN Aegean';
            src: url('/../assets/fonts/TAN_AEgean_Regular.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'CormorantSC-Bold';
            src: url('/../assets/fonts/CormorantSC-Bold.ttf') format('truetype');
            font-weight: bold;
            font-style: normal;
            font-display: swap;
        }

        #bg-video {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -3;
            filter: brightness(1.0);
        }

        /* ESPACIO MÍNIMO: Solo 120vh para desktop */
        .layers-container {
            position: relative;
            height: 120vh; /* MÍNIMO */
            width: 100%;
            z-index: -2;
            overflow: hidden;
        }

        .layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            pointer-events: none;
            opacity: 1 !important;
        }

        #layer_1 {
            background-image: url('/../assets/img/layer_1.png');
            z-index: 1;
        }

        #layer_2 {
            background-image: url('/../assets/img/layer_2.png');
            z-index: 2;
        }

        #doctor-name {
            position: absolute;
            top: 50vh;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10;
            font-family: 'TAN Aegean', 'Montserrat', sans-serif;
            font-size: 4.1rem;
            color: #000000;
            text-align: left;
            opacity: 1 !important;
            pointer-events: none;
            width: 100%;
            
            text-shadow: 
                0 0 15px rgba(255, 255, 255, 0.9),
                0 0 25px rgba(255, 255, 255, 0.8),
                0 0 35px rgba(255, 255, 255, 0.7),
                0 0 45px rgba(255, 255, 255, 0.6),
                0 0 60px rgba(255, 255, 255, 0.5);
            
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            letter-spacing: 2px;
            line-height: 1.1;
            padding: 0 5%;
        }

        /* SECCIÓN TRATAMIENTOS CON FRASE COLAPSANTE */
        .seccion-tratamientos {
            position: relative;
            width: 100%;
            min-height: 100vh;
            background-color: #96a59f; /* Color sólido solicitado */
            z-index: 15;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 5rem 2rem;
        }

        /* Capa de imagen dra.png */
        .tratamientos-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('/../assets/img/dra.png');
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 1  ; /* Ajusta la opacidad según necesites */
            z-index: 1;
            pointer-events: none;
        }

        /* Contenedor de la frase */
        .frase-tratamientos {
            position: relative;
            z-index: 2;
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
            padding: 2rem;
        }

        /* Estilos para la frase - VERSIÓN DESKTOP (colapso) */
        .frase-linea {
            display: block;
            margin: 0.5rem 0;
            position: relative;
        }

        .frase-tan {
            font-family: 'TAN Aegean', serif;
            font-size: 3.5rem;
            color: #ffffff;
            letter-spacing: 1px;
            line-height: 1;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }

        .frase-cormorant {
            font-family: 'CormorantSC-Bold', serif;
            font-size: 4.5rem;
            color: #ffffff;
            letter-spacing: 2px;
            line-height: 1;
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
            margin: 0 0.5rem;
        }

        /* Contenedor de línea para animación DESKTOP */
        .linea-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin: 0.8rem 0;
        }

        /* CONTENEDORES DE PALABRAS INDIVIDUALES PARA MÓVIL */
        .palabra-container {
            display: inline-block;
            position: relative;
            margin: 0.8rem 0.5rem;
            opacity: 0;
            transform: translateY(30px);
        }

        .palabra-tan {
            font-family: 'TAN Aegean', serif;
            font-size: 3rem;
            color: #ffffff;
            letter-spacing: 1px;
            line-height: 1;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
            display: inline-block;
        }

        .palabra-cormorant {
            font-family: 'CormorantSC-Bold', serif;
            font-size: 3.8rem;
            color: #ffffff;
            letter-spacing: 2px;
            line-height: 1;
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
            display: inline-block;
        }

        /* GRID PARA MÓVIL - 2 filas, 2 columnas */
        .frase-grid-mobile {
            display: none;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto auto;
            gap: 1.5rem;
            justify-items: center;
            align-items: center;
            width: 100%;
        }

        .frase-item {
            text-align: center;
            opacity: 0;
            transform: translateY(30px);
        }

        /* DESKTOP - Texto más arriba */
        @media (min-width: 769px) {
            #doctor-name {
                font-size: 4.1rem;
                top: 50vh; /* Más arriba */
            }
            
            .layers-container {
                height: 110vh; /* Aún menos en desktop */
            }
            
            .frase-tan {
                font-size: 4rem;
            }
            
            .frase-cormorant {
                font-size: 5rem;
            }
            
            /* Ocultar versión móvil en desktop */
            .frase-grid-mobile {
                display: none;
            }
            
            /* Mostrar versión desktop */
            .frase-container-desktop {
                display: block;
            }
        }

        /* MOBILE - ALTURAS MÍNIMAS */
        @media (max-width: 768px) {
            .layers-container {
                height: 100vh; /* JUSTO UNA PANTALLA */
            }
            
            #layer_1 {
                transform: translateX(-10%) scale(1.15);
            }
            
            #layer_2 {
                transform: translateX(-20%) translateY(15%) scale(1.25);
                width: 160%;
                height: 120vh;
                top: -5vh;
            }
            
            #doctor-name {
                font-size: 3.5rem;
                top: 40vh; /* Más arriba */
                text-shadow: 
                    0 0 12px rgba(255, 255, 255, 0.9),
                    0 0 20px rgba(255, 255, 255, 0.8),
                    0 0 30px rgba(255, 255, 255, 0.7);
            }
            
            .seccion-tratamientos {
                padding: 3rem 1rem;
                min-height: 90vh;
            }
            
            /* Ocultar versión desktop en móvil */
            .frase-container-desktop {
                display: none;
            }
            
            /* Mostrar versión móvil */
            .frase-grid-mobile {
                display: grid;
            }
            
            .palabra-tan {
                font-size: 2.2rem;
            }
            
            .palabra-cormorant {
                font-size: 2.8rem;
            }
            
            .frase-item {
                padding: 1rem 0;
            }
        }

        @media (max-width: 768px) and (orientation: portrait) {
            .layers-container {
                height: 100vh; /* UNA PANTALLA */
            }
            
            #layer_1 {
                transform: translateX(-15%) scale(1.2);
            }
            
            #layer_2 {
                transform: translateX(-25%) translateY(20%) scale(1.3);
                width: 170%;
                height: 130vh;
                top: -8vh;
            }
            
            #doctor-name {
                font-size: 3.8rem;
                top: 45vh; /* Mucho más arriba */
            }
            
            .frase-grid-mobile {
                gap: 1rem;
            }
        }

        @media (max-width: 768px) and (orientation: landscape) {
            .layers-container {
                height: 90vh; /* Menos que una pantalla */
            }
            
            #layer_1 {
                transform: translateX(-5%) scale(1.1);
            }
            
            #layer_2 {
                transform: translateX(-15%) translateY(10%) scale(1.2);
                width: 150%;
                height: 115vh;
                top: -3vh;
            }
            
            #doctor-name {
                font-size: 3rem;
                top: 40vh;
            }
            
            .frase-grid-mobile {
                gap: 0.8rem;
            }
            
            .palabra-tan {
                font-size: 1.8rem;
            }
            
            .palabra-cormorant {
                font-size: 2.2rem;
            }
        }

        @media (max-width: 480px) {
            .layers-container {
                height: 100vh; /* UNA PANTALLA */
            }
            
            #layer_1 {
                transform: translateX(-20%) scale(1.25);
            }
            
            #layer_2 {
                transform: translateX(-20%) translateY(15%) scale(1.35);
                width: 180%;
                height: 140vh;
                top: -10vh;
            }
            
            #doctor-name {
                font-size: 2.8rem;
                top: 45vh; /* Más arriba */
                text-shadow: 
                    0 0 10px rgba(255, 255, 255, 0.9),
                    0 0 18px rgba(255, 255, 255, 0.8),
                    0 0 25px rgba(255, 255, 255, 0.7);
            }
            
            .palabra-tan {
                font-size: 1.8rem;
            }
            
            .palabra-cormorant {
                font-size: 2.2rem;
            }
            
            .frase-grid-mobile {
                gap: 0.8rem;
                grid-template-columns: 1fr;
                grid-template-rows: repeat(4, auto);
            }
        }

        @media (max-width: 380px) {
            .palabra-tan {
                font-size: 1.6rem;
            }
            
            .palabra-cormorant {
                font-size: 2rem;
            }
            
            .frase-grid-mobile {
                gap: 0.6rem;
            }
        }

        /* SCROLL HINT - EN EL FINAL DEL CONTENEDOR DE LAYERS */
        .scroll-hint {
            position: absolute;
            bottom: 10px; /* PEGADO AL FINAL */
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 0.8rem;
            text-align: center;
            opacity: 0.7;
            z-index: 12;
            display: none;
            background: rgba(0, 0, 0, 0.7);
            padding: 8px 16px;
            border-radius: 15px;
            backdrop-filter: blur(5px);
            pointer-events: none;
            white-space: nowrap;
        }

        @media (max-width: 768px) {
            .scroll-hint {
                display: block;
                bottom: 15px; /* Un poco más arriba en mobile */
                font-size: 0.75rem;
                animation: bounce 2s infinite;
            }
            
            @keyframes bounce {
                0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
                40% {transform: translateX(-50%) translateY(-5px);}
                60% {transform: translateX(-50%) translateY(-3px);}
            }
        }

        @media (min-width: 769px) {
            .scroll-hint {
                display: block;
                bottom: 20px; /* También en desktop */
                font-size: 0.85rem;
                animation: bounce 2s infinite;
            }
        }

        /* TRATAMIENTOS - PEGADO DIRECTO A LOS LAYERS */
        .tratamientos-section {
            position: relative;
            width: 100%;
            z-index: 15;
            text-align: center;
            opacity: 1 !important;
            pointer-events: auto;
            background: rgba(0, 0, 0, 0.85);
            padding: 3rem 5% 4rem;
            margin-top: -25vh; /* Superposición mínima */
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
        }

        .tratamientos-container {
            display: inline-flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.5rem;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(8px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            max-width: 700px;
            margin: 0 auto;
        }

        .tratamiento-link {
            color: white;
            text-decoration: none;
            font-family: 'Montserrat', sans-serif;
            font-size: 1.1rem;
            font-weight: 300;
            padding: 0.7rem 1.3rem;
            background: rgba(209, 165, 164, 0.8);
            border-radius: 40px;
            border: 1px solid rgba(255, 255, 255, 0.4);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 130px;
        }

        .tratamiento-link:hover {
            background: rgba(209, 165, 164, 1);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }
        
        .logo-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 480px;                /* Ajusta según el tamaño deseado */
            height: auto;
            opacity: 0.34;               /* Muy sutil, casi etéreo */
            pointer-events: none;
            z-index: 1;
        }

        @media (max-width: 768px) {
            .tratamientos-section {
                padding: 2rem 5% 3rem;
                margin-top: -5vh; /* Menos superposición */
            }
            
            .tratamientos-container {
                gap: 1rem;
                padding: 1.2rem;
            }
            
            .tratamiento-link {
                font-size: 0.95rem;
                padding: 0.6rem 1rem;
                min-width: 110px;
            }
        }

        @media (max-width: 480px) {
            .tratamientos-container {
                gap: 0.8rem;
                padding: 1rem;
            }
            
            .tratamiento-link {
                font-size: 0.9rem;
                padding: 0.5rem 0.9rem;
                min-width: 100px;
            }
        }

        /* TRANSICIÓN MÍNIMA */
        .transition-section {
            position: relative;
            height: 2vh; /* MÍNIMO */
            width: 100%;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), white);
            z-index: 16;
        }

        /* CONTENIDO PRINCIPAL - PEGADO A LOS TRATAMIENTOS */
        #main-content {
            position: relative;
            z-index: 20;
            padding: 3rem 5% 8rem; /* Mínimo padding superior */
            background: white;
            color: #333;
            min-height: 100vh;
            margin-top: 0;
        }

        @media (max-width: 768px) {
            #main-content {
                padding: 2.5rem 5% 6rem;
            }
        }