:root {
  /* Brand Palette (OKLCH) */
  --ink: oklch(22.8% 0.044 146.5);         /* Deep Pine - #12241a */
  --forest: oklch(29.5% 0.052 145);        /* Forest Green - #1d3627 */
  --forest-deep: oklch(18.5% 0.035 145);   /* Dark Forest - #0f2015 */
  
  --sage: oklch(89.5% 0.038 142);          /* Muted Sage - #dfe4d7 */
  --sage-soft: oklch(95.5% 0.012 142);     /* Soft Sage Tint - #f3f5ef */
  --ivory: oklch(96.8% 0.012 80);          /* Soft Ivory - #faf7f1 */
  --paper: oklch(98.8% 0.006 82);          /* Warm Textured Paper - #fdfcf9 */
  
  --gold: oklch(74.5% 0.078 88);           /* Champagne Gold - #cbb37e */
  --gold-dark: oklch(62% 0.065 85);        /* Antique Gold - #a99361 */
  --blush: oklch(88.5% 0.042 42);          /* Romantic Blush - #edd0c9 */
  --terracotta: oklch(65.5% 0.082 48);     /* Wax Seal Terracotta - #c37b6f */
  
  --muted: oklch(48% 0.02 145);            /* Muted Slate Green - #5c6c60 */
  --line: oklch(22.8% 0.044 146.5 / 0.12); /* Hairline separator */
  
  /* Fonts */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", sans-serif;
  
  /* Shadows & Radius */
  --shadow-soft: 0 12px 36px oklch(18.5% 0.035 145 / 0.06);
  --shadow-medium: 0 20px 50px oklch(18.5% 0.035 145 / 0.12);
  --shadow-wax: 0 4px 12px oklch(18.5% 0.035 145 / 0.22), inset 0 2px 4px rgba(255,255,255,0.25);
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, oklch(90% 0.035 142 / 0.4), transparent 35rem),
    radial-gradient(circle at 90% 78%, oklch(88% 0.042 42 / 0.3), transparent 35rem),
    #e7e7e0;
  font-family: var(--sans);
  font-size: 108%;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; outline: none; }
button { cursor: pointer; border: 0; background: transparent; }
img { display: block; max-width: 100%; height: auto; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--forest);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform 0.25s ease;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* Ambient background */
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient__orb { position: absolute; width: 36rem; height: 36rem; border-radius: 50%; filter: blur(90px); opacity: 0.18; }
.ambient__orb--one { top: -14rem; left: -14rem; background: var(--sage); }
.ambient__orb--two { right: -14rem; bottom: -14rem; background: var(--blush); }

/* Phone Shell Container */
.phone-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 80px oklch(18.5% 0.035 145 / 0.18);
  transition: border-radius 0.3s, margin 0.3s, min-height 0.3s;
}
@media (min-width: 440px) {
  .phone-shell {
    border-radius: var(--radius-md);
    margin-block: 40px;
    min-height: calc(100dvh - 80px);
    border: 1px solid oklch(22.8% 0.044 146.5 / 0.08);
  }
}
.phone-shell[aria-hidden="true"] { visibility: hidden; height: 100vh; }

.section-dark {
  color: var(--ivory);
  background-color: var(--forest-deep);
  background-image: url('bg_dark_watercolor.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-sage {
  background-color: var(--sage-soft);
  background-image: url('bg_sage_watercolor.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.paper-section {
  background-color: var(--paper);
  background-image: url('bg_light_watercolor.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Common Typography */
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.section-dark .eyebrow { color: var(--gold); }

.section-title {
  margin: 0;
  font: 600 2.6rem/1.05 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-title em { font-style: italic; font-weight: 500; color: var(--gold-dark); }
.section-dark .section-title em { color: var(--gold); }

.section-heading { text-align: center; margin-bottom: 32px; }
.section-heading > p:last-child {
  max-width: 320px;
  margin: 16px auto 0;
  color: var(--muted);
  font: 500 1.15rem/1.6 var(--serif);
}
.section-dark .section-heading > p:last-child { color: oklch(96.8% 0.012 80 / 0.75); }

/* Buttons & Inputs */
.outline-button, .light-button, .solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 0 1px currentColor;
}
.outline-button { color: var(--forest); background: transparent; }
.outline-button:hover, .outline-button:focus-visible { color: var(--paper); background: var(--forest); }
.outline-button svg { width: 16px; margin-left: 10px; transition: transform 0.3s ease; }
.outline-button:hover svg { transform: translateX(4px); }

.light-button { color: var(--paper); background: var(--forest); border: 0; box-shadow: none; }
.light-button:hover, .light-button:focus-visible { background: var(--forest-deep); transform: translateY(-1px); }

.solid-button { color: var(--paper); background: var(--gold-dark); border: 0; box-shadow: none; }
.solid-button:hover { background: var(--gold); }

.text-button {
  display: inline-block;
  min-height: 40px;
  margin-top: 16px;
  padding: 0;
  border-bottom: 1px solid currentColor;
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s, transform 0.3s;
}
.text-button:hover { color: var(--gold-dark); transform: translateY(-1px); }

/* --- 1. INTRO & 3D ENVELOPE --- */
.intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  color: var(--ink);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}
.intro::before {
  position: absolute;
  z-index: 1;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: min(calc(100% - 36px), 394px);
  border: 1px solid oklch(22.8% 0.044 146.5 / 0.15);
  border-radius: var(--radius-md);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}
.intro::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, 430px);
  background: radial-gradient(circle at 15% 16%, oklch(90% 0.035 142 / 0.25), transparent 35%), radial-gradient(circle at 85% 80%, oklch(88% 0.042 42 / 0.2), transparent 35%);
  background-color: var(--ivory);
  box-shadow: 0 0 80px oklch(18.5% 0.035 145 / 0.15);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 0;
}
.intro.is-open { opacity: 0; visibility: hidden; }
.intro__frame { position: relative; z-index: 2; width: min(100%, 430px); text-align: center; }
.intro h1 {
  margin: 0;
  font: italic 500 clamp(2.8rem, 12vw, 4.2rem)/0.9 var(--serif);
  letter-spacing: -0.03em;
}
.intro h1 span { color: var(--gold-dark); font-size: 0.85em; font-style: normal; }
.intro__date { margin: 16px 0 28px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.intro__media-slot {
  width: min(78vw, 310px);
  aspect-ratio: 1.4;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro__envelope {
  width: 80%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
  animation: envelopeBreathe 4s ease-in-out infinite;
  cursor: pointer;
}
@keyframes envelopeBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}
.intro__hint { margin: 24px 0 0; color: var(--muted); font: italic 1.05rem var(--serif); opacity: 0.8; }

.botanical {
  position: absolute;
  top: -130px;
  right: -30px;
  width: 160px;
  color: oklch(48% 0.05 140 / 0.15);
  transform: rotate(12deg);
  pointer-events: none;
}

/* Trigger button style */
.open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--border-subtle);
  color: var(--ink);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
  margin-top: 10px;
}
.open-button:hover, .open-button:focus-visible { color: var(--paper); background: var(--forest); border-color: var(--forest); }
.open-button svg { width: 16px; margin-left: 14px; transition: transform 0.3s; }
.open-button:hover svg { transform: translateX(4px); }


