/* ========== BASE STYLES ========== */
:root {
  --primary-color: #ff6b00;
  --text-color: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.6);
  --transition-speed: 0.3s;
  --border-radius: 20px;
  --card-bg: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.3);
  --carousel-height: 748px;
  --carousel-width: 100%;
  --transition-time: 0.5s;
}

/* ========== TYPOGRAPHY ========== */
a {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

h2 {
  font-size: clamp(0.8rem, 4vw, 6rem);
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
}

h3 {
  font-size: clamp(0.8rem, 4vw, 6rem);
  font-weight: 200;
  text-align: center;
  letter-spacing: 0.05em;
  margin: 0;
}

p {
  margin: 0 0 1rem 0;
}

.bg p {
  font-size: clamp(0.5rem, 3vw, 1.0rem);
  color: var(--text-color) !important;
  text-align: justify; 
  width: 80%;
  margin: -8px auto 1rem;
}

.first p {
  display: block;
  margin-top: 20px;
  font-size: clamp(0.8rem, 3vw, 1.0em);
  color: var(--text-color);
  letter-spacing: 0.05em;
  line-height: 1.5;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.highlight-text {
  font-size: clamp(0.8rem, 3vw, 1.0rem);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center !important;
}

/* ========== GIF  ========== */
.gif-page-container {
    text-align: center;
    margin-top: 1em;
    overflow: hidden; /* Añadimos esto para evitar desbordamientos si la imagen es ligeramente más ancha */
}

/* Estilos para el GIF */
.gif-page-container img {
    display: block; /* Recomendado para evitar espaciados inesperados debajo de la imagen */
    max-width: 100%;
    height: auto;
    width: auto; /* Cambiamos a auto para que el ancho se ajuste automáticamente al max-width */
}

/* ========== LAYOUT ========== */
section {
  width: 100%;
  height: 100%;
  top: 0;
  position: fixed;
  visibility: hidden;
}

section .outer,
section .inner {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  position: relative;
}

.bg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Cambiado de center a flex-start */
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto; /* Permite scroll interno */
}

section .bg {
  position: absolute;
  top: 25px;
  background-size: cover;
  background-position: center;
  padding: 5px;
}

section .bg h2 p {
  z-index: 2;
}

section .bg .clip-text {
  overflow: hidden;
}

/* ========== BACKGROUND STYLES ========== */
.first .bg,
.second .bg,
.third .bg,
.fourth .bg,
.fifth .bg {
   background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.background-image {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   z-index: -1;
   filter: brightness(0.5);
}

.fifth h2 {
  transform: translateY(-220px) !important;
}

h2 * {
  will-change: transform;
}

/* ========== FEATURE LIST ========== */
.bg li {
  align-items: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

ul li::before {
  margin-right: 10px;
  font-size: clamp(0.5rem, 3vw, 1.0rem);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.feature-list li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  font-size: clamp(0.5rem, 3vw, 1.0rem);
}

.feature-list li i {
  position: absolute;
  left: -5px;
  top: 5px;
  color: var(--primary-color);
}

/* ========== CARDS ========== */
.info-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}

.card {
  flex: 1;
  max-width: 200px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 10px;
  box-shadow: var(--shadow);
  transition: all var(--transition-speed) ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: clamp(0.4rem, 3vw, 1.0rem);
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center;
}

.card h2 {
  font-size: clamp(0.4rem, 3vw, 1.0rem);
  margin-bottom: 10px;
  color: var(--primary-color);
  text-align: center;
}

.card p,
.reservation-section p,
.feature-list li {
  font-size: clamp(0.4rem, 3vw, 1.0rem);
  color: var(--text-color) !important;
}

.price-tag {
  background: var(--primary-color);
  color: var(--text-color);
  padding: 4px 8px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 5px;
  text-align: center;
  width: 100%;
}

.price {
  font-size: clamp(0.4rem, 3vw, 1.0rem);
  font-weight: 500;
  display: block;
}

.price-note {
  font-size: clamp(0.5rem, 3vw, 1.0rem);
}

/* ========== PARTICIPANTS ========== */
.participants-visual {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.participants-text {
  min-width: 100%;
  max-width: 450px;
}

/* ========== RESERVATION ========== */
.reservation-section {
  text-align: center;
  margin-bottom: 5px;
}

.reservation-section h2 {
  font-size: clamp(0.5rem, 3vw, 1.0rem);
  margin-bottom: 5px;
  color: var(--primary-color);
}

.reservation-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: auto;
  margin-bottom: 10px;
}

.step-number {
  background: var(--primary-color);
  color: var(--text-color);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6em;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.step-content h3 {
  font-size: clamp(0.5rem, 3vw, 1.0rem);
  margin-bottom: 10px;
  text-align: left;
}

.step-content p {
  text-align: left;
  width: 40%;
}

/* ========== CAROUSEL ========== */
.carousel-container {
  width: var(--carousel-width);
  max-width: 1000px;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.carousel {
  height: var(--carousel-height);
  position: relative;
  perspective: 1000px;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-time) ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  animation: fadeIn 0.5s forwards;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-track.transition {
  transition: transform var(--transition-time) ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ========== FAQ ========== */
.faq-container {
  transform: translateY(-230px);
  width: 60%;
  max-width: 800px;
  margin: 20px auto;
  opacity: 0;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 10px;
}

.faq-container::-webkit-scrollbar {
  width: 8px;
}

.faq-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.faq-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.faq-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.faq-item {
  background-color: var(--bg-overlay);
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 15px 20px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.faq-answer {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ========== FOOTER ========== */
#footer {
  position: fixed !important;
  bottom: 0 !important; 
  width: 100%;
  height: auto !important;
  opacity: 0; 
}

#footer p {
  color: var(--text-color) !important;
}

#footer .copyright {
  font-size: 0.8em;
  letter-spacing: 0.08em;
}

/* ========== MEDIA QUERIES ========== */
@media (min-width: 1024px) {
  .first p {
    width: 60%;
  }
  
  .bg p {
    width: 40%;
  }
  
  .bg li {
    width: 60%;
  }

  .info-cards {
    gap: 25px;
  }

  .card {
    max-width: 700px;
  }

  .step-number {
    width: 36px;
    height: 36px;
  }
  
  .feature-list {
    min-width: 600px;
  }
  
  .highlight-text {
    min-width: 400px;
  }
}

@media (max-width: 1024px) {
  .highlight-text {
    min-width: auto;
    width: 95%;
  }
  
  .feature-list {
    min-width: auto;
    width: 95%;
  }
  
  .participants-text {
    min-width: auto;
    width: 95%;
  }
  
  .faq-container {
    transform: translateY(-250px);
    width: 95%;
    max-width: 400px;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  .faq-answer {
    font-size: 0.9rem;
  }

  .contact-text,
  .contact-sim {
    font-size: 12px !important;
    line-height: 1.1 !important;
  }

  #footer .copyright {
    font-size: 0.5em !important;
  }
  
  .step-content p {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
    
  /* ===== RESET GENERAL DEL LAYOUT MÓVIL ===== */
  html, body {
    height: auto !important;
    min-height: auto !important;
    position: static !important;
    overflow-x: hidden !important;
  }    

  section {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 30px; 
  }
  
  /* Quitamos el padding inferior solo a la primera sección para un mejor flujo */
  section.first {
    padding-bottom: 0 !important;
  }
  
  /* Mantenemos la primera sección a pantalla completa para el impacto inicial */
  .first .bg {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
  }

  /* Reseteo de elementos internos de las secciones */
  .outer, .inner, .bg {
    position: relative !important;
    overflow: visible !important;
    height: auto !important;
    transform: none !important;
  }

  /* ===== ESTILOS DE COMPONENTES MÓVILES ===== */
  .info-cards,
  .reservation-steps {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px;
  }

  .info-cards .card,
  .step {
    width: 90% !important;
    margin-bottom: 20px !important;
  }

  /* ===== SOLUCIÓN DEL CARRUSEL ===== */
  .carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .carousel {
    display: block !important;
    height: auto !important;
    perspective: none !important;
    overflow: visible !important;
  }
  
  .carousel-track {
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    height: auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    transform: none !important;
    position: static !important;
  }

  .carousel-slide {
    flex: 0 0 85%;
    width: 85% !important;
    height: auto !important;
    margin: 0 5px;
    scroll-snap-align: center;
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .carousel-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
  }
  
  .carousel-indicators, .carousel-btn {
    display: none !important;
  }

  /* ===== OCULTAR SECCIÓN FAQ Y FOOTER ===== */
  /* Ocultamos el contenedor padre y todo su contenido desaparece con él */
  .fifth {
    display: none !important;
  }
 
  #footer {
    margin-top: 20px !important;
    display: block !important;
    opacity: 1 !important;
    position: relative !important;
    visibility: visible !important;
  } 
}

/* Optional: Add smooth scrolling for mobile */
html {
  scroll-behavior: smooth;
}

@media (max-width: 480px) {
  :root {
    --carousel-height: 350px;
  }
  
  .carousel-btn {
    width: 30px;
    height: 30px;
  }
  
  .indicator {
    width: 8px;
    height: 8px;
  }
  
  .carousel-indicators {
    opacity: 1;
  }
  
  .step {
    min-width: 100%;
  }
  
  .info-cards {
    gap: 15px;
  }
}
