/* =========================================
   ESTILO CLÍNICA DEMO (style.css)
   ========================================= */
:root {
    --medical-blue: #00a8cc; /* Azul Sanitario brillante */
    --dark-blue: #0c4b6e;    /* Azul Oscuro y Serio */
    --light-bg: #f4f9fc;     /* Fondo muy suave */
    --white: #ffffff;
    --text: #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Scroll suave para la navegación */
html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 100;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--dark-blue); letter-spacing: 1px; }
.logo span { color: var(--medical-blue); }
.btn-nav {
    background: var(--medical-blue); color: white; text-decoration: none;
    padding: 10px 25px; border-radius: 5px; font-weight: 700; transition: 0.3s;
}
.btn-nav:hover { background: var(--dark-blue); }

/* HERO */
.hero {
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.7)), 
                url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover; background-position: center;
    padding: 100px 5%; text-align: center; min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
}
.hero h1 { font-size: 3.5rem; color: var(--dark-blue); line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: var(--medical-blue); }
.hero p { font-size: 1.2rem; color: #555; max-width: 700px; margin: 0 auto 30px; }
.btn-primary {
    background: var(--dark-blue); color: white; padding: 15px 40px;
    text-decoration: none; border-radius: 50px; font-size: 1.1rem; font-weight: 700;
    display: inline-block; box-shadow: 0 5px 15px rgba(12, 75, 110, 0.3); transition: 0.3s;
}
.btn-primary:hover { transform: scale(1.05); background: var(--medical-blue); }
.small-text { margin-top: 15px; font-size: 0.9rem; color: #666; font-weight: 600; }
.small-text i { color: #2ecc71; margin-right: 5px; }

/* SERVICIOS */
.services { padding: 80px 5%; background: var(--white); text-align: center; }
.services h2 { color: var(--dark-blue); font-size: 2.5rem; margin-bottom: 50px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { padding: 40px; border: 1px solid #eee; border-radius: 15px; transition: 0.3s; }
.card:hover { border-color: var(--medical-blue); box-shadow: 0 10px 30px rgba(0,168,204,0.1); }
.icon { font-size: 3rem; margin-bottom: 20px; }
.card h3 { color: var(--dark-blue); margin-bottom: 15px; }

/* TEAM */
.team { padding: 80px 10%; background: var(--light-bg); }
.team-container { display: flex; align-items: center; gap: 50px; max-width: 1000px; margin: 0 auto; }
.team-img img { width: 100%; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.team-text h3 { font-size: 2rem; color: var(--dark-blue); margin-bottom: 5px; }
.badge { background: #e0f7fa; color: var(--dark-blue); padding: 3px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.team-text p { margin-top: 20px; margin-bottom: 20px; color: #555; }
.check-list { list-style: none; }
.check-list li { margin-bottom: 10px; font-weight: 600; color: var(--dark-blue); }

/* =========================================
   SECCIÓN AUTOMATIZACIÓN (CALENDLY ANCHO)
   ========================================= */
/* =========================================
   SECCIÓN AUTOMATIZACIÓN (CALENDLY ANCHO)
   ========================================= */
.automation-section { 
    padding: 80px 5%; 
    background: var(--dark-blue); 
    color: white; 
    text-align: center; 
}

.auto-content { 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* CAJA BLANCA CONTENEDORA */
.calendar-wrapper {
    background-color: white;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    margin-top: 30px;
    min-height: 700px; 
}

/* RESPONSIVO CALENDARIO */
@media (max-width: 768px) {
    .calendar-wrapper { padding: 5px; border-radius: 10px; min-height: 850px; }
}

/* =========================================
   FOOTER (ESTO ES LO QUE TE FALTA)
   ========================================= */
footer { 
    background: #f8f8f8; 
    padding: 50px 5% 20px; 
    color: #555; 
    margin-top: 0; /* Asegura que no haya espacios raros */
}

.footer-content { 
    display: flex; 
    justify-content: space-between; 
    max-width: 900px; 
    margin: 0 auto 40px; 
}

.footer-content h4 { 
    color: var(--dark-blue); 
    margin-bottom: 15px; 
    font-size: 1.2rem;
}

.footer-content p {
    margin-bottom: 10px;
}

.copyright { 
    text-align: center; 
    border-top: 1px solid #eee; 
    padding-top: 20px; 
    font-size: 0.8rem; 
}

.copyright a { 
    color: var(--medical-blue); 
    text-decoration: none; 
    font-weight: 700; 
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
    position: fixed; 
    width: 60px; 
    height: 60px; 
    bottom: 40px; 
    right: 40px;
    background-color: #25d366; 
    color: #FFF; 
    border-radius: 50px; 
    text-align: center;
    font-size: 30px; 
    box-shadow: 2px 2px 3px #999; 
    z-index: 1000;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.3s;
    text-decoration: none; /* Quita el subrayado */
}

.whatsapp-float:hover { transform: scale(1.1); }

/* RESPONSIVO FOOTER */
@media (max-width: 768px) {
    .footer-content { 
        flex-direction: column; 
        gap: 30px; 
        text-align: center; 
    }
}