/* --- 2. HERO SECTION --- */
.hero { position: relative; min-height: 100dvh; overflow: hidden; }
.hero__photo {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1000&q=90") center/cover;
  transform: scale(1.06);
  z-index: 0;
}
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,28,20,0.2) 0%, rgba(15,28,20,0.1) 40%, oklch(18.5% 0.035 145 / 0.76) 100%); z-index: 1; }
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px 44px;
  text-align: center;
  z-index: 2;
}
.hero__content h2 {
  margin: 0;
  font: italic 500 4.2rem/0.78 var(--serif);
  letter-spacing: -0.04em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  text-wrap: balance;
}
.hero__content h2 span { color: var(--gold); font-size: 0.72em; font-style: normal; }
.hero__line { width: 1px; height: 48px; margin: 24px 0 16px; background: var(--border-gold); }
.hero__date { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.28em; }
.hero__place { margin: 8px 0 0; font: italic 1.1rem var(--serif); color: var(--sage); }

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 48px;
  color: oklch(96.8% 0.012 80 / 0.8);
  text-decoration: none;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-cue svg { width: 16px; margin-top: 6px; animation: bounce 2s infinite; }


/* --- 3. WELCOME & STORY --- */
.welcome { padding: 96px 32px 100px; text-align: center; }
.leaf-mark { width: 130px; margin: 0 auto 24px; }
.welcome .body-copy { max-width: 320px; margin: 28px auto; color: var(--muted); font: 500 1.15rem/1.7 var(--serif); }
.signature { margin: 0; color: var(--gold-dark); font: italic 1.5rem var(--serif); }

.story { padding: 96px 20px 100px; }
.story .section-heading > p:last-child { margin-top: 12px; }
/* Gallery Carousel Styles */
.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
  margin-top: 36px;
}
.gallery-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 12px;
}
.gallery-carousel::-webkit-scrollbar {
  display: none;
}
.gallery-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  margin: 0;
}
.gallery-carousel__slide .story-card {
  width: min(100%, 280px);
  transform: scale(0.95) rotate(var(--rot, 0deg));
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-inline: auto;
}
.gallery-carousel__slide:nth-child(odd) .story-card {
  --rot: -2deg;
}
.gallery-carousel__slide:nth-child(even) .story-card {
  --rot: 2deg;
}
.gallery-carousel__slide.is-visible-slide .story-card {
  transform: scale(1) rotate(0deg);
  box-shadow: var(--shadow-medium);
}

/* Controls */
.carousel-control {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--forest);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0.82;
  cursor: pointer;
  border: 1px solid var(--line);
}
.carousel-control:hover, .carousel-control:focus-visible {
  opacity: 1;
  background: var(--sage-soft);
  color: var(--ink);
  transform: translateY(-50%) scale(1.08);
}
.carousel-control svg {
  width: 20px;
  height: 20px;
}
.carousel-control--prev { left: 8px; }
.carousel-control--next { right: 8px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(98.8% 0.006 82 / 0.35);
  padding: 0;
  border: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.is-active {
  background: var(--gold);
  transform: scale(1.3);
}
.story-card {
  margin: 0;
  padding: 8px 8px 16px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  border: 1px solid oklch(22.8% 0.044 146.5 / 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}
.story-card--lower { transform: translateY(28px); }
.story-card img {
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
  filter: saturate(0.85) sepia(0.04);
  transition: filter 0.4s ease;
}
.story-card:hover img { filter: saturate(1) sepia(0); }
.story-card figcaption { padding: 12px 2px 0; color: var(--muted); font: italic 0.88rem/1.3 var(--serif); text-align: center; }
.story-card figcaption span { display: block; margin-bottom: 4px; color: var(--ink); font: 600 0.62rem var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }

/* Midnight Sky Background (Galería de fotos) */
.story--sky {
  position: relative;
  overflow: hidden;
  background-color: #050505;
  color: var(--paper);
}
.story--sky .sky-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: #050505;
  z-index: 0;
  pointer-events: none;
}
.story--sky .story__content {
  position: relative;
  z-index: 2;
}

/* Generic star layer style */
.story--sky .stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  pointer-events: none;
}

