    /* =========================================
    1. VARIABLES DE MARCA
    ========================================= */
    :root {
        --azul-cielo: #188cb3;   
        --verde-claro: #00f6a7;  
        --blanco: #ffffff;
        --oscuro: #222222;
        --gris-fondo: #9fe4db;
        --transicion: all 0.3s ease;
    }

    /* =========================================
    2. REGLAS BASE Y RESET
    ========================================= */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html, body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    body {
        font-family: 'Poppins', sans-serif;
        color: var(--oscuro);
        background-color: var(--blanco);
        line-height: 1.6;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* =========================================
    3. HEADER
    ========================================= */
    header {
        position: fixed;
    top: 40px; /* Antes estaba en 0 */
        width: 100%;
        height: 85px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1000;
        display: flex;
        align-items: center;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo-area {
        height: 55px;
    }

    .logo-imagen {
        height: 100%;
        width: auto;
        object-fit: contain;
    }

    .main-nav {
        display: flex;
        align-items: center;
        gap: 40px;
    }

    .nav-links {
        display: flex;
        gap: 25px;
        list-style: none;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--oscuro);
        font-weight: 500;
        font-size: 0.95rem;
        transition: var(--transicion);
    }

    .nav-links a:hover {
        color: var(--azul-cielo);
    }
/* =========================================
    4. HERO SECTION (OPTIMIZADO)
    ========================================= */
    .hero {
        position: relative;
        height: 70vh; /* Reducido de 90vh para evitar exceso de espacio */
        min-height: 500px;
        margin-top: 100px; /* Ajustado para que el header y top-bar respiren mejor */
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .hero-bg-blur {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('consultorio-fondo.png'); 
        background-size: cover;
        background-position: center;
        filter: blur(8px); 
        transform: scale(1.1); 
        z-index: 1;
        animation: fadeInFondo 1.5s ease-out forwards;
    }

    .hero-bg-blur::after {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
    }

    .hero-wrapper {
        position: relative;
        z-index: 10;
        display: flex;
        align-items: flex-end; /* El contenido se alinea a la base para que el Dr. no flote */
        justify-content: space-between;
        height: 100%;
    }

    .hero-text {
        flex: 1;
        color: var(--blanco);
        animation: slideInTexto 1s ease-out 0.5s forwards;
        opacity: 0;
        padding-bottom: 80px; /* Eleva el texto un poco para que no quede pegado al suelo */
    }

    .hero-text h1 {
        font-size: 3.2rem; /* Ligeramente más pequeño para ahorrar espacio */
        line-height: 1.1;
        margin-bottom: 5px;
        font-weight: 700;
    }

    .hero-text h3 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        font-weight: 400;
    }

    .hero-text p {
        font-size: 1.2rem; /* Tamaño más equilibrado */
        margin-bottom: 25px;
    }

    .hero-specialties {
        font-size: 0.9rem !important; /* Estilo compacto para las especialidades */
        margin-bottom: 15px !important;
    }

    .btn-hero {
        background: var(--azul-cielo);
        color: var(--blanco);
        padding: 15px 35px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: bold;
        font-size: 1rem;
        display: inline-block;
        transition: var(--transicion);
    }

    .hero-doctor {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end; /* Ancla la imagen al fondo del contenedor */
        height: 100%;
    }

    .hero-doctor img {
        max-height: 85%; /* Evita que la imagen toque el techo del hero */
        width: auto;
        display: block;
        animation: slideInDoctor 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
        opacity: 0;
    }
    /* =========================================
    5. SECCIONES GRID (BENEFICIOS Y SERVICIOS)
    ========================================= */
    .beneficios, .servicios {
        padding: 30px 0;
    }

    .servicios { background: var(--gris-fondo); }

    .grid-beneficios, .grid-servicios {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .beneficio-item, .card {
        background: white;
        padding: 40px 25px;
        border-radius: 20px;
        text-align: center;
        transition: var(--transicion);
    }

    .card {
        border: 1px solid #eef2f6;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 191, 255, 0.1);
        border-color: var(--azul-cielo);
    }

    .card i { font-size: 2.5rem; color: var(--azul-cielo); }

    /* =========================================
    6. CONTACTO (NUEVO LAYOUT 2 COLUMNAS)
    ========================================= */
    .contacto {
        padding: 30px 0;
        background-color: var(--blanco);
    }

    .contact-layout {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 60px;
    }

    .info-container {
        flex: 1;
    }

    .info-container h2 {
        font-size: 2.8rem;
        color: var(--oscuro);
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .contact-details {
        display: flex;
        flex-direction: column;
        gap: 25px;
        margin-top: 30px;
    }

    .detail-item {
        display: flex;
        gap: 15px;
    }

    .detail-item i {
        font-size: 1.5rem;
        color: var(--azul-cielo);
        margin-top: 5px;
    }

    .detail-item a {
        text-decoration: none;
        color: #555;
        transition: 0.3s;
    }

    .detail-item a:hover { color: var(--azul-cielo); }

    /* Formulario Minimalista */
    .form-minimal {
        flex: 0 1 450px;
        padding: 40px;
        background: #fff;
        border: 1px solid #e0e6ed;
        border-radius: 25px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    }

    .input-group {
        position: relative;
        margin-bottom: 30px;
    }

    .input-group input {
        width: 100%;
        padding: 10px 0;
        border: none;
        border-bottom: 2px solid #e0e6ed;
        outline: none;
        background: transparent;
        font-size: 1rem;
    }

    .input-group label {
        position: absolute;
        top: 10px; left: 0; color: #999;
        transition: 0.3s; pointer-events: none;
    }

    .input-group input:focus ~ label,
    .input-group input:valid ~ label {
        top: -15px;
        font-size: 0.8rem;
        color: var(--azul-cielo);
        font-weight: 600;
    }

    .input-group input:focus { border-bottom: 2px solid var(--azul-cielo); }

    .form-actions-minimal {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .btn-direct-wpp {
        background: #25d366;
        color: white;
        border: none;
        padding: 18px;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .btn-direct-call {
        background: transparent;
        color: var(--azul-cielo);
        border: 2px solid var(--azul-cielo);
        padding: 16px;
        border-radius: 12px;
        font-weight: 600;
        text-decoration: none;
        text-align: center;
    }
    .btn-direct-call:hover {
        background: var(--azul-cielo);
        color: var(--blanco); /* El texto cambia a blanco */
        transform: translateY(-3px); /* Pequeño salto hacia arriba */
        box-shadow: 0 5px 15px rgba(24, 140, 179, 0.3); /* Sombra suave azul */
    }
    .or-text {
        text-align: center;
        font-size: 0.8rem;
        color: #ccc;
        text-transform: uppercase;
    }

    /* =========================================
    7. MODAL PREMIUM
    ========================================= */
    .modal {
        display: none; 
        position: fixed;
        z-index: 10000;
        left: 0; top: 0; width: 100%; height: 100%;
        background-color: rgba(0, 0, 0, 0.4); 
        backdrop-filter: blur(12px);
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background: #ffffff;
        padding: 50px 40px;
        border-radius: 30px;
        width: 90%;
        max-width: 450px;
        text-align: center;
        position: relative;
        animation: modalFade 0.4s ease-out;
    }

    .close-modal {
        position: absolute;
        top: 20px; right: 25px;
        font-size: 30px; color: #999; cursor: pointer;
    }

    .modal-options {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-modal {
        padding: 20px;
        border-radius: 15px;
        text-decoration: none;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .btn-whatsapp { background-color: #25D366; color: white; }
    .btn-call { background-color: var(--azul-cielo); color: white; }

    /* =========================================
    8. FOOTER Y RESPONSIVE
    ========================================= */
    footer {
        background: var(--oscuro);
        color: rgba(255, 255, 255, 0.6);
        padding: 40px 0;
        text-align: center;
    }

    @media (max-width: 992px) {
        .grid-beneficios, .grid-servicios { grid-template-columns: repeat(2, 1fr); }
        .contact-layout { flex-direction: column; align-items: center; text-align: center; }
        .info-container { text-align: center; }
        .detail-item { justify-content: center; text-align: left; }
        .hero-text h1 { font-size: 2.8rem; }
    }
    @media (max-width: 768px) {
        .top-bar {
            display: none;
        }
        header {
            top: 0;
        }
        .hero {
            margin-top: 70px;
        }
        /* 1. Mostramos el menú y ajustamos espacios */
        .main-nav { 
            display: flex; 
            gap: 10px; 
        }

        .nav-links {
            gap: 12px; /* Espacio pequeño entre palabras */
        }

        .nav-links a {
            font-size: 0.8rem !important; /* Texto más pequeño para móvil */
            white-space: nowrap; /* Evita que las palabras se corten en dos líneas */
        }

        .logo-area {
            height: 40px; /* Logo más discreto */
        }

        /* 2. Ajustes de contenido */
        .grid-beneficios, .grid-servicios { 
            grid-template-columns: 1fr; 
        }

        .hero-doctor { 
            display: none; 
        }

        .hero-text { 
            text-align: center;
            padding: 0 10px; 
        }

        .hero-text h1 { 
            font-size: 2.2rem; 
        }

        header { 
            height: 70px; 
            padding: 0 10px;
        }


    }
    /* Animaciones */
    @keyframes fadeInFondo { from { opacity: 0; } to { opacity: 1; } }
    @keyframes slideInTexto { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
    @keyframes slideInDoctor { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes modalFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }


    /* Contenedor de redes sociales */
    .social-links {
        margin-top: 25px;
        display: flex;         /* Alinea los hijos (p y div) horizontalmente */
        align-items: center;   /* Centra verticalmente el texto con los botones */
        gap: 15px;             /* Espacio entre el texto y los iconos */
    }

    .social-links p {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 0;      /* Quitamos el margen para que no se desalinee */
        font-weight: 500;
    }

    .social-btns {
        display: flex;
        gap: 12px;
    }
    .social-btn {
        width: 35px;           /* Subí un poco el tamaño para que sean más fáciles de picar */
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: white;
        font-size: 1.1rem;
        transition: var(--transicion);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Colores de marca */
    .social-btn.facebook {
        background-color: #1877F2;
    }

    .social-btn.instagram {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    }

    .social-btn:hover {
        transform: translateY(-5px);
        filter: brightness(1.1);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }

    /* Ajuste para móvil: centrar si es necesario */
    @media (max-width: 992px) {
        .social-btns {
            justify-content: center;
        }
    }

    

    /* =========================================
    9. SECCIÓN EQUIPO & INSTALACIONES
    ========================================= */

    .equipo-hero {
        background: var(--gris-fondo);
        padding: 100px 0 30px;
        text-align: center;
    }

    .subtitulo {
        color: var(--azul-cielo);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 700;
        font-size: 0.9rem;
    }

    .titulo-pagina {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .equipo-detalle {
        padding: 30px 0;
    }

    .doctor-row {
        display: flex;
        align-items: center;
        justify-content: center; /* Centra el bloque completo */
        gap: 60px;
        margin-bottom: 100px;
    }

    .doctor-row.reverse {
        flex-direction: row-reverse;
    }

    .doctor-img {
        flex: 1;
        max-width: 450px; /* Ajusta este número (400px o 450px) según qué tan pequeñas las quieras */
        margin: 0 auto;   /* Centra la imagen si el texto es muy corto */   
    }

    .doctor-img img {
        width: 100%;
        height: 600px; /* Altura fija para que todas se vean iguales */
        object-fit: cover; /* Recorta la imagen para que no se estire */
        border-radius: 30px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    }
    .doctor-info {
        flex: 1;
    }

    .titulo-doctor {
        font-size: 2.5rem;
        color: var(--oscuro);
    }

    .especialidad {
        color: var(--azul-cielo);
        font-weight: 600;
        margin-bottom: 20px;
    }

    .separador {
        width: 60px;
        height: 4px;
        background: var(--verde-claro);
        margin-bottom: 25px;
    }

    .descripcion-doctor {
        font-size: 1.1rem;
        color: #555;
        line-height: 1.8;
    }

    /* INSTALACIONES */
    .instalaciones {
        padding: 60px 0;
        background: #fff;
    }

    .header-centrado {
        text-align: center;
        margin-bottom: 50px;
    }

    .header-centrado h2 { font-size: 2.5rem; }

    .grid-instalaciones {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .foto-inst {
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        height: 300px;
    }

    .foto-inst img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .overlay-inst {
        position: absolute;
        bottom: 0; left: 0; width: 100%;
        padding: 20px;
        background: linear-gradient(transparent, rgba(0,0,0,0.7));
        color: white;
        opacity: 0;
        transition: 0.3s;
    }

    .foto-inst:hover img { transform: scale(1.1); }
    .foto-inst:hover .overlay-inst { opacity: 1; }

    /* RESPONSIVE EQUIPO */
    @media (max-width: 768px) {
        .doctor-row, .doctor-row.reverse {
            flex-direction: column;
            text-align: center;
            gap: 30px;
        }
        
        .separador { margin: 0 auto 25px; }
        
        .grid-instalaciones {
            grid-template-columns: 1fr;
        }
        
        .titulo-pagina { font-size: 2rem; }
        .titulo-doctor { font-size: 1.8rem; }
    }


    /* =========================================
    NUEVA SECCIÓN: INFO SPLIT (INDEX)
    ========================================= */
    .info-split {
        padding: 30px 0;
        background-color: var(--blanco); /* Fondo limpio para contrastar con el gris de servicios */
    }

    .split-wrapper {
        display: flex;
        align-items: center;
        gap: 80px;
    }

    .split-text {
        flex: 1;
    }

    /* Usamos el mismo estilo de subtitulo que en la página de equipo */
    .subtitulo {
        color: var(--azul-cielo);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 700;
        font-size: 0.9rem;
        display: block;
        margin-bottom: 10px;
    }

    .split-text h2 {
        font-size: 2.8rem;
        margin-bottom: 20px;
        line-height: 1.2;
        color: var(--oscuro);
    }

    .split-text p {
        font-size: 1.1rem;
        color: #555;
        margin-bottom: 30px;
    }

    .split-list {
        list-style: none;
        padding: 0;
    }

    .split-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 15px;
        font-weight: 500;
        color: var(--oscuro);
    }

    .split-list i {
        color: var(--azul-cielo); /* Usamos tu azul de marca */
        font-size: 1.2rem;
    }

    .split-image {
        flex: 1;
        max-width: 450px; /* Tamaño controlado */
    }

    .split-image img {
        width: 100%;
        border-radius: 30px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    }

    /* Adaptación para móviles */
    @media (max-width: 992px) {
        .split-wrapper {
            flex-direction: column;
            text-align: center;
            gap: 40px;
        }

        .split-text h2 {
            font-size: 2.2rem;
        }

        .split-list li {
            justify-content: center;
        }

        .split-image {
            max-width: 100%;
            order: 2; /* La imagen baja y el texto queda arriba */
        }
    }


    /* =========================================
    11. SECCIÓN DETALLE DE TRATAMIENTOS
    ========================================= */
    .detalle-tratamientos {
        padding: 80px 0;
        background-color: var(--gris-fondo); /* Fondo sutil para diferenciarla */
    }

    .focus-wrapper {
        display: flex;
        align-items: center;
        gap: 50px;
    }

    .focus-image {
        flex: 0 0 350px; /* Tamaño fijo y pequeño para la imagen */
    }

    .focus-image img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .focus-content {
        flex: 1;
    }

    .focus-content h2 {
        font-size: 2.5rem;
        margin: 10px 0 20px;
        color: var(--oscuro);
    }

    .focus-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .feature-small strong {
        display: block;
        color: var(--azul-cielo);
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .feature-small p {
        font-size: 0.9rem;
        color: #666;
        line-height: 1.4;
    }

    /* Ajuste para móvil */
    @media (max-width: 768px) {
        .focus-wrapper {
            flex-direction: column;
            text-align: center;
        }

        .focus-image {
            flex: 0 0 auto;
            width: 100%;
            max-width: 300px;
        }

        .focus-image img {
            height: 250px;
        }

        .focus-features {
            grid-template-columns: 1fr;
            text-align: center;
        }
    }

    /* --- ESTILOS TOP BAR --- */
    .top-bar {
        background: var(--azul-cielo);
        color: white;
        padding: 10px 0;
        font-size: 0.85rem;
        z-index: 1001; /* Un nivel arriba del header */
        position: fixed;
        top: 0;
        width: 100%;
    }

    .top-bar-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .urgent-call {
        color: white;
        text-decoration: none;
        font-weight: 700;
        background: rgba(255, 255, 255, 0.2); /* Un toque de brillo para resaltar */
        padding: 4px 12px;
        border-radius: 20px;
        transition: var(--transicion);
    }

    .urgent-call:hover {
        background: white;
        color: var(--azul-cielo);
    }

    .top-info span i {
        margin-right: 8px;
        color: var(--verde-claro); /* Icono en color de acento */
    }

    /* --- SUBTÍTULO EN EL HERO --- */
    .hero-specialties {
        font-size: 1rem !important;
        text-transform: uppercase;
        letter-spacing: 2.5px;
        color: var(--verde-claro); /* Usamos tu color de marca para que resalte */
        margin-bottom: 12px !important;
        font-weight: 700;
        display: block;
    }

    /* --- SECCIÓN RESEÑAS GOOGLE --- */
    .google-reviews {
        background: #fdfdfd;
        padding: 25px 0;
        border-bottom: 1px solid #eee;
        box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
    }

    .reviews-header {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 40px;
        flex-wrap: wrap; /* Para que en móvil se acomode uno bajo otro */
    }

    .google-brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .google-logo-img {
        height: 28px;
        width: auto;
    }

    .opiniones-texto {
        font-size: 1.1rem;
        color: #5f6368;
        font-weight: 500;
    }

    .stars-container {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .stars-row {
        color: #fbbc05; /* El color exacto de las estrellas de Google */
        font-size: 1.1rem;
    }

    .stars-row i {
        margin-right: 2px;
    }

    .rating-number {
        font-weight: 700;
        color: #333;
    }

    .rating-number small {
        font-weight: 400;
        color: #666;
        margin-left: 5px;
    }

    .btn-ver-reviews {
        font-size: 0.85rem;
        color: var(--azul-cielo);
        text-decoration: none;
        border: 2px solid var(--azul-cielo);
        padding: 8px 20px;
        border-radius: 50px;
        font-weight: 600;
        transition: var(--transicion);
    }

    .btn-ver-reviews:hover {
        background: var(--azul-cielo);
        color: white;
        transform: scale(1.05);
    }

    /* Ajuste móvil */
    @media (max-width: 768px) {
        .reviews-header {
            gap: 15px;
            text-align: center;
        }
        .hero-specialties {
            font-size: 0.85rem !important;
            letter-spacing: 1.5px;
        }
    }

