body {
  margin: 0;
  padding-top: 164px; /* Espacio para que no se superponga el header con el contenido */
}
#header {
  position: fixed;
  top: 0px;
  width: 100%;
  background-color: rgba(214, 211, 211, 0.939);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Espacio entre logo y menú */
  padding: 0 100px; /* Espaciado lateral para logo y menú */
}

.logo {
  height: 160px; /* Ajusta la altura del logo según sea necesario */
  width: auto; /* Mantén la proporción del logo */
}
.nav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-grow: 1;
}
.nav > li {
  position: relative;
}

.nav > li > a {
  display: block;
  padding: 40px 20px; /* Separadores entre menús */
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}

.nav > li > a:hover {
  background-color: #0066cc;
  color: rgb(19, 211, 19);
}

.nav > li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #004080;
  padding: 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav > li:hover > ul {
  display: block;
}

.nav > li ul li {
  position: relative;
}

.nav > li ul li a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #0066cc;
}

.nav > li ul li a:hover {
  background-color: rgb(15, 150, 15);
  color: white;
}

/* Submenús anidados */
.nav > li ul li ul {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 1px;
}

.nav > li ul li:hover > ul {
  display: block;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
  #header {
    position: relative;
    flex-direction: column; /* Cambia la dirección de los elementos */
    align-items: center; /* Centra el logo */
  }

  .logo {
    margin-bottom: 10px; /* Espacio entre el logo y el menú */
    height: 180px; /* Ajusta la altura del logo para móviles */
  }

  .nav {
    flex-direction: column;
    display: none; /* Oculta el menú por defecto en móviles */
    width: 100%; /* Asegura que el menú ocupe todo el ancho */
  }

  .nav.show {
    display: flex;
  }

  .nav > li {
    width: 100%;
  }

  .nav > li > a {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #0066cc;
  }

  .nav > li ul {
    position: relative;
    top: 0;
    left: 0;
  }

  .nav > li ul li ul {
    position: relative;
    top: 0;
    left: 0;
    margin-left: 20px;
  }

  .menu-toggle {
    display: block;
    padding: 15px;
    background-color: #004080;
    color: white;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
  }
}
.menu-toggle {
  display: none;
}
/* Sección de oficinas */
/* Estilos de las oficinas */
.office-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.office {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.office img {
  width: 100%;
  height: auto;
  border-bottom: 2px solid #ddd;
}

.office-info {
  padding: 20px;
}

.office-info h3 {
  margin: 0;
  color: #333;
}

.office-info p {
  margin: 8px 0;
  color: #555;
}

.map-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.map-button:hover {
  background-color: #0056b3;
}

.feedback-container {
  text-align: center;
  margin: 10px;
}

.feedback-text {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

.feedback-button {
  display: inline-block;
  padding: 15px 25px;
  font-size: 16px;
  color: #fff;
  background-color: #007bff;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.feedback-button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.feedback-button i {
  background: url("icono-encuesta.png") no-repeat center center;
  width: 20px;
  height: 24px;
}

.feedback-button:active {
  transform: scale(0.95);
}

/* Sección de Canales Digitales */
.digital-channels {
  margin-top: 40px;
  text-align: center;
}

.digital-channels h2 {
  color: #333;
}

.channel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.channel-button {
  padding: 12px 30px;
  margin-right: 20px;
  background-color: #fdfffe;
  color: rgb(12, 12, 12);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.channel-button:hover {
  background-color: #f6f6f6;
}

.channel-icon {
  width: 40px;
  height: 40px;
}

@media (min-width: 768px) {
  .office-container {
    flex-direction: row;
    justify-content: space-around;
  }

  .office {
    width: 45%;
  }

  .channel {
    justify-content: flex-start;
  }
}

.footer {
  background-color: rgba(214, 211, 211, 0.939);
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  max-width: 150px;
  margin-bottom: 20px;
}

.footer-links {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-links h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #066240;
}

.footer-social {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-social h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

.social-icons a {
  margin-right: 10px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
  border-top: 1px solid #26b330;
  padding-top: 10px;
}

.footer-bottom p {
  margin: 0;
}