/* Layer 1: Small fast twinkling stars - High density */
.story--sky .stars-1 {
  background-image: radial-gradient(1px 1px at 10% 10%, #fff, transparent),
    radial-gradient(1px 1px at 30% 20%, #fff, transparent),
    radial-gradient(1px 1px at 50% 50%, #fff, transparent),
    radial-gradient(1px 1px at 70% 30%, #fff, transparent),
    radial-gradient(1px 1px at 90% 10%, #fff, transparent);
  background-size: 200px 200px;
  animation: twinkle 3s ease-in-out infinite;
}

/* Layer 2: Medium slower twinkling stars */
.story--sky .stars-2 {
  background-image: radial-gradient(1.5px 1.5px at 20% 40%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60% 85%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 65%, #fff, transparent);
  background-size: 300px 300px;
  animation: twinkle 5s ease-in-out infinite 1s;
}

/* Layer 3: Larger, very slow twinkling stars */
.story--sky .stars-3 {
  background-image: radial-gradient(2px 2px at 40% 70%, #fff, transparent),
    radial-gradient(2px 2px at 10% 80%, #fff, transparent),
    radial-gradient(2px 2px at 80% 40%, #fff, transparent);
  background-size: 400px 400px;
  animation: twinkle 7s ease-in-out infinite 2s;
}

/* Meteor / Shooting Star Layer */
.story--sky .meteor {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.5);
  opacity: 0;
  pointer-events: none;
}

/* Meteor Tail */
.story--sky .meteor::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, #fff, transparent);
}

/* Meteor Instances with staggered starts */
.story--sky .m1 {
  top: 10%;
  left: 110%;
  animation: shoot 8s linear infinite;
}
.story--sky .m2 {
  top: 30%;
  left: 110%;
  animation: shoot 12s linear infinite 4s;
}
.story--sky .m3 {
  top: 50%;
  left: 110%;
  animation: shoot 10s linear infinite 2s;
}

/* The Moon */
.story--sky .moon {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 8px 8px 0 0 #fdfbd3;
  filter: drop-shadow(0 0 10px rgba(253, 251, 211, 0.4));
  z-index: 1;
}

/* Star animations */
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes shoot {
  0% {
    transform: translateX(0) translateY(0) rotate(-35deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  15% {
    transform: translateX(-1500px) translateY(1000px) rotate(-35deg);
    opacity: 0;
  }
  100% {
    transform: translateX(-1500px) translateY(1000px) rotate(-35deg);
    opacity: 0;
  }
}

/* Editorial overrides for midnight sky readability */
.story--sky .section-heading > p:last-child {
  color: oklch(96.8% 0.012 80 / 0.75);
}
.story--sky .section-title {
  color: var(--paper);
}
.story--sky .eyebrow {
  color: var(--gold);
}

/* Quote Section */
.quote-section { padding: 0; position: relative; overflow: hidden; }
.bible-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.bible-card img {
  width: 100%;
  height: auto;
  display: block;
}


/* --- 4. TIMELINE (ITINERARIO) --- */
.schedule { padding: 96px 20px 105px; }
.timeline-v2 {
  position: relative;
  margin-top: 48px;
  padding-block: 20px;
}
.timeline-v2::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--ink);
  transform: translateX(-50%);
  opacity: 0.25;
}

.timeline-v2__item {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  gap: 16px;
  position: relative;
  margin-bottom: 48px;
}

.timeline-v2__item--left .timeline-v2__media {
  grid-column: 1;
  justify-self: end;
}
.timeline-v2__item--left .timeline-v2__dot {
  grid-column: 2;
}
.timeline-v2__item--left .timeline-v2__content {
  grid-column: 3;
  justify-self: start;
  text-align: center;
}

.timeline-v2__item--right .timeline-v2__content {
  grid-column: 1;
  justify-self: end;
  text-align: center;
}
.timeline-v2__item--right .timeline-v2__dot {
  grid-column: 2;
}
.timeline-v2__item--right .timeline-v2__media {
  grid-column: 3;
  justify-self: start;
}

.timeline-v2__content time {
  display: block;
  font: 400 1.25rem var(--serif);
  color: var(--ink);
  margin-bottom: 2px;
}

.timeline-v2__divider {
  font-size: 0.65rem;
  color: var(--gold-dark);
  margin-bottom: 6px;
  letter-spacing: 0.1em;
}

.timeline-v2__content h3 {
  margin: 0 0 4px;
  font: 600 0.9rem var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--forest-deep);
}

.timeline-v2__content p {
  margin: 0;
  font: italic 0.88rem/1.3 var(--serif);
  color: var(--muted);
}

.timeline-v2__media {
  position: relative;
  width: clamp(70px, 20vw, 95px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  mix-blend-mode: multiply;
}

.timeline-v2__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
  transition: filter 0.4s ease;
  z-index: 2;
  animation: timelineBreathe 4s ease-in-out infinite;
}

.timeline-v2__glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, oklch(74.5% 0.078 88 / 0.4) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 1;
  transform: scale(0.8);
}

.timeline-v2__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  z-index: 3;
  margin-inline: auto;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover Light Effect */
.timeline-v2__item:hover .timeline-v2__glow {
  opacity: 1;
  transform: scale(1.1);
}
.timeline-v2__item:hover .timeline-v2__media {
  transform: scale(1.08) translateY(-4px);
}
.timeline-v2__item:hover .timeline-v2__img {
  filter: drop-shadow(0 12px 24px rgba(199, 176, 124, 0.45));
}
.timeline-v2__item:hover .timeline-v2__dot {
  background: var(--gold-dark);
  transform: scale(1.4);
  box-shadow: 0 0 12px var(--gold);
}

@keyframes timelineBreathe {
  0%, 100% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.03);
  }
}


/* --- 5. VENUE (EL LUGAR) --- */
.venue { padding: 96px 20px; }
.venue-grid {
  display: grid;
  gap: 36px;
  margin-top: 36px;
}
.venue-card {
  margin-top: 0;
  padding: 12px 12px 28px;
  background: var(--paper);
  box-shadow: var(--shadow-medium);
  border-radius: var(--radius-md);
  border: none;
}
.venue-card img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 8px;
}
.venue-card__content { padding: 24px 16px 0; text-align: center; }
.venue-card__content h3 { margin: 4px 0 10px; font: 600 1.55rem/1.2 var(--serif); }
.venue-card__content > p:not(.eyebrow) { margin: 0 0 20px; color: var(--muted); font: 0.95rem/1.5 var(--serif); }

/* Location Pulse Animation */
.location-pulse {
  width: 18px;
  height: 18px;
  position: relative;
  transform: rotate(45deg);
  margin-left: 10px;
  flex-shrink: 0;
}
.location-pulse::before,
.location-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 0 50%;
  background: #0000;
  background-image: radial-gradient(circle 4.5px at 50% 50%, #0000 94%, currentColor);
}
.location-pulse::after {
  animation: location-pulse-anim 1s infinite;
  transform: perspective(134px) translateZ(0px);
}
@keyframes location-pulse-anim {
  to {
    transform: perspective(134px) translateZ(67px);
    opacity: 0;
  }
}
/* Color del pulso al hacer hover en el botón */
.outline-button:hover .location-pulse::before,
.outline-button:hover .location-pulse::after {
  background-image: radial-gradient(circle 4.5px at 50% 50%, #0000 94%, var(--paper));
}


/* Start Music Player Section */
.start-player-hero {
  width: 100%;
  max-width: 340px;
  margin-top: 32px;
  z-index: 3;
}
.start-player__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
  font-family: var(--sans);
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.start-player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}
.start-player__play-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}
.start-player__dashed-ring {
  position: absolute;
  inset: -5px;
  border: 1.5px dashed var(--gold);
  border-radius: 50%;
  opacity: 0.5;
  animation: spin-slow 30s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}
.start-player__play-wrapper.is-playing .start-player__dashed-ring {
  animation-play-state: running;
}
.start-player__play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: oklch(22.8% 0.044 146.5 / 0.65);
  border: 2px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.start-player__play-btn:hover {
  transform: scale(1.06);
  background: oklch(22.8% 0.044 146.5 / 0.85);
  border-color: var(--ivory);
  color: var(--ivory);
}
.start-player__play-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s;
}
.start-player__play-btn svg.start-player__play-icon {
  fill: currentColor;
}
.start-player__play-btn svg.start-player__pause-icon {
  stroke-width: 2.5;
}
.start-player__play-btn:active {
  transform: scale(0.95);
}
.start-player__play-btn .start-player__pause-icon { display: none; }
.start-player__play-btn.is-playing .start-player__pause-icon { display: block; }
.start-player__play-btn.is-playing .start-player__play-icon { display: none; }

