/* --- Reset Básico --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Cuerpo (Body) con Fondo Rojo --- */
body {
    background-color: #E74C3C; /* Rojo institucional */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* --- Contenedor Principal --- */
.container {
    width: 100%;
    /* Aumenté un poco el ancho máximo para permitir filas de hasta 4 botones si la pantalla es grande */
    max-width: 1100px; 
    padding: 40px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Logotipo --- */
.logo-container {
    margin-bottom: 40px;
}

.main-logo {
    max-width: 220px; /* Un pelín más grande */
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(255,255,255,0.25)); 
}

/* --- Cuadrícula (Grid) --- */
.grid-links {
    display: flex;
    flex-wrap: wrap; /* Permite múltiples filas */
    justify-content: center;
    gap: 25px; 
    width: 100%;
    margin-bottom: 30px;
}

/* --- Botones Cuadrados --- */
.image-link {
    display: block;
    width: 250px;
    height: 250px;
    border-radius: 35px; /* Bordes modernos */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 6px 6px rgba(0,0,0,0.25);
    background-color: rgba(255, 255, 255, 0.95); /* Blanco casi sólido para resaltar iconos */
}

/* Efecto Hover */
.image-link:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0,0,0,0.3), 0 10px 10px rgba(0,0,0,0.22);
}

/* --- Imágenes dentro de los botones --- */
.image-link img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta el icono sin cortarlo */
    padding: 30px; /* Margen interno para que el icono respire */
    display: block;
}

/* --- Footer --- */
footer {
    width: 100%;
    padding: 20px;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.4); 
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Responsivo (Celulares) --- */
@media (max-width: 600px) {
    .image-link {
        /* Tamaño reducido para móviles */
        width: 160px;
        height: 160px;
        border-radius: 25px;
    }
    .image-link img {
         padding: 20px;
    }
    .grid-links {
        gap: 15px;
    }
}