/* ---------------------- */
/* ESTILOS GENERALES */
/* ---------------------- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7fc; /* Fondo gris azulado */
    color: #333;
}

/* ---------------------- */
/* CABECERA Y NAVEGACIÓN */
/* ---------------------- */
header {
    background-color: #dde5f4; /* Azul claro */
    padding: 15px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    background-color: #dde5f4;
    width: 100%;
    white-space: nowrap;
    flex-wrap: wrap; /* Permite que el menú se ajuste automáticamente */
}

/* Ajuste responsivo para el menú en móviles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column; /* Menú vertical en móviles */
        gap: 10px;
        padding: 10px 0;
    }
}

nav ul li {
    text-align: center;
}

nav ul li a {
    text-decoration: none;
    color: #002d72; /* Azul oscuro */
    font-weight: bold;
    font-size: 1em;
    display: inline-block;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

/* ---------------------- */
/* SECCIÓN CENTRAL (MENÚ VISUAL) */
/* ---------------------- */
.menu-central {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
}
.hero {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}
/* Cuadrícula principal */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Cuatro columnas */
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Ajuste de la cuadrícula para tabletas */
@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas */
    }
}

/* Ajuste para móviles */
@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr); /* Una sola columna */
    }
}

/* Ajuste específico para posicionar Ranking debajo de Estación 1 y Clave debajo de Estación 2 */
.grid-item:nth-child(9) {
    grid-column: 2 / 3;
}

.grid-item:nth-child(10) {
    grid-column: 3 / 4;
}

/* Estilos para cada ítem dentro de la cuadrícula */
.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 10px;
}

/* Efecto hover */
.grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ---------------------- */
/* SECCIÓN ROLES */
/* ---------------------- */
.roles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Ajuste de las tarjetas */
.rol-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 220px;
    height: 260px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsividad en móviles */
@media (max-width: 600px) {
    .rol-card {
        width: 90%; /* Se expandirá en móviles */
    }
}

/* ---------------------- */
/* FOOTER MEJORADO */
/* ---------------------- */
footer {
    background-color: #dde5f4;
    padding: 15px 0; /* Ajuste del padding */
    color: #002d72;
    font-family: 'Poppins', sans-serif; 
    font-size: 0.75em; /* Reduce el tamaño de la letra */
}

/* Contenedor del footer */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logos en el footer */
.footer-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logos img {
    max-width: 120px; /* Reduce el tamaño de los logos */
    height: auto;
}

/* Textos del footer */
.footer-text {
    text-align: right;
    line-height: 1.2; /* Reduce la separación entre líneas */
}

.footer-text p {
    margin-bottom: 3px; /* Reduce el espacio entre párrafos */
    line-height: 1.2;
}

/* Estilos de los enlaces */
.footer-text a {
    color: #002d72;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #001b48;
}

/* Ocultar el footer en todos los dispositivos móviles */
@media (max-width: 1024px) { /* Ajuste para tablets y móviles */
    footer {
        display: none;
    }
}



/* ---------------------- */
/* BOTÓN DE ACCIÓN */
/* ---------------------- */
.cta-button {
    display: block;
    background-color: #002d72;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
    margin: 20px auto; /* Centrado horizontal */
    text-align: center;
    width: fit-content; /* Solo ocupa el espacio necesario */
}

.cta-button:hover {
    background-color: #001b48;
}

/* ---------------------- */
/* CONTENEDOR GENERAL */
/* ---------------------- */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left; /* Alineación izquierda */
}

/* Responsividad del contenedor */
@media (max-width: 768px) {
    .container {
        width: 90%; /* Se ajusta en móviles */
    }
}
.gold {
    background-color: gold;
    color: black;
    font-weight: bold;
}

.silver {
    background-color: silver;
    color: black;
    font-weight: bold;
}

.bronze {
    background-color: #cd7f32;
    color: white;
    font-weight: bold;
}