:root {
  --bg: #02040a;
  --bg-2: #06111f;
  --text: #f4fbff;
  --muted: #9bb6c9;
  --blue: #27c6ff;
  --blue-2: #0b6fff;
  --blue-soft: rgba(39, 198, 255, .18);
  --card: rgba(7, 17, 32, .68);
  --stroke: rgba(123, 218, 255, .22);
  --shadow: 0 24px 80px rgba(0, 0, 0, .52);
  --radius: 28px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(39, 198, 255, .20), transparent 28rem),
    linear-gradient(180deg, #010309 0%, #06111f 48%, #02040a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(39, 198, 255, .32) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, .10) 0 1px, transparent 1.5px);
  background-size: 86px 86px, 137px 137px;
  background-position: 12px 18px, 54px 91px;
  opacity: .18;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 14px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  color: #03111a;
  background: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  position: relative;
}

.section {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  padding: 58px 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.02);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, .08) 0%, rgba(2, 4, 10, .16) 34%, rgba(2, 4, 10, .78) 73%, #02040a 100%),
    radial-gradient(circle at 50% 24%, transparent 0 14rem, rgba(2, 4, 10, .42) 33rem),
    linear-gradient(90deg, rgba(2, 4, 10, .85), transparent 32%, transparent 68%, rgba(2, 4, 10, .82));
}

.hero__content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 42vh 0 92px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(39, 198, 255, .46);
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3.4rem, 15vw, 8.5rem);
  line-height: .82;
  letter-spacing: -.08em;
  text-transform: uppercase;
}

.hero h1 span {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 251, 255, .88);
  text-shadow: 0 0 38px rgba(39, 198, 255, .35);
}

.hero__lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: #d8effa;
  font-size: clamp(1.08rem, 2.6vw, 1.45rem);
  line-height: 1.45;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
}

.hero__facts span {
  padding: 9px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: #dff7ff;
  background: rgba(2, 9, 19, .52);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 30px rgba(39, 198, 255, .08);
}

.hero__actions,
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #03111a;
  background: linear-gradient(135deg, #e5fbff 0%, #27c6ff 45%, #0b6fff 100%);
  box-shadow: 0 16px 45px rgba(39, 198, 255, .32);
}

.button--ghost {
  color: var(--text);
  background: rgba(4, 12, 24, .56);
  border-color: var(--stroke);
  box-shadow: inset 0 0 28px rgba(39, 198, 255, .07);
}

.button--full {
  width: 100%;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 24px;
  height: 40px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  opacity: .7;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  box-shadow: 0 0 16px var(--blue);
  animation: cue 1.55s infinite;
}

@keyframes cue {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 16px);
    opacity: 0;
  }
}

.glass-card,
.detail-card,
.useful-list article,
.rsvp__panel {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 25, 46, .72), rgba(2, 7, 14, .72));
  box-shadow: var(--shadow), inset 0 0 46px rgba(39, 198, 255, .07);
  backdrop-filter: blur(18px);
}

.intro__card {
  padding: clamp(24px, 5vw, 48px);
}

.intro__card h2,
.section-heading h2,
.countdown h2,
.rsvp h2 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.1rem);
  line-height: .96;
  letter-spacing: -.06em;
}

.intro__card p:not(.section-kicker),
.section-heading p:not(.section-kicker),
.rsvp__panel p,
.detail-card p,
.useful-list p {
  color: var(--muted);
  line-height: 1.65;
}

.intro__card p:not(.section-kicker) {
  max-width: 760px;
  font-size: 1.08rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
  text-align: center;
  margin-inline: auto;
}

