/* ============================================================
   SPACE FUN · Salón de fiestas infantiles
   Tema: galaxia profunda + colores del logo (azul, amarillo, morado)
   ============================================================ */

:root {
  --space: #070b24;
  --space-2: #0d1233;
  --space-3: #151b47;
  --card: rgba(21, 27, 71, 0.55);
  --card-border: rgba(127, 212, 255, 0.16);
  --blue: #3d7bff;
  --cyan: #7fd4ff;
  --yellow: #ffc531;
  --orange: #ff8a2a;
  --purple: #9b5cff;
  --pink: #ff5cb8;
  --green: #25d366;
  --text: #eef1ff;
  --muted: #a6afd9;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(2, 4, 20, 0.55);
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--space);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.container-narrow { width: min(820px, 92%); }

.icon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }

/* ---------- Fondo: estrellas + nebulosas ---------- */
#starfield {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -3;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #131a4d 0%, var(--space) 55%, #04061a 100%);
}
.nebula {
  position: fixed;
  width: 55vw; height: 55vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: -2;
  pointer-events: none;
}
.nebula-1 { top: -15vw; right: -15vw; background: radial-gradient(circle, rgba(155, 92, 255, 0.55), transparent 65%); }
.nebula-2 { bottom: -20vw; left: -15vw; background: radial-gradient(circle, rgba(61, 123, 255, 0.5), transparent 65%); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.header.scrolled {
  background: rgba(7, 11, 36, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(2, 4, 20, 0.6);
  padding: 8px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-logo { height: 52px; width: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45)); transition: transform 0.3s ease; }
.brand:hover .brand-logo { transform: scale(1.05) rotate(-2deg); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav-link {
  color: var(--text);
  font-weight: 700;
  font-size: 0.98rem;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transition: width 0.25s ease;
}
.nav-link:hover { text-decoration: none; }
.nav-link:hover::after { width: 100%; }
.nav-cta { margin-left: 6px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
}
.menu-toggle span {
  width: 26px; height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 10px 20px; font-size: 0.95rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: #2b1500;
  box-shadow: 0 10px 28px rgba(255, 150, 40, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(255, 150, 40, 0.5); }

.btn-whatsapp {
  background: linear-gradient(135deg, #2fe673, #1cb85a);
  color: #032b12;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(37, 211, 102, 0.5); }

.btn-ghost {
  background: rgba(127, 212, 255, 0.08);
  color: var(--text);
  border: 1.5px solid rgba(127, 212, 255, 0.35);
}
.btn-ghost:hover { background: rgba(127, 212, 255, 0.16); transform: translateY(-3px); }

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid rgba(127, 212, 255, 0.45);
}
.btn-outline:hover { background: rgba(127, 212, 255, 0.12); transform: translateY(-3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 0 70px;
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(127, 212, 255, 0.1);
  border: 1px solid rgba(127, 212, 255, 0.3);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge .icon { color: var(--yellow); }

.hero-logo {
  width: min(460px, 78vw);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6));
  animation: float 6s ease-in-out infinite;
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 3.7rem);
  font-weight: 700;
  line-height: 1.12;
  max-width: 760px;
  margin: 10px 0 16px;
  text-wrap: balance;
}
.text-gradient {
  background: linear-gradient(92deg, var(--cyan) 0%, var(--purple) 50%, var(--yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 32px;
  text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 46px; }

.hero-stats {
  display: flex; gap: clamp(20px, 5vw, 56px);
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stats li { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--yellow);
  line-height: 1;
}
.hero-stats span { color: var(--muted); font-size: 0.92rem; font-weight: 700; }

/* Mascotas flotantes */
.hero-mascot { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5)); }
.mascot-red { width: clamp(90px, 12vw, 170px); top: 16%; right: 7%; animation: fly 9s ease-in-out infinite; }
.mascot-blue { width: clamp(110px, 14vw, 200px); bottom: 12%; right: 13%; animation: float 7s ease-in-out infinite 0.6s; }
.mascot-pink { width: clamp(95px, 12vw, 170px); bottom: 16%; left: 8%; animation: float 8s ease-in-out infinite 1.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(-2deg); }
}
@keyframes fly {
  0%, 100% { transform: translate(0, 0) rotate(6deg); }
  33% { transform: translate(-24px, -20px) rotate(-3deg); }
  66% { transform: translate(18px, -8px) rotate(9deg); }
}

.scroll-hint {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}
.scroll-hint .icon { width: 34px; height: 34px; }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: linear-gradient(90deg, rgba(61, 123, 255, 0.16), rgba(155, 92, 255, 0.16));
  border-block: 1px solid rgba(127, 212, 255, 0.18);
  padding: 14px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; position: relative; }
.section-tag {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 16px;
  text-wrap: balance;
}
.section-sub {
  color: var(--muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
  font-size: 1.05rem;
  text-wrap: balance;
}

/* ---------- Tarjetas ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.feature-card { padding: 30px 26px; transition: transform 0.25s ease, border-color 0.25s ease; }
.feature-card:hover { transform: translateY(-8px); border-color: rgba(255, 197, 49, 0.45); }
.feature-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 18px 0 8px; }
.feature-card p { color: var(--muted); font-size: 0.97rem; }
.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
}
.feature-icon .icon { width: 28px; height: 28px; }
.icon-purple { background: rgba(155, 92, 255, 0.16); color: var(--purple); }
.icon-yellow { background: rgba(255, 197, 49, 0.14); color: var(--yellow); }
.icon-blue { background: rgba(61, 123, 255, 0.16); color: var(--blue); }
.icon-pink { background: rgba(255, 92, 184, 0.14); color: var(--pink); }

/* Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
  background: var(--space-2);
  aspect-ratio: 4 / 3;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-caption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(7, 11, 36, 0.78);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(127, 212, 255, 0.25);
  pointer-events: none;
}

/* Paquetes */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.pricing-card:hover { transform: translateY(-8px); border-color: rgba(127, 212, 255, 0.4); }
.pricing-featured {
  border: 2px solid var(--yellow);
  background: linear-gradient(180deg, rgba(255, 197, 49, 0.09), var(--card));
}
.pricing-featured:hover { border-color: var(--orange); }
.pricing-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: #2b1500;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 5px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-icon { font-size: 2.6rem; margin-bottom: 12px; }
.pricing-card h3 { font-family: var(--font-display); font-size: 1.45rem; margin-bottom: 6px; }
.pricing-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.pricing-list {
  list-style: none;
  text-align: left;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
  flex: 1;
}
.pricing-list li { padding-left: 28px; position: relative; font-size: 0.97rem; }
.pricing-list li::before {
  content: "✦";
  position: absolute; left: 0; top: 0;
  color: var(--yellow);
}
.pricing-note { text-align: center; color: var(--muted); margin-top: 34px; font-weight: 700; }

/* Testimonios */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}
.testimonial-card { padding: 30px; }
.testimonial-card .stars { color: var(--yellow); font-size: 1.2rem; letter-spacing: 4px; margin-bottom: 14px; }
.testimonial-card blockquote { font-size: 1.05rem; font-style: italic; margin-bottom: 20px; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial-card figcaption small { display: block; color: var(--muted); }
.avatar {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

/* FAQ */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item[open] { border-color: rgba(255, 197, 49, 0.4); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-arrow {
  flex: none;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--yellow);
  border-bottom: 2.5px solid var(--yellow);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-arrow { transform: rotate(225deg); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); }

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}
.contact-info { display: grid; gap: 18px; }
.info-card { display: flex; gap: 18px; padding: 24px; align-items: flex-start; }
.info-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }
.info-card p { color: var(--muted); }
.info-icon {
  flex: none;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(61, 123, 255, 0.15);
  color: var(--cyan);
}
.info-icon .icon { width: 24px; height: 24px; }
.link-arrow { font-weight: 800; display: inline-block; margin-top: 6px; }

.contact-form { padding: 34px 30px; }
.contact-form h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 20px; }
.form-row { margin-bottom: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: block; font-weight: 800; font-size: 0.9rem; margin-bottom: 6px; color: var(--text); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(7, 11, 36, 0.6);
  border: 1.5px solid rgba(127, 212, 255, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 197, 49, 0.18);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #6b76a8; }
.contact-form input[type="date"] { color-scheme: dark; }
.form-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 12px; }

