/* Barra superior alineada a la izquierda */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(50, 50, 50, 0.7);
  display: flex;
  justify-content: flex-start;
  gap: 3rem;
  padding: 1rem 2rem;
  z-index: 100;
  font-family: "Montserrat", sans-serif;
}

.top-bar a {
  color: white;
  text-decoration: none;
  opacity: 0.5;
  font-weight: 400; /* Normal, no bold */
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.top-bar a:hover {
  opacity: 1;
}

/* Título y texto informativo */
.section-header {
  max-width: 800px;
  margin: 4rem auto 2rem; /* Menos espacio arriba */
  padding: 0 1rem;
  text-align: center;
  color: white;
  font-family: "Montserrat", sans-serif;
}

.section-header h1 {
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.section-header p {
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 2rem;
}

/* Botones */
.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  background: none;
  border: 2px solid white;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: white;
  color: black;
}

/* Marquesina */
body {
  margin: 0;
  background: #000;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  padding-top: 80px; /* Para no tapar la barra */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
}

.marquee {
  width: 90vw;
  height: 320px;
  overflow: hidden;
  border-radius: 1rem;
  background: #111;
  padding: 1rem 0;
  box-sizing: border-box;
  margin-bottom: 4rem;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
  align-items: center;
  gap: 2rem;
}

.marquee-content img {
  height: 280px;
  width: auto;
  opacity: 0.33;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
}

.marquee-content img:hover {
  opacity: 1;
  transform: scale(1.05);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) {
  .section-header {
    margin: 5rem auto 2rem;
  }
  .section-header h1 {
    font-size: 2.2rem;
  }
  .section-header p {
    font-size: 1rem;
  }
  .marquee {
    height: 220px;
  }
  .marquee-content img {
    height: 180px;
  }
  .top-bar {
    padding: 0.8rem 1rem;
    gap: 1.5rem;
  }
}
body {
  padding-top: 60px;
}

.section-header {
  margin: 0 auto 2rem; /* sin margen superior */
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.modal-nav button {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 0 1rem;
}

.close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}
/* --- MODAL GALERÍA MEJORADO --- */

.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenedor del contenido del modal */
.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Imagen dentro del modal: ajustada y proporcional */
.modal-content img {
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Botón para cerrar el modal */
.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Navegación dentro del modal */
.modal-nav {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.modal-nav button {
  background: none;
  border: 2px solid white;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-nav button:hover {
  background: white;
  color: black;
}

/* --- MEDIA QUERIES para mejorar en pantallas pequeñas --- */
@media (max-width: 600px) {
  .modal-content img {
    max-width: 95vw;
    max-height: 65vh;
  }

  .modal-nav button {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
  }

  .close {
    font-size: 1.5rem;
    top: 0.5rem;
    right: 0.8rem;
  }
}
