/* ============================================
   STYLES: Classic Elegance (Version 1)
   ============================================
   DESIGN PHILOSOPHY:
   - Luxury printed invitation, converted to digital
   - Narrow centered column (480px mobile, 560px desktop)
   - Typography-driven: NO images for decoration
   - NO SVG ornaments, NO decorative elements
   - Only thin golden lines (1px) as separators
   - All animations are ONLY opacity fades (no translateY, no scale)
   - Slow fade transitions: 800-1200ms
   - Inputs have ONLY bottom border (writing on paper)
   - Pill-shaped outlined buttons (not filled)
   - Maximum whitespace, generous padding
   ============================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-black);
  background-color: var(--color-cream);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

img, video {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* ----- UTILITY ----- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================
   VIDEO INTRO OVERLAY
   ============================================ */
.video-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: #3D1519;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 800ms ease;
}

.video-intro-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Loading indicator */
.intro-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 30vh;
  gap: 1.5rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 400ms ease;
}

.intro-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-loader__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #D4AF37;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.intro-loader__spinner.is-hidden {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.intro-loader__text {
  color: var(--color-secondary-light);
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  min-width: 140px;
  text-align: center;
}


/* ============================================
   MUSIC BUTTON
   ============================================ */
.music-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: var(--z-music);
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(89, 30, 41, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.music-btn:hover {
  background: rgba(89, 30, 41, 0.85);
}

.music-btn svg {
  width: 18px;
  height: 18px;
}

.music-icon--on {
  display: none !important;
}

.music-icon--off {
  display: block !important;
}

.music-btn.is-playing .music-icon--on {
  display: block !important;
}

.music-btn.is-playing .music-icon--off {
  display: none !important;
}


/* ============================================
   COUNTDOWN BANNER (matches root style)
   ============================================ */
.countdown-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-countdown);
  background: #3D1519;
  padding: 8px 16px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

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

.countdown-banner__content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.countdown-banner__item {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.countdown-banner__number {
  font-family: 'Cinzel', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1;
  min-width: 1.5em;
  text-align: center;
}

.countdown-banner__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: lowercase;
}

.countdown-banner__separator {
  font-family: 'Cinzel', serif;
  font-size: 1.125rem;
  color: #D4AF37;
  font-weight: 500;
  margin: 0 4px;
}

@media (min-width: 480px) {
  :root { --countdown-bar-height: 44px; }

  .countdown-banner {
    padding: 12px 16px;
  }

  .countdown-banner__content {
    gap: 8px;
  }

  .countdown-banner__number {
    font-size: 1.25rem;
  }

  .countdown-banner__label {
    font-size: 0.875rem;
  }

  .countdown-banner__separator {
    font-size: 1.25rem;
    margin: 0 8px;
  }
}


/* ============================================
   THEATER CURTAIN OVERLAY
   ============================================ */
.curtain-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  pointer-events: none;
  overflow: hidden;
}

.curtain-half {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  transition: transform 3.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.curtain-half--left {
  transform: translateX(0);
}

.curtain-half--right {
  transform: translateX(0);
}

.curtain-center-strip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #D4AF37 0%, #B8942E 20%, #D4AF37 40%, #8B7225 60%, #D4AF37 80%, #B8942E 100%);
  z-index: 1;
  transition: opacity 1s ease 0.3s;
  box-shadow: -2px 0 4px rgba(0,0,0,0.4), 2px 0 4px rgba(0,0,0,0.4);
}

.curtain-overlay.is-open .curtain-half--left {
  transform: translateX(-100%);
}

.curtain-overlay.is-open .curtain-half--right {
  transform: translateX(100%);
}

.curtain-overlay.is-open .curtain-center-strip {
  opacity: 0;
}

/* --- Vertical Curtain (Regalos) --- */
.curtain-vertical {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  overflow: hidden;
}

