/* ==========================================================================
   DISEÑO DE ESTILOS - CLÍNICAS DEL VALLE
   ========================================================================== */

/* Variables del Sistema de Diseño */
:root {
    /* Paleta de Colores Inspirada en el Logotipo */
    --primary-dark: #00132c;      /* Azul marino profundo (fondo logo) */
    --primary-blue: #0b3c75;      /* Azul real elegante (hojas oscuras) */
    --accent-cyan: #00a4e4;       /* Cian brillante (hojas claras) */
    --accent-cyan-hover: #0087bd;
    --accent-blue-light: #f0f7ff;
    
    /* Neutros */
    --bg-light: #f8fafd;
    --bg-white: #ffffff;
    --text-dark: #1e2d3d;
    --text-muted: #5e6e82;
    --text-light: #ffffff;
    
    /* Efectos & Bordes */
    --border-color: #e2ecf5;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 30px rgba(11, 60, 117, 0.05);
    --shadow-medium: 0 16px 40px rgba(11, 60, 117, 0.1);
    --shadow-glow: 0 10px 25px rgba(0, 164, 228, 0.35);
    
    /* Tipografías */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Transiciones */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Tipografías y Encabezados */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.25;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Contenedores */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-cyan { color: var(--accent-cyan) !important; }
.text-blue { color: var(--primary-blue) !important; }

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
    color: var(--white);
    box-shadow: var(--shadow-glow);
    border: none;
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 164, 228, 0.5);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-blue);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--accent-blue-light);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

.btn-icon i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Cabecera / Navbar Fija */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-normal);
}

.main-header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
}

.main-header.scrolled .logo-img {
    height: 48px;
}