.start-player__btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0.55;
  border-radius: 50%;
  background: transparent;
  transition: all 0.25s ease;
}
.start-player__btn svg {
  width: 18px;
  height: 18px;
}
.start-player__btn:hover {
  opacity: 1;
  color: var(--ivory);
  background: rgba(255,255,255,0.06);
  transform: scale(1.08);
}
.start-player__btn--active {
  opacity: 1;
  color: var(--gold-dark);
}

.start-player__progress-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 340px;
  margin-inline: auto;
}
.start-player__time {
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--sans);
  color: var(--gold);
  opacity: 0.9;
  width: 36px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.start-player__progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.22);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.start-player__progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--gold);
  border-radius: 2px;
}
.start-player__progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, background-color 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.start-player__progress-bar:hover .start-player__progress-handle {
  background: var(--ivory);
  transform: translate(-50%, -50%) scale(1.25);
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* --- 6. DRESS CODE & PALETTE --- */
.dress-code { padding: 96px 24px; text-align: center; }
.dress-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.dress-tab {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  color: var(--muted);
}
.dress-tab.is-active {
  color: var(--paper);
  background: var(--forest);
  border-color: var(--forest);
}

.dress-content {
  min-height: 120px;
  margin-bottom: 24px;
  transition: opacity 0.3s ease;
}
.dress-content__pane { display: none; opacity: 0; transition: opacity 0.3s ease; }
.dress-content__pane.is-active { display: block; opacity: 1; }
.dress-content__pane ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 300px;
  text-align: left;
  font-size: 0.84rem;
  line-height: 1.6;
  color: oklch(96.8% 0.012 80 / 0.85);
}
.dress-content__pane li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}
.dress-content__pane li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--gold);
}

.dress-note { margin: 16px auto 0; color: oklch(96.8% 0.012 80 / 0.7); font: italic 0.95rem/1.5 var(--serif); max-width: 320px; }

