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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, sans-serif;
  background: #ffffff;
  color: #1e120d;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============ BANDA LATERAL (parallax: cubre toda la página, se mueve más lento que el scroll) ============ */
.side-band-track {
  position: fixed;
  top: 0;
  right: 0;
  width: 60px;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 20;
}

.side-band {
  position: absolute;
  top: -60vh;
  left: 0;
  width: 60px;
  height: 220vh; /* buffer grande para cubrir todo el recorrido del parallax */
  display: flex;
  justify-content: center;
  will-change: transform;
}

.side-band img {
  height: 100%;
  width: auto;
  object-fit: cover;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .side-band-track { width: 30px; }
  .side-band { width: 30px; }
}

@media (max-width: 480px) {
  .side-band-track { display: none; }
}

/* ============ HERO: video + máscara "2" ============ */
.hero {
  position: relative;
  height: 280vh; /* espacio de scroll para animar la máscara */
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #701a35;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Capa guinda con hueco en forma de "2" (clip-path SVG) que se agranda con el scroll */
.mask-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #701a35;
  clip-path: url(#revealClip);
  will-change: clip-path, opacity;
  transition: opacity 0.4s ease-out;
}

.clip-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mask-overlay.fully-revealed {
  opacity: 0;
}

.hero-bird {
  position: absolute;
  top: 0;
  left: 0;
  width: 84px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform, opacity;
  z-index: 6;
}

.scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 5;
  transition: opacity 0.3s ease-out;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.6);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============ BLOQUES DE CONTENIDO ============ */
.content-block {
  position: relative;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  background: #ffffff;
}

.content-invite {
  padding-top: 100px;
  padding-bottom: 40px;
}

.content-fecha {
  padding-top: 20px;
  padding-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 900px;
  width: 100%;
}

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

/* ============ STAGGER DE LÍNEAS (invitación) ============ */
.reveal-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  width: 100%;
  gap: 4px;
}

.reveal-line {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* margen extra antes del nombre (coincide con el espacio en blanco del arte original) */
.reveal-lines img:nth-child(5) {
  margin-top: 28px;
}

/* ============ ODÓMETRO DEL "17" ============ */
.date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.date-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
  justify-content: center;
}

.date-num-wrap {
  position: relative;
  display: inline-block;
}

.odometer {
  display: flex;
  height: clamp(90px, 15vw, 160px);
  overflow: hidden;
}

.odometer-digit {
  width: clamp(60px, 9.5vw, 108px);
  height: 100%;
  overflow: hidden;
}

.odometer-reel {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 2.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.odometer-reel.is-spinning {
  filter: blur(1.5px);
}

.odometer-reel img {
  height: clamp(90px, 15vw, 160px);
  width: 100%;
  object-fit: contain;
  display: block;
}

.texto-sept {
  height: clamp(90px, 15vw, 160px);
  width: auto;
}

.texto-hora-lugar {
  width: 100%;
  max-width: 620px;
  height: auto;
}

@media (max-width: 640px) {
  .date-row { gap: 10px; }
}

/* ============ CTA: botones dorados ============ */
.content-cta {
  padding-top: 30px;
  padding-bottom: 50px;
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-gold-wrap {
  position: relative;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(135deg, #f6e2b3 0%, #b8860b 22%, #6b4c14 45%, #dec18f 60%, #f6e2b3 78%, #a5730f 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.btn-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 16px 34px;
  background: linear-gradient(155deg, #9b1136 0%, #701a35 45%, #520f26 100%);
  color: #f7e9c9;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-gold span {
  position: relative;
}

@media (max-width: 480px) {
  .cta-wrap { gap: 14px; }
  .btn-gold { padding: 14px 24px; }
}

@media (max-width: 768px) {
  .content-block {
    padding: 32px 24px;
  }

  .content-invite {
    padding-top: 40px;
    padding-bottom: 16px;
  }

  .content-fecha {
    padding-top: 8px;
    padding-bottom: 0;
  }

  .content-cta {
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .reveal-lines {
    gap: 2px;
  }

  .date-block {
    gap: 10px;
  }

  .reveal-lines img:nth-child(5) {
    margin-top: 14px;
  }
}

/* ============ FOOTER (sobremontado sobre el final del contenido) ============ */
.site-footer {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: clamp(-70px, -5vw, -24px);
  z-index: 10;
}

.site-footer img {
  width: 100%;
  height: auto;
  display: block;
}
