/* --- VARIABLES DE COLOR --- */
:root {
    --color-primary: #0c0f0a;   /* Verde Militar */
    --color-secondary: #f3f3f3; /* Gris claro */
    --color-dark: #1c2833;      /* Azul Oscuro (fondo hero/footer) */
    --color-text: #333;
    --color-light-text: #ddd;
}

/* --- BASE Y TIPOGRAFÍA --- */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--color-text);
    background-color: var(--color-secondary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVEGACIÓN SUPERIOR --- */
.top-nav {
    background-color: var(--color-dark);
    color: white;
    padding: 15px 0;
    position: sticky; /* Fija la barra al desplazarse */
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-primary);
}

.nav-links a {
    color: var(--color-light-text);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.95em;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links .fa-search {
    margin-left: 20px;
    cursor: pointer;
    color: var(--color-light-text);
}

/* --- SECCIÓN HERO CON IMAGEN DE FONDO --- */
.hero {
    /* La imagen main.jpg debe estar en /img/ */
    background-image: url('img/main.jpg'); 
    background-size: cover;
    background-position: center;
    height: 70vh; /* Ajusta la altura de la vista */
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-overlay {
    background-color: rgba(28, 40, 51, 0.8); /* Oscurece la imagen para que el texto resalte */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    padding-top: 50px; /* Espacio para que no choque con el nav fijo */
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.subtitle {
    font-size: 1.5em;
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.1em;
    margin-bottom: 40px;
}

/* Pestañas de Navegación Rápida */
.quick-nav {
    display: flex;
    gap: 15px;
}

.tab-button {
    text-decoration: none;
    background-color: var(--color-primary);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.tab-button:hover {
    background-color: #008f65; /* Tono más oscuro de verde */
}

/* --- SECCIONES GENERALES --- */
.section {
    padding: 60px 0;
}

h2 {
    text-align: center;
    color: var(--color-dark);
    margin-bottom: 40px;
    font-size: 2em;
}

/* --- SECCIÓN EQUIPO (Responsivo) --- */
.team-section {
    background-color: white;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    max-width: 250px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--color-primary);
    margin-bottom: 15px;
}

.team-member h3 {
    color: var(--color-dark);
    margin: 5px 0;
    font-size: 1.2em;
}

.team-member .role {
    color: var(--color-primary);
    font-weight: bold;
}

/* --- SECCIÓN UBICACIÓN --- */
.location-section {
    background-color: var(--color-secondary);
    text-align: center;
}

.location-section address {
    font-style: normal;
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--color-dark);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- PIE DE PÁGINA / CONTACTO --- */
footer {
    background-color: var(--color-dark);
    color: white;
    padding: 40px 0;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info h3 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 10px;
}

.social-links a {
    color: var(--color-light-text);
    font-size: 1.5em;
    margin-left: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-primary);
}

/* --- MEDIA QUERIES (Responsividad Móvil) --- */
@media (max-width: 768px) {
    
    .hero {
        height: auto;
        min-height: 50vh;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .nav-links {
        display: none; /* Ocultamos los links para simplificar en móvil */
    }
    
    .nav-content {
        justify-content: center;
    }
    
    .top-nav {
        text-align: center;
    }

    .team-grid {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        margin-top: 15px;
    }

    .social-links a {
        margin: 0 10px;
    }
}