/* =========================================================
   styles.css (CLEAN + COMMENTED)
   - Sin reglas duplicadas/contradictorias
   - Side-nav abajo (no estorba el contenido)
   - Mantiene: intro film, sobre, screens, story modal, venue, itinerary, wishes, rsvp
   ========================================================= */

/* =========================
   TOKENS / BASE
   ========================= */
:root{
  --cry-me-a-river: #3e5f6b;
  --honest-blue:    #6f8fa3;
  --delightful:     #e8eff3;

  --ink: #102027;
  --muted: rgba(16,32,39,.70);
  --line: rgba(16,32,39,.14);

  --accent: rgba(111,143,163,.55);

  --serif: "Playfair Display", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --paper: rgba(255,255,255,.92);
  --shadow: 0 18px 45px rgba(0,0,0,.12);

  /* Altura aproximada del nav inferior (para reservar espacio) */
  --navH: 58px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);

  /* Fondo global (no lo vuelvas a redefinir más abajo) */
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(232,239,243,.85), transparent 60%),
    radial-gradient(900px 500px at 80% 80%, rgba(111,143,163,.35), transparent 65%),
    linear-gradient(180deg, var(--cry-me-a-river), var(--honest-blue) 55%, var(--delightful));
  background-attachment: fixed;
}

a{ color: inherit; text-decoration: none; }
.is-hidden{ display: none !important; }

/* =========================
   INTRO (COVER) + FILM
   ========================= */
#intro{ position: relative; overflow: hidden; }

.intro{
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background: #0b0b0f; /* fallback */
  overflow: hidden;
}

.film-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}

.intro-overlay{
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 20%, rgba(62,95,107,0.15), rgba(62,95,107,0.35)),
    linear-gradient(to bottom, rgba(16,32,39,0.12), rgba(16,32,39,0.35));
}

.intro__container{
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  text-align: center;
}

.intro__badge{
  display: inline-block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid rgba(232,239,243,0.22);
  border-radius: 999px;
  background: rgba(232,239,243,0.65);
  color: rgba(16,32,39,0.85);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
}

/* Film strip */
.film-strip{
  position:absolute;
  left:-20%;
  width:140%;
  height: 180px;
  border-radius: 18px;
  background: rgba(111,143,163,0.38);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  gap:14px;
  padding: 26px 26px;
  overflow:hidden;
}

.film-strip::before,
.film-strip::after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  height: 12px;
  background:
    repeating-linear-gradient(to right, rgba(255,255,255,.85) 0 12px, transparent 12px 24px);
  opacity:.18;
  filter: blur(.2px);
}
.film-strip::before{ top:10px; }
.film-strip::after{ bottom:10px; }

.film-frame{
  flex: 0 0 auto;
  width: 240px;
  height: 120px;
  border-radius: 10px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}

.film-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.02);
  filter: brightness(1.08) contrast(1.02) saturate(1.03);
}

/* posiciones */
.strip-a{ top: 10%; height: 180px; --rot:-2deg; transform: rotate(-2deg); }
.strip-b{ top: 40%; height: 200px; --rot: 1.5deg; transform: rotate(1.5deg); }
.strip-c{ top: 70%; height: 170px; --rot:-1deg; transform: rotate(-1deg); }

@keyframes driftRight{
  from{ transform: translateX(-6%) rotate(var(--rot, 0deg)); }
  to  { transform: translateX(6%)  rotate(var(--rot, 0deg)); }
}
@keyframes driftLeft{
  from{ transform: translateX(6%) rotate(var(--rot, 0deg)); }
  to  { transform: translateX(-6%) rotate(var(--rot, 0deg)); }
}
@keyframes floatY{
  0%,100%{ translate: 0 0; }
  50%    { translate: 0 -2px; }
}

.strip-a{ animation: driftRight 55s linear infinite, floatY 6s ease-in-out infinite; }
.strip-b{ animation: driftLeft 70s linear infinite,  floatY 8s ease-in-out infinite; }
.strip-c{ animation: driftRight 62s linear infinite, floatY 7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce){
  .film-strip{ animation:none !important; }
}
.film-paused .film-strip{ animation-play-state: paused !important; }