/* Interactive Palette */
.palette-wrapper {
  margin-top: 32px;
  position: relative;
}
.palette { display: flex; justify-content: center; gap: 12px; }
.palette span {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
  position: relative;
}
.palette span:hover, .palette span.is-active {
  transform: scale(1.22);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border-color: var(--gold);
}

.palette-tip {
  min-height: 48px;
  margin-top: 18px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--gold);
  font-weight: 500;
  max-width: 280px;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.palette-tip.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- 7. GIFTS (REGALOS) & COUNTDOWN --- */
.gifts { padding: 96px 32px 100px; text-align: center; }
.gift-icon { width: 90px; margin: 0 auto 24px; }

.countdown { padding: 96px 20px 100px; text-align: center; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 36px 0 32px; }
.countdown__grid div {
  padding: 16px 2px;
  border: none;
  border-radius: var(--radius-md);
  background: oklch(98.8% 0.006 82 / 0.7);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(4px);
}
.countdown__grid strong { display: block; font: 500 1.85rem var(--serif); font-variant-numeric: tabular-nums; color: var(--forest-deep); }
.countdown__grid span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.54rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }


/* --- 8. RSVP DINÁMICO POR PASOS --- */
.rsvp { padding: 96px 20px 100px; }
.rsvp-form {
  margin-top: 36px;
  padding: 30px 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-medium);
  border-radius: var(--radius-md);
  border: none;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

/* Step indicator */
.rsvp-progress {
  margin-bottom: 24px;
}
.rsvp-progress__bar-bg {
  width: 100%;
  height: 3px;
  background: oklch(22.8% 0.044 146.5 / 0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.rsvp-progress__bar {
  height: 100%;
  background: var(--gold-dark);
  width: 25%;
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.rsvp-progress__text {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* Steps content */
.rsvp-step {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-grow: 1;
}
.rsvp-step.is-active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}
.rsvp-step.slide-left {
  transform: translateX(-20px);
}

.rsvp-step label { display: block; margin: 0 0 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest); }
.rsvp-step label span { color: var(--muted); font-weight: 400; text-transform: none; font-size: 0.65rem; }
.rsvp-step__desc { font-size: 0.82rem; line-height: 1.4; color: var(--muted); margin: 0 0 16px; }

.rsvp-form input[type="text"], .rsvp-form select, .rsvp-form textarea {
  width: 100%;
  min-height: 48px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 16px; /* Prevents iOS auto-zoom */
  transition: border-color 0.3s, box-shadow 0.3s;
}
.rsvp-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6c60' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.rsvp-form textarea { resize: vertical; min-height: 80px; }
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px oklch(29.5% 0.052 145 / 0.08);
}

/* Radio Group custom UI */
.radio-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.radio-card {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}
.radio-card input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.radio-card__ui {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-right: 14px;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s, background-color 0.3s;
}
.radio-card__ui::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--paper);
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}
.radio-card:has(input:checked) {
  border-color: var(--forest);
  background: var(--sage-soft);
}
.radio-card:has(input:checked) .radio-card__ui {
  border-color: var(--forest);
  background: var(--forest);
}
.radio-card:has(input:checked) .radio-card__ui::after {
  transform: scale(1);
}
.radio-card__content { display: flex; flex-direction: column; }
.radio-card__content strong { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.radio-card__content span { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

/* RSVP actions layout */
.rsvp-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.rsvp-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 0 1px currentColor;
}
.rsvp-btn--primary {
  color: var(--paper);
  background: var(--forest);
  border: 0;
  box-shadow: none;
}
.rsvp-btn--primary:hover { background: var(--forest-deep); }
.rsvp-btn--secondary {
  color: var(--muted);
  background: transparent;
}
.rsvp-btn--secondary:hover { color: var(--ink); background: var(--sage-soft); }

/* Validation error state */
.rsvp-form .has-error {
  border-color: oklch(65.5% 0.15 28); /* Red error border */
  box-shadow: 0 0 0 3px oklch(65.5% 0.15 28 / 0.08);
}
.rsvp-error-msg {
  color: oklch(55% 0.15 28);
  font-size: 0.72rem;
  margin-top: -16px;
  margin-bottom: 16px;
  display: block;
}

/* Success Screen inside the box */
.rsvp-success {
  display: none;
  opacity: 0;
  text-align: center;
  padding: 24px 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  transition: opacity 0.5s ease;
}
.rsvp-success.is-visible {
  display: flex;
  opacity: 1;
}
.rsvp-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--forest);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px oklch(29.5% 0.052 145 / 0.08);
}
.rsvp-success__icon svg { width: 30px; height: 30px; }
.rsvp-success h3 { margin: 0 0 10px; font: 600 1.5rem var(--serif); color: var(--forest-deep); }
.rsvp-success p { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--muted); max-width: 280px; }

/* SVG flower falling particles container */
.flower-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}
.petal {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--gold);
  opacity: 0.7;
  border-radius: 50% 0 50% 50%;
  animation: fall 3.5s linear forwards;
}


/* --- 9. PHOTOS & HASHTAG --- */
.photos { padding: 96px 28px 105px; }
.hashtag-card {
  margin-top: 36px;
  padding: 32px 20px;
  border: none;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-soft);
  background: var(--paper);
}
.hashtag-card__camera { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; color: var(--paper); background: var(--forest); }
.hashtag-card__camera svg { width: 20px; }
.hashtag-card p { margin: 0 0 8px; color: var(--muted); font: italic 1.05rem var(--serif); }
.hashtag-card strong { display: block; font: 500 1.5rem var(--serif); color: var(--forest-deep); }
.copy-button { min-height: 40px; margin-top: 16px; border-bottom: 1px solid var(--forest); color: var(--forest); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; transition: all 0.3s; }
.copy-button:hover { color: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); }


