/* 1. VARIABLES DE IDENTIDAD */
:root {
    --azul-profundo: #004481;
    --rojo: #d32f2f;
    --amarillo: #ffc107;
    --blanco: #ffffff;
    --gris-claro: #f8f9fa;
    --sombra-suave: 0 10px 30px rgba(0,0,0,0.08);
    --sombra-fuerte: 0 15px 40px rgba(0,0,0,0.15);
}

/* 2. CONFIGURACIÓN BASE */
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--gris-claro);
    color: #2c3e50;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* 3. NAVEGACIÓN (HEADER) */
.navbar {
    background: rgba(0, 68, 129, 0.96);
    backdrop-filter: blur(8px);
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.logo-container { display: flex; align-items: center; gap: 15px; }
.nav-logo { height: 55px; width: 55px; border-radius: 50%; border: 2px solid var(--amarillo); background: white; object-fit: cover; }
.plancha-title { color: var(--amarillo); font-weight: 800; font-size: 1.3rem; letter-spacing: 1px; }
.barrio-title { color: white; font-size: 0.8rem; display: block; text-transform: uppercase; }

.nav-links { list-style: none; display: flex; margin: 0; }
.nav-links a { color: white; text-decoration: none; margin-left: 25px; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--amarillo); }

/* 4. HERO SECTION (BANNER) */
.hero {
    background: linear-gradient(rgba(0, 44, 129, 0.75), rgba(0, 44, 129, 0.75)), url('barrio.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; text-shadow: 2px 4px 15px rgba(0,0,0,0.5); }
.hero-btns { display: flex; gap: 20px; justify-content: center; margin-top: 30px; }

.btn-main, .btn-secondary { padding: 16px 35px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: 0.4s; }
.btn-main { background: var(--rojo); color: white; box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3); border: none; cursor: pointer; }
.btn-secondary { background: white; color: var(--azul-profundo); box-shadow: var(--sombra-suave); }
.btn-main:hover { transform: translateY(-5px); filter: brightness(1.1); }

/* 5. TARJETAS DE PROPUESTAS */
.container { padding: 80px 5%; }
.section-title { text-align: center; color: var(--azul-profundo); margin-bottom: 60px; font-size: 2.5rem; font-weight: 800; }
.section-title::after { content: ''; width: 80px; height: 5px; background: var(--rojo); display: block; margin: 15px auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 35px; }
.card {
    background: white;
    padding: 45px 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--sombra-suave);
    transition: 0.4s;
    border-top: 8px solid var(--azul-profundo);
}
.card:hover { transform: translateY(-15px); box-shadow: var(--sombra-fuerte); }
.icon-pilar { font-size: 55px; color: var(--rojo); margin-bottom: 25px; display: block; }

/* 6. EQUIPO Y COMISIONES (UNIFORMES) */
.team-section { background: white; }
.team-section-alt { background: #f1f4f8; }

.team-grid, .team-grid-small { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px; 
    justify-content: center;
}
.team-grid-small { max-width: 800px; margin: 0 auto; }

.team-card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--sombra-suave);
    border-bottom: 6px solid var(--rojo);
    transition: 0.3s;
}
.team-card:hover { transform: translateY(-10px); border-bottom-color: var(--amarillo); box-shadow: var(--sombra-fuerte); }
.team-card h4 { margin: 0 0 10px 0; color: var(--azul-profundo); font-size: 1.25rem; font-weight: 700; }
.role { color: var(--rojo); font-weight: 800; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1.5px; }

/* 7. FORMULARIO Y FOOTER */
.contact-box { max-width: 800px; margin: 0 auto; }
.contact-form {
    background: white;
    padding: 45px;
    border-radius: 30px;
    box-shadow: var(--sombra-fuerte);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form input, .contact-form textarea { padding: 15px; border: 2px solid #edf2f7; border-radius: 12px; background: #f8fafc; font-size: 1rem; transition: 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--azul-profundo); outline: none; background: white; }

.whatsapp-float {
    position: fixed; bottom: 35px; right: 35px;
    background: #25d366; color: white;
    padding: 18px 28px; border-radius: 50px;
    text-decoration: none; font-weight: bold;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000; transition: 0.3s;
    display: flex; align-items: center; gap: 10px;
}
.whatsapp-float:hover { transform: scale(1.1); background: #128c7e; }

.footer-simple { background: var(--azul-profundo); color: white; text-align: center; padding: 40px; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
}
/* Estilos del Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-top: 8px solid var(--rojo);
}

.modal-header i { font-size: 40px; color: var(--rojo); margin-bottom: 15px; }
.modal-header h2 { color: var(--azul-profundo); margin: 0; }

.modal-body p { font-size: 1.1rem; color: #333; margin: 15px 0; }

.btn-modal-action {
    display: inline-block;
    background: var(--azul-profundo);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 0;
    transition: 0.3s;
}

.btn-modal-action:hover { background: var(--rojo); }

.btn-modal-close {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}
/* Estilos para la ventana de apoyo (Modal) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 15px;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 25px;
    max-width: 550px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    border-top: 12px solid #004481; /* Azul institucional */
}

.btn-modal-action {
    background: #004481;
    color: white;
    border-radius: 15px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 68, 129, 0.3);
    transition: 0.3s;
}

.btn-modal-action:hover {
    background: #d32f2f; /* Cambia a rojo al pasar el mouse para resaltar */
    transform: scale(1.02);
}

@media (max-width: 600px) {
    .modal-content { padding: 25px; }
    .modal-header h2 { font-size: 24px; }
}