/* =========================
   SOBRE (imagen + texto)
   ========================= */
.envelope{
  margin-top: 18px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  /* Para centrar el sobre */
  display: grid;
  place-items: center;
}

.envelope:focus-visible{
  outline: 2px solid rgba(199,165,106,.8);
  outline-offset: 8px;
  border-radius: 18px;
}

/* Modo “sobre como imagen” */
.envelope--image{
  display: grid;
  place-items: center;
  gap: 14px;
}

.envelope__img{
  width: min(360px, 86vw);
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;

  filter: drop-shadow(0 22px 45px rgba(0,0,0,.28));
  transition: transform 900ms cubic-bezier(.2,.9,.2,1), opacity 400ms ease;
}

.intro.is-opening .envelope__img{
  transform: translateY(-20px) scale(1.03);
}
.intro.is-open .envelope__img{
  transform: translateY(-60px) scale(1.05);
  opacity: .92;
}

.envelope__text{ text-align: center; }
.envelope__text .letter__names{
  font-family: var(--serif);
  font-size: clamp(28px, 4.8vw, 40px);
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(232,239,243,0.92);
  text-shadow: 0 3px 18px rgba(0,0,0,0.55);
}
.envelope__text .letter__date{
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(232,239,243,0.78);
  text-shadow: 0 2px 14px rgba(0,0,0,0.50);
}
.envelope__text .letter__hint{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(232,239,243,0.72);
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

/* Fade out intro */
.intro.is-fading-out{ animation: fadeOut 450ms ease forwards; }
@keyframes fadeOut{ to{ opacity: 0; transform: translateY(6px); } }

/* =========================
   MAIN / SCREENS (layout base)
   ========================= */
#main{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main{
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 18% 10%, rgba(232,239,243,.95), transparent 60%),
    radial-gradient(900px 520px at 80% 85%, rgba(111,143,163,.28), transparent 65%),
    linear-gradient(180deg, rgba(62,95,107,.22), rgba(232,239,243,.92));
}

/* Cada screen se muestra/oculta por JS */
.screen{
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 260ms ease, transform 260ms ease;

  /* Fondo de “tarjeta/papel” azul con contraste */
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 420px at 50% 40%, rgba(255,255,255,0.95), transparent 65%),
    radial-gradient(900px 700px at 0% 0%, rgba(130,165,195,0.55), transparent 70%),
    radial-gradient(900px 700px at 100% 100%, rgba(120,155,185,0.55), transparent 70%),
    linear-gradient(180deg, #b6c9da, #9fb6cc 60%, #8ea8c2);
}

.screen.is-active{
  display: flex;
  opacity: 1;
  transform: translateY(0);

  min-height: 100svh;
  justify-content: center;
  align-items: center;
  padding: 42px 20px;

  /* Reserva espacio para nav inferior */
  padding-bottom: calc(42px + var(--navH) + env(safe-area-inset-bottom));
}

/* Screens con mucho contenido: alineadas arriba */
#story.screen.is-active,
#venue.screen.is-active,
#itinerary.screen.is-active{
  align-items: flex-start;
}

/* El contenido principal no se estira */
.screen.is-active .section__inner{ width: 100%; }

#main.is-ready{ opacity: 1; transform: translateY(0); }

/* =========================
   MARCO FLORAL (4 DIVS)
   ========================= */
.screen .floral-tl,
.screen .floral-tr,
.screen .floral-bl,
.screen .floral-br{
  position: absolute;
  width: 320px;
  height: 320px;
  background: url("../assets/flowers/rose-top-left.png") no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 0.95;
  z-index: 0;

  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.25)) saturate(1.05);
}

/* Posiciones */
.screen .floral-tl{ top: 0; left: 0; }
.screen .floral-tr{ top: 0; right: 0; transform: scaleX(-1); }
.screen .floral-bl{ bottom: 0; left: 0; transform: scaleY(-1); }
.screen .floral-br{ bottom: 0; right: 0; transform: scale(-1,-1); }

