/* ==========================================================================
   ESTILOS GENERALES Y CONFIGURACIÓN BASE
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0b0f19 !important;
  color: #e2e8f0;
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   FONDO ESPACIAL Y ESTRELLAS ANIMADAS
   ========================================================================== */
.space-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 20%, #151b2b 0%, #0b0f19 80%);
  z-index: -1;
  overflow: hidden;
}

.stars-background {
  position: absolute;
  width: 100%;
  height: 100%;
}

.star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffffff;
  animation: pulse-star var(--duration, 3s) infinite ease-in-out;
}

@keyframes pulse-star {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.shooting-star {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, transparent);
  animation: shoot 5s infinite ease-in-out;
  opacity: 0;
  transform: rotate(-35deg);
}

@keyframes shoot {
  0% { transform: translateX(0) translateY(0) rotate(-35deg); opacity: 1; }
  20% { transform: translateX(-300px) translateY(200px) rotate(-35deg); opacity: 0; }
  100% { transform: translateX(-300px) translateY(200px) rotate(-35deg); opacity: 0; }
}

/* ==========================================================================
   NAVEGACIÓN SUPERIOR (NAVBAR)
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.logo-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.gold-l {
  color: #d4af37;
}

.logo-sub {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #a0a5b5;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #d4af37;
}

.btn-nav {
  background: transparent;
  border: 1px solid #d4af37;
  padding: 8px 18px;
  border-radius: 20px;
  color: #d4af37 !important;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background: #d4af37;
  color: #0b0f19 !important;
}

/* ==========================================================================
   ESTRUCTURA Y COLUMNAS DE LA APLICACIÓN DE RESERVAS
   ========================================================================== */
.reserva-app-container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  flex: 1;
  width: 100%;
}

/* Barra Superior Selector */
.selector-experiencia-bar {
  margin-bottom: 40px;
}

.select-wrapper {
  background: rgba(20, 26, 42, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 20px 25px;
  border-radius: 12px;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.selector-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.step-num {
  background: #d4af37;
  color: #0b0f19;
  padding: 2px 8px;
  border-radius: 50%;
  font-weight: 700;
  margin-right: 8px;
}

.styled-select {
  width: 100%;
  background: #0f1523;
  border: 1px solid #334155;
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s;
}

.styled-select:focus {
  border-color: #d4af37;
}

/* Columnas Dinámicas */
.columns-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
  scroll-margin-top: 100px;
}

.reserva-columna {
  background: rgba(15, 21, 35, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
}

.step-num-sm {
  background: #d4af37;
  color: #0b0f19;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

.col-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #f8fafc;
}

/* ==========================================================================
   COLUMNA 1: CALENDARIO
   ========================================================================== */
.calendar-card {
  display: flex;
  flex-direction: column;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #d4af37;
  font-weight: 600;
}

.cal-nav-btn {
  background: transparent;
  border: 1px solid #334155;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.cal-nav-btn:hover {
  border-color: #d4af37;
  color: #d4af37;
}

.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 10px;
}

.calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  aspect-ratio: 1;
  background: #111827;
  border: 1px solid #1f293d;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.calendar-day.empty {
  background: transparent;
  border: none;
  cursor: default;
}

