/* --- VARIABLES Y ESTILOS BASE --- */
:root {
    --primary: #008B8B;
    --secondary: #003366;
    --accent: #4CAF50;
    --bg-light: #f4f7f6;
    --text-dark: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { color: var(--text-dark); background-color: white; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: inherit; }

/* --- NAVEGACIÓN CON BRILLO UNIFORME --- */
header {
    background-color: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; top: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center; padding: 15px 5%;
}
.logo { font-size: 24px; font-weight: 700; color: var(--secondary); display: flex; align-items: center; }
.logo span { color: var(--primary); }
nav ul { display: flex; list-style: none; gap: 20px; align-items: center; }

/* Efecto de transición base para todos los links del menú */
nav ul li a { 
    font-weight: 600; 
    color: var(--secondary); 
    transition: all 0.3s ease; 
    padding-bottom: 5px; 
    position: relative;
}

/* Efecto de Brillo (Glow) al pasar el mouse en CUALQUIER elemento del menú */
nav ul li a:hover { 
    color: var(--primary); 
    text-shadow: 0 0 12px rgba(0, 139, 139, 0.8);
    transform: translateY(-2px);
}

/* Clase para la subpágina actual (Activa) */
nav ul li a.active { 
    color: var(--primary); 
    text-shadow: 0 0 15px rgba(0, 139, 139, 1); 
    border-bottom: 2px solid var(--primary);
}

/* Botón de cita especial (Solo se usará dentro de la página, no en el menú) */
.btn-cita { 
    background-color: var(--primary); color: white !important; 
    padding: 10px 20px; border-radius: 25px; font-weight: bold; 
    border-bottom: none !important; text-shadow: none !important; 
    display: inline-block;
}
.btn-cita:hover {
    box-shadow: 0 0 15px rgba(0, 139, 139, 0.8);
    transform: scale(1.05);
}

/* --- SECCIONES COMUNES --- */
main { flex: 1; }
section { padding: 60px 5%; }
.section-title { text-align: center; font-size: 36px; color: var(--secondary); margin-bottom: 40px; }

/* --- HERO SECTION (Inicio) --- */
.hero {
    background: linear-gradient(rgba(0,51,102,0.8), rgba(0,139,139,0.8)), url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; color: white; padding: 0 20px;
}
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero p { font-size: 18px; max-width: 700px; margin-bottom: 30px; }

/* --- SERVICIOS --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card {
    background: var(--bg-light); padding: 30px; border-radius: 10px;
    text-align: center; transition: 0.3s; border-bottom: 4px solid var(--primary);
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.service-card h3 { color: var(--secondary); margin-bottom: 15px; }

/* --- PROMOCIONES --- */
.promo-banner { background-color: var(--primary); color: white; text-align: center; padding: 40px 20px; margin: 40px 0; border-radius: 10px; }

/* --- CONTACTO --- */
.contact-container { display: flex; flex-wrap: wrap; gap: 40px; }
.contact-info, .contact-map { flex: 1; min-width: 300px; }
.contact-info h3 { margin-bottom: 20px; color: var(--secondary); }
.contact-info p { margin-bottom: 10px; font-size: 16px; }

/* --- CHATBOT --- */
.chat-container { max-width: 600px; margin: 0 auto; background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.chat-header { background-color: var(--primary); color: white; padding: 20px; text-align: center; }
.chat-messages { height: 400px; padding: 20px; overflow-y: auto; background: #f9f9f9; }
.message { margin-bottom: 15px; padding: 10px 15px; border-radius: 10px; max-width: 80%; }
.msg-bot { background-color: #e2e8f0; align-self: flex-start; }
.msg-user { background-color: var(--primary); color: white; margin-left: auto; width: fit-content; }
.chat-input { display: flex; border-top: 1px solid #ddd; }
.chat-input input { flex: 1; padding: 15px; border: none; outline: none; }
.chat-input button { padding: 15px 20px; background: var(--secondary); color: white; border: none; cursor: pointer; font-weight: bold; transition: 0.3s; }
.chat-input button:hover { background: var(--primary); }

/* --- FOOTER --- */
footer { background-color: var(--secondary); color: white; text-align: center; padding: 30px 20px; margin-top: auto; }
.social-links { margin: 20px 0; }
.social-links a { color: white; font-size: 18px; margin: 0 10px; font-weight: bold; border: 1px solid white; padding: 8px 15px; border-radius: 20px; transition: 0.3s; }
.social-links a:hover { background-color: var(--primary); border-color: var(--primary); }

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: white;
    width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 1000; transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 0 15px rgba(37, 211, 102, 0.8); }
.whatsapp-float svg { width: 35px; height: 35px; fill: white; }

/* Responsivo */
@media (max-width: 768px) {
    nav ul { display: none; }
    .hero h1 { font-size: 32px; }
}