body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

header h1 {
  background-color: rgba(0, 0, 0, 0);
  padding: 5px;
  display: inline-block;
  border-radius: 100px;
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 5.5em;
  color: rgb(58, 58, 59);
  font-family: "Times New Roman", serif;
  font-weight: 700;
}

nav {
  background-color: #343a40;
  color: white;
  padding: 15px 0;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline;
  margin: 0 20px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #5a6268;
}

.container {
  width: 95%;
  margin: 30px auto;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.section {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.section:last-child {
  border-bottom: none;
}

.section h2 {
  color: #007bff;
  margin-bottom: 20px;
}

.section ul {
  list-style-type: disc;
  margin-left: 20px;
}

.servicio-detalle {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
}

.header-content img {
  max-width: 80px;
  height: auto;
  margin-left: 20px;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  color: #ffffff;
  z-index: 1;
  margin-top: -170px;
}

.header-content h1,
.header-content h2,
.header-content h3 {
  margin: 0;
  animation: fadeIn 2s ease-in-out;
}

.header-content h2,
.header-content h3 {
  animation: fadeIn 2s ease-in-out 1s;
}

.header-title {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-title h0 {
  font-size: 2rem;
  font-weight: bold;
  padding-top: 30px;
  color: blue;
}

.header-wrapper {
  position: relative;
  width: 100%;
}

.header-wrapper img {
  filter: none;
}

.curves {
  position: relative;
  width: 100%;
  height: 200px;
  background: #0078d7;
  overflow: hidden;
  z-index: -3;
}

.curve,
.curve2,
.curve3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: -3;
}

.curve {
  height: 80px;
  background: #0056a0;
  border-top-left-radius: 90% 30px;
  border-top-right-radius: 90% 40px;
}

.curve2 {
  height: 65px;
  background: red;
  border-top-left-radius: 90% 20px;
  border-top-right-radius: 90% 30px;
}

.curve3 {
  height: 55px;
  background: white;
  border-top-left-radius: 50% 20px;
  border-top-right-radius: 50% 20px;
}

footer {
  background-color: #0078D7;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: white;
  width: 100%;
  margin: 0;
  height: 45px;
  margin-top: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 15px;
}

.social-item {
  text-align: center;
  margin: 0;
}

.social-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0;
}

.social-name {
  font-size: 12px;
  margin: 2px 0;
}

.social-image img {
  width: 40px;
  height: 40px;
  margin: 0;
}

.mapa {
  width: 100%;
  /* Se ajusta al ancho de la pantalla */
  height: 100vh;
  /* Ajusta la altura al 100% de la ventana */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centra el contenido horizontalmente */
  margin: 0;
  /* Elimina cualquier margen extra */
  padding: 0;
  /* Elimina el relleno extra */
}

.mapa img {
  width: 100%;
  /* La imagen ocupa el 100% del contenedor */
  height: 100%;
  /* La imagen ocupa el 100% del contenedor */
  object-fit: cover;
  /* Hace que la imagen cubra el área sin distorsionarse */
}

.accessibility-menu {
  position: fixed !important;
  top: 280px;
  right: 10px;
  z-index: 1000;
  cursor: move;
}

#toggleAccessibility {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;

}

#toggleAccessibility img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}


#accessibilityOptions {
  width: 200px;
  position: fixed;
  top: 180px;
  right: 50px;
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

#accessibilityOptions.show {
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 1;
  visibility: visible;
}

#accessibilityOptions button {
  width: 100%;
  padding: 8px;
  border: none;
  background: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 3px;
  text-align: left;
}

#accessibilityOptions button:hover {
  background: #0056b3;
}

.magnifier {
  zoom: 1.5;
}

.hidden {
  display: none;
}


.high-contrast img {
  filter: invert(100%) !important;
}

.large-text {
  font-size: 1.5em;
}

.highlight-links a {
  background-color: yellow !important;
  color: black !important;
  font-weight: bold;
  padding: 2px 5px;
}

/* Estilos generales de modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
  text-align: center;
  position: relative; /* Necesario para posicionar la X */
}

/* Animación de entrada */
@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Botones */
.modal-content button {
  margin: 10px 5px;
  padding: 8px 16px;
  background-color: #0056b3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-content button:hover {
  background-color: #003e80;
}

