
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: Arial, sans-serif;
  background-color: antiquewhite;
  color: #333;
  line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: steelblue;
  padding: 1rem 2rem;
  color: white;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Contenido principal */
.main-content {
  padding: 2rem;
  
}

/* Enlaces con labels */
.enlaces-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  grid-template-columns: repeat(2, 1fr);
}

.enlace-box {
  background-color: rosybrown;
  padding: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  
}



.enlace-box img {
  width: 50%;
  height: 200px;
  object-fit: cover;
  
}

.enlace-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.enlace-box label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #004080;
}

.enlace-box a {
  color: #004080;
  text-decoration: none;
  font-size: 1rem;
}

.enlace-box a:hover {
  text-decoration: underline;
}

/* Responsive: Navbar en móvil */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .nav-links a {
    padding-left: 1rem;
  }
}

/* Responsive: Contenido principal en móvil */
@media (max-width: 480px) {
  .main-content {
    padding: 1rem;
  }

  .enlace-box {
    padding: 1rem;
  }

  .logo {
    font-size: 1.25rem;
  }
}

footer {
  text-align: center;
  padding: -10px;
  background: #333;
  color: #fff;
  position: fixed;
  width: 100%;
  bottom: 0;
}