.curtain-vertical__half {
  width: 100%;
  height: 52%;
  flex-shrink: 0;
  transition: transform 3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.curtain-vertical__half--top {
  transform: translateY(0);
  margin-bottom: -4%;
}

.curtain-vertical__half--bottom {
  transform: translateY(0);
}

.curtain-vertical.is-open .curtain-vertical__half--top {
  transform: translateY(calc(-100% + 120px));
}

.curtain-vertical.is-open .curtain-vertical__half--bottom {
  transform: translateY(calc(100% - 140px));
}

/* Regalos needs relative positioning for the curtain */
#regalos {
  position: relative;
  overflow: hidden;
}


/* ============================================
   SNAP SCROLL CONTAINER
   ============================================ */
.snap-container {
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  background: var(--color-cream);
  scroll-padding-top: var(--countdown-bar-height, 34px);
}

.snap-section {
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.snap-section--scrollable {
  scroll-snap-align: start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
}

/* Tighter form spacing in snap-scrollable RSVP */
.snap-section--scrollable .section--rsvp {
  padding-top: calc(2.5rem + var(--space-xl));
  padding-bottom: var(--space-3xl);
}

.snap-section--scrollable .section--rsvp .container {
  max-width: 560px;
  padding-right: calc(var(--content-padding) + 1.5rem);
}

.snap-section--scrollable .form__group {
  margin-bottom: var(--space-lg);
}


/* ============================================
   SECTION SEPARATOR - Gold Shine
   ============================================ */
.section-separator {
  width: 100%;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.section-separator__line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.2) 15%,
    rgba(212, 175, 55, 0.5) 40%,
    rgba(212, 175, 55, 0.8) 50%,
    rgba(212, 175, 55, 0.5) 60%,
    rgba(212, 175, 55, 0.2) 85%,
    transparent 100%
  );
}

.section-separator__shine {
  position: absolute;
  top: 50%;
  left: -20%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.1) 30%,
    rgba(255, 223, 100, 0.9) 50%,
    rgba(212, 175, 55, 0.1) 70%,
    transparent 100%
  );
  animation: shine-sweep 3s ease-in-out infinite;
}

@keyframes shine-sweep {
  0% { left: -40%; }
  100% { left: 100%; }
}

.section-separator__ornament {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-separator__ornament::before {
  content: '✦';
  font-size: 0.6rem;
  color: #D4AF37;
  text-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}

/* Dark variant for sections with dark backgrounds */
.section-separator--dark {
  background: #470e0e;
}

.section-separator--dark .section-separator__line {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.15) 15%,
    rgba(212, 175, 55, 0.35) 40%,
    rgba(212, 175, 55, 0.6) 50%,
    rgba(212, 175, 55, 0.35) 60%,
    rgba(212, 175, 55, 0.15) 85%,
    transparent 100%
  );
}

/* ============================================
   NAVIGATION DOTS
   ============================================ */
.snap-nav {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-nav);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.snap-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.snap-nav__dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.snap-nav__dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.snap-nav__dot.is-active {
  background: var(--color-white);
  transform: scale(1.3);
}

.snap-nav__dot--dark {
  background: rgba(0, 0, 0, 0.2) !important;
  border-color: rgba(0, 0, 0, 0.3) !important;
}

.snap-nav__dot--dark.is-active {
  background: var(--color-primary) !important;
}


/* ============================================
   SCROLL CONTINUE HINT (for scrollable sections)
   ============================================ */
.scroll-continue-hint {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  background: linear-gradient(to top, rgba(237, 232, 226, 0.95) 0%, transparent 100%);
  z-index: 10;
}

.scroll-continue-hint.is-visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.scroll-continue-hint svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  animation: gentlePulse 2.5s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}


/* ============================================
   REUSABLE: GOLDEN SEPARATOR LINE
   Thin 1px golden line, centered, 80px wide.
   Used between elements in El Gran Dia section.
   ============================================ */
.golden-separator {
  width: 80px;
  height: 1px;
  background-color: var(--color-golden);
  margin: 0 auto;
  opacity: 0;
  transition: opacity var(--v1-fade-slow);
}

