/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GENERAL */
body {
  font-family: 'Segoe UI', 'Open Sans', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* ENCABEZADO */
header {
  background-color: #004080;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 160px;
  height: auto;
}

h1 {
  font-size: 1.6rem;
}

/* MENÚ DE NAVEGACIÓN */
nav {
  position: relative;
  background: linear-gradient(135deg, #003366, #007acc);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 1.5rem 1rem;
  min-height: 70px;
}

.menu-toggle {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

nav ul.menu {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s ease;
}

nav ul.menu li a {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Lato', sans-serif;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul.menu li a:hover,
nav ul.menu li a.activo {
  color: #ffeb3b;
  text-decoration: underline;
}

/* MENÚ RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul.menu {
    flex-direction: column;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    background-color: #003366;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
  }

  nav ul.menu.active {
    max-height: 500px;
    padding: 1rem;
  }

  nav ul.menu li {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  nav ul.menu li a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* INTRODUCCIÓN */
.intro {
  text-align: center;
  margin-bottom: 2rem;
}

.intro h2 {
  font-size: 2rem;
  color: #005F8D;
  margin-bottom: 0.5rem;
}

.intro p {
  text-align: justify;
}

/* TARJETAS */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  background-color: #f0f8ff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 100%;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card h3 {
  font-size: 1.4rem;
  color: #005F8D;
  margin-bottom: 1rem;
}

.card p {
  text-align: justify;
}

/* MAPA */
.mapa h2 {
  text-align: center;
  color: #005F8D;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mapa-container {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* SECCIONES DEL DIRECTORIO */
section.directorio {
  padding: 2rem;
  margin: 2rem auto;
  width: 90%;
  max-width: 1000px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

section.directorio:nth-of-type(odd) {
  background-color: #ffffff;
}

section.directorio:nth-of-type(even) {
  background-color: #f1f6fb;
}

section.directorio h2 {
  font-size: 1.8rem;
  color: #004080;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
  text-align: center;
}
.mapa {
  margin-bottom: 3rem; /* o el espacio que necesites */
}


/* PIE DE PÁGINA */
footer {
  background-color: #1c3d6c;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

