/* Estilos generales */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  width: 100%;
  min-height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

/* Contenedor principal */
#fondo {
  position: relative;
  width: 100vw;
  height: auto;
  min-height: 50vw;
  flex: 1;
}

/* Imagen de fondo */
#fondo > img {
  width: 100%;
  height: auto;
  display: block;
}

/* Estilo general para los botones con imágenes */
.link-img {
  position: absolute;
  display: block;
  width: 20vw; /* Imágenes más grandes */
  transition: transform 0.2s ease-in-out;
}

.link-img:hover img {
  transform: scale(1.1);
}

/* Grid para 8 imágenes - Distribución 3-3-2 */
/* FILA 1 - 3 imágenes */
#foro { 
  left: 20vw !important; 
  top: 20vw !important; 
}

#olimpiada { 
  left: 58vw !important; 
  top: 20.7vw !important; 
}

/* Logos y encabezados - mantienen su posición original */
#Logo_SEECH { 
  position: absolute; 
  width: 16vw; 
  left: 12.5vw; 
  top: 4.4vw; 
}

#logo_MEyAD { 
  position: absolute; 
  width: 16vw; 
  left: 75.6vw; 
  top: 3.8vw; 
}

#bienvenidos { 
  position: absolute; 
  width: 27vw; 
  left: 36.2vw; 
  top: 4vw; 
}

#banner_c { 
  position: absolute; 
  width: 27vw; 
  left: 36.2vw; 
  top: 12.5vw; 
}

/* Todas las imágenes adaptables */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Footer */
footer {
  position: relative;
  bottom: 3vw;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1vw;
  font-size: 1vw;
  color: #555;
  background-color: transparent;
  z-index: 10;
}