/* =========================================
   VARIABLES Y RESET GENERAL (NUEVA IDENTIDAD MEDIDENT)
========================================= */
:root {
    --color-principal: #F19295; /* Rosa del logo de Medident */
    --color-secundario: #A6A6A6; /* Gris claro del logo */
    --color-titulos: #4A4A4A; /* Gris carbón elegante para títulos (reemplaza al azul oscuro) */
    --fondo-suave: #FDF5F5; /* Fondo con un pequeñísimo toque rosado/cálido */
    --fondo-gris: #f8f9fa;
    --texto-oscuro: #333333;
    --texto-gris: #666666;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: #fff; color: var(--texto-oscuro); display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   NAVEGACIÓN Y DROPDOWN (MENÚ)
========================================= */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 40px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 100;
}
/* Tu nuevo logo en imagen */
.logo-img { height: 55px; width: auto; object-fit: contain; }

nav ul { display: flex; list-style: none; gap: 30px; align-items: center; }
nav ul li a { text-decoration: none; color: var(--texto-oscuro); font-size: 0.95rem; font-weight: 600; padding-bottom: 5px; }
nav ul li a.activo { border-bottom: 2px solid var(--color-principal); color: var(--color-principal); }

.dropdown { position: relative; display: inline-block; padding-bottom: 5px; cursor: pointer; }
.dropdown-content {
    display: none; position: absolute; background-color: #fff;
    min-width: 220px; box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1; border-radius: 8px; top: 100%; left: 0; overflow: hidden;
}
.dropdown:hover .dropdown-content { display: flex; flex-direction: column; }
.dropdown-content a {
    color: var(--texto-oscuro); padding: 12px 20px; text-decoration: none;
    display: block; font-size: 0.85rem; border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s; font-weight: 400;
}
.dropdown-content a:hover { background-color: var(--fondo-suave); color: var(--color-principal); border-bottom: none; }
.dropdown-content a.activo { color: var(--color-principal); font-weight: 700; }

