* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #f5f8fc;
  color: #333;
  line-height: 1.6;
}

header {
  background: #1a3c6e;
  color: white;
  text-align: center;
  padding: 1.5rem;
  border-bottom: 5px solid #2c5aa0;
}

header .logo {
  margin: 10px 0;
}

header img {
  width: 100px;
  border-radius: 50%;
}

header h1 {
  font-size: 1.8rem;
  margin: 10px 0;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

nav ul {
  list-style: none;
  background: #2c5aa0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.8rem 0;
  gap: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

nav a:hover {
  background: #1a3c6e;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.intro {
  text-align: center;
  margin-bottom: 2rem;
}



.regresar-card {
  background: #2c5aa0;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.5rem;
  width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  margin: 20px auto;
}

.regresar-card a {
  display: inline-block;
  text-decoration: none;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-family: verdana;
  font-size: 14px;
  transition: color 0.3s, transform 0.2s, background-color 0.3s;
}

.regresar-card a:hover {
  color: #e0e0e0;
  transform: scale(1.05);
  background-color: #3a6bb5;
}

.modulos {
  display: flex;
  flex-wrap: wrap; /* Permite que los módulos se organicen en múltiples filas */
  justify-content: center; /* Centra horizontalmente los módulos */
  gap: 1.5rem; /* Espacio entre los módulos */
  margin-top: 1.5rem; /* Espaciado superior */
}

.modulo-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.2rem;
  width: 250px; /* Ancho inicial de cada módulo */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  text-align: center; /* Centra el contenido dentro del módulo */
}

.modulo-card h3 {
  color: #1a3c6e;
  margin-bottom: 0.5rem;
}

.modulo-card a {
  display: inline-block;
  margin-top: 10px;
  background: #1a3c6e;
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
}

.modulo-card:hover {
  transform: translateY(-5px);
}

footer {
  text-align: center;
  padding: 2rem;
  background: #eee;
  font-size: 0.9rem;
  color: #555;
  margin-top: 3rem;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
  .modulo-card {
    width: 100%; /* Todos los módulos ocupan toda la pantalla en dispositivos pequeños */
    max-width: 300px;
  }
}