/*
Theme Name: Medical Custom
Theme URI: http://ejemplo.com
Author: Tu Nombre
Author URI: http://ejemplo.com
Description: Tema personalizado estilo médico con secciones editables.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medical-custom
*/

/* --- 1. RESET Y BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; color: #333; }
img { max-width: 100%; height: auto; } /* Evita que las imágenes se salgan */

/* --- 2. LAYOUT / GRILLAS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: center; 
}

.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

/* --- 3. HEADER --- */
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }

/* --- 4. BOTONES --- */
.btn-cta, .btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s;
    display: inline-block; /* Crucial para respetar márgenes */
    margin-top: 10px;
}

.btn-cta:hover, .btn-primary:hover {
    background-color: var(--accent-color);
}

/* --- 5. SECCIÓN HERO (DOCTOR) --- */
.hero-section {
    padding: 80px 0;
    /* Variables conectadas al Personalizador */
    background-color: var(--hero-bg-color); 
    background-size: cover;
    background-position: center;
}

.hero-text h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.hero-text p {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.6;
}

/* --- 6. SECCIÓN DE SERVICIOS --- */
.services-section {
    padding: 60px 0;
    /* Variable conectada al Personalizador */
    background-color: var(--services-bg-color); 
}

.services-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2.5rem;
}

/* Tarjetas individuales */
.service-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.service-card i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* --- 7. SECCIÓN MAPA --- */
.map-section {
    padding: 50px 0;
    /* Variable conectada al Personalizador */
    background-color: var(--map-bg-color); 
    text-align: center;
    width: 100%;
}

/* --- NUEVA SECCIÓN: PADECIMIENTOS --- */
.conditions-section {
    padding: 60px 0;
    background-color: var(--conditions-bg-color); /* Color editable nuevo */
}

.conditions-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    display: block;
    border: none;
    max-width: 1200px; /* Opcional: para que no se estire infinito en pantallas gigantes */
    margin: 0 auto;    /* Centrar el mapa si tiene max-width */
}

/* --- 8. RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr; /* Una sola columna en celular */
        text-align: center;
    }
    
    .hero-image {
        order: -1; /* Poner la foto arriba del texto en celular */
        margin-bottom: 20px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
}