/* Contenido encima */
.screen > *{
  position: relative;
  z-index: 1;
}

@media (max-width: 680px){
  .screen .floral-tl,
  .screen .floral-tr,
  .screen .floral-bl,
  .screen .floral-br{
    width: 220px;
    height: 220px;
    opacity: 0.85;
  }
}

/* =========================
   HERO (HOME)
   ========================= */
.hero{
  width: min(1060px, 92%);
  margin: 0 auto;
  text-align: center;
}

.hero__panel{
  background: rgba(232,239,243,0.60);
  border: 1px solid rgba(62,95,107,0.16);
  box-shadow: 0 22px 60px rgba(0,0,0,0.10);
  border-radius: 18px;
  padding: 18px;
}

.hero__badge{
  display: inline-block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid rgba(62,95,107,.22);
  border-radius: 999px;
  background: rgba(232,239,243,.55);
  backdrop-filter: blur(8px);
  margin-bottom: 14px;
}

.hero h1{
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 56px);
  margin: 0 0 12px;
}

.hero__lead{
  margin: 0 auto;
  max-width: 58ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero__cta{
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__meta{
  margin-top: 16px;
  color: rgba(16,32,39,.70);
  font-size: 13px;
  letter-spacing: .02em;
}
.hero__meta-strong{ font-weight: 600; color: rgba(16,32,39,.82); }

/* Countdown */
.countdown{
  margin: 22px auto 8px;
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.countdown__item{
  background: rgba(232,239,243,.62);
  border: 1px solid rgba(62,95,107,.16);
  border-radius: 18px;
  padding: 14px 12px;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
  text-align: center;
}
.countdown__value{
  font-family: var(--serif);
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.05;
  letter-spacing: .02em;
  color: rgba(16,32,39,.95);
}
.countdown__label{
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(16,32,39,.68);
}

@media (max-width: 520px){
  .countdown{ grid-template-columns: repeat(2, 1fr); }
}

/* =========================
   BUTTONS
   ========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, filter 140ms ease;
  user-select: none;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); opacity: 0.95; }
.btn:disabled{ opacity: 0.6; cursor: not-allowed; }
.btn--ghost{
  background: rgba(232,239,243,.55);
  border-color: rgba(62,95,107,.18);
}

/* =========================
   MUSIC TOGGLE (solo icono)
   ========================= */
.music-toggle{
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 9999;

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(111,143,163,0.45);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);

  display: grid;
  place-items: center;

  color: inherit;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, background .25s ease;
  transform: translateY(6px);
}
#main.is-ready ~ .music-toggle{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.music-toggle:hover{
  background: rgba(255,255,255,0.9);
  transform: scale(1.05);
}
.music-toggle__icon{
  font-size: 18px;
  line-height: 1;
}

/* =========================
   SIDE NAV (BOTTOM) ✅
   - No estorba: ya reservamos espacio con padding-bottom de .screen.is-active
   ========================= */
.side-nav{
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;

  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  top: auto;
  right: auto;
  transform: translateX(-50%);
  z-index: 1000;

  display: flex;
  flex-direction: row;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 999px;

  background: rgba(232,239,243,.72);
  border: 1px solid rgba(62,95,107,.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 38px rgba(0,0,0,.10);
}

#main.is-ready .side-nav{
  opacity: 1;
  pointer-events: auto;
}

.side-nav__label{ display: none; }

.side-nav__link{
  display: grid;
  grid-template-columns: 12px;
  align-items: center;
  justify-items: center;

  padding: 10px 10px;
  border-radius: 999px;
  border: 1px solid transparent;

  transition: background 200ms ease, border-color 200ms ease, transform 150ms ease;
}
.side-nav__link:hover{
  background: rgba(111,143,163,.16);
  border-color: rgba(111,143,163,.22);
  transform: translateY(-1px);
}

.side-nav__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(62,95,107,.55);
  background: rgba(232,239,243,.85);
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
  transform: scale(0.95);
}

