
        /* Definición de la familia Singolare usando los enlaces (subidos a mi hosting)) */
        @font-face {
            font-family: 'Singolare';
            src: url('../fonts/Singolare-UltraLight.otf') format('opentype');
            font-weight: 200;
            /* UltraLight */
            font-style: normal;
        }

        @font-face {
            font-family: 'Singolare';
            src: url('../fonts/Singolare-Light.otf') format('opentype');
            font-weight: 300;
            /* Light */
            font-style: normal;
        }

        @font-face {
            font-family: 'Singolare';
            src: url('../fonts/Singolare-Regular.otf') format('opentype');
            font-weight: 400;
            /* Regular */
            font-style: normal;
        }

        @font-face {
            font-family: 'Singolare';
            src: url('../fonts/Singolare-Bold.otf') format('opentype');
            font-weight: 700;
            /* Bold */
            font-style: normal;
        }

        @font-face {
            font-family: 'Singolare';
            src: url('../fonts/Singolare-Black.otf') format('opentype');
            font-weight: 900;
            /* Black */
            font-style: normal;
        }

        /* Aplicar Singolare a todo el documento y controles de formulario */
        body {
            font-family: 'Singolare', sans-serif;
            color: #3c2027;
        }

        input,
        textarea,
        select,
        button {
            font-family: 'Singolare', sans-serif;
            color: #3c2027;
        }

        /* ========================================= ESTILOS DE ICONOS SVG (SIMULACIÓN DE COLOR) ========================================= */
        /* Color base: #dcb9bd */
        .icon-color-default {
            /* Simulación para lograr un color cercano a dcb9bd (tono rosa pálido/durazno) */
            filter: invert(80%) sepia(10%) saturate(1000%) hue-rotate(320deg) brightness(85%) contrast(100%);
            transition: filter 0.1s ease;
        }

        /* Color al pasar el cursor: #564147 (No se modifica, los filtros ya están definidos para simularlo) */
        .icon-color-hover:hover {
            /* Simulación para lograr un color cercano a 564147 (tono vino oscuro/grisáceo) */
            filter: invert(15%) sepia(40%) saturate(200%) hue-rotate(320deg) brightness(60%) contrast(100%);
        }

        /* ========================================= ESTILOS DEL PRELOADER ========================================= */

        /* Animación de fondo suave para el preloader */
        @keyframes gradient-move {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* Aplicando el degradado animado */
            background: linear-gradient(-45deg, #fcf8f7, #eec8c7, #fcf8f7);
            background-size: 400% 400%;
            animation: gradient-move 8s ease infinite;

            z-index: 9999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
        }

        /* Estilos para la Barra Interactiva de Esquemas */
        .scheme-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 20;
            cursor: pointer;
            outline: none;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .step-dot {
            width: 14px;
            height: 14px;
            background: white;
            border: 2px solid #3c2027;
            border-radius: 50%;
            transition: all 0.4s ease;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .scheme-step.active .step-dot {
            background: #3c2027;
            transform: scale(1.4);
            box-shadow: 0 0 15px rgba(60, 32, 39, 0.3);
        }

        .step-label {
            margin-top: 12px;
            font-size: 0.75rem;
            font-weight: 700;
            color: #3c2027/40;
            transition: all 0.3s ease;
            letter-spacing: 0.1em;
        }

        .scheme-step.active .step-label {
            color: #3c2027;
            transform: translateY(2px);
        }

        .scheme-step:hover .step-dot {
            transform: scale(1.2);
            border-color: #3c2027/80;
        }

        /* Clase para ocultar el preloader una vez cargado */
        #preloader.loaded {
            opacity: 0;
            visibility: hidden;
        }

        /* Contenedor del SVG */
        .svg-container {
            width: 120px;
            /* Espacio para ajustar tamaño de logo */
            height: 120px;
        }

        /* --- ANIMACIÓN DEL LOGO SVG --- */
        .logo-path {
            fill: transparent;
            stroke: #331f23;
            /* Color del borde inicial */
            stroke-width: 0.5px;
            stroke-dasharray: 300;
            stroke-dashoffset: 300;
            animation: line-anim 2s ease forwards, fill-anim 0.8s ease forwards 2s;
            /* El relleno empieza a los 2s */
        }

        @keyframes line-anim {
            to {
                stroke-dashoffset: 0;
            }
        }

        @keyframes fill-anim {
            from {
                fill: transparent;
            }

            to {
                fill: #3a2525;
                /* Color final del logo */
                stroke: transparent;
            }
        }

        /* --- BARRA DE CARGA (OPCIONAL) --- */
        .loading-bar {
            width: 0%;
            height: 2px;
            background-color: #3a2525;
            margin-top: 20px;
            border-radius: 2px;
            animation: load-bar 2.5s ease-in-out forwards;
        }

        @keyframes load-bar {
            0% {
                width: 0;
                opacity: 1;
            }

            90% {
                width: 100px;
                opacity: 1;
            }

            100% {
                width: 100px;
                opacity: 0;
            }
        }

        /* Evitar scroll mientras carga */
        body.preloader-active {
            overflow: hidden;
        }

        /* --- ESTILOS DE NAVEGACIÓN (SUBRAYADO ANIMADO) --- */
        .nav-link {
            position: relative;
            text-decoration: none;
            color: #3c2027;
            padding-bottom: 4px;
            display: inline-block;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            width: 100%;
            transform: scaleX(0);
            height: 1px;
            bottom: 0;
            left: 0;
            background-color: #3c2027;
            transform-origin: bottom right;
            transition: transform 0.3s ease-out;
        }

        .nav-link:hover::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }

        .nav-link.active::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }

        /* --- ESTILOS ENLACES FOOTER (SUBRAYADO ANIMADO CLARO) --- */
        .footer-link {
            position: relative;
            text-decoration: none;
            padding-bottom: 2px;
        }

        .footer-link::after {
            content: '';
            position: absolute;
            width: 100%;
            transform: scaleX(0);
            height: 1px;
            bottom: 0;
            left: 0;
            background-color: #fce7f3;
            /* Color claro para el footer */
            transform-origin: bottom right;
            transition: transform 0.3s ease-out;
        }

        .footer-link:hover::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }

        /* --- ESTILOS PARA EL GLOBO DE CONTACTO (WHATSAPP) --- */
        .wa-popover-container {
            position: relative;
            display: inline-flex;
            z-index: 50;
        }

        .wa-popover {
            position: absolute;
            top: calc(100% + 15px);
            left: 50%;
            transform: translateX(-50%) translateY(-10px);
            background: linear-gradient(135deg, #f3cdcd, rgba(255, 255, 255, 0.804));
            backdrop-filter: blur(42px);
            -webkit-backdrop-filter: blur(42px);
            border: 1px solid rgba(255, 255, 255, 0.7);
            border-radius: 20px;
            padding: 20px;
            width: 240px;
            box-shadow: 0 15px 35px -5px rgba(60, 32, 39, 0.1);
            z-index: 99999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            pointer-events: none;
            text-align: center;
        }

        .wa-popover.active {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
            pointer-events: auto;
        }

        /* Triángulo del globo */
        .wa-popover::after {
            content: '';
            position: absolute;
            bottom: 100%;
            left: 50%;
            margin-left: -8px;
            border-width: 8px;
            border-style: solid;
            border-color: transparent transparent rgba(255, 255, 255, 0.35) transparent;
        }

        .wa-popover-number {
            font-size: 16px;
            font-weight: 700;
            color: #3c2027;
            margin-bottom: 4px;
            display: block;
            letter-spacing: 0.05em;
        }

        .wa-popover-label {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: #3c2027;
            opacity: 0.6;
            margin-bottom: 12px;
            display: block;
        }

        .wa-btn-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .wa-action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 10px 16px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: all 0.3s ease;
            text-decoration: none !important;
        }

        .wa-btn-call {
            background: #3c2027;
            color: #fff !important;
        }

        .wa-btn-call:hover {
            background: #5a313b;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(60, 32, 39, 0.2);
        }

        .wa-btn-msg {
            background: rgba(60, 32, 39, 0.05);
            color: #3c2027 !important;
            border: 1px solid rgba(60, 32, 39, 0.1);
        }

        .wa-btn-msg:hover {
            background: rgba(60, 32, 39, 0.1);
            transform: translateY(-2px);
        }

        .mobile-nav-link {
            display: block;
            padding: 10px;
            border-bottom: 1px solid rgba(60, 32, 39, 0.1);
            color: #3c2027;
            text-decoration: none;
        }

        .mobile-nav-link:last-child {
            border-bottom: none;
        }

        /* --- ESTILOS DE LA GALERÍA ANIMADA --- */
        .galeria-container {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 15px;
            width: 100%;
            aspect-ratio: 16/9;
            margin-bottom: 5rem;
        }

        .foto-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .foto-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .foto-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .foto-card:nth-child(1) {
            transition-delay: 0.1s;
        }

        .foto-card:nth-child(2) {
            transition-delay: 0.3s;
        }

        .foto-card:nth-child(3) {
            transition-delay: 0.5s;
        }

        .foto-card:nth-child(4) {
            transition-delay: 0.7s;
        }

        .foto-card:nth-child(5) {
            transition-delay: 0.9s;
        }


        /* --- ESTILOS DE GRID DOCTORES --- */
        .doc-card {
            position: relative;
            overflow: hidden;
            width: 100%;
            height: 100%;
            cursor: pointer;
            display: block;
        }

        .doc-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(100%);
            transition: filter 0.4s ease;
        }

        .doc-card:hover .doc-image {
            filter: grayscale(0%);
        }

        .doc-card:hover .doc-name-overlay {
            opacity: 1;
        }

        .doc-name-overlay {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(236, 200, 199, 0.9);
            padding: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
        }

        .doc-name-text {
            color: #ffffff;
            font-weight: 500;
            font-size: 1rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            text-align: center;
            white-space: normal;
            line-height: 1.3;
        }

        @keyframes blurIn {
            0% {
                filter: blur(15px);
                opacity: 0;
            }

            100% {
                filter: blur(0);
                opacity: 1;
            }
        }

        .animate-blur {
            animation: blurIn 1.5s ease-out forwards;
        }

        .fade-in {
            animation: fadeIn 0.8s ease-in-out forwards;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* --- CLASES PARA EL EFECTO LIQUID GLASS DEL MODAL --- */
        .glass-panel {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.8);
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
        }

        .glass-input {
            width: 100%;
            padding: 0.75rem;
            background-color: rgba(255, 255, 255, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 0.5rem;
            outline: none;
            transition: all 0.3s ease;
            color: #3c2027;
        }

        .glass-input::placeholder {
            color: rgba(60, 32, 39, 0.6);
        }

        .glass-input:focus {
            background-color: rgba(255, 255, 255, 0.9);
            border-color: #ffffff;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
        }

        /* --- NUEVO ESTILO: Glass Title para las secciones --- */
        .glass-title {
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow: 0 4px 6px rgba(60, 32, 39, 0.05);
            border-radius: 8px;
            padding: 0.5rem 1.2rem;
            display: inline-block;
            margin-bottom: 1rem;
        }

        /* --- ESTILOS PARA EL FORMULARIO DE PINK MEDICAL CIRCLE --- */
        .pmc-form-container {
            background: rgba(255, 255, 255, 0.35);
            /* Fondo más claro y lechoso */
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.7);
            box-shadow: 0 15px 35px -5px rgba(60, 32, 39, 0.05);
            /* Sombra muy suave */
        }

        .pmc-input {
            width: 100%;
            padding: 0.9rem 1.25rem;
            background-color: rgba(255, 255, 255, 0.5);
            /* Semi-transparente */
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 0.5rem;
            color: #3c2027;
            font-weight: 400;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .pmc-input:hover {
            background-color: rgba(255, 255, 255, 0.7);
        }

        .pmc-input:focus {
            background-color: #ffffff;
            border-color: #3c2027;
            outline: none;
            box-shadow: 0 4px 15px rgba(60, 32, 39, 0.05);
            transform: translateY(-1px);
        }

        .pmc-input::placeholder {
            color: rgba(60, 32, 39, 0.4);
            font-weight: 300;
        }

        .pmc-label {
            display: block;
            font-size: 0.70rem;
            font-weight: 800;
            /* Extra bold para contraste */
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: #3c2027;
            margin-bottom: 0.5rem;
            margin-left: 0.25rem;
            opacity: 0.9;
        }

        .pmc-radio-wrapper {
            transition: background-color 0.2s;
            border-radius: 0.5rem;
            padding: 0.5rem;
        }

        .pmc-radio-wrapper:hover {
            background-color: rgba(255, 255, 255, 0.4);
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: #3c2027;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
        }

        .profile-text strong {
            color: #3c2027;
        }

        /* Animación Modal */
        #modal-contacto {
            transition: opacity 0.3s ease-in-out;
        }

        #modal-contacto.hidden {
            opacity: 0;
            pointer-events: none;
        }

        #modal-contacto.not-hidden {
            opacity: 1;
            pointer-events: auto;
        }

        /* --- ANIMACIÓN DE REBOTE (bounce) --- */
        @keyframes bounce-subtle {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-8px);
                /* Ligeramente hacia arriba */
            }
        }

        .animate-bounce-subtle {
            animation: bounce-subtle 2s infinite ease-in-out 3s;
            /* Empieza después de 3s */
        }


        /* --- Liquid Glass para Botón Volver Arriba --- */
        .btn-to-top-glass {
            /* Estilos base */
            position: relative;
            font-weight: 700;
            font-size: 14px;
            color: #331f23;
            /* Color oscuro del texto */
            border-radius: 12px;
            padding: 16px 20px;
            text-transform: uppercase;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto;
            max-width: 300px;
            white-space: nowrap;
            z-index: 5;

            /* Liquid Glass Styling */
            background-color: rgba(249, 228, 223, 0.85);
            /* #f9e4df con transparencia */
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid #331f23;
            /* Borde oscuro */
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

            /* Transición para hover */
            transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
        }

        @media (max-width: 640px) {
            .btn-to-top-glass {
                padding: 0;
                width: 48px;
                height: 48px;
                border-radius: 50%;
                font-size: 0;
                /* Hide any residual text logic */
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }

        .btn-to-top-glass:hover {
            /* Colores de hover: */
            background-color: #edc8c6;
            /* Fondo más oscuro: edc8c6 */
            color: #ffffff;
            /* Color de texto claro: f9e4df */
            border-color: #ffffff;
            /* Color de borde claro: f9e4df */

            box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.25);
            transform: translateY(-3px);
        }

        /* --- ANIMACIÓN TEXT EFFECT (BLUR/FADE) --- */
        @keyframes text-blur-fade {
            0% {
                opacity: 0;
                filter: blur(12px);
                transform: translateY(10px);
            }

            100% {
                opacity: 1;
                filter: blur(0px);
                transform: translateY(0);
            }
        }

        .text-effect-char {
            display: inline-block;
            opacity: 0;
            will-change: transform, filter, opacity;
        }

        .animate-text-effect {
            animation: text-blur-fade 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }

        /* --- ANIMACIÓN CONSTRUCCIÓN (PINK CAPITAL CIRCLE) --- */
        @keyframes construction-reveal {
            0% {
                clip-path: inset(100% 0 0 0);
                opacity: 0;
                transform: scale(0.98) translateY(40px);
                filter: blur(10px);
            }

            60% {
                opacity: 1;
                filter: blur(5px);
            }

            100% {
                clip-path: inset(0% 0 0 0);
                opacity: 1;
                transform: scale(1) translateY(0);
                filter: blur(0);
            }
        }

        /* --- ANIMACIÓN BARRIDO FOTOS (¿POR QUÉ EXISTE?) --- */
        .photo-slideshow-container {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
            border-radius: 1rem;
        }

        .photo-slide {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transform: translateX(100%);
            transition: none;
        }

        .photo-slide.active {
            opacity: 1;
            transform: translateX(0);
            animation: slideIn 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
        }

        .photo-slide.exiting {
            opacity: 1;
            transform: translateX(0);
            animation: slideOut 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
        }

        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }

            to {
                transform: translateX(-100%);
                opacity: 0;
            }
        }

        .animate-construction {
            animation: construction-reveal 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
        }

        /* La flecha también cambie de color */
        .btn-to-top-glass:hover svg path {
            stroke: #ffffff;
            /* Color de la flecha claro: f9e4df */
        }

        /* --- ANIMACIÓN SLIDE IN PARA LISTAS --- */
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-slide-in {
            opacity: 0;
            /* Inicialmente oculto */
            animation: slideInUp 0.8s ease-out forwards;
        }

        /* --- ANIMACIÓN SCROLL PINK CAPITAL CIRCLE --- */
        #capital-expand-wrapper {
            will-change: width, height, clip-path, border-radius;
            transition: none;
            /* Liquid transition via JS */
        }

        #capital-reveal-container {
            will-change: opacity, filter, transform;
        }

        .clip-circle-poly {
            border-radius: 50%;
        }

        /* --- ESTILOS DE LA PANTALLA DE CONTRASEÑA --- */
        #password-gate {
            position: fixed;
            inset: 0;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            transition: opacity 0.8s ease, visibility 0.8s ease;
        }

        #password-gate.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .gate-bg {
            position: absolute;
            inset: 0;
            background: linear-gradient(-45deg, #fcf8f7, #eec8c7, #fcf8f7);
            background-size: 400% 400%;
            animation: gradient-move 10s ease infinite;
            z-index: -1;
        }

        .glass-gate {
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.5);
            box-shadow: 0 8px 32px 0 rgba(60, 32, 39, 0.1);
            border-radius: 2rem;
            width: 100%;
            max-width: 400px;
            padding: 3rem 2rem;
            text-align: center;
        }

        .input-password {
            width: 100%;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.8);
            border-radius: 1rem;
            outline: none;
            text-align: center;
            letter-spacing: 0.3em;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .input-password:focus {
            background: #fff;
            box-shadow: 0 0 15px rgba(60, 32, 39, 0.1);
        }

        #main-site-content {
            opacity: 0;
            visibility: hidden;
            transition: opacity 1s ease;
        }

        #main-site-content.visible {
            opacity: 1;
            visibility: visible;
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            25% {
                transform: translateX(-10px);
            }

            75% {
                transform: translateX(10px);
            }
        }

        .animate-shake {
            animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
        }