/* --- 10. PREDICTOR MULTIMEDIA (PLAYLIST) --- */
.playlist { padding: 96px 20px 105px; text-align: center; }
.player-card {
  display: grid;
  grid-template-columns: 80px 1fr 44px;
  gap: 16px;
  align-items: center;
  margin-top: 36px;
  padding: 16px;
  color: var(--paper);
  background: var(--forest-deep);
  text-align: left;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  border: none;
}

/* Vinyl Rotate Setup */
.player-card__vinyl-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}
.player-card__art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: linear-gradient(135deg, oklch(90% 0.038 142), oklch(72.5% 0.075 88));
  font: italic 1.25rem/0.65 var(--serif);
  text-align: center;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.player-card__art small { font-size: 0.55em; }

.player-card__vinyl {
  position: absolute;
  inset: 2px;
  background: radial-gradient(circle, #222 25%, #111 60%, #333 70%, #000 90%);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: translateX(0);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-card__vinyl::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--paper);
  border-radius: 50%;
  border: 4px solid var(--forest);
}

/* Active Vinyl Animation */
.player-card__vinyl-wrapper.is-playing .player-card__art {
  transform: translateX(-12px);
}
.player-card__vinyl-wrapper.is-playing .player-card__vinyl {
  transform: translateX(18px);
  animation: spin 5s linear infinite;
  animation-delay: 0.5s;
}

.player-card__meta {
  padding-left: 6px;
  overflow: hidden;
  transition: padding-left 0.4s ease;
}
.player-card__vinyl-wrapper.is-playing + .player-card__meta {
  padding-left: 20px; /* Make room for vinyl */
}
.player-card__meta small { display: block; margin-bottom: 4px; color: oklch(96.8% 0.012 80 / 0.5); font-size: 0.5rem; letter-spacing: 0.18em; font-weight: 600; }
.player-card__meta strong { display: block; font: 500 1.05rem/1.2 var(--serif); color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-card__meta span { display: block; margin-top: 4px; color: oklch(96.8% 0.012 80 / 0.65); font-size: 0.62rem; }

/* Progress bar inside player */
.player-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.player-progress__time {
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
  color: oklch(96.8% 0.012 80 / 0.6);
  flex-shrink: 0;
}
.player-progress__bar {
  flex-grow: 1;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
}
.player-progress__fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  border-radius: 99px;
}
.player-progress__handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  background: var(--paper);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.player-progress__bar:hover .player-progress__handle {
  transform: translate(-50%, -50%) scale(1);
}

/* Volume control inside player */
.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.volume-icon {
  width: 12px;
  height: 12px;
  color: oklch(96.8% 0.012 80 / 0.6);
  flex-shrink: 0;
  cursor: pointer;
  stroke-width: 2.2;
}
.volume-slider {
  -webkit-appearance: none;
  width: 60px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  margin: 0;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.play-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--forest);
  background: var(--paper);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.play-button:hover { transform: scale(1.08); background: var(--sage-soft); }
.play-button svg { width: 18px; }
.pause-icon, .play-button.is-playing .play-icon { display: none; }
.play-button.is-playing .pause-icon { display: block; }


/* --- 11. FOOTER & NAVIGATION --- */
.footer { padding: 96px 20px 112px; text-align: center; }
.footer h2 { margin: 12px 0 8px; font: italic 500 3.2rem var(--serif); letter-spacing: -0.04em; }
.footer h2 span { color: var(--gold-dark); font-size: 0.78em; font-style: normal; }
.footer > p:not(.eyebrow) { color: oklch(96.8% 0.012 80 / 0.6); font-size: 0.64rem; letter-spacing: 0.25em; text-transform: uppercase; }
.footer__flourish { margin-top: 32px; color: var(--gold); font-size: 1.85rem; }

.floating-nav {
  position: fixed;
  z-index: 20;
  right: max(12px, calc((100vw - 430px) / 2 + 12px));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid oklch(255% 255% 255% / 0.15);
  border-radius: 99px;
  background: oklch(18.5% 0.035 145 / 0.9);
  box-shadow: 0 10px 30px oklch(18.5% 0.035 145 / 0.25);
  backdrop-filter: blur(12px);
  transform: translateY(120px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.floating-nav.is-visible { transform: translateY(0); }
.floating-nav a { display: grid; place-items: center; min-width: 44px; height: 44px; color: var(--paper); text-decoration: none; border-radius: 50%; transition: background-color 0.2s; }
.floating-nav a:hover { background: rgba(255,255,255,0.08); }
.floating-nav svg { width: 18px; }
.floating-nav .floating-nav__primary {
  min-width: 110px;
  padding-inline: 18px;
  border-radius: 99px;
  color: var(--forest-deep);
  background: var(--paper);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background-color 0.2s, transform 0.2s;
}
.floating-nav .floating-nav__primary:hover {
  background: var(--sage-soft);
  transform: translateY(-1px);
}


/* --- 12. DIALOG MODAL --- */
.modal {
  width: min(calc(100% - 32px), 370px);
  padding: 44px 28px 32px;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-medium);
  text-align: center;
}
.modal::backdrop { background: rgba(12,26,17,0.78); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  transition: color 0.2s;
}
.modal__close:hover { color: var(--ink); }
.modal__close svg { width: 20px; }
.modal h2 { margin: 0 0 16px; font: italic 500 2.3rem/1 var(--serif); color: var(--forest-deep); }
.modal > p:not(.eyebrow) { color: var(--muted); font: 1rem/1.6 var(--serif); }

.bank-details { display: grid; gap: 8px; margin: 24px 0; padding: 20px; background: var(--sage-soft); border-radius: var(--radius-md); border: 1px dashed var(--line); }
.bank-details span { font-size: 0.72rem; color: var(--muted); }
.bank-details strong { font: 600 1.2rem var(--serif); color: var(--forest-deep); }
.bank-details code { font-size: 1.05rem; font-family: monospace; background: #fff; padding: 4px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }

.toast {
  position: fixed;
  z-index: 200;
  top: 24px;
  left: 50%;
  max-width: calc(100% - 40px);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  color: var(--paper);
  background: var(--forest-deep);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  transform: translate(-50%, -20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }


/* --- 13. ANIMATIONS & RESPONSIVE --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.story-card--lower.reveal { transform: translateY(56px); }
.story-card--lower.reveal.is-visible { transform: translateY(28px); }

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@keyframes fall {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 0.9; }
  100% { transform: translateY(400px) rotate(360deg); opacity: 0; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; filter: brightness(1.1); }
}

.leaf-mark img, .icon-breathe {
  mix-blend-mode: multiply;
  animation: breathe 4s ease-in-out infinite;
  object-fit: contain;
  margin: 0 auto;
}

@media (min-width: 431px) {
  .phone-shell { margin-block: 24px; min-height: calc(100dvh - 48px); border-radius: var(--radius-lg); border: 4px solid var(--forest); }
  .hero { min-height: calc(100dvh - 48px); }
  .intro::before { top: 22px; bottom: 22px; }
  .intro::after { top: 20px; bottom: 20px; border-radius: 12px; }
}

@media (max-height: 660px) {
  .intro__hint { display: none; }
  .intro__date { margin-block: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .story-card--lower.reveal { transform: translateY(28px); }
  .player-card__vinyl-wrapper.is-playing .player-card__vinyl {
    animation: none !important;
    transform: translateX(18px) rotate(45deg);
  }
}

/* Custom Calendar Button */
.calendar-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  border: 1px solid oklch(22.8% 0.044 146.5 / 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin: 32px auto 0;
  max-width: 320px;
  width: 100%;
}
.calendar-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}
.calendar-btn__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--sage-soft);
  border-radius: 50%;
  color: var(--forest);
  flex-shrink: 0;
  border: 1px solid oklch(22.8% 0.044 146.5 / 0.08);
}
.calendar-btn__icon svg {
  width: 24px;
  height: 24px;
}
.calendar-btn__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}
.calendar-btn__title {
  font: italic 600 1.2rem var(--serif);
  color: var(--forest);
  margin-bottom: 4px;
}
.calendar-btn__subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
}
.calendar-btn__arrow {
  color: var(--muted);
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
}
.calendar-btn:hover .calendar-btn__arrow {
  transform: translateX(4px);
  color: var(--gold-dark);
}

