:root {
  --morado-oscuro: rgba(27,25,39,255);
  --oro: #ffd700;
  --negro: #000000;
  --blanco: #ffffff;
  --gris: #f3f3f3;
}

/* RESET Y ESTILOS GENERALES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--gris);
  color: var(--negro);
}

h1 {
  font-size: 48px;
  font-weight: bold;
  color: var(--oro);
}

h2 {
  font-size: 36px;
  color: var(--oro);
}

/* NAVBAR FIJA Y OCULTABLE */
/* NAVBAR FIJA Y OCULTABLE */
.navbar {
  background-color: var(--morado-oscuro);
  position: fixed;
  top: 0;
  left: 0;
  font-size: 30px;
  width: 100%;
  z-index: 1000; /* navbar fijo arriba */
  transition: transform 0.3s ease-in-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  color: var(--oro);
}

.navbar.hide {
  transform: translateY(-100%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--oro);
  cursor: pointer;
}

.logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* Menú y toggle ocultos por defecto en escritorio */
.nav-links {
  display: flex; /* por defecto mostrar enlaces en desktop */
  gap: 1.5rem;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: var(--oro);
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--blanco);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 9999; /* mucho más arriba */
  position: fixed;
  top: 15px;  /* ajusta para que quede dentro del navbar */
  right: 20px;
}

.menu-toggle span {
  height: 4px;
  width: 30px;
  background: var(--oro);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Sólo en pantallas móviles (<768px) */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    background-color: rgba(27, 25, 39, 0.9); /* Fondo oscuro con 90% opacidad */
    position: fixed; /* Mantener en posición fija */
    top: 100px; /* Espacio debajo del navbar */
    left: 0;
    width: 100%;
    z-index: 9998; /* Asegura que esté encima de otros elementos */
    
    /* Efecto de opacidad y transición */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Sombra sutil para destacar */
    border-radius: 8px; /* Bordes redondeados para un aspecto más suave */
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Permite la interacción cuando el menú está visible */
  }


  .menu-toggle {
    display: flex;
  }
}




/* SECCIÓN HERO CON FONDO */
.hero {
  position: relative;
  height: 100vh;
  background-image: url('fondoselecto.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: 1.3rem;
}

/* SECCIÓN DE INFORMACIÓN */
.info-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: var(--blanco);
  color: var(--negro);
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.info-image {
  flex: 1 1 300px;
  max-width: 500px;
}

.info-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.info-text {
  flex: 1 1 300px;
  max-width: 600px;
}

.info-text h2 {
  font-size: 2.5rem;
  color: var(--morado-oscuro);
  margin-bottom: 1rem;
}

.info-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* PIE DE PÁGINA */
.footer {
  background-color: var(--morado-oscuro);
  color: #eee;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

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

.footer-info,
.footer-contact,
.footer-social {
  flex: 1 1 250px;
  margin: 10px;
}

.footer h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--oro);
}

.footer-contact h4,
.footer-social h4 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #f39c12;
}

.footer-contact p,
.footer-contact a {
  font-size: 1rem;
  color: #ddd;
  margin: 5px 0;
  text-decoration: none;
  text-align: left;
}

.footer-contact a:hover,
.footer-social a:hover {
  color: #f39c12;
  text-decoration: underline;
}

.footer-social a {
  font-size: 1.5rem;
  margin-right: 15px;
  color: #ddd;
  transition: color 0.3s ease;
}

.footer-bottom {
  text-align: center;
  margin-top: 25px;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #444;
  padding-top: 15px;
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-info,
  .footer-contact,
  .footer-social {
    margin: 15px 0;
  }

  .footer-social a {
    margin: 0 10px;
  }
}

/* GALERÍA EXPANDIBLE */
.expand-container {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transition: all 0.5s ease;
}

.background-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-in-out;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background-color: var(--morado-oscuro);
  color: var(--oro);
  padding: 10%;
  text-align: center;
  font-size: 36px;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease;
  z-index: 5;
  opacity: 1;
}

.expand-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(174, 0, 255, 0.2);
  color: var(--blanco);
  font-size: 2rem;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  z-index: 15;
  pointer-events: auto;
}

.expand-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.expand-container.expanded .background-image {
  transform: scale(1.2);
}

.expand-container.expanded .overlay,
.expand-container.hidden .overlay {
  transform: translateY(100%);
  opacity: 0;
}

/* CARRUSEL DE GALERÍA */
.carousel-section {
  padding: 2rem;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.carousel-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-img {
  min-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.carousel-counter {
  position: absolute;
  bottom: 8px;
  right: 12px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 3px 7px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  user-select: none;
  box-shadow: 0 0 5px rgba(0,0,0,0.7);
  pointer-events: none;
  max-width: 50px;
  text-align: center;
  white-space: nowrap;
}

.carousel-button,
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.carousel-button:active, .carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-button.left, .carousel-btn.prev {
  left: 10px;
}

.carousel-button.right, .carousel-btn.next {
  right: 10px;
}

.carousel-track {
  transition: transform 0.5s ease-in-out;
}

/* === SECCIÓN PRÓXIMAMENTE === */

.coming-soon {
  height: 100vh;
  background-image: url("fondoselecto.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Fondo oscuro encima */
.coming-soon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 25, 39, 0.85);
  z-index: 1;
}

.coming-box {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 2rem;
}

.coming-title {
  font-size: 4rem;
  color: var(--oro);
  font-weight: bold;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  animation: fadeIn 1.2s ease forwards;
}

.coming-subtitle {
  margin-top: 1rem;
  font-size: 1.4rem;
  color: var(--blanco);
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
  .coming-title {
    font-size: 2.5rem;
  }
  .coming-subtitle {
    font-size: 1.1rem;
  }
}

/* Eventos */
.hero {
  position: relative;
  height: 100vh;
  background-image: url('fondoselecto.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-overlay {
  padding: 20px;
  border-radius: 10px;
}

.hero p {
  font-size: 1.3rem;
}

.evento {
  display: flex;
  gap: 2rem;
  padding: 3rem 2rem;
  border-bottom: 1px solid #ddd;
  transition: transform 0.3s ease;
}

.evento:hover {
  transform: translateY(-10px);
}

.evento-imagen img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.evento-contenido {
  flex: 1;
}

.evento h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.evento p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Estilo de imagen cuadrada */
.evento-imagen img {
  width: 100%; /* Asegura que la imagen ocupe todo el ancho del contenedor */
  height: 300px; /* Fija la altura de la imagen, manteniendo la proporción */
  object-fit: cover; /* Asegura que la imagen se recorte para llenar el área sin deformarse */
  border-radius: 10px; /* Redondea las esquinas de la imagen */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Agrega sombra suave para efecto de profundidad */
  object-position: center; /* Centra la imagen dentro del contenedor */
}


.footer {
  background-color: var(--morado-oscuro);
  color: #eee;
  padding: 40px 20px 20px;
}

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

.footer-info h3,
.footer-contact h3,
.footer-social h3 {
  color: var(--oro);
}

.footer-social a {
  color: #ddd;
  font-size: 1.5rem;
  margin-right: 10px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--oro);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-social a {
    margin: 10px;
  }

  .evento {
    flex-direction: column;
    text-align: center;
  }

  .evento-imagen img {
    max-width: 100%;
  }
}