.modal-content .closeModal,
.modal-content .backModal {
  background-color: #aaa;
}

.modal-content .closeModal:hover,
.modal-content .backModal:hover {
  background-color: #888;
}

/* X para cerrar el modal */
.modal-content .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  font-size: 20px;
  color: #000;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-content .close-btn:hover {
  color: #ff0000;
}

/* Imágenes en selectEditModal */
#redesContainer img {
  border: 2px solid transparent;
  border-radius: 8px;
  transition: border 0.2s ease;
}

#redesContainer img:hover {
  border: 2px solid #007bff;
}

/* Responsive */
@media (max-width: 600px) {
  .modal-content {
    padding: 15px 20px;
    max-width: 90%;
  }

  .modal-content input,
  .modal-content button {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Estilo general para el contenedor de la sección de contacto */
.image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  padding: 10px;
  background-color: #f4f4f4; /* Fondo gris claro */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

/* Estilo para el título de la sección */
h5 {
  font-size: 24px;
  font-weight: bold;
  color: #0078d7; /* Color azul */
  text-align: center;
  margin-bottom: 15px;
}

h2 {
  font-size: 24px;
  font-weight: bold;
  color: #0078d7; /* Color azul */
  text-align: center;
  margin-bottom: 15px;
}

/* Estilo para el texto "Correo" */
.image-container p {
  font-size: 16px;
  color: #333; /* Color oscuro */
  margin-bottom: 10px;
}

/* Estilo del botón de contacto */
.contacto-boton {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  background-color: #0078d7; /* Color de fondo azul */
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Efecto de hover para el botón */
.contacto-boton:hover {
  background-color: #005bb5; /* Color de fondo azul más oscuro */
  transform: scale(1.05); /* Escala ligera para hacer el botón más grande */
}

/* Estilo de la imagen dentro del contenedor */
.image-container img {
  width: 100px; /* Establece el tamaño de la imagen */
  height: 100px;
  border-radius: 50%; /* Hace la imagen circular */
  margin-top: 15px;
}

/* Estilo general para la sección de Buzón de Comentarios */
#buzon-comentarios {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background-color: #f4f4f4; /* Fondo gris claro */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

/* Estilo para el título "Buzón de Comentarios" */
#buzon-comentarios h2 {
  font-size: 28px;
  font-weight: bold;
  color: #0078d7; /* Color azul */
  margin-bottom: 20px;
}

/* Centrar el botón de "Escríbenos" */
.boton-comentarios {
    display: block; /* Hace que el enlace se comporte como bloque */
    margin: 20px auto; /* Centra el enlace horizontalmente */
    padding: 8px 15px; /* Reduce el espacio alrededor del texto para un tamaño más pequeño */
    font-size: 16px; /* Tamaño de fuente ligeramente más pequeño */
    font-weight: bold;
    text-decoration: none;
    background-color: #0078d7; /* Color de fondo azul */
    color: white;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 130px; 
}

/* Efecto de hover para el botón */
.boton-comentarios:hover {
    background-color: #005bb5; /* Color de fondo azul más oscuro */
    transform: scale(1.05); /* Escala ligera para hacer el botón más grande */
}


/* ====== DISEÑO RESPONSIVO DEL NAV EN MÓVIL ====== */
/* Nav oculto en móvil inicialmente */
body.mobile nav {
  display: none;
  /* Otros estilos que ya tienes */
}

/* Cuando tenga clase 'show', se muestra */
body.mobile nav.show {
  display: block;
  /* Mantén estilos móviles que pasamos antes */
  margin-top: 50px;
  padding: 20px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

body.mobile nav ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

body.mobile nav li {
  display: block;
  margin: 0;
}

body.mobile nav a {
  display: block;
  background-color: #ffffff10;
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  transition: all 0.3s ease;
}

body.mobile nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

body.mobile .form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 110px;
  padding: 0 60px 50px;
  width: 100%;
  box-sizing: border-box;
}

body.mobile .form-container h5 {
  color: #000000;
  font-size: 68px;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease-in-out;
  text-align: center;
}

body.mobile {
  padding-top: 1px;
}

#menuToggle {
  transition: background-color 0.3s ease;
}

#menuToggle:hover {
  background-color: #0056b3;
}