.golden-separator.is-visible {
  opacity: 1;
}


/* ============================================
   PAGE 1: HERO (#presentacion)
   Dark bordo background. Centered vertical stack.
   Pure typography. Golden line draws from center.
   ============================================ */
.section--hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  padding: var(--content-padding);
  text-align: center;
  position: relative;
}

.hero__content {
  max-width: var(--content-width);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* "NOS CASAMOS" in Cinzel, widely spaced */
.hero__subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  color: var(--color-secondary);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-3xl);
  opacity: 0;
  transition: opacity var(--v1-fade-hero);
}

/* Names container */
.hero__names {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

/* "Fede" and "Lu" in Pinyon Script */
.hero__name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-regular);
  color: var(--color-cream);
  line-height: var(--leading-tight);
  opacity: 0;
  transition: opacity var(--v1-fade-hero) 200ms;
}

/* Golden "&" */
.hero__ampersand {
  font-family: var(--font-display);
  font-size: calc(var(--text-hero) * 0.65);
  color: var(--color-golden);
  line-height: var(--leading-tight);
  opacity: 0;
  transition: opacity var(--v1-fade-hero) 400ms;
}

/* Golden horizontal line - draws from center */
.hero__line {
  width: 100px;
  height: 1px;
  background-color: var(--color-golden);
  margin: var(--space-xl) auto var(--space-2xl);
  transform: scaleX(0);
  transition: transform var(--v1-fade-hero) 600ms;
}

/* Date in Cinzel */
.hero__date {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-secondary);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--v1-fade-hero) 800ms;
}

/* Trigger animations when section is visible */
.section--hero.is-visible .hero__subtitle,
.section--hero.is-visible .hero__name,
.section--hero.is-visible .hero__ampersand,
.section--hero.is-visible .hero__date {
  opacity: 1;
}

.section--hero.is-visible .hero__line {
  transform: scaleX(1);
}

/* Page-load triggered version */
body.is-loaded .section--hero .hero__subtitle,
body.is-loaded .section--hero .hero__name,
body.is-loaded .section--hero .hero__ampersand,
body.is-loaded .section--hero .hero__date {
  opacity: 1;
}

body.is-loaded .section--hero .hero__line {
  transform: scaleX(1);
}

/* "Desliza" swipe indicator */
.swipe-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-secondary);
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.swipe-indicator__text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.swipe-indicator svg {
  width: 18px;
  height: 18px;
  animation: gentlePulse 2.5s ease-in-out infinite;
}


/* ============================================
   PAGE 2: EL GRAN DIA (#el-gran-dia)
   V2-style layout (video top ~48vh) with V3-style
   centered text positioning below.
   ============================================ */
.section--venue-v2 {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-cream);
}

/* Video: full width, top half */
.venue-v2__video-col {
  width: 100%;
  height: 48vh;
  height: 48dvh;
  position: relative;
  overflow: hidden;
  background: var(--color-cream);
  flex-shrink: 0;
}

.venue-v2__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info: bottom half, centered (V3 style) */
.venue-v2__info-col {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-lg) var(--content-padding) var(--space-2xl);
  opacity: 0;
  transition: opacity var(--v1-fade-slow);
}

.venue-v2__info-col.is-visible {
  opacity: 1;
}

.venue-v2__info-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.venue-v2__venue {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: var(--weight-regular);
  letter-spacing: 0.02em;
  color: var(--color-primary);
  line-height: 1.1;
}

.venue-v2__datetime {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  color: var(--color-accent);
  letter-spacing: var(--tracking-wide);
}

.venue-v2__btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  padding: 0.7rem 2rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--border-radius-pill);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  background: transparent;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.venue-v2__btn-calendar:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.venue-v2__btn-calendar svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.venue-v2__btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 2rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-pill);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  background: transparent;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.venue-v2__btn-maps:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.venue-v2__btn-maps svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.venue-v2__btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 2rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-pill);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  background: transparent;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.venue-v2__btn-ig:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.venue-v2__btn-ig svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================
   DRESS CODE SVG FULLSCREEN
   Light cream/ivory background
   ============================================ */
