/* =============================================
   LA TORRE ENCANTADA — STYLESHEET PREMIUM
   Chiquipark · Las Torres de Cotillas (Murcia)
   ============================================= */

/* === VARIABLES === */
:root {
  --morado:        #7C2D9E;
  --morado-dark:   #5A1E75;
  --morado-light:  #A855C9;
  --morado-glow:   rgba(124,45,158,0.25);
  --amarillo:      #FFB800;
  --amarillo-light:#FFD84D;
  --rosa:          #E91E8C;
  --rosa-light:    #F06BBB;
  --azul:          #1E90D4;
  --verde:         #22C55E;
  --naranja:       #F97316;
  --oscuro:        #1A0A2E;
  --oscuro-2:      #2D1152;
  --crema:         #FFFBF5;
  --beige:         #F5EEF8;
  --blanco:        #FFFFFF;
  --gris:          #6B7280;
  --gris-light:    #9CA3AF;
  --sombra:        0 4px 30px rgba(0,0,0,0.12);
  --sombra-xl:     0 20px 60px rgba(0,0,0,0.2);
  --sombra-morado: 0 8px 30px rgba(124,45,158,0.3);
  --radio:         14px;
  --radio-lg:      20px;
  --trans:         0.4s cubic-bezier(0.4,0,0.2,1);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--crema);
  color: var(--oscuro);
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* === TYPOGRAPHY === */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--morado);
  background: var(--beige);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.section-label.light {
  color: var(--amarillo-light);
  background: rgba(255,255,255,0.1);
}

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--oscuro);
  margin-bottom: 1rem;
}
.section-title.light { color: var(--blanco); }
.section-title em {
  font-style: normal;
  color: var(--morado);
}
.section-title.light em { color: var(--amarillo-light); }

.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--morado), var(--rosa));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.section-line.centered { margin-left: auto; margin-right: auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-desc {
  color: var(--gris);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === SPLASH SCREEN === */
.splash {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--oscuro) 0%, var(--oscuro-2) 60%, #4B1A7E 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.splash-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.splash-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--amarillo-light);
  border-radius: 50%;
  opacity: 0;
}
.splash-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(255,184,0,0.6));
  position: relative;
  z-index: 1;
}
.splash-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: var(--blanco);
  text-align: center;
  margin-top: 1.2rem;
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}
.splash-title span {
  color: var(--amarillo-light);
}
.splash-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}
.splash-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.splash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--morado-light), var(--amarillo));
  width: 0%;
  border-radius: 2px;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--morado);
  color: var(--blanco);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.9rem 2.2rem;
  border: 2px solid var(--morado);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--morado-dark);
  transform: translateX(-100%);
  transition: transform var(--trans);
  z-index: 0;
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary span, .btn-primary > svg { position: relative; z-index: 1; }
.btn-primary:hover { color: var(--blanco); border-color: var(--morado-dark); transform: translateY(-2px); box-shadow: var(--sombra-morado); }
.btn-primary.full-width { width: 100%; justify-content: center; }
.btn-primary.amarillo {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: var(--oscuro);
}
.btn-primary.amarillo::after { background: #e6a500; }
.btn-primary.amarillo:hover { border-color: #e6a500; color: var(--oscuro); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--blanco);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.9rem 2.2rem;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--trans);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--blanco); transform: translateY(-2px); }
.btn-ghost.dark { color: var(--morado); border-color: var(--morado); }
.btn-ghost.dark:hover { background: var(--morado); color: var(--blanco); }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--trans);
  opacity: 0;
}
.navbar.loaded { opacity: 1; }
.navbar.scrolled {
  background: var(--oscuro);
  padding: 0.6rem 0;
  box-shadow: var(--sombra);
}
.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: var(--trans);
}
.nav-logo img:hover { transform: scale(1.05) rotate(-3deg); }
.nav-logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: var(--blanco);
  line-height: 1.1;
}
.nav-logo-text span {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amarillo-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--amarillo);
  border-radius: 1px;
  transition: width 0.3s;
}
.nav-link:hover { color: var(--amarillo-light); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  background: var(--morado);
  color: var(--blanco) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--trans);
}
.nav-cta:hover { background: var(--morado-dark); transform: translateY(-1px); box-shadow: var(--sombra-morado); }
.nav-cta::after { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: var(--trans);
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,10,46,0.82) 0%,
    rgba(45,17,82,0.65) 50%,
    rgba(124,45,158,0.45) 100%
  );
}
.hero-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.confetti-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 850px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amarillo-light);
  border: 1px solid rgba(255,184,0,0.4);
  background: rgba(255,184,0,0.08);
  padding: 0.45rem 1.4rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  color: var(--blanco);
  line-height: 1;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero-title .accent { color: var(--amarillo-light); }