.side-nav__link.is-active{
  background: rgba(62,95,107,.14);
  border-color: rgba(62,95,107,.20);
}
.side-nav__link.is-active .side-nav__dot{
  background: rgba(111,143,163,.80);
  border-color: rgba(62,95,107,.65);
}

/* =========================
   OUR STORY
   ========================= */
#story .section__inner{ width: min(1100px, 92%); }

.story-shell{
  padding: clamp(18px, 3.2vw, 34px);
  border-radius: 24px;
  background: rgba(232,239,243,0.55);
  border: 1px solid rgba(62,95,107,0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.08);
}

.story-head{ text-align: center; margin-bottom: 18px; }

#story h2{
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
  color: rgba(16,32,39,0.92);
}
#story .story-subtitle{
  margin: 0 auto;
  max-width: 60ch;
  color: rgba(16,32,39,0.68);
  line-height: 1.7;
}

#story .story-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 18px;
}

#story .story-card{
  grid-column: span 6;
  text-align: left;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(62,95,107,0.16);
  background: rgba(232,239,243,0.62);
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  padding: 0;
  cursor: pointer;
}

#story .story-card img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

#story .story-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.00), rgba(0,0,0,0.20));
  pointer-events:none;
  opacity: .9;
}

#story .story-label{
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  color: rgba(232,239,243,0.92);
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .01em;
}

#story .story-label::after{
  content: "Open";
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(111,143,163,0.22);
  border: 1px solid rgba(232,239,243,0.22);
}

#story .story-card:hover,
#story .story-card:focus-visible{
  transform: translateY(-4px);
  border-color: rgba(111,143,163,0.30);
  box-shadow: 0 22px 56px rgba(0,0,0,0.12);
  outline: none;
}

@media (max-width: 860px){
  #story .story-card{ grid-column: span 12; }
  #story .story-label{ font-size: 17px; }
}

/* Modal story (scroll interno + imagen estable) */
.story-modal{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(16,32,39,0.55);
  backdrop-filter: blur(8px);
  z-index: 9999;
}
.story-modal.is-open{ display: grid; }

.story-modal-content{
  width: min(980px, 96%);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(232,239,243,0.92);
  border: 1px solid rgba(232,239,243,0.24);
  box-shadow: 0 28px 80px rgba(0,0,0,0.28);
  display: grid;
  grid-template-columns: 1.2fr 1fr;

  max-height: min(86vh, 720px);
}
.story-modal-image{
  background: rgba(232,239,243,0.55);
  max-height: min(86vh, 720px);
}
.story-modal-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;   /* ✅ no “se mueve”, mantiene encuadre */
  object-position: center;
  display: block;
}
.story-modal-text{
  max-height: min(86vh, 720px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  padding: 22px 22px 18px;
  padding-right: 14px;

  color: rgba(16,32,39,0.82);
  white-space: pre-line;
}
.story-modal-text h3{
  margin: 10px 0 6px;
  font-family: var(--serif);
  font-size: 28px;
}
.story-modal-text small{
  display: inline-block;
  color: rgba(62,95,107,0.72);
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.story-modal-text p{
  line-height: 1.75;
  color: rgba(16,32,39,0.72);
}
.close-modal{
  appearance: none;
  border: 1px solid rgba(62,95,107,0.16);
  background: rgba(232,239,243,0.70);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  float: right;
}
.close-modal:hover{ border-color: rgba(111,143,163,0.35); }

@media (max-width: 860px){
  .story-modal-content{ grid-template-columns: 1fr; max-height: 88vh; }
  .story-modal-image{ max-height: 36vh; }
  .story-modal-text{ max-height: calc(88vh - 36vh); }
}

/* =========================
   VENUE
   ========================= */
#venue .section__inner{
  width: min(1100px, 92%);
  padding: clamp(18px, 3.2vw, 34px);
  border-radius: 24px;
  background: rgba(232,239,243,0.55);
  border: 1px solid rgba(62,95,107,0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.08);
}

#venue h2{
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
  color: rgba(16,32,39,0.92);
}