.section-heading--left {
  text-align: left;
  margin-inline: 0;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.detail-card {
  padding: 22px;
  min-height: 170px;
}

.detail-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: #081521;
  background: linear-gradient(135deg, #e5fbff, #27c6ff 55%, #0b6fff);
  box-shadow: 0 12px 40px rgba(39, 198, 255, .26);
  font-size: 1.18rem;
  font-weight: 900;
}

.detail-card h3,
.useful-list h3 {
  margin: 18px 0 8px;
  font-size: 1.15rem;
}

.detail-card p,
.useful-list p {
  margin: 0;
}

.event-actions {
  justify-content: center;
}

.countdown__card {
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.countdown-grid div {
  padding: 18px 8px;
  border: 1px solid rgba(123, 218, 255, .16);
  border-radius: 22px;
  background: rgba(2, 7, 14, .48);
}

.countdown-grid strong {
  display: block;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1;
  color: #eafaff;
  text-shadow: 0 0 24px rgba(39, 198, 255, .42);
}

.countdown-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* VIDEO 9:16 FIJO EN TODOS LOS BREAKPOINTS */
.video-section {
  position: relative;
  z-index: 5;
}

.video-frame {
  position: relative;
  z-index: 10;
  width: min(100%, 440px);
  margin-inline: auto;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 25, 46, .72), rgba(2, 7, 14, .72));
  box-shadow: var(--shadow), inset 0 0 46px rgba(39, 198, 255, .07);
  overflow: visible;
  pointer-events: auto;
}

.video-frame video {
  position: relative;
  z-index: 20;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  object-fit: cover;
  background: #000;
  pointer-events: auto;
  cursor: pointer;
}

.useful-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.useful-list article {
  padding: 20px;
}

.useful-list h3 {
  color: #eafaff;
}

.rsvp__panel {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 28px;
  align-items: start;
  padding: clamp(22px, 5vw, 42px);
}

.rsvp-form {
  display: grid;
  gap: 14px;
}

.rsvp-form label {
  display: grid;
  gap: 7px;
}

.rsvp-form span {
  color: #dff7ff;
  font-size: .84rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(123, 218, 255, .22);
  outline: none;
  border-radius: 18px;
  background: rgba(0, 5, 12, .58);
  padding: 14px 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: rgba(39, 198, 255, .72);
  box-shadow: 0 0 0 4px rgba(39, 198, 255, .14);
}

.rsvp-form textarea {
  resize: vertical;
}

.form-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

.footer {
  display: flex;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 34px 0 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(244, 251, 255, .62);
  font-size: .92rem;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #dff7ff;
  text-decoration: none;
  font-weight: 800;
}

.floating-cta {
  position: fixed;
  z-index: 12;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  color: #03111a;
  background: linear-gradient(135deg, #e5fbff, #27c6ff 48%, #0b6fff);
  box-shadow: 0 18px 46px rgba(39, 198, 255, .34);
  font-weight: 950;
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 30;
  width: min(92vw, 420px);
  padding: 13px 16px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  color: #eafaff;
  background: rgba(2, 9, 19, .92);
  box-shadow: var(--shadow);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .details-grid,
  .useful-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .rsvp__panel {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-top: 48vh;
  }

  .video-frame {
    width: min(100%, 420px);
  }
}

@media (max-width: 620px) {
  .section {
    width: min(100% - 24px, var(--max));
    padding: 42px 0;
  }

  .hero__content {
    width: min(100% - 24px, var(--max));
    padding-bottom: 76px;
  }

  .hero__facts {
    gap: 8px;
  }

  .hero__facts span {
    font-size: .86rem;
    padding: 8px 10px;
  }

  .hero__actions,
  .event-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .details-grid,
  .useful-list {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .floating-cta {
    left: 16px;
    right: 16px;
  }

  .video-frame {
    width: min(100%, 360px);
  }
}

@media (max-width: 390px) {
  .video-frame {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.quantity-field { display: grid; gap: 8px; }
.quantity-control { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; align-items: center; }
.quantity-control input { text-align: center; font-weight: 800; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.quantity-control input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.quantity-control button { min-height: 48px; border: 1px solid currentColor; border-radius: 50%; color: inherit; background: rgba(255,255,255,.1); font: inherit; font-size: 1.35rem; font-weight: 800; cursor: pointer; }
.quantity-field.is-disabled { opacity: .5; }
.quantity-control button:disabled { cursor: not-allowed; }
.field-error { display: none; margin: 0; color: #ff9f9f; font-size: .82rem; font-weight: 750; line-height: 1.35; text-transform: none; letter-spacing: normal; }
.field-error.is-visible { display: block; }
.rsvp-form [aria-invalid="true"], .rsvp [aria-invalid="true"] { border-color: #ff9f9f; box-shadow: 0 0 0 3px color-mix(in srgb, #ff9f9f 20%, transparent); }