.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.hero-subtitle strong { color: var(--amarillo-light); font-weight: 700; }
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.scroll-indicator { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.scroll-indicator span { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; }
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1px solid rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(6px); }
}

/* === NOSOTROS === */
.nosotros {
  padding: 7rem 0;
  background: var(--crema);
}
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.nosotros-img-wrap { position: relative; }
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radio-lg);
}
.img-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 3px solid var(--amarillo);
  border-radius: var(--radio-lg);
  z-index: -1;
  transform: translate(14px, 14px);
  transition: transform 0.5s;
}
.nosotros-img-wrap:hover .img-frame::before { transform: translate(6px, 6px); }
.img-frame img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s;
}
.img-frame:hover img { transform: scale(1.03); }
.img-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: linear-gradient(135deg, var(--morado), var(--rosa));
  color: var(--blanco);
  padding: 1.2rem;
  text-align: center;
  border-radius: var(--radio);
  box-shadow: var(--sombra-morado);
}
.badge-num {
  display: block;
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  line-height: 1;
  color: var(--amarillo-light);
}
.badge-text { font-size: 0.7rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.85); }

.nosotros-text .tag {
  display: inline-block;
  background: var(--beige);
  color: var(--morado);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.nosotros-text p {
  color: #555;
  margin-bottom: 0.9rem;
  font-weight: 400;
}
.nosotros-checks {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}
.nosotros-checks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--oscuro);
  font-weight: 600;
}
.nosotros-checks li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--morado), var(--rosa));
  color: var(--blanco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nosotros-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--beige);
  margin-top: 0.5rem;
}
.stat-num {
  display: block;
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--morado);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-label { font-size: 0.78rem; color: var(--gris); font-weight: 600; }

/* === INSTALACIONES === */
.instalaciones {
  padding: 7rem 0;
  background: var(--oscuro);
  position: relative;
  overflow: hidden;
}
.instalaciones::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,45,158,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.instalaciones::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(233,30,140,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.instalaciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.inst-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radio-lg);
  overflow: hidden;
  transition: var(--trans);
}
.inst-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124,45,158,0.4);
  box-shadow: var(--sombra-morado);
}
.inst-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s;
  filter: brightness(0.9);
}
.inst-card:hover .inst-img { transform: scale(1.05); filter: brightness(1); }
.inst-body { padding: 1.5rem; }
.inst-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.inst-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--blanco);
  margin-bottom: 0.5rem;
}
.inst-desc { color: rgba(255,255,255,0.55); font-size: 0.88rem; line-height: 1.6; }

/* === QUÉ INCLUYE === */
.incluye {
  padding: 7rem 0;
  background: var(--beige);
  position: relative;
}
.incluye-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(124,45,158,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.incluye-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.incluye-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.incluye-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--blanco);
  padding: 1rem 1.1rem;
  border-radius: var(--radio);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: var(--trans);
}
.incluye-item:hover { transform: translateY(-3px); box-shadow: var(--sombra-morado); }
.incluye-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}
.incluye-item-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--oscuro);
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.incluye-item-text span { font-size: 0.75rem; color: var(--gris); }

.incluye-img-wrap { position: relative; }
.incluye-img-frame {
  border-radius: var(--radio-lg);
  overflow: hidden;
  box-shadow: var(--sombra-xl);
}
.incluye-img-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.incluye-badge {
  position: absolute;
  top: -1.2rem;
  left: -1.2rem;
  background: var(--amarillo);
  color: var(--oscuro);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 4px 20px rgba(255,184,0,0.4);
}
.incluye-badge span { font-size: 0.6rem; font-family: 'Nunito', sans-serif; font-weight: 700; }