/* User's exact layout from screenshot */
.player-card.spotify-style {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 
    "header play"
    "progress progress"
    "volume volume";
  padding: 24px;
  background: var(--forest-deep);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: #fff;
  gap: 16px;
  max-width: 400px;
  margin: 36px auto 0;
  border: none;
  align-items: center;
}
.spotify-style .spotify-header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.spotify-style .spotify-header small {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.spotify-style .spotify-header strong {
  font: 500 1.5rem var(--serif);
  color: #fff;
  margin-bottom: 4px;
}
.spotify-style .spotify-header span {
  font: 500 0.9rem/1.3 var(--sans);
  color: var(--sage);
}
.spotify-style .spotify-playback {
  grid-area: play;
  display: flex;
  justify-content: flex-end;
}
.spotify-style .play-button {
  width: 64px;
  height: 64px;
  background: var(--paper);
  color: var(--forest-deep);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
}
.spotify-style .play-button:hover {
  transform: scale(1.05);
  background: var(--ivory);
}
.spotify-style .play-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  margin: 0;
}
.spotify-style .play-button .play-icon {
  transform: translateX(2px);
}
.spotify-style .play-button.is-playing .play-icon {
  display: none;
}
.spotify-style .play-button.is-playing .pause-icon {
  display: block !important;
  transform: none;
}
.spotify-style .player-progress {
  grid-area: progress;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--sage);
  margin: 0;
  font-weight: 500;
}
.spotify-style .player-progress__bar {
  flex-grow: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.spotify-style .player-progress__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}
.spotify-style .player-volume {
  grid-area: volume;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sage);
  margin-top: -4px;
}
.spotify-style .volume-icon {
  width: 16px;
  height: 16px;
}
.spotify-style .volume-slider {
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  -webkit-appearance: none;
  outline: none;
}
.spotify-style .volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}


/* =============================================
   TICKET / PASE HOLOGRÁFICO
   ============================================= */

.ticket-section { padding: 96px 20px 100px; text-align: center; }