.venue-location{
  margin: 0 auto 16px;
  width: min(720px, 100%);
  text-align: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(232,239,243,0.72);
  border: 1px solid rgba(62,95,107,0.14);
  color: rgba(16,32,39,0.74);
  line-height: 1.7;
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
}
.venue-location::before{
  content: "📍";
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
  opacity: .85;
}

.venue-map{
  margin: 14px auto 14px;
  width: min(920px, 100%);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(62,95,107,0.16);
  background: rgba(232,239,243,0.60);
  box-shadow: 0 18px 44px rgba(0,0,0,0.10);
}
.venue-map iframe{
  width: 100%;
  height: clamp(260px, 38vw, 420px);
  border: 0;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

.venue-note{
  margin: 14px auto 16px;
  width: min(720px, 100%);
  text-align: center;
  color: rgba(16,32,39,0.68);
  line-height: 1.7;
}

#venue .btn{
  background: rgba(111,143,163,0.22);
  border-color: rgba(62,95,107,0.20);
}
#venue .btn:hover{ filter: brightness(1.02); }

@media (max-width: 680px){
  #venue .section__inner{ padding: 16px; border-radius: 20px; }
  .venue-map iframe{ height: 280px; }
}

/* =========================
   ITINERARY
   ========================= */
#itinerary .section__inner{ width: min(1100px, 92%); }

.itinerary-shell{
  padding: clamp(18px, 3.2vw, 34px);
  border-radius: 24px;
  background: rgba(232,239,243,0.55);
  border: 1px solid rgba(62,95,107,0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.08);
}

#itinerary h2{
  margin: 0 0 10px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
  color: rgba(16,32,39,0.92);
}

.itinerary__intro{
  margin: 0 auto 18px;
  text-align: center;
  max-width: 62ch;
  color: rgba(16,32,39,0.68);
  line-height: 1.7;
}

/* Timeline */
.timeline{
  position: relative;
  margin: 18px auto 0;
  width: min(900px, 100%);
}

/* Línea vertical */
.timeline::before{
  content:"";
  position:absolute;
  left: calc(110px + 14px + 12px);
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(62,95,107,0.15),
    rgba(111,143,163,0.28),
    rgba(62,95,107,0.15)
  );
  border-radius: 2px;
}

.timeline__item{
  display: grid;
  grid-template-columns: 110px 24px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0 0 14px;
}

.timeline__time{
  text-align: right;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(62,95,107,0.86);
  padding-top: 10px;
}

.timeline__dot{
  margin-top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(232,239,243,0.85);
  border: 2px solid rgba(111,143,163,0.55);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  justify-self: center;
}

.timeline__content{
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(232,239,243,0.70);
  border: 1px solid rgba(62,95,107,0.14);
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
}

.timeline__content h3{
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 20px;
  color: rgba(16,32,39,0.90);
}

.timeline__content p{
  margin: 0;
  color: rgba(16,32,39,0.68);
  line-height: 1.65;
}

.timeline__item:hover .timeline__content{
  border-color: rgba(111,143,163,0.28);
  box-shadow: 0 18px 44px rgba(0,0,0,0.10);
}

@media (max-width: 680px){
  .timeline::before{ left: 12px; }
  .timeline__item{ grid-template-columns: 24px 1fr; }
  .timeline__time{ text-align: left; padding-top: 0; margin-left: 6px; }
  .timeline__dot{ margin-top: 10px; }
}

/* =========================
   WEDDING WISHES
   ========================= */
#wedding-wishes .section__inner{ width: min(900px, 92%); }

.wishes-shell{
  padding: clamp(20px, 3.2vw, 36px);
  border-radius: 26px;
  text-align: center;
  background: rgba(232,239,243,0.58);
  border: 1px solid rgba(62,95,107,0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.08);
}