/* === TARIFAS === */
.tarifas {
  padding: 7rem 0;
  background: var(--crema);
}
.tarifas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}
.tarifa-card {
  background: var(--blanco);
  border-radius: var(--radio-lg);
  padding: 2.5rem;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: var(--sombra);
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.tarifa-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--morado), var(--rosa));
}
.tarifa-card:hover {
  border-color: var(--morado);
  transform: translateY(-6px);
  box-shadow: var(--sombra-morado);
}
.tarifa-card.featured {
  background: linear-gradient(135deg, var(--oscuro) 0%, var(--oscuro-2) 100%);
  color: var(--blanco);
  border-color: var(--morado);
}
.tarifa-card.featured::before {
  background: linear-gradient(90deg, var(--amarillo), var(--rosa));
}
.tarifa-badge-top {
  display: inline-block;
  background: var(--amarillo);
  color: var(--oscuro);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.tarifa-days {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.5rem;
}
.tarifa-card.featured .tarifa-days { color: rgba(255,255,255,0.5); }
.tarifa-price {
  font-family: 'Fredoka One', cursive;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--morado);
  margin-bottom: 0.25rem;
}
.tarifa-card.featured .tarifa-price { color: var(--amarillo-light); }
.tarifa-price sup { font-size: 1.8rem; vertical-align: super; }
.tarifa-desc {
  font-size: 0.85rem;
  color: var(--gris);
  margin-bottom: 2rem;
}
.tarifa-card.featured .tarifa-desc { color: rgba(255,255,255,0.5); }
.tarifa-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  text-align: left;
}
.tarifa-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--oscuro);
}
.tarifa-card.featured .tarifa-features li { color: rgba(255,255,255,0.85); }
.tarifa-features li::before {
  content: '⭐';
  font-size: 0.8rem;
}
.tarifa-note {
  font-size: 0.75rem;
  color: var(--gris);
  margin-top: 1rem;
}
.tarifa-card.featured .tarifa-note { color: rgba(255,255,255,0.35); }

/* === GALERÍA === */
.galeria {
  padding: 7rem 0;
  background: var(--oscuro);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 0.6rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  background: #111;
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s;
  filter: brightness(0.88);
}
.gallery-item:hover img { transform: scale(1.07); filter: brightness(0.65); }
.gallery-item.large { grid-column: 1 / 3; }
.gallery-item.large img { height: 440px; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s;
  background: linear-gradient(to top, rgba(26,10,46,0.8) 0%, transparent 60%);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-family: 'Fredoka One', cursive;
  color: var(--blanco);
  font-size: 1.1rem;
  border-bottom: 2px solid var(--amarillo);
  padding-bottom: 0.25rem;
}
.gallery-zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-zoom { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--morado); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* === RESERVAS === */
.reservas {
  position: relative;
  padding: 7rem 0;
}
.reservas-bg { position: absolute; inset: 0; }
.reservas-bg img { width: 100%; height: 100%; object-fit: cover; }
.reservas-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,10,46,0.95) 0%, rgba(45,17,82,0.9) 100%);
}
.reservas-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.reservas-info .section-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }

.precio-preview {
  background: rgba(255,184,0,0.1);
  border: 1px solid rgba(255,184,0,0.3);
  border-radius: var(--radio);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  display: none;
}
.precio-preview.visible { display: block; }
.precio-preview .precio-dia {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.precio-preview .precio-valor {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: var(--amarillo-light);
  line-height: 1;
}
.precio-preview .precio-nota { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 0.25rem; }

.info-items { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon { font-size: 1.5rem; flex-shrink: 0; }
.info-item strong { display: block; color: var(--blanco); font-size: 0.85rem; }
.info-item p { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin: 0; }

.reservas-form-wrap {
  background: rgba(255,255,255,0.98);
  border-radius: var(--radio-lg);
  padding: 2.5rem;
  box-shadow: var(--sombra-xl);
}
.form-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.7rem;
  color: var(--oscuro);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--beige);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radio);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--oscuro);
  background: var(--crema);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--morado);
  box-shadow: 0 0 0 3px var(--morado-glow);
  background: var(--blanco);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-note { font-size: 0.75rem; color: var(--gris); text-align: center; margin-top: 0.75rem; }