/* Footer */
.footer {
  border-top: 1px solid rgba(127, 212, 255, 0.14);
  padding: 56px 0 34px;
  text-align: center;
  background: rgba(4, 6, 26, 0.6);
}
.footer-logo { height: 74px; width: auto; margin: 0 auto 10px; }
.footer-tag { color: var(--muted); font-weight: 700; margin-bottom: 22px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-bottom: 26px; }
.footer-nav a { color: var(--text); font-weight: 700; font-size: 0.95rem; }
.footer-legal { color: #6b76a8; font-size: 0.88rem; }

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 40;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fe673, #1cb85a);
  color: #fff;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease;
  animation: pulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float:hover { transform: scale(1.1) rotate(6deg); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(3, 5, 20, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  background: rgba(21, 27, 71, 0.8);
  color: var(--text);
  border: 1px solid rgba(127, 212, 255, 0.3);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox button:hover { background: rgba(61, 123, 255, 0.5); transform: scale(1.08); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Animación de aparición */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .mascot-blue { right: 4%; bottom: 8%; }
  .mascot-pink { left: 3%; bottom: 10%; }
  .mascot-red { right: 3%; top: 13%; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(7, 11, 36, 0.97);
    backdrop-filter: blur(16px);
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: 55;
  }
  .nav.open { transform: translateY(0); }
  .nav-link { font-size: 1.3rem; }
  .nav-cta { margin-left: 0; }
  .menu-toggle { display: flex; }
  .section { padding: 72px 0; }
  .hero-mascot { opacity: 0.85; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .mascot-red { width: 74px; }
  .mascot-blue { width: 92px; }
  .mascot-pink { width: 78px; }
  .hero-actions .btn { width: 100%; }
  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Foco visible */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}