.snap-section--dress-code {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  background: #470e0e;
  padding: 0;
  overflow: hidden;
}

.dress-code-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dress-code-svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* ============================================
   PAGE 4: FAQ (#faq)
   Cream background. Pure typography.
   Questions separated by thin 1px golden lines.
   No cards, no backgrounds. Just text and lines.
   ============================================ */
.section--faq {
  width: 100%;
  min-height: 100vh;
  background: var(--color-cream);
  padding: var(--space-lg) var(--content-padding);
  padding-top: calc(var(--space-lg) + 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.faq__container {
  max-width: 480px;
  width: 100%;
}

.faq__title {
  font-family: 'Perandory', var(--font-heading), serif;
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  font-weight: normal;
  color: var(--color-primary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--space-sm);
  opacity: 0;
  transition: opacity var(--v1-fade-slow);
}

.faq__title.is-visible {
  opacity: 1;
}

/* Golden line + diamond divider (V3 style) */
.faq__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transition: opacity var(--v1-fade-slow);
}

.faq__divider.is-visible {
  opacity: 1;
}

.faq__divider-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-golden);
  opacity: 0.5;
}

.faq__divider-diamond {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--color-golden);
  transform: rotate(45deg);
  opacity: 0.6;
  flex-shrink: 0;
}

.faq__list {
  display: flex;
  flex-direction: column;
}

/* Each FAQ item: separated by thin 1px golden line */
.faq__item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  opacity: 0;
  transition: opacity var(--v1-fade);
}

.faq__item.is-visible {
  opacity: 1;
}

.faq__item:first-child {
  border-top: 1px solid rgba(212, 175, 55, 0.35);
}

.faq__question {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-sm);
}

.faq__answer {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: var(--color-black);
  line-height: var(--leading-relaxed);
}

.faq__answer strong {
  font-weight: var(--weight-medium);
}


/* ============================================
   PAGE 6: RSVP (#rsvp)
   Root style: clean background, centered form
   ============================================ */
.section--rsvp {
  background: var(--color-cream);
  padding: var(--space-xl) 0;
  position: relative;
}

.section--rsvp .section__title {
  font-family: 'Perandory Condensed', serif;
  font-size: clamp(2rem, 7vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

/* ----- Form ----- */
.form {
  max-width: 560px;
  margin: 0 auto;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__group--submit {
  margin-top: var(--space-2xl);
  text-align: center;
}

.form__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--weight-regular);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--color-secondary);
  border-radius: 0.5rem;
  background: var(--color-cream);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-black);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-accent);
}

.form__input.has-error,
.form__textarea.has-error {
  border-color: #c0392b;
}

.form__input--dropdown {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B6660' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 20px;
  padding-right: 2.5rem;
}

.form__input--hidden {
  display: none;
  margin-top: 0.75rem;
}

.form__input--hidden.is-visible {
  display: block;
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

/* Radio buttons: card style with circular indicator */
.form__radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.form__radio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem var(--space-md);
  border: 1px solid var(--color-secondary);
  border-radius: 0.5rem;
  transition: all var(--transition-fast);
  flex: 1;
  min-width: 150px;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
}

.form__radio:hover {
  border-color: var(--color-primary-light);
  background: var(--color-cream);
}

.form__radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form__radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-secondary);
  border-radius: 9999px;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-fast);
}

.form__radio-custom::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--color-primary);
  border-radius: 9999px;
  transform: scale(0);
  transition: transform var(--transition-fast);
}

.form__radio input:checked + .form__radio-custom {
  border-color: var(--color-primary);
}

.form__radio input:checked + .form__radio-custom::after {
  transform: scale(1);
}

