/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50; 
    /* Fondo gris-azulado sólido para buen contraste */
    background-color: #dfe4ea; 
}

/* --- TIPOGRAFÍA Y COLOR DE MARCA --- */
h1, h2, h3, h4, strong {
    color: #1e272e; 
}

/* --- CLASES DE UTILIDAD --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Fondos */
.bg-light { background-color: #ced6e0; } 
.bg-dark { background-color: #2c3e50; color: white; }

.bg-dark h2, .bg-dark h3, .bg-dark p, .bg-dark strong, .bg-dark a {
    color: white;
}

/* --- HERO (PORTADA) --- */
.hero {
    /* Asegúrate de que la ruta de la imagen sea correcta */
    background-image: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../assets/images/portada.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero h1, .hero p { color: white; }

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* --- NAVEGACIÓN --- */
.main-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: white;
    border: 1px solid white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav a:hover {
    background-color: white;
    color: #2c3e50;
}

/* --- ESTILOS PERFIL (CONSULTA) --- */
.profile-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-top: 20px;
}

.profile-image {
    flex: 1;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); 
}

.profile-text {
    flex: 1;
}

.profile-text h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 10px;
    display: inline-block;
}

.subtitle {
    color: #57606f;
    margin-bottom: 25px;
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 500;
}

.bio p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
}

.small-text {
    font-size: 0.85rem;
    color: #57606f;
    margin-top: 30px;
    border-top: 1px solid #a4b0be; 
    padding-top: 10px;
}

/* --- ACORDEÓN --- */
.accordion {
    margin-top: 40px;
}

details {
    background-color: #ffffff; 
    border-radius: 8px;
    margin-bottom: 15px; 
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    border: none;
}

details[open] {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

summary {
    list-style: none;
    cursor: pointer;
    font-weight: bold;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #ffffff;
    border-bottom: 1px solid transparent;
    transition: background 0.3s;
}

summary:hover {
    background-color: #f1f2f6; 
}

details[open] summary {
    border-bottom: 1px solid #dfe4ea; 
    background-color: #f1f2f6;
}

summary::after {
    content: '+'; 
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    background: #dfe4ea;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

details[open] summary::after { 
    content: '-';
    background: #2c3e50;
    color: white;
    transform: rotate(180deg);
}

details .content {
    padding: 25px;
    color: #2f3542;
    font-size: 0.95rem;
    line-height: 1.7;
    background-color: white;
}

summary::-webkit-details-marker { display: none; }


/* --- ESTILOS ESPECIALIDADES --- */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.specialty-card {
    background-color: #34495e; 
    padding: 35px 30px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #465c71;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
}

.specialty-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.3);
    border-color: #5d7a94;
}

.specialty-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
    display: block;
}

.specialty-card p {
    font-size: 0.95rem;
    color: #ecf0f1;
    line-height: 1.6;
}


/* --- ESTILO SOBRE MÍ --- */
.about-box {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 50px; 
    border-radius: 12px;
    border-left: 6px solid #2c3e50; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
    text-align: left;
    color: #2f3542;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-box p {
    margin-bottom: 25px;
}

.about-box p:last-child {
    margin-bottom: 0;
}


/* --- SEPARADOR VISUAL --- */
hr.separator {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(44, 62, 80, 0.2), rgba(0, 0, 0, 0));
    margin: 0;
    display: block;
}


/* --- ESTILOS SECCIÓN CONTACTO (NUEVO DISEÑO ASIMÉTRICO) --- */
.contact-wrapper {
    display: flex;
    gap: 30px;
    align-items: stretch;
    justify-content: center;
}

/* Columna Izquierda (Doctoralia) */
.col-booking {
    flex: 1; 
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

/* Columna Derecha (Info + Mapa) */
.col-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

/* Estilo Base de las Tarjetas */
.contact-card {
    background-color: #34495e;
    padding: 30px; 
    border-radius: 12px;
    border: 1px solid #465c71;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: #5d7a94;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.contact-card h3 {
    margin-bottom: 5px;
    color: white;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card p {
    color: #ecf0f1;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-card .icon {
    font-size: 2.5rem;
    color: #ecf0f1;
}

/* Tarjetas pequeñas (Email y Horario) */
.small-card {
    flex: 0 0 auto;
    padding: 25px 30px; 
}

/* Tarjeta del Mapa (Híbrida: Texto arriba, Mapa grande abajo) */
.map-card {
    flex: 1; 
    min-height: 450px; 
    
    /* CAMBIO: Padding por los 4 lados (25px arriba, 30px resto) */
    padding: 25px 30px 30px 30px;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
}

.map-content-wrapper {
    /* Contenedor para el iframe */
    flex: 1; 
    width: 100%; 
    margin-top: 15px; /* Separación con el texto */
    height: 100%; 
    
    /* CAMBIO: Esquinas redondeadas para el mapa ahora que "flota" dentro */
    border-radius: 8px; 
    overflow: hidden; /* Para que el mapa respete el redondeado */
    
    /* Sombra opcional para que destaque sobre el fondo azul */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Enlaces */
.link-white {
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}
.link-white:hover { border-bottom-color: white; }


/* RESPONSIVE */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
    .col-booking, .col-info { width: 100%; }
    /* En móvil mantenemos una altura fija razonable */
    .map-card { height: 350px; min-height: 0; } 
}