/* Enlaces del Menú */
.nav-menu {
    display: flex;
    align-items: center;
}

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

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta-mobile {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Menú Hamburguesa Móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* Hero Section */
.hero-section {
    padding: 10.5rem 0 7rem 0;
    background: radial-gradient(circle at 80% 20%, #eef6ff 0%, var(--bg-light) 70%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 164, 228, 0.08) 0%, rgba(255,255,255,0) 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background-color: var(--accent-blue-light);
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(to right, var(--primary-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
    width: 100%;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-txt {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

/* Tarjeta de Imagen Flotante */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.hero-image-card {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
    border: 6px solid var(--bg-white);
}

.floating-badge {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    animation: floating 3s ease-in-out infinite;
}

.floating-badge i {
    font-size: 1.75rem;
}

.floating-badge h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.floating-badge p {
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-top {
    top: 30px;
    left: -40px;
    animation-delay: 0s;
}

.badge-bottom {
    bottom: 40px;
    right: -30px;
    animation-delay: 1.5s;
}

/* Secciones Generales */
section {
    padding: 6.5rem 0;
}

.section-header {
    margin-bottom: 4.5rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.section-description {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--accent-cyan);
    margin: 0 auto;
    border-radius: 2px;
}

.divider.align-left {
    margin: 0 0 1.5rem 0;
}

/* Sección Nosotros */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text-column h3 {
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
}

.lead-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.about-text-column p {
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-icon-wrapper {
    color: var(--accent-cyan);
    font-size: 1.35rem;
    line-height: 1;
    margin-top: 3px;
}

.feature-info h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.feature-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Tarjetas Informativas */
.grid-cards-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-card {
    background-color: var(--bg-white);
    padding: 2.25rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-cyan);
}

.info-icon {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.info-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.info-card p {
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Sección Especialistas (Tarjetas Médicos) */
.doctors-section {
    background-color: var(--bg-white);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.doctor-card {
    background-color: var(--bg-light);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.doctor-img-wrapper {
    position: relative;
    height: 380px;
    overflow: hidden;
    background-color: #e9eff5;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-slow);
}

.doctor-card:hover .doctor-img {
    transform: scale(1.06);
}

.doctor-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 19, 44, 0.95), rgba(0, 19, 44, 0.6) 80%, rgba(255,255,255,0));
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition-slow);
}

.doctor-card:hover .doctor-overlay {
    transform: translateY(0);
}

.doctor-bio p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}

.doctor-info {
    padding: 2rem 1.5rem;
    text-align: center;
}

.doctor-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.specialty {
    font-size: 0.88rem;
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 1.5rem;
}

.doctor-action {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

/* Sección Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    margin-bottom: 4rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 3rem 2.25rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-cyan);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background-color: var(--accent-blue-light);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--accent-cyan);
    color: var(--white);
    transform: rotate(5deg);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.services-cta {
    background-color: var(--primary-dark);
    padding: 3.5rem;
    border-radius: 28px;
    box-shadow: var(--shadow-medium);
    color: var(--white);
    background-image: radial-gradient(circle at 100% 100%, rgba(0, 164, 228, 0.15) 0%, transparent 60%);
}

.services-cta p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.75rem;
    font-weight: 500;
}

/* Sección Contacto y Ubicación */
.contact-section {
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: stretch;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background-color: var(--bg-light);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.contact-text p {
    font-size: 0.95rem;
}

.contact-link {
    color: var(--primary-blue);
    font-weight: 600;
}

.contact-link:hover {
    color: var(--accent-cyan);
}

.text-whatsapp { color: #25d366 !important; }
.text-facebook { color: #1877f2 !important; }

/* Mapa Google Maps Card */
.map-card-wrapper {
    background-color: var(--bg-light);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-header {
    background-color: var(--bg-white);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.map-header i {
    font-size: 1.75rem;
}

.map-header h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.map-header p {
    font-size: 0.75rem;
    font-weight: 500;
}

.map-container {
    flex-grow: 1;
    min-height: 350px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.map-footer {
    padding: 1.5rem 2rem;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

/* Footer Estilo Premium */
.main-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 6.5rem 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.8fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    background-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-services-list h4,
.footer-newsletter h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h4::after,
.footer-services-list h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent-cyan);
    border-radius: 2px;
}

.footer-links ul,
.footer-services-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-services-list ul li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Botón Flotante de WhatsApp */
.whatsapp-floating {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
}

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.55);
}

/* Tooltip para el botón flotante */
.whatsapp-floating .tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-normal);
}

.whatsapp-floating .tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--primary-dark);
}

.whatsapp-floating:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Animaciones */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   RESPONSIVIDAD Y CONSULTAS DE MEDIOS (MEDIA QUERIES)
   ========================================================================== */

/* Pantallas grandes y Escritorio Estándar (hasta 1200px) */
@media (max-width: 1200px) {
    .hero-title { font-size: 3rem; }
    .hero-container { gap: 2rem; }
    .about-grid { gap: 3rem; }
    .contact-grid { gap: 3rem; }
}

/* Tablets en horizontal / Pantallas Medianas (hasta 992px) */
@media (max-width: 992px) {
    section { padding: 5rem 0; }
    
    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image-card {
        max-width: 420px;
    }
    
    /* Nosotros */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    /* Especialistas */
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Servicios */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contacto */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Tablets en vertical / Dispositivos Móviles Grandes (hasta 768px) */
@media (max-width: 768px) {
    /* Header & Navigation */
    .menu-toggle {
        display: block;
    }
    
    .btn-desktop-cta {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        padding: 6.5rem 2rem 2rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        transition: var(--transition-slow);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        margin-bottom: 3rem;
    }
    
    .nav-link {
        font-size: 1.15rem;
        display: block;
        width: 100%;
    }
    
    .nav-cta-mobile {
        display: block;
        width: 100%;
    }
    
    /* Menu Toggle Animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero */
    .hero-section { padding-top: 8.5rem; }
    .hero-title { font-size: 2.5rem; }
    
    .badge-top { left: -10px; }
    .badge-bottom { right: -10px; }
    
    /* Grid de tarjetas e información */
    .grid-cards-info {
        grid-template-columns: 1fr;
    }
}

/* Celulares / Dispositivos Móviles Pequeños (hasta 576px) */
@media (max-width: 576px) {
    section { padding: 4.5rem 0; }
    
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.15rem; }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat-divider {
        display: none;
    }
    
    /* Especialistas y Servicios en una sola columna */
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2.25rem 1.75rem;
    }
    
    .services-cta {
        padding: 2.25rem 1.5rem;
    }
    
    /* Mapa */
    .map-container {
        min-height: 280px;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* Botón flotante */
    .whatsapp-floating {
        bottom: 25px;
        right: 25px;
        width: 54px;
        height: 54px;
        font-size: 1.75rem;
    }
    
    .whatsapp-floating .tooltip {
        display: none !important; /* Ocultar tooltip en pantallas muy pequeñas */
    }
}