.wishes-head h2{
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  color: rgba(16,32,39,0.92);
}
.wishes-divider{
  width: 56px;
  height: 2px;
  margin: 12px auto 16px;
  background: linear-gradient(
    to right,
    rgba(62,95,107,0.15),
    rgba(111,143,163,0.45),
    rgba(62,95,107,0.15)
  );
  border-radius: 2px;
}
.donation-text{
  margin: 0 auto 12px;
  max-width: 58ch;
  color: rgba(16,32,39,0.72);
  line-height: 1.8;
}
.donation-text--lead{
  font-family: var(--serif);
  font-size: 20px;
  color: rgba(62,95,107,0.92);
}
.wishes-note{
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(111,143,163,0.18);
  border: 1px solid rgba(62,95,107,0.18);
  color: rgba(16,32,39,0.78);
  font-size: 14px;
}
.wishes-icon{ color: rgba(62,95,107,0.85); font-size: 14px; }

@media (max-width: 680px){
  .donation-text--lead{ font-size: 18px; }
}

/* =========================
   RSVP
   ========================= */
#rsvp .section__inner{
  width: min(980px, 92%);
  padding: clamp(18px, 3.2vw, 34px);
  border-radius: 24px;
  background: rgba(232,239,243,0.55);
  border: 1px solid rgba(62,95,107,0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.08);
}

#rsvp h2{
  margin: 0 0 10px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
  color: rgba(16,32,39,0.92);
}
#rsvp p{
  text-align: center;
  color: rgba(16,32,39,0.68);
  line-height: 1.7;
}

.rsvp-form{ margin-top: 18px; }
.rsvp-form.is-submitting{ pointer-events: none; opacity: 0.9; filter: saturate(0.9); }

.rsvp-grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.field{ grid-column: span 6; text-align: left; }
.field--full{ grid-column: span 12; }

.field label{
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(62,95,107,0.82);
}
.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea{
  width: 100%;
  border-radius: 16px;
  padding: 12px 12px;
  border: 1px solid rgba(62,95,107,0.16);
  background: rgba(232,239,243,0.72);
  color: rgba(16,32,39,0.86);
  outline: none;
  box-shadow: 0 12px 26px rgba(0,0,0,0.05);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea{ resize: vertical; min-height: 120px; }

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(111,143,163,0.42);
  box-shadow: 0 18px 44px rgba(0,0,0,0.10);
}

.field__hint{
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(16,32,39,0.58);
}
.field__error{
  display: block;
  min-height: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(120,30,30,0.80);
}

/* Pills */
.pill-group{ display: flex; gap: 10px; flex-wrap: wrap; }

.pill{
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(62,95,107,0.16);
  background: rgba(232,239,243,0.70);
  cursor: pointer;
  user-select: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pill input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill span{
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(16,32,39,0.78);
}
.pill:has(input:checked){
  border-color: rgba(111,143,163,0.55);
  background: rgba(111,143,163,0.18);
  box-shadow: 0 16px 34px rgba(0,0,0,0.08);
}
.pill:hover{
  transform: translateY(-1px);
  border-color: rgba(111,143,163,0.35);
}

.rsvp-actions{
  margin-top: 16px;
  display: grid;
  gap: 10px;
  justify-items: center;
}
#rsvp .btn{
  min-width: 180px;
  background: rgba(111,143,163,0.22);
  border-color: rgba(62,95,107,0.20);
}
#rsvp .btn:hover{ filter: brightness(1.02); }

.rsvp-status{
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  color: rgba(16,32,39,0.68);
}
.rsvp__privacy{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(16,32,39,0.56);
}

/* Honeypot */
#company{
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px){
  .field{ grid-column: span 12; }
}

/* =========================================
   FIX ITINERARY MOBILE (evita texto angosto)
   Pegar AL FINAL del styles.css
   ========================================= */

