:root {
    --azul-p: #004a80;
    --azul-c: #007bff;
    --gris: #f8f9fa;
    --texto: #333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; color: var(--texto); line-height: 1.6; background-color: #fff; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header { background: #fff; padding: 15px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; }
.nav-links { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--texto); font-weight: 500; }
.btn-external { background: var(--azul-p); color: #fff !important; padding: 8px 15px; border-radius: 4px; }

.hero { background: linear-gradient(rgba(0,74,128,0.8), rgba(0,74,128,0.8)), url('../images/hero-bg.jpg'); background-size: cover; background-position: center; color: #fff; padding: 100px 0; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.cta-button { display: inline-block; padding: 12px 25px; text-decoration: none; border-radius: 4px; font-weight: bold; margin: 10px; background: var(--azul-c); color: #fff; }
.cta-button.secondary { background: transparent; border: 2px solid #fff; }

.section-padding { padding: 80px 0; }
.bg-light { background: var(--gris); }
.section-title { font-size: 2rem; color: var(--azul-p); text-align: center; margin-bottom: 40px; }
.section-title.left { text-align: left; }
.section-subtitle { text-align: center; margin-top: -30px; margin-bottom: 40px; color: #666; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.stats { display: flex; gap: 20px; margin-top: 20px; }
.stat-item { border-left: 4px solid var(--azul-c); padding-left: 15px; }
.img-responsive { width: 100%; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.equipos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.equipo-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-align: center; position: relative; }
.equipo-card img { width: 100%; height: 250px; object-fit: cover; margin-bottom: 15px; border-radius: 4px; }
.card-tag { position: absolute; top: 10px; right: 10px; background: var(--azul-p); color: white; padding: 4px 10px; font-size: 0.8rem; border-radius: 4px; }

.contact-section { background: var(--gris); padding: 80px 0; }
.contact-form { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.form-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form input, .contact-form textarea { padding: 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; width: 100%; font-family: inherit; }
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form button { background: var(--azul-p); color: #fff; padding: 18px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 1.1rem; transition: background 0.3s; }
.contact-form button:hover { background: var(--azul-c); }
.success-msg { background: #d4edda; color: #155724; padding: 20px; border-radius: 4px; text-align: center; margin-bottom: 20px; border: 1px solid #c3e6cb; }

footer { background: #222; color: #fff; padding: 60px 0 20px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid #444; padding-bottom: 30px; }
.footer-logo img { height: 45px; }
.footer-bottom { text-align: center; font-size: 0.9rem; opacity: 0.7; }

@media (max-width: 768px) { 
    .about-grid, .form-group { grid-template-columns: 1fr; } 
    .nav-links { display: none; } 
    .hero h1 { font-size: 2.2rem; }
}
/* --- Estilos Popup --- */
.popup-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-top: 5px solid var(--azul-p);
}

.popup-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.close-popup:hover { color: #333; }

.popup-content h2 {
    color: var(--azul-p);
    margin-bottom: 10px;
}

.popup-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.btn-popup {
    background: var(--azul-p);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-popup:hover { background: var(--azul-c); }