/* Paleta de colores oficial solicitada */
:root {
  --blue-dark: #031b32;    /* Azul profundo oscuro (Menú, Footer, Botones) */
  --blue-medium: #06284a;  /* Azul corporativo intermedio (Títulos) */
  --gold: #d7a84a;         /* Dorado de marca */
  --gold-light: #e8c878;   /* Dorado claro para efectos hover y detalles */
  --white: #ffffff;        /* Blanco puro */
  --text-body: #4a5568;    /* Gris balanceado para los textos informativos */
}

/* Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--blue-dark);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 1. HEADER Y BARRA DE NAVEGACIÓN */
.navbar {
    background-color: var(--blue-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu-item {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.menu-item:hover, .menu-item.active {
    color: var(--gold-light);
    border-bottom: 2px solid var(--gold-light);
}

/* 2. SECCIÓN DEL BANNER PRINCIPAL (Estructura de Imagen Real de Fondo) */
.banner {
    position: relative;
    width: 100%;
    height: 65vh; /* Altura controlada para PC de escritorio */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Forzamos a la imagen HTML a abarcar todo el espacio de fondo de forma fluida */
.banner-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que se adapte sin deformarse como un background-size: cover */
    z-index: 1;
}

/* Contenedor del texto colocado exactamente encima de tu imagen de fondo */
.banner-content {
    position: relative;
    z-index: 2; /* Capa superior a la imagen */
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
}

.banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    /* Sombras de contorno nítidas para asegurar legibilidad sobre el mapa del banner sin usar capas oscuras fijas */
    text-shadow: 2px 2px 4px rgba(3, 27, 50, 0.9), 
                -2px -2px 4px rgba(3, 27, 50, 0.9), 
                 2px -2px 4px rgba(3, 27, 50, 0.9), 
                -2px 2px 4px rgba(3, 27, 50, 0.9);
}

.banner p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    font-weight: 600;
    color: var(--white);
    text-shadow: 1px 1px 5px rgba(3, 27, 50, 0.9), 
                -1px -1px 5px rgba(3, 27, 50, 0.9);
}

.btn-primary {
    display: inline-block;
    background-color: var(--gold);
    color: var(--blue-dark);
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.btn-primary:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}

/* 3. CONTENIDO DE DOS COLUMNAS (CUERPO SECCIONAL) */
.main-content {
    display: flex;
    gap: 60px;
    padding: 90px 0;
    align-items: center;
}

.column {
    flex: 1;
}

.text-column h2 {
    font-size: 2.4rem;
    color: var(--blue-medium);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.text-column h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--gold);
}

.text-column p {
    margin-bottom: 22px;
    font-size: 1.1rem;
    color: var(--text-body);
}

.image-column .image-wrapper {
    box-shadow: 0 10px 30px rgba(3, 27, 50, 0.15);
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid var(--gold);
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.responsive-img:hover {
    transform: scale(1.02);
}

/* 4. FOOTER DE TRES COLUMNAS */
.footer {
    background-color: var(--blue-dark);
    color: var(--white);
    padding: 70px 0 25px;
    border-top: 4px solid var(--gold);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    color: var(--gold-light);
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-column p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(215, 168, 74, 0.15);
    font-size: 0.9rem;
    color: #94a3b8;
}

/* --- ADAPTABILIDAD RESPONSIVE (MEDIA QUERIES) --- */

/* Smart TVs y pantallas gigantes */
@media (min-width: 1920px) {
    .container { max-width: 1700px; }
    body { font-size: 19px; }
    .banner { height: 70vh; }
    .banner h1 { font-size: 4.5rem; }
    .banner p { font-size: 1.6rem; }
}

/* Ordenadores de escritorio estándar y portátiles */
@media (max-width: 1200px) {
    .main-content { gap: 40px; padding: 70px 0; }
    .banner h1 { font-size: 3rem; }
}

/* Tabletas (iPad, etc.) */
@media (max-width: 992px) {
    .banner { height: 50vh; } /* Reducción proporcional de la altura para tabletas */
    .main-content {
        flex-direction: column;
        text-align: center;
    }
    
    .text-column h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
}

/* Dispositivos móviles (Smartphones) */
@media (max-width: 600px) {
    .banner { height: 45vh; } /* Altura optimizada para teléfonos móviles */
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .logo-img {
        height: 42px;
    }

    .menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .banner h1 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1.1rem;
    }

    .text-column h2 {
        font-size: 1.85rem;
    }
}
