:root {
  --bg: #0a0a0f;
  --bg-alt: #111117;
  --bg-card: #16161d;
  --border: #26262f;
  --text: #f3f2f7;
  --text-muted: #a5a3b3;
  --gold: #d4af37;
  --gold-light: #f0d878;
  --magenta: #e0177d;
  --magenta-glow: rgba(224, 23, 125, 0.35);
  --gold-glow: rgba(212, 175, 55, 0.25);
  --error: #ff5470;
  --radius: 14px;
  --ff-display: "Bebas Neue", sans-serif;
  --ff-body: "Poppins", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #17130a;
  box-shadow: 0 8px 24px var(--gold-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--gold-glow); }
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--text);
}
.logo span { color: var(--gold); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a { color: var(--text-muted); transition: color 0.2s ease; }
.nav a:hover { color: var(--gold-light); }
.nav__cta {
  color: var(--bg) !important;
  background: var(--gold);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav__cta:hover { background: var(--gold-light); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  background:
    linear-gradient(100deg, var(--bg) 0%, var(--bg) 28%, rgba(10,10,15,0.88) 45%, rgba(10,10,15,0.55) 65%, rgba(10,10,15,0.25) 100%),
    radial-gradient(ellipse at top right, rgba(212,175,55,0.08), transparent 60%),
    url('../img/hero-evento.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, 70% 65%;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}
.hero__glow--1 {
  width: 500px; height: 500px;
  background: var(--magenta-glow);
  top: -100px; right: -150px;
}
.hero__glow--2 {
  width: 400px; height: 400px;
  background: var(--gold-glow);
  bottom: -150px; left: -100px;
}
.hero__content { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--gold-light), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__text {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Section titles ---------- */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--magenta);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* ---------- Servicios ---------- */
.servicios { padding: 120px 0; background: var(--bg); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(224,23,125,0.15));
  color: var(--gold-light);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card--cta {
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(224,23,125,0.12));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.card--cta p { margin-bottom: 8px; }

/* ---------- Galeria ---------- */
.galeria { padding: 100px 0; background: var(--bg-alt); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-card), #1b1b24);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  overflow: hidden;
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, var(--gold-glow), transparent 60%);
  opacity: 0.6;
}
.gallery-item span {
  position: relative;
  font-weight: 600;
  color: var(--text);
  z-index: 1;
}
.gallery-item--2::before { background: radial-gradient(circle at 70% 30%, var(--magenta-glow), transparent 60%); }
.gallery-item--4::before { background: radial-gradient(circle at 40% 70%, var(--magenta-glow), transparent 60%); }
.gallery-item--6::before { background: radial-gradient(circle at 60% 60%, var(--gold-glow), transparent 60%); }

.gallery-item--photo {
  background-size: cover;
  background-position: center;
}
.gallery-item--photo::before {
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0.05) 100%);
  opacity: 1;
}

/* ---------- Videos ---------- */
.videos-eyebrow { margin-top: 60px; }
.videos-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}
.video-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}
.video-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  line-height: 0;
}
.video-item iframe { display: block; max-width: 267px; width: 60vw; aspect-ratio: 267 / 476; height: auto; }
.video-row::-webkit-scrollbar { height: 8px; }
.video-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.video-row::-webkit-scrollbar-track { background: transparent; }

/* ---------- Nosotros ---------- */
.nosotros { padding: 120px 0; background: var(--bg); }
.nosotros__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.nosotros__text p { color: var(--text-muted); margin-bottom: 24px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.nosotros__stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--ff-display);
  font-size: 2.6rem;
  color: var(--gold-light);
  letter-spacing: 1px;
}
.stat__label { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Contacto ---------- */
.contacto { padding: 120px 0; background: var(--bg-alt); }
.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: flex-start;
}
.contacto__text { color: var(--text-muted); margin-bottom: 36px; }
.contacto__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contacto__item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}
a.contacto__item:hover { border-color: var(--gold); }
.contacto__item-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(212,175,55,0.12);
  color: var(--gold-light);
}
.contacto__item-icon svg { width: 20px; height: 20px; }
.contacto__item strong { display: block; font-size: 0.95rem; }
.contacto__item span { color: var(--text-muted); font-size: 0.88rem; }

.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field label { font-size: 0.85rem; color: var(--text-muted); }
.form__field input,
.form__field select,
.form__field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus { border-color: var(--gold); }
.form__field textarea { resize: vertical; }
.form__field.has-error input { border-color: var(--error); }
.field-error {
  display: block;
  color: var(--error);
  font-size: 0.8rem;
  min-height: 1.1em;
}
.form__note { text-align: center; font-size: 0.9rem; color: var(--gold-light); min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 36px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__inner p { color: var(--text-muted); font-size: 0.85rem; }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer__social a:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros__inner { grid-template-columns: 1fr; }
  .contacto__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; }
  .burger { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Reveal on scroll ----------
   Por defecto (sin JS) todo es visible. Solo si JS corre y agrega
   .js-activo en <html> se ocultan estos elementos hasta que reciban
   .is-visible (revelado inmediato o por IntersectionObserver). */
html.js-activo .card,
html.js-activo .gallery-item,
html.js-activo .stat,
html.js-activo .contacto__item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.js-activo .card.is-visible,
html.js-activo .gallery-item.is-visible,
html.js-activo .stat.is-visible,
html.js-activo .contacto__item.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js-activo .card,
  html.js-activo .gallery-item,
  html.js-activo .stat,
  html.js-activo .contacto__item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
