/* 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 */
#pedidos { 
  left: 13vw !important; 
  top: 15vw !important; 
}

#sistema_integral { 
  left: 41vw !important; 
  top: 15vw !important; 
}

#proyectos_integradores { 
  left: 69vw !important; 
  top: 15vw !important; 
}

/* FILA 2 - 3 imágenes (espacio reducido) */
#biblioteca { 
  left: 13vw !important; 
  top: 28vw !important; 
}

#convocatorias { 
  left: 41vw !important; 
  top: 28vw !important; 
}

#calendario { 
  left: 69vw !important; 
  top: 28vw !important; 
}

/* FILA 3 - 2 imágenes centradas (espacio reducido) */
#libros_de_texto { 
  left: 27vw !important; 
  top: 41vw !important; 
}

#sistema_de_apoyo { 
  left: 55vw !important; 
  top: 41vw !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; 
}

/* 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;
}