.form__radio input:focus-visible + .form__radio-custom {
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.2);
}

/* Conditional fields */
.form__conditional {
  display: none;
}

.form__conditional.is-visible {
  display: block;
  animation: slideDown 300ms ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Suggestions dropdown */
.form__suggestions {
  position: fixed;
  background: #FFFFFF;
  border: 1px solid #D8D9D7;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 99999;
  max-height: 200px;
  overflow-y: auto;
}

.form__suggestions.is-visible {
  display: block;
}

.form__suggestions-item {
  padding: 0.75rem var(--space-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  background: #FFFFFF;
  color: #4A3F37;
}

.form__suggestions-item:hover,
.form__suggestions-item:focus {
  background: #F2F2F0;
  color: #2C1810;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-heading);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-cream);
  border-color: var(--color-primary);
  position: relative;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.3);
}

.btn--primary.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

.btn--primary.is-loading span {
  visibility: hidden;
}

.btn--primary.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-cream);
  border-top-color: transparent;
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error / Success Messages */
.form__error-message {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem var(--space-md);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 0.5rem;
  color: #dc2626;
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

.form__success {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.form__success h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  color: var(--color-primary);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.form__success p {
  font-family: var(--font-body);
  font-weight: var(--weight-light);
  color: var(--color-accent);
}


/* ============================================
   PAGE 5: REGALOS - "Nos Vamos a Africa"
   Awning/curtain design matching root version.
   Bordo striped awnings top & bottom,
   cream card with olive text, serif typography.
   ============================================ */
.regalos-africa {
  --ra-bordo: #470e0e;
  --ra-bordo-dark: #380a0a;
  --ra-bordo-stripe: #3a0808;
  --ra-cream: #F5F0E8;
  --ra-cream-dark: #E8E0D4;
  --ra-olive: #5C6B4F;
  --ra-olive-light: #6B7A5E;
  --ra-bordo-text: #7B1E2D;

  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ra-bordo);
  position: relative;
  overflow: hidden;
}

/* --- Awning (striped curtain) --- */
.regalos-africa__awning {
  background: repeating-linear-gradient(
    90deg,
    var(--ra-bordo) 0px,
    #5c1515 25px,
    var(--ra-bordo) 50px,
    var(--ra-bordo-stripe) 52px,
    var(--ra-bordo) 54px
  );
  flex: 0 0 auto;
  min-height: 120px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.regalos-africa__awning--bottom {
  justify-content: flex-start;
}

/* Scallop edge (SVG) */
.regalos-africa__scallop {
  display: block;
  width: 100%;
  height: 22px;
  color: var(--ra-cream);
  flex-shrink: 0;
}

/* --- Dark Card --- */
.regalos-africa__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--ra-cream);
  padding: 3.5rem 1.5rem 1.2rem;
  text-align: center;
  gap: 1rem;
}

/* Scallop edges match dark card */
.regalos-africa__scallop {
  color: var(--ra-cream);
}

/* Title group */
.regalos-africa__title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.regalos-africa__pretitle {
  font-family: 'Cinzel', var(--font-heading), serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ra-olive);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.regalos-africa__title {
  font-family: 'Pinyon Script', var(--font-display), cursive;
  font-size: 4.2rem;
  color: var(--ra-olive);
  line-height: 1;
  margin-top: -0.15rem;
}

.regalos-africa__deco {
  font-size: 0.55rem;
  color: var(--ra-olive-light);
  letter-spacing: 0.5em;
  margin-top: 0.2rem;
  opacity: 0.5;
}

/* Message text */
.regalos-africa__message {
  font-family: 'Cinzel', var(--font-heading), serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ra-olive);
  text-transform: uppercase;
  line-height: 1.9;
  letter-spacing: 0.05em;
  max-width: 340px;
}

/* Icons row */
.regalos-africa__icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.regalos-africa__icon-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.regalos-africa__icon-row svg {
  width: 38px;
  height: 38px;
  color: var(--ra-bordo-text);
}