.ticket-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.ticket-card {
  --width: 180px;
  --height: 330px;
  --perforation-size: 12px;
  --cutouts-adjust: 70px;

  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  grid-template-areas: "header" "body" "footer";
  width: var(--width);
  height: var(--height);
  padding: var(--perforation-size) 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  user-select: none;
  overflow: hidden;
  border-radius: 4px;
  filter:
    drop-shadow(0 2px 1px #00000025)
    drop-shadow(0 4px 3px #00000025)
    drop-shadow(0 10px 9px #00000025)
    drop-shadow(0 20px 20px #00000025)
    drop-shadow(0 40px 40px #00000025);
  animation: ticketHover 3s ease infinite;
  will-change: transform, filter;
}

@keyframes ticketHover {
  50% {
    filter:
      drop-shadow(0 4px 3px #00000015)
      drop-shadow(0 6px 6px #00000015)
      drop-shadow(0 16px 14px #00000015)
      drop-shadow(0 30px 28px #00000015)
      drop-shadow(0 60px 60px #00000015);
    transform: translateY(-7px) scale(1.02);
  }
}

.ticket-filter { position: absolute; width: 0; height: 0; }

.ticket-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: #fff;
  filter: url(#ticketBump);
  mask:
    radial-gradient(circle at 50% 0,    #fff0 calc(var(--perforation-size) - 5px), #000 calc(var(--perforation-size) - 4px)),
    radial-gradient(circle at 50% 100%, #fff0 calc(var(--perforation-size) - 5px), #000 calc(var(--perforation-size) - 4px)),
    radial-gradient(circle 8px at left center,  #000 98%, #0000 100%),
    radial-gradient(circle 8px at right center, #000 98%, #0000 100%),
    repeating-linear-gradient(90deg, #000 10px, #000 15px, #0000 16px, #0000 24px);
  mask-repeat: repeat-x, repeat-x, no-repeat, no-repeat, repeat-x;
  mask-size:
    calc(var(--perforation-size) * 2) 100%,
    calc(var(--perforation-size) * 2) 100%,
    16px 16px, 16px 16px, 10px 2px;
  mask-position:
    calc(0.5 * var(--perforation-size)) top,
    calc(0.5 * var(--perforation-size)) bottom,
    left var(--cutouts-adjust),
    right var(--cutouts-adjust),
    0 calc(var(--cutouts-adjust) + 7px);
  mask-composite: intersect, exclude, add, add;
}

.ticket-holographic {
  background-image:
    linear-gradient(to bottom, #fe58, 90%, #0002),
    conic-gradient(
      at 60% 50%,
      #ccc, #ff6bfe, #00f9f8, #ddd,
      #0081fd, #eef0bc, #0081fd, #ff6bfe,
      #0002, #0081fd, #ddd, #01fefb, #ccc
    );
}
.ticket-holographic::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 70% 20%, #f0f, #0000),
    repeating-radial-gradient(circle at 30% 80%, #fff, #f4a 48px, #eee 150px);
  mix-blend-mode: color-burn;
}
.ticket-holographic::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, #f205, #f00, #0f0, #f205);
  mix-blend-mode: difference;
  animation: ticketBgPos 3s ease-in-out infinite alternate;
  background-position: 0 0;
  background-size: 100% 300%;
  background-repeat: repeat;
}
@keyframes ticketBgPos {
  to { background-position: 0 500px; }
}

.ticket-header {
  position: relative;
  grid-area: header;
  margin: 0 8px;
  text-align: center;
  z-index: 1;
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: #ffffff9f;
  -webkit-text-stroke: #fff 0.5px;
  mix-blend-mode: difference;
}

.ticket-body {
  grid-area: body;
  margin: 0 1em;
  padding: 0.5em;
  font-weight: 300;
  z-index: 1;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #111;
  mix-blend-mode: multiply;
}
.ticket-body em { font-family: var(--serif); font-size: 1.05em; color: #333; }
.ticket-body small { font-size: 0.75em; color: #555; }

.ticket-footer { grid-area: footer; z-index: 1; margin: 0 1em 1em; }

.ticket-number {
  margin-bottom: 0.75rem;
  text-align: center;
  color: #000;
  font-weight: 300;
  font-size: 0.82rem;
}
.ticket-bold { font-weight: 700; }

.ticket-barcode {
  width: 0;
  height: 32px;
  box-shadow:
    0px 0 0 1px #000, 5px 0 0 1px #000, 7px 0 0 1px #000,
    11px 0 0 1px #000, 15px 0 0 1px #000, 16px 0 0 1px #000,
    22px 0 0 1px #000, 27px 0 0 1px #000, 30px 0 0 1px #000,
    35px 0 0 1px #000, 36px 0 0 1px #000, 39px 0 0 1px #000,
    43px 0 0 1px #000, 47px 0 0 1px #000, 50px 0 0 1px #000,
    55px 0 0 1px #000, 59px 0 0 1px #000, 60px 0 0 1px #000,
    64px 0 0 1px #000, 69px 0 0 1px #000, 70px 0 0 1px #000,
    74px 0 0 1px #000;
  transform: translateX(37px);
}

.ticket-symbol {
  position: absolute;
  top: 1.3em;
  right: 0;
  rotate: 185deg;
  font-size: 1.1em;
  color: #fff;
  line-height: 0.5;
  opacity: 0.2;
}

.ticket-notes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-size: 5rem;
  color: #e7e7e7;
  mix-blend-mode: color-burn;
  transform: translateY(20%);
  z-index: 1;
  pointer-events: none;
}
.ticket-notes:nth-child(2) { transform: translateY(40%); }
.ticket-notes:nth-child(3) { transform: translateY(60%); }

.ticket-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--forest);
  transition: all 0.3s ease;
}
.ticket-edit-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ticket-edit-link:hover {
  color: var(--paper);
  background: var(--forest);
  border-color: var(--forest);
}