.hora-error {
  background: #fff3f3;
  border: 1px solid #FCA5A5;
  color: #DC2626;
  padding: 0.75rem;
  border-radius: var(--radio);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.hidden { display: none !important; }

.reserva-success {
  text-align: center;
  padding: 3rem 1rem;
}
.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--morado), var(--rosa));
  color: var(--blanco);
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--sombra-morado);
}
.reserva-success h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--oscuro);
}
.reserva-success p { color: var(--gris); margin-bottom: 0.5rem; }
.reserva-success .whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: var(--trans);
}
.reserva-success .whatsapp-cta:hover { background: #1da856; transform: translateY(-2px); }

/* === FAQ === */
/* Horario en mapa-card */
.horario-table {
  margin-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 0.9rem;
}
.horario-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--morado);
  margin-bottom: 0.55rem;
}
.horario-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.82rem;
}
.horario-row:last-child { border-bottom: none; }
.horario-dia { color: var(--oscuro); font-weight: 600; }
.horario-hora { color: var(--morado); font-weight: 700; }

/* === MAPA / CONTACTO === */
.ubicacion {
  padding: 7rem 0 0;
  background: var(--crema);
}
.mapa-wrap { position: relative; margin-top: 3rem; }
.mapa-wrap iframe { display: block; border-radius: var(--radio-lg) var(--radio-lg) 0 0; }
.mapa-card {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: var(--blanco);
  padding: 1.5rem 2rem;
  border-radius: var(--radio);
  box-shadow: var(--sombra-xl);
  min-width: 280px;
  border-left: 4px solid var(--morado);
}
.mapa-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--oscuro);
}
.mapa-card p { font-size: 0.85rem; color: var(--gris); margin-bottom: 0.3rem; }
.mapa-card strong { color: var(--oscuro); }
.mapa-card .btn-primary { margin-top: 1rem; }

/* === FOOTER === */
.footer { background: var(--oscuro); }
.footer-top { padding: 5rem 0 3rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(255,184,0,0.3));
}
.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.footer-brand .brand-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: var(--blanco);
  margin-bottom: 0.5rem;
  display: block;
}
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--trans);
}
.social-links a:hover { background: var(--morado); color: var(--blanco); border-color: var(--morado); }
.footer-col h4 {
  color: var(--blanco);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col li, .footer-col p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--amarillo-light); }
.footer-bottom {
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { color: rgba(255,255,255,0.25); font-size: 0.75rem; }

/* === WHATSAPP FLOTANTE === */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-btn svg { width: 30px; height: 30px; }
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--oscuro);
  color: var(--blanco);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }

/* === ANIMATIONS (GSAP managed, CSS fallback) === */
/* Fallback CSS: si GSAP no completa el splash en 6s, lo oculta automáticamente */
.splash { animation: splashFallback 0.5s ease 6s forwards; }
@keyframes splashFallback { to { opacity: 0; visibility: hidden; pointer-events: none; } }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatUp {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .nosotros-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .nosotros-img-wrap{ max-width: 500px; }
  .img-frame img    { height: 380px; }
  .instalaciones-grid { grid-template-columns: 1fr 1fr; }
  .incluye-grid     { grid-template-columns: 1fr; gap: 3rem; }
  .incluye-img-frame img { height: 380px; }
  .reservas-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid     { grid-template-columns: repeat(2,1fr); }
  .gallery-item.large { grid-column: 1 / 3; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .footer-brand     { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--oscuro);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
  }
  .nav-links.open  { display: flex; }
  .nav-link        { font-size: 1.1rem; }
  .hamburger       { display: flex; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

  .hero-buttons    { flex-direction: column; align-items: center; }
  .instalaciones-grid { grid-template-columns: 1fr; }
  .incluye-list    { grid-template-columns: 1fr; }
  .tarifas-grid    { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .nosotros-stats  { grid-template-columns: repeat(3,1fr); }
  .gallery-grid    { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: 1; }
  .gallery-item.large img { height: 300px; }
  .gallery-item img { height: 240px; }
  .mapa-card       { position: relative; bottom: auto; left: auto; border-radius: var(--radio); margin: 0; }
  .mapa-wrap iframe { height: 350px; border-radius: var(--radio-lg) var(--radio-lg) 0 0; }
  .footer-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .reservas-form-wrap { padding: 1.5rem; }
  .img-badge { bottom: -0.5rem; right: -0.5rem; }
  .whatsapp-btn { bottom: 1.2rem; right: 1.2rem; }
  .nosotros-stats { grid-template-columns: repeat(3,1fr); gap: 0.75rem; }
  .stat-num { font-size: 1.5rem; }
}