.btn-reserva { background-color: var(--color-principal); color: #fff; padding: 10px 25px; border-radius: 30px; text-decoration: none; font-weight: 600; transition: background 0.3s;}
.btn-reserva:hover { background-color: #e07f82; } /* Un rosa un poco más oscuro al pasar el mouse */

.btn-dark { background-color: var(--color-titulos); color: #fff; padding: 12px 30px; border-radius: 30px; text-decoration: none; display: inline-block; font-weight: 600; border: 1px solid transparent; transition: all 0.3s ease; }
.btn-dark:hover { background-color: #333; }

/* =========================================
   HERO SECTIONS Y TÍTULOS
========================================= */
.hero {
    position: relative; background: url('https://images.unsplash.com/photo-1606811841689-23dfddce3e95?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    min-height: 80vh; display: flex; align-items: center; padding-left: 10%;
}
.hero-overlay { background: rgba(255,255,255,0.9); padding: 40px; border-radius: 15px; max-width: 500px; border-top: 4px solid var(--color-principal); }
.hero h1 { font-size: 2.2rem; line-height: 1.2; color: var(--color-titulos); margin-bottom: 15px; }

.page-title-box, .page-header { text-align: center; padding: 30px 0 20px; background-color: #fff; }
.page-title-box h1, .page-header h1 { color: var(--color-titulos); font-size: 2.5rem; margin-bottom: 5px; }
.page-title-box p, .page-header p { font-size: 0.85rem; color: var(--texto-gris); }
.page-title-box a, .page-header p a { color: var(--color-principal); text-decoration: none; font-weight: 600;}

.hero-split { display: flex; height: 60vh; min-height: 400px; }
.hero-left { flex: 1; background-color: var(--color-secundario); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 10%; }
.hero-left h2 { font-size: 2.2rem; margin-bottom: 20px; line-height: 1.3; text-shadow: 1px 1px 3px rgba(0,0,0,0.1); }
.hero-left p { margin-bottom: 20px; }
.hero-left .btn-dark { border: 1px solid #fff; }
.hero-right { flex: 1; background: url('https://images.unsplash.com/photo-1606811841689-23dfddce3e95?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat; }

/* =========================================
   DISEÑO DE BLOQUES (GRIDS Y FLEX)
========================================= */
.beneficios { padding: 60px 0; text-align: center; }
.beneficios h2, .servicios-destacados h2, .especialidades-grid h2, .nuestro-equipo h2 { color: var(--color-titulos); margin-bottom: 40px; font-size: 2rem; text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.servicios-destacados, .especialidades-grid { padding: 80px 0; background-color: var(--fondo-suave); }
.card-servicio { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #f0e6e6; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-servicio:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(241,146,149,0.15); }
.card-servicio a { text-decoration: none; color: inherit; display: block; }
.card-servicio img { width: 100%; height: 250px; object-fit: cover; }
.card-servicio-contenido { padding: 25px 20px; }
.card-servicio-contenido h4 { color: var(--color-titulos); margin-bottom: 10px; font-size: 1.1rem; }
.card-servicio-contenido p { color: var(--texto-gris); font-size: 0.85rem; line-height: 1.5; }

.flex-2, .split-row, .cta-flex { display: flex; gap: 50px; align-items: center; margin-bottom: 40px; }
.servicios-img, .split-img, .cta-img { flex: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.servicios-img img, .split-img img, .cta-img img { width: 100%; display: block; }
.servicios-texto, .split-text, .cta-texto { flex: 1; }

.content-section { padding: 60px 0; }
.section-title { color: var(--color-titulos); font-size: 1.6rem; margin-bottom: 40px; text-align: center; }
.split-text h4 { color: var(--color-principal); font-size: 0.9rem; text-transform: uppercase; margin-bottom: 8px; margin-top: 20px; font-weight: 700; }
.split-text p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 15px; color: var(--texto-gris); }
.split-text ul { list-style-position: inside; margin-bottom: 15px; }

/* =========================================
   STAFF Y SEDES
========================================= */
.carrusel-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.grid-doctores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; width: 100%; }
.btn-flecha { background-color: var(--color-principal); color: #fff; border: none; width: 40px; height: 40px; border-radius: 5px; cursor: pointer; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }

.staff-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 50px 30px; max-width: 1000px; margin: 0 auto; padding-bottom: 60px;}
.doctor-card { text-align: center; width: 280px; }
.img-doctor { width: 160px; height: 220px; margin: 0 auto 20px; border-radius: 60px; overflow: hidden; background-color: var(--fondo-suave); box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 3px solid #fff;}
.img-doctor img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card h4 { color: var(--color-titulos); font-size: 0.95rem; text-transform: uppercase; }
.doctor-card .especialidad { color: var(--color-principal); font-weight: 600;}

.sedes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; padding-bottom: 60px;}
.sede-card { background: #fff; border: 1px solid #f0e6e6; border-radius: 10px; padding: 20px; display: flex; align-items: center; gap: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); margin-bottom: 20px; }
.sede-mapa { width: 140px; height: 90px; border-radius: 6px; object-fit: cover; }
.sede-detalles h3 { color: var(--color-principal); }

/* =========================================
   ELEMENTOS EXTRAS Y FOOTER
========================================= */
.stats { padding: 40px 0; text-align: center; background-color: #fff; border-top: 1px solid #eee; }
.stats h3 { color: var(--color-titulos); font-size: 3rem; }
.stats p { color: var(--color-principal); font-weight: 600; }

.safety-banner { background-color: var(--color-principal); color: #fff; padding: 30px 40px; border-radius: 12px; margin: 40px auto; max-width: 1000px; text-align: center; box-shadow: 0 5px 15px rgba(241,146,149,0.3);}
.cta-bg, .cta-seccion { background-color: var(--fondo-suave); padding: 80px 0; border-top: 1px solid #f0e6e6;}
.cta-texto h2 { color: var(--color-titulos); }

.google-badge { background-color: var(--color-secundario); color: white; display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 5px; font-size: 0.9rem; font-weight: 600; }

footer { background-color: var(--color-titulos); padding-top: 60px; font-size: 0.85rem; color: #eee; margin-top: auto; }
.footer-container { padding-bottom: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 { color: var(--color-principal); margin-bottom: 15px; font-size: 1.05rem; }
.footer-col p { margin-bottom: 12px; line-height: 1.6; }
.social-icons { display: flex; gap: 10px; margin-top: 15px; }
.social-btn { background-color: #666; color: white; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 4px; font-size: 1.2rem; font-weight: bold; transition: background 0.3s;}
.social-btn:hover { background-color: var(--color-principal); }
.footer-bottom { background-color: #333; height: 25px; width: 100%; }

/* =========================================
   ⚡ DISEÑO RESPONSIVO (MÓVILES Y TABLETS) ⚡
========================================= */
@media (max-width: 768px) {
    header { flex-direction: column; padding: 15px; gap: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .dropdown-content { position: relative; box-shadow: none; min-width: 100%; }
    .grid-3 { grid-template-columns: 1fr; }
    .sedes-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
    .hero-split, .flex-2, .split-row, .cta-flex { flex-direction: column; height: auto; text-align: center; gap: 30px; }
    .hero { min-height: 60vh; background-position: left center; }
    .hero-overlay { margin: 20px; padding: 25px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-left { padding: 40px 20px; }
    .hero-right { height: 300px; width: 100%; }
    .sede-card { flex-direction: column; text-align: center; }
    .sede-mapa { width: 100%; height: 150px; }
    .carrusel-wrapper { flex-direction: column; }
    .grid-doctores { grid-template-columns: 1fr; gap: 40px; }
    .btn-flecha { display: none; }
    .doctor-card { width: 100%; }
}