.regalos-africa__icons-label {
  font-family: 'Cinzel', var(--font-heading), serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ra-bordo-text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Data section */
.regalos-africa__data {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.regalos-africa__data-line {
  font-family: 'Cinzel', var(--font-heading), serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ra-bordo-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.regalos-africa__data-label {
  font-weight: 500;
}

.regalos-africa__data-titular {
  margin-top: 0.1rem;
  opacity: 0.7;
}

/* Copy button (subtle, matches dark card aesthetic) */
.btn--copy {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(92, 107, 79, 0.3);
  border-radius: 20px;
  font-family: 'Cinzel', var(--font-heading), serif;
  font-size: 0.45rem;
  font-weight: 400;
  color: var(--ra-olive);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn--copy:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--ra-olive);
}

.btn--copy.is-copied {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--ra-olive);
}

/* Ground/soil layer - positioned above bottom curtain */
.regalos-africa__ground {
  position: absolute;
  bottom: 14%;
  left: 0;
  right: 0;
  height: 20%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.regalos-africa__soil {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Static tree on the right */
.regalos-africa__tree {
  position: absolute;
  bottom: 30%;
  right: -2%;
  width: 30vw;
  max-width: 180px;
  height: auto;
  pointer-events: none;
  z-index: 5;
}

/* Safari animation (Animals + Jeep) */
/* Position relative to curtain: bottom curtain shows 140px when open */
.regalos-africa__safari {
  position: absolute;
  bottom: 90px; /* Just above visible curtain area */
  right: -35%;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
  animation: safari-drive 8s linear infinite;
  animation-play-state: paused;
  z-index: 10;
}

.regalos-africa__safari.is-driving {
  animation-play-state: running;
}

/* Animal containers - only one visible at a time (controlled by JS) */
.safari-animal {
  width: 12vw;
  min-width: 60px;
  max-width: 100px;
  height: auto;
  align-self: flex-end;
  margin-bottom: 23%; /* Align animal feet with jeep wheels */
  display: none;
}

.safari-animal.is-active {
  display: block;
}

.safari-animal object {
  width: 100%;
  height: auto;
  display: block;
}

/* Elephant needs more space */
.safari-animal--elephant {
  width: 14vw;
  max-width: 120px;
}

/* Rhino needs more space */
.safari-animal--rhino {
  width: 13vw;
  max-width: 110px;
}

/* Buffalo needs adjustment */
.safari-animal--buffalo {
  width: 13vw;
  max-width: 110px;
}

.regalos-africa__jeep {
  width: 20vw;
  min-width: 100px;
  max-width: 180px;
  height: auto;
  flex-shrink: 0;
}

@keyframes safari-drive {
  0% { transform: translateX(0) scaleX(1); }
  35% { transform: translateX(-600%) scaleX(1); }
  40% { transform: translateX(-600%) scaleX(-1); }
  75% { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}


/* ============================================
   ANIMATIONS (V1: ONLY FADES)
   No translateY, no scale, no slides.
   Elements simply fade in slowly (800-1200ms).
   ============================================ */

/* Base fade for scroll-triggered elements */
.animate-on-scroll {
  opacity: 0;
  transition: opacity var(--v1-fade);
}

.animate-on-scroll.is-visible {
  opacity: 1;
}

/* Staggered children (fade only) */
.animate-on-scroll.is-visible .animate-child:nth-child(1) { transition-delay: 0ms; }
.animate-on-scroll.is-visible .animate-child:nth-child(2) { transition-delay: 200ms; }
.animate-on-scroll.is-visible .animate-child:nth-child(3) { transition-delay: 400ms; }
.animate-on-scroll.is-visible .animate-child:nth-child(4) { transition-delay: 600ms; }
.animate-on-scroll.is-visible .animate-child:nth-child(5) { transition-delay: 800ms; }


/* ============================================
   RESPONSIVE
   ============================================ */

/* Small phones */
@media (max-width: 360px) {
  :root {
    --content-padding: 1.25rem;
  }

  .hero__names {
    gap: 0.25rem;
  }

  .regalos-africa__data-line {
    font-size: 0.55rem;
  }

  .venue-v2__video-col {
    height: 45vh;
    height: 45dvh;
  }
}

/* Tablets */
@media (min-width: 768px) {
  .snap-nav {
    right: 1.5rem;
  }

  .snap-nav__dot {
    width: 9px;
    height: 9px;
  }

  .form__radio-group {
    gap: var(--space-lg);
  }

  .regalos-africa__card {
    padding: 2rem;
    gap: 1.2rem;
  }

  .venue-v2__video-col {
    height: 50vh;
    height: 50dvh;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .snap-nav {
    right: 2rem;
    gap: 1rem;
  }

  .snap-nav__dot {
    width: 10px;
    height: 10px;
  }

  .music-btn {
    width: 44px;
    height: 44px;
    bottom: 2rem;
    left: 2rem;
  }

  /* No hover scale on video - V1 avoids transforms */
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .section--hero .hero__content {
    gap: 0;
  }

  .hero__subtitle {
    margin-bottom: var(--space-lg);
  }

  .hero__line {
    margin: var(--space-md) auto var(--space-lg);
  }

  .swipe-indicator {
    bottom: 0.5rem;
  }

  .venue__content {
    gap: var(--space-lg);
  }
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  .music-btn {
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    left: calc(1.5rem + env(safe-area-inset-left));
  }

  .snap-nav {
    right: calc(1rem + env(safe-area-inset-right));
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .snap-container {
    scroll-behavior: auto;
  }
}


/* ============================================
   OVERRIDE: Match main version hero, music btn, swipe indicator
   These styles override version-specific hero styles
   to ensure Page 1 looks identical to the main version.
   ============================================ */

/* Hero Section - main version look */
.section--hero {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  background: var(--color-cream) !important;
  padding: 0 !important;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  text-align: center;
}

/* Background video */
.hero__bg-video {
  position: absolute;
  top: 5%;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 14, 17, 0.45);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #F2F2F0;
  padding: clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
}

.hero__subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.7rem, 0.65rem + 0.3vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  opacity: 1;
  transform: none;
  transition: none;
}

.hero__names-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.section--hero .hero__name {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 500;
  font-style: normal;
  color: #F2F2F0;
  line-height: 1;
  letter-spacing: 0.05em;
  opacity: 1;
  transform: none;
  transition: none;
  display: block;
  text-align: center;
}

.hero__date-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.875rem, 0.8rem + 0.5vw, 1rem);
  font-weight: 400;
  font-style: normal;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Swipe indicator - main version (circle with border, bottom-left) */
.swipe-indicator {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  transform: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  gap: 0;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
  transition: none;
  animation: swipeHint 2s ease-in-out infinite;
  pointer-events: none;
}

.swipe-indicator__text {
  display: none;
}

.swipe-indicator svg {
  width: 20px;
  height: 20px;
  animation: none;
}

@keyframes swipeHint {
  0%, 100% { opacity: 0.6; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* Music button - main version (bottom-right, 56px circle, bordo bg) */
.music-btn {
  position: fixed !important;
  bottom: 1rem !important;
  right: 1.5rem !important;
  left: auto !important;
  top: auto !important;
  z-index: 500 !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 9999px !important;
  background: #3D1519 !important;
  color: #F2F2F0 !important;
  border: none !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.music-btn:hover {
  background: #2A0E11 !important;
  transform: scale(1.05) !important;
}

.music-btn:active {
  transform: scale(0.95) !important;
}

.music-icon {
  width: 24px !important;
  height: 24px !important;
}

.music-icon--on {
  display: none;
}

.music-icon--off {
  display: block;
}

.music-btn.is-playing .music-icon--off {
  display: none !important;
}

.music-btn.is-playing .music-icon--on {
  display: block !important;
}