@media (max-width: 520px){

  /* Asegura que el contenedor tenga ancho real */
  #itinerary .section__inner,
  .itinerary-shell{
    width: 100%;
  }

  /* Línea vertical a la izquierda, fina y estable */
  .timeline::before{
    left: 14px;
  }

  /* 2 columnas: eje (dot) + contenido */
  .timeline__item{
    grid-template-columns: 28px 1fr;
    gap: 12px;
  }

  /* Hora arriba y sin partirse */
  .timeline__time{
    grid-column: 2;
    text-align: left;
    padding-top: 0;
    margin: 0 0 6px;
    white-space: nowrap;     /* ✅ no “2:00 / PM” raro */
    letter-spacing: .04em;   /* un poco menos para móvil */
  }

  /* Dot al centro de su columna */
  .timeline__dot{
    grid-column: 1;
    margin-top: 10px;
    justify-self: center;
  }

  /* Contenido ocupa el ancho completo */
  .timeline__content{
    grid-column: 2;
    width: 100%;
    min-width: 0;            /* ✅ clave para que 1fr no colapse */
  }
}

/* Wedding Wishes CTA */
/* =========================================
   Wedding Wishes CTA – Pink Highlight
   ========================================= */

.wishes-cta{
  margin-top: 20px;
  min-width: 240px;

  /* Rosado elegante */
  background: linear-gradient(
    135deg,
    #f6c1d4,
    #e8a6c2
  );

  border: 1px solid #d98db0;

  color: #4a2c3a;
  font-weight: 600;
  letter-spacing: .04em;

  box-shadow: 
    0 10px 25px rgba(217,141,176,0.35);

  transition: 
    transform .25s ease,
    box-shadow .25s ease,
    filter .25s ease;
}

/* Hover */
.wishes-cta:hover{
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 18px 40px rgba(217,141,176,0.45);
  filter: brightness(1.05);
}

/* Click */
.wishes-cta:active{
  transform: translateY(0) scale(0.98);
}

/* =========================================
   FULL SCREEN BACKGROUND (no canvas recortado)
   ========================================= */

.screen.is-active{
  width: 100vw;
  max-width: 100vw;
}

/* Evita cualquier contenedor limitando el fondo */
#main, .main{
  width: 100%;
  max-width: 100%;
}

/* =========================================
   First-time navigation hint
   ========================================= */
.nav-hint{
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--navH) + env(safe-area-inset-bottom)); /* arriba del nav */
  transform: translateX(-50%);
  z-index: 1200;

  width: min(520px, calc(100vw - 28px));
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

.nav-hint.is-open{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
  pointer-events: auto;
}

.nav-hint__card{
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(62,95,107,0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 55px rgba(0,0,0,0.14);
  border-radius: 18px;
  padding: 12px 14px;
}

.nav-hint__title{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(62,95,107,0.88);
  margin-bottom: 6px;
  font-weight: 700;
}

.nav-hint__text{
  font-size: 14px;
  line-height: 1.55;
  color: rgba(16,32,39,0.80);
}

.nav-hint__sub{
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(16,32,39,0.62);
}

.nav-hint__actions{
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.nav-hint__btn{
  padding: 10px 14px;
}

/* Resaltado sutil del nav mientras el hint está abierto */
body.nav-hint-on .side-nav{
  box-shadow: 0 18px 48px rgba(0,0,0,.14);
  border-color: rgba(217,141,176,.35);
}
/* =========================================
   NAV HINT - MOBILE FIX
   - En móvil lo ponemos arriba para no chocar con el nav y la música
   ========================================= */

@media (max-width: 680px){
  .nav-hint{
    top: calc(12px + env(safe-area-inset-top));
    bottom: auto;
    transform: translateX(-50%);
    width: min(520px, calc(100vw - 20px));
  }

  .nav-hint.is-open{
    transform: translateX(-50%) translateY(0);
  }

  .nav-hint__card{
    padding: 12px 12px;
    border-radius: 16px;
  }

  .nav-hint__actions{
    justify-content: flex-end;
  }
}

/* =========================================
   NAV HINT - FORCE TOP ON MOBILE
   (pegar al FINAL del css/styles.css)
   ========================================= */
@media (max-width: 680px){
  .nav-hint{
    top: calc(12px + env(safe-area-inset-top)) !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(520px, calc(100vw - 20px)) !important;
    z-index: 9999 !important;
  }
}



