* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Añadido para gestionar mejor el padding y el border */
}

main {
  margin-left: 15px;
  margin-right: 15px;
}

header,
footer {
  width: 100%;
}

header {
  text-align: center;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

footer {
  text-align: left;
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.responsive-text {
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 125px; /* Tamaño inicial grande */
  text-align: center; /* Asegurar que el texto esté centrado */
}

a img {
  width: 50%;
  height: auto;
}

.footer-container {
  margin-left: 20px;
  color: #138ea9;
  max-width: 960px;
  margin: 0 auto;
}

#separa-top,
#separa-bot {
  height: 10px;
  border-top: 1px solid #666;
  margin: 10px 0;
}

h1 {
  margin: 0;
  padding: 20px;
}

#image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.image-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

#image-container img {
  width: 284px; /* Esto se ajustará más abajo para pantallas pequeñas */
  height: 378px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

#fullscreen-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.8);
}

#fullscreen-image img {
  width: auto;
  height: auto;
  max-width: 100%;
}

#fullscreen-image .nav-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.imgContainer {
  display: flex;
  flex-direction: column;
}
.imgContainerLabel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  font-size: 15px;
  background-color: #f3f3f3;
  color: grey;
  font-weight: 900;
  border: 2px solid rgba(0, 0, 0, 0.2);
}
.imgContainerLabelFull {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  font-size: 30px;
  font-weight: 900;
  color: white;
}

#fullscreen-image .nav-container .nav-button {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

#fullscreen-image .nav-container .nav-button:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

#fullscreen-image .nav-container .nav-button.disabled {
  opacity: 0.3;
  cursor: default;
}

.nav-button {
  position: absolute;
  top: calc(50% - 25px); /* Ajuste para centrar correctamente */
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
  cursor: pointer;
}
.nav-button.left {
  left: 12px;
}
.nav-button.right {
  right: 12px;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.zoomable-image {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.zoomable-image:hover {
  transform: scale(1.1);
}

.contact-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.contact-info .text {
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  #image-container img {
    width: 200px;
    height: 266px;
  }

  .responsive-text {
    font-size: 100px; /* Más pequeño en tablets */
  }
}

@media (max-width: 768px) {
  .header-container, .footer-container {
    flex-direction: column;
  }

  #image-container {
    justify-content: space-around;
  }

  #image-container img {
    width: 150px;
    height: 200px;
  }

  .nav-button {
    font-size: 20px;
    padding: 5px 10px;
  }

  .imgContainerLabel, .imgContainerLabelFull {
    font-size: 20px;
  }

  .responsive-text {
    font-size: 75px; /* Aún más pequeño en dispositivos pequeños */
  }
}

@media (max-width: 480px) {
  .header-container, .footer-container {
    padding: 5px;
  }

  #image-container img {
    width: 100px;
    height: 133px;
  }

  .nav-button {
    font-size: 18px;
    width: 40px;
    height: 40px;
  }

  .imgContainerLabel, .imgContainerLabelFull {
    font-size: 16px;
  }

  .responsive-text {
    font-size: 45px; /* Muy pequeño en teléfonos móviles */
  }
}