/* Clases del calendario */
.calendar-day.luna-llena { border-color: #d97706; color: #fde68a; }
.calendar-day.luna-llena-planetas { border-color: #b45309; color: #fcd34d; }
.calendar-day.luna-y-planetas { border-color: #15803d; color: #86efac; }
.calendar-day.planetas { border-color: #1d4ed8; color: #93c5fd; }
.calendar-day.luna { border-color: #334155; color: #e2e8f0; }
.calendar-day.is-reservado { border-color: #7f1d1d; color: #fca5a5; opacity: 0.6; cursor: not-allowed; }

.calendar-day:hover:not(.empty):not(.is-reservado) {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.calendar-day.selected {
  background: #d4af37 !important;
  color: #0b0f19 !important;
  font-weight: 700;
  border-color: #d4af37 !important;
}

/* Leyenda */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
  font-size: 0.75rem;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding-top: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.luna-llena { background: #d97706; }
.dot.luna-llena-planetas { background: #b45309; }
.dot.luna-y-planetas { background: #15803d; }
.dot.planetas { background: #1d4ed8; }
.dot.luna { background: #64748b; }
.dot.reservado { background: #7f1d1d; }

/* ==========================================================================
   COLUMNA 2: DETALLE DE LA NOCHE & ASTROS VISIBLES
   ========================================================================== */
.placeholder-text {
  color: #64748b;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 40px;
  line-height: 1.5;
}

.info-badges {
  margin-bottom: 15px;
}

.badge-item {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #15803d;
  background: rgba(21, 128, 61, 0.15);
  color: #86efac;
}

.info-card-inner {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
}

.info-horario-label {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}

.info-horario-val {
  font-size: 1.3rem;
  color: #d4af37;
  font-weight: 700;
  margin-bottom: 10px;
}

.info-titulo-exp {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}

.info-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
}

.info-fecha-completa {
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
}

/* Componente de Astros Visibles */
.celestial-section {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.celestial-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.celestial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.celestial-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #0b0f19;
  border: 1px solid #1e293b;
  transition: all 0.3s ease;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.astro-info {
  display: flex;
  flex-direction: column;
}

.astro-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
}

.astro-status {
  font-size: 0.7rem;
  color: #64748b;
}

/* Estado: Activo / Visible */
.celestial-badge.active {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.celestial-badge.active .astro-status {
  color: #4ade80; /* Verde brillante */
  font-weight: 500;
}

.celestial-badge.active svg {
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

/* Estado: Inactivo / No visible */
.celestial-badge.inactive {
  opacity: 0.4;
  filter: grayscale(80%);
}

.celestial-badge.inactive .astro-status {
  color: #64748b;
}

.info-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.4;
}

.btn-elegir {
  width: 100%;
  background: #d4af37;
  color: #0b0f19;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-elegir:hover {
  background: #e6c558;
}

/* ==========================================================================
   COLUMNA 3: FORMULARIO DE RESERVA
   ========================================================================== */
.form-reserva-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
}

.form-group input {
  background: #111827;
  border: 1px solid #334155;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  outline: none;
}

.form-group input:focus {
  border-color: #d4af37;
}

.preference-buttons {
  display: flex;
  gap: 10px;
}

.pref-btn {
  flex: 1;
  background: #111827;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  transition: all 0.2s;
}

.pref-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  color: #d4af37;
}

.btn-consultar {
  margin-top: 10px;
  width: 100%;
  background: #d4af37;
  color: #0b0f19;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-consultar:hover {
  background: #e6c558;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  text-align: center;
  padding: 30px;
  color: #64748b;
  font-size: 0.85rem;
  border-top: 1px solid #1e293b;
  margin-top: auto;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1024px) {
  .columns-wrapper {
    grid-template-columns: 1fr;
  }
  
  .navbar {
    padding: 15px 20px;
  }

  .celestial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Días que ya pasaron */
.calendar-day.is-pasado {
  background-color: #2a2a2a !important;
  color: #666666 !important;
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none; /* Bloquea clics */
  border-color: transparent !important;
}
/* Ocultar botones extra en la página de reservas para celulares */
@media (max-width: 768px) {
  /* Si los botones están dentro del hero o la sección de reservas */
  .hero-buttons a:not([href="#"]),
  .hero-buttons a:not([href="index.html"]),
  .hero-buttons a:not(.btn-volver-inicio) { /* Ajusta la clase si tu botón tiene una específica */
    display: none !important;
  }
}
/* Margen de seguridad para que la barra de navegación no tape la parte superior al hacer scroll */
#columna1, #columna2, #columna3,
.columna1, .columna2, .columna3 {
  scroll-margin-top: 80px;
}
/* Ocultar opciones del menú en versión mobile para la página de reservas */
@media (max-width: 768px) {
  /* Oculta las listas de enlaces (Quiénes Somos, Experiencias, etc.) */
  .navbar .nav-links li:not(:last-child),
  .navbar .nav-links a:not(.btn-nav) {
    display: none !important;
  }

  /* Ajusta el contenedor para dejar centrado/alineado solo el botón de retorno */
  .navbar .nav-links {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
  }
}
@media (max-width: 768px) {
  /* Permite que las tarjetas ocupen el ancho completo del contenedor */
  .columns-wrapper,
  .columna1,
  .columna2,
  .columna3,
  .card,
  .box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ajusta el selector desplegable para que el texto respire y entre cómodo */
  select {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important; /* Permite salto de línea en sistemas que lo soporten */
    text-overflow: clip !important; /* Evita que ponga puntos suspensivos (...) recortando texto */
    padding-right: 30px !important; /* Espacio para la flecha del desplegable */
  }

  /* Si las opciones desplegadas sufren cortes en iOS/Android */
  select option {
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}
/* Asegurar posición relativa en la caja contenedora */
#columna1, .columna1 {
  position: relative !important;
}

/* Tooltip centrado en el medio del calendario */
.custom-tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Lo centra vertical y horizontalmente */
  background-color: rgba(30, 41, 59, 0.95); /* Fondo oscuro semitransparente */
  color: #f8fafc;
  border: 1px solid #7f1d1d;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 100;
  width: 85%;
  max-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none; /* Evita bloquear los clics del calendario cuando no está activo */
}

.custom-tooltip.show {
  opacity: 1;
  visibility: visible;
}
/* Evita que el calendario aplique selecciones/estados en días reservados */
.columna1 .reservado, 
.columna1 [data-estado="reservado"] {
  pointer-events: auto !important; /* Mantiene la capacidad de recibir clics para el tooltip */
  cursor: not-allowed !important;
}

/* Evita que el tooltip bloquee clics en el calendario cuando está activo */
.custom-tooltip {
  pointer-events: none !important;
}

/* Resalte para fecha reservada presionada */
.dia-reservado-alerta {
  border-color: #ef4444 !important;
  box-shadow: 0 0 12px #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.2) !important;
  animation: pulsoRojo 0.3s ease-in-out 2;
}

@keyframes pulsoRojo {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.form-group textarea {
  width: 100%;
  padding: 12px;
  background-color: #0b111e; /* O la variable de color oscuro que uses */
  border: 1px solid #1f293d;
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical; /* Permite estirar solo hacia abajo */
  outline: none;
}

.form-group textarea:focus {
  border-color: #e2b714; /* Color dorado al seleccionar */
}
/* Estilo para los días inhabilitados */
.calendar-day.pasado {
  background-color: #121824 !important;
  color: #3e4c5e !important;
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important; /* Bloquea cualquier clic */
  border: 1px solid transparent !important;
}