/* =====================================================================
   ROLANDO & GABRIELA — Sistema de diseño
   Tema: bordado floral otoñal · mostaza · terracota · vino · salvia
   Fondo de página = "fondo 1" (estampado floral) · el contenido vive
   sobre "tela offset" (lienzo bordado), separado del borde con un
   margen que deja asomar el estampado floral alrededor, como una tela
   de bordado enmarcada sobre un mantel floral.
   ===================================================================== */

:root {
  /* Color · paleta tomada de la referencia del cliente */
  --sage:       #898c79;   /* salvia */
  --sage-deep:  #545a38;   /* oliva profundo */
  --cream:      #f2d5aa;   /* crema cálido */
  --gold:       #d98f16;   /* mostaza */
  --gold-deep:  #a86b0d;   /* mostaza profundo (hover/texto) */
  --rust:       #cf5113;   /* naranja quemado */
  --terracotta: #d8615d;   /* terracota rosado */
  --magenta:    #d43b59;   /* magenta */
  --wine:       #94032a;   /* vino profundo */
  --paper:      #FBF6EC;   /* lienzo claro */
  --ink:        #3a2f22;   /* tinta cálida (no negro puro) */
  --ink-soft:   #6b5d49;
  --on-dark:    #FBF3E4;

  /* Tipografías */
  --f-script:  'Mrs Saint Delafield', cursive;
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'EB Garamond', Georgia, serif;
  --f-label:   'Jost', 'Helvetica Neue', sans-serif;

  --ease-silk: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.15, 1);

  --gutter: clamp(1.2rem, 5vw, 3rem);
  --nav-h:  clamp(3.4rem, 8vh, 4.4rem);
  --maxw:   1080px;
  --offset: clamp(12px, 3.2vw, 34px); /* margen que separa la tela del fondo floral */
}

/* 1. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; width: 0; height: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--f-body);
  color: var(--ink);
  line-height: 1.7;
  /* "fondo 1" a opacidad completa */
  background-color: #F1E4CB;
  background-image: url('../IMAGENES%20DE%20REFERENCIA/fondo%201.jpg');
  background-repeat: repeat;
  background-size: clamp(260px, 34vw, 420px) auto;
  background-position: top left;
  padding: var(--offset);
  animation: pageIn .8s var(--ease-silk) both;
}
body.is-leaving { animation: pageOut .42s var(--ease-soft) forwards; }
@media (prefers-reduced-motion: reduce) {
  body, body.is-leaving { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* 2. LIENZO (tela offset) — todo el contenido vive dentro de este panel */
.fabric-wrap {
  position: relative;
  margin-inline: auto;
  max-width: 1180px;
  background-color: var(--paper);
  background-image: url('../IMAGENES%20DE%20REFERENCIA/tela%20offset.jpg');
  background-repeat: repeat;
  background-size: clamp(280px, 30vw, 440px) auto;
  box-shadow: 0 40px 90px -46px rgba(58,47,34,.55), 0 0 0 1px rgba(217,143,22,.4);
  border: 1px solid rgba(217,143,22,.55);
}
.fabric-wrap::after {
  content: "";
  position: absolute; inset: 7px;
  border: 1px solid rgba(148,3,42,.16);
  pointer-events: none;
}

/* 3. TIPOGRAFÍA */
.script { font-family: var(--f-script); font-weight: 400; line-height: 1.1; color: var(--wine); }
.eyebrow { font-family: var(--f-label); font-weight: 400; font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--sage-deep); display: block; }
.muted { color: var(--ink-soft); }
strong { font-weight: 600; color: var(--wine); }

.rule { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 1.2rem auto; }
.rule::before, .rule::after { content: ""; width: clamp(34px, 12vw, 80px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.rule i { width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); display: block; }

/* 4. NAV — es parte del encabezado, NO queda anclada ni lleva fondo propio:
   al hacer scroll se desplaza junto con el resto de la página y deja de verse. */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: .7rem var(--gutter);
  background: transparent;
}
.nav__links { display: flex; align-items: center; justify-content: center; list-style: none; flex-wrap: wrap; }
.nav__links li { display: flex; align-items: center; }
.nav__links li:not(:last-child)::after { content: "\2766"; font-size: .7rem; color: var(--gold); opacity: .9; margin: 0 clamp(.5rem,1.5vw,1rem); }
.nav__links a { font-family: var(--f-label); font-weight: 400; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-deep); position: relative; padding: .4em 0; transition: color .35s; }
.nav__links a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1.5px; background: var(--gold); transition: left .4s var(--ease-silk), right .4s var(--ease-silk); }
.nav__links a:hover { color: var(--wine); }
.nav__links a:hover::after, .nav__links a.is-active::after { left: 0; right: 0; }
.nav__toggle { display: none; }

/* 5. BOTONES */
.btn { display: inline-flex; align-items: center; gap: .6em; font-family: var(--f-label); font-weight: 400; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark); background: var(--wine); padding: .92em 2em; border-radius: 2px; border: 1px solid var(--wine); transition: background .4s, color .4s, transform .4s var(--ease-silk), letter-spacing .4s, box-shadow .4s; box-shadow: 0 10px 22px -14px rgba(148,3,42,.55); }
.btn:hover { background: #6f0220; border-color: #6f0220; transform: translateY(-2px); letter-spacing: .26em; }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn:active { transform: translateY(0) scale(.985); box-shadow: 0 4px 12px -8px rgba(148,3,42,.7); }
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* 6. LAYOUT */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7.5vw, 5.6rem); position: relative; }

/* 7. FLORALES */
.floral { position: absolute; pointer-events: none; z-index: 3; height: auto; filter: drop-shadow(0 6px 14px rgba(58,47,34,.2)); }
.divider-floral { display: block; margin: 0 auto clamp(1.1rem,3vw,1.8rem); width: clamp(96px, 20vw, 168px); }

/* 8. HERO */
.hero { text-align: center; padding: clamp(1.6rem,4vw,2.6rem) var(--gutter) clamp(2rem,6vw,3.4rem); max-width: 760px; margin-inline: auto; position: relative; z-index: 2; }
.hero__logo { width: clamp(210px, 46vw, 340px); height: auto; margin: .2rem auto 1rem; }
.hero__date { display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; position: relative; margin-top: 1.1rem; font-family: var(--f-label); font-weight: 400; text-transform: uppercase; font-size: clamp(.7rem, .64rem + .22vw, .88rem); color: var(--wine); padding: .9em 1.8em; border: 1px solid var(--gold); transition: color .45s var(--ease-silk), background .45s var(--ease-silk), box-shadow .45s, transform .45s var(--ease-silk); }
.hero__date-day { letter-spacing: .22em; }
.hero__date-loc { display: inline-flex; align-items: center; gap: .45em; position: relative; padding-top: .55rem; font-size: .8em; letter-spacing: .14em; }
.hero__date-loc::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 66%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero__pin { width: 1.1em; height: 1.1em; flex-shrink: 0; color: var(--sage-deep); }
.hero__date::before, .hero__date::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border: 1px solid var(--gold); transform: rotate(45deg); transition: background .45s; }
.hero__date::before { left: -3.5px; }
.hero__date::after { right: -3.5px; }
.hero__date:hover { color: var(--on-dark); background: var(--gold); border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(217,143,22,.55); }
.hero__date:hover::before, .hero__date:hover::after { background: var(--gold); }
.hero__date:hover .hero__date-loc::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); }

.lovequote { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 1.02rem + 1.4vw, 2rem); line-height: 1.5; color: var(--wine); max-width: 26ch; margin: 1.6rem auto 0; text-align: center; }

/* 8a. CONTADOR REGRESIVO */
.countdown-wrap { margin-top: clamp(2rem, 5vw, 2.8rem); }
.countdown__title { display: block; margin-bottom: .9rem; }
.countdown { display: inline-flex; justify-content: center; gap: clamp(.45rem,1.8vw,1rem); }
.countdown__cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; min-width: clamp(60px,16vw,84px); padding: 1.1rem .5rem .85rem; background: rgba(251,246,236,.6); border: 1px solid rgba(217,143,22,.5); box-shadow: 0 16px 32px -24px rgba(58,47,34,.4), inset 0 0 0 3px rgba(255,255,255,.4); }
.countdown__cell::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 16px; height: 1px; background: var(--gold); }
.countdown__num { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem,7vw,2.9rem); line-height: 1; color: var(--wine); font-variant-numeric: tabular-nums; }
.countdown__label { font-family: var(--f-label); font-weight: 400; font-size: .54rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.countdown__sub { font-family: var(--f-label); font-weight: 300; letter-spacing: .14em; text-transform: uppercase; font-size: .62rem; color: var(--sage-deep); margin-top: .9rem; }

/* 8b. FOTO HORIZONTAL / MARCO PLACEHOLDER */
.bigframe { position: relative; max-width: 820px; margin: 0 auto; }
/* Sin aspect-ratio fijo: el marco se ajusta al tamaño real de la imagen, no al revés */
.bigframe__box { border: 6px solid var(--sage-deep); outline: 2px solid var(--gold); outline-offset: 6px; background: var(--paper); box-shadow: 0 24px 50px -30px rgba(58,47,34,.5); color: var(--sage-deep); text-align: center; overflow: hidden; line-height: 0; }
.bigframe__box img { display: block; width: 100%; height: auto; }
.bigframe__placeholder { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1rem; }
.bigframe__placeholder svg { width: 42px; height: 42px; opacity: .55; }
.bigframe__placeholder span { display: block; font-family: var(--f-label); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.bigframe .floral--tl { position: absolute; top: -18%; left: -4%; width: clamp(90px, 15vw, 168px); z-index: 3; transform: rotate(-8deg); }
.bigframe .floral--br { position: absolute; bottom: -18%; right: -4%; width: clamp(90px, 15vw, 168px); z-index: 3; transform: rotate(4deg); }
@media (max-width: 560px) {
  .bigframe { max-width: 300px; }
  .bigframe .floral--tl { top: -10%; left: -8%; width: clamp(66px, 24vw, 104px); }
  .bigframe .floral--br { bottom: -10%; right: -8%; width: clamp(66px, 24vw, 104px); }
}

/* frase de amor (script) */
.love-phrase { text-align: center; padding-block: clamp(2.2rem,7vw,4.4rem); padding-inline: var(--gutter); }
.love-phrase__text { font-family: var(--f-script); color: var(--wine); font-size: clamp(2.68rem, 1.89rem + 5.51vw, 4.88rem); line-height: 1.3; max-width: 16ch; margin-inline: auto; }
.love-phrase__text::after { content: ""; display: block; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 1.2rem auto 0; }

/* 9. ARO DE BORDADO (placeholder de foto, forma de bastidor) */
.hoop { position: relative; max-width: 340px; margin: 0 auto; }
.hoop__ring {
  position: relative; aspect-ratio: 1 / 1; border-radius: 50%;
  background: var(--paper);
  border: 12px solid var(--sage-deep);
  outline: 2px solid var(--gold);
  outline-offset: 8px;
  box-shadow: inset 0 0 0 3px rgba(217,143,22,.35), 0 26px 54px -30px rgba(58,47,34,.5);
  display: grid; place-items: center; text-align: center; color: var(--sage);
  overflow: hidden;
}
.hoop__ring img { width: 100%; height: 100%; object-fit: cover; }
.hoop__placeholder { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1rem; color: var(--sage-deep); }
.hoop__placeholder svg { width: 38px; height: 38px; opacity: .6; }
.hoop__placeholder span { display: block; font-family: var(--f-label); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }

/* Carrusel de 8 fotos dentro del aro: una visible, cruza a la siguiente cada 2s (ver main.js) */
.hoop__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease-silk); }
.hoop__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hoop__slide { transition: none; } }
.hoop__spray { position: absolute; bottom: -12%; right: -14%; width: clamp(96px, 28vw, 160px); z-index: 3; filter: drop-shadow(0 8px 16px rgba(58,47,34,.25)); }
@media (max-width: 560px) {
  .hoop { max-width: 244px; }
  .hoop__spray { width: clamp(76px, 30vw, 112px); bottom: -10%; right: -10%; }
}

/* 10. SECTION HEAD */
.section__head { text-align: center; margin-bottom: clamp(1.5rem,4vw,2.2rem); }
.section__head .divider-floral { margin-bottom: .7rem; }
.section-title { font-family: var(--f-script); font-size: clamp(2.3rem, 1.8rem + 2.6vw, 3.5rem); color: var(--wine); line-height: 1.3; margin-top: .1rem; }

/* 10b. CALENDARIO */
.calendar { max-width: 360px; margin: 0 auto; position: relative; padding: clamp(1.4rem,4vw,2rem); background: rgba(251,246,236,.7); border: 1px solid var(--gold); box-shadow: 0 20px 44px -28px rgba(58,47,34,.45); }
.calendar::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(148,3,42,.18); pointer-events: none; }
.calendar__month { font-size: clamp(1.9rem,7vw,2.5rem); color: var(--wine); margin-bottom: .5rem; }
.calendar table { width: 100%; table-layout: fixed; border-collapse: collapse; position: relative; z-index: 1; }
.calendar th { font-family: var(--f-label); font-weight: 400; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wine); padding: .5rem 0; }
.calendar td { font-family: var(--f-display); font-size: 1.02rem; color: var(--ink); height: 2.3em; text-align: center; }
.calendar td.is-day { color: var(--on-dark); font-weight: 600; background: radial-gradient(circle at 50% 50%, var(--sage-deep) 0 1.05em, transparent 1.05em); }
.calendar__note { font-family: var(--f-label); font-weight: 300; letter-spacing: .12em; text-transform: uppercase; font-size: .6rem; color: var(--sage-deep); margin-top: .9rem; }
@media (min-width: 561px) {
  .calendar { max-width: 460px; padding: 2.3rem 2.6rem; }
  .calendar__month { font-size: 2.8rem; margin-bottom: .7rem; }
  .calendar th { font-size: .68rem; padding: .7rem 0; }
  .calendar td { font-size: 1.25rem; height: 2.5em; }
  .calendar__note { font-size: .68rem; margin-top: 1.1rem; }
}

/* 11. RAMO DECORATIVO (divisor grande) */
.bouquet-section { text-align: center; padding-inline: var(--gutter); }
.bouquet { width: clamp(160px, 32vw, 250px); margin: 0 auto clamp(1.2rem,3.5vw,2rem); filter: drop-shadow(0 10px 20px rgba(58,47,34,.2)); }

/* Ilustración del lugar, suelta y sin marco (mismo tratamiento que .bouquet) */
.venue-photo { width: clamp(253px, 48vw, 437px); margin: 0 auto clamp(1rem,3vw,1.6rem); filter: drop-shadow(0 10px 20px rgba(58,47,34,.2)); }

/* 11a. ITINERARIO */
.itin { max-width: 440px; margin: clamp(1.8rem,4vw,2.6rem) auto 0; display: flex; flex-direction: column; text-align: left; }
.itin__step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; padding: .9rem 0; position: relative; }
.itin__step:not(:last-child)::after { content: ""; position: absolute; left: calc(clamp(52px,12vw,68px) / 2); top: 50%; width: 1px; height: 100%; background: linear-gradient(var(--gold), rgba(217,143,22,.2)); z-index: 0; }
.itin__icon { width: clamp(52px,12vw,68px); height: clamp(52px,12vw,68px); display: grid; place-items: center; position: relative; z-index: 1; }
.itin__icon svg { width: 54%; height: 54%; }
.itin__icon img { width: 100%; height: 100%; object-fit: contain; }
.itin__time { font-family: var(--f-label); font-weight: 400; letter-spacing: .14em; font-size: .64rem; text-transform: uppercase; color: var(--gold-deep); }
.itin__name { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; color: var(--wine); }
/* En móvil, cada paso se centra como bloque (ícono arriba, texto debajo) en vez
   de ícono-izquierda/texto-derecha, para que se vea centrado como el resto de la página */
@media (max-width: 560px) {
  .itin { align-items: center; }
  .itin__step { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .5rem; }
  .itin__step:not(:last-child)::after { display: none; }
}

/* 11b. ENCABEZADO DE PÁGINA INTERIOR (Nuestra Historia, etc.) */
.page-intro { text-align: center; }
.section.page-intro { padding-top: clamp(2.4rem, 7vw, 4rem); }
.page-intro__lead { font-family: var(--f-body); font-style: italic; color: var(--ink-soft); max-width: 46ch; margin: 1.1rem auto 0; font-size: clamp(.95rem, .88rem + .3vw, 1.1rem); line-height: 1.75; }

/* 11c. NUESTRA HISTORIA · LÍNEA DE TIEMPO POR PAÍSES (ruta curva + avión animado por scroll, ver main.js) */
/* La amplitud de la onda (--wave-amp) se reduce en anchos intermedios
   (tablet) porque ahí el carril central (gap) ya está en su mínimo; sin
   esto, el avión casi tocaba el texto en pantallas tipo iPad. */
.journey { max-width: 960px; margin-inline: auto; padding-inline: var(--gutter); --wave-amp: clamp(24px, 4.5vw, 64px); --wave-len: 820px; }

.journey-path { position: relative; }
.journey-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; pointer-events: none; }
.journey-route path { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 9; stroke-linecap: round; opacity: .55; }
.journey-plane { position: absolute; top: 0; left: 0; width: clamp(91px, 10.4vw, 125px); height: auto; z-index: 2; pointer-events: none; will-change: transform; filter: drop-shadow(0 8px 14px rgba(58,47,34,.35)); }

/* Puntos de aterrizaje: marcan cada país sobre la línea de trayectoria */
.journey-waypoint { position: absolute; top: 0; left: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; z-index: 1; pointer-events: none;
  background: var(--wp-color, var(--gold)); box-shadow: 0 0 0 4px var(--paper), 0 2px 6px rgba(58,47,34,.35);
  transition: transform .5s var(--ease-silk), box-shadow .5s var(--ease-silk); }
.journey-waypoint.is-active { transform: scale(1.7); box-shadow: 0 0 0 4px var(--paper), 0 0 0 8px var(--wp-color, var(--gold)), 0 4px 10px rgba(58,47,34,.4); }
@media (prefers-reduced-motion: reduce) { .journey-waypoint { transition: none; } }

/* El carril central (gap) debe ser más ancho que la amplitud de la onda
   (--wave-amp) por ambos lados, para que la trayectoria del avión nunca
   invada la foto ni el contenido de texto. */
.journey-stop { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(9rem, 13vw, 12rem); align-items: center; margin-bottom: clamp(3.6rem, 8vw, 6rem); }
.journey-stop:last-child { margin-bottom: 0; }

/* Solo el país donde está el avión en este momento del scroll se ve a color;
   el resto queda en blanco y negro, atenuado (ver main.js). */
.journey-stop { filter: grayscale(1) opacity(.55); transition: filter .6s var(--ease-silk); }
.journey-stop.is-active-country { filter: none; }
@media (prefers-reduced-motion: reduce) { .journey-stop { transition: none; } }
.journey-stop__text { text-align: left; }
.journey-stop:nth-child(even) .journey-stop__media { order: 2; }
.journey-stop:nth-child(even) .journey-stop__text { order: 1; text-align: right; }
.journey-stop:nth-child(even) .journey-stop__desc { margin-left: auto; }
.journey-stop:nth-child(even) .journey-stop__badge { justify-content: flex-end; }

.journey-stop__badge { --stamp-color: var(--gold); display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.country-silhouette { width: 40px; height: auto; flex-shrink: 0; fill: var(--stamp-color); opacity: .8; }
.stamp { flex-shrink: 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; width: 78px; height: 78px; border-radius: 50%; border: 2px dashed var(--stamp-color); color: var(--stamp-color); position: relative; }
.stamp::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--stamp-color); border-radius: 50%; opacity: .5; }
.stamp svg { width: 20px; height: 20px; }
.stamp span { font-family: var(--f-label); font-weight: 500; font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; }

.journey-stop__year { display: block; font-family: var(--f-label); font-weight: 400; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sage-deep); }
.journey-stop__country { font-family: var(--f-script); font-weight: 400; font-size: clamp(2rem, 1.7rem + 1.6vw, 2.8rem); color: var(--wine); line-height: 1.3; margin: .25rem 0 .6rem; }
.journey-stop__desc { color: var(--ink-soft); max-width: 40ch; }

.journey-photo { position: relative; aspect-ratio: 4/3; border: 6px solid var(--sage-deep); outline: 2px solid var(--gold); outline-offset: 5px; background: var(--paper); box-shadow: 0 20px 44px -28px rgba(58,47,34,.45); display: grid; place-items: center; color: var(--sage); text-align: center; }
.journey-photo svg { width: 36px; height: 36px; opacity: .55; }
.journey-photo span { display: block; font-family: var(--f-label); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; margin-top: .5rem; opacity: .7; }
.journey-photo .floral--tl { top: -18%; left: -12%; width: clamp(64px, 12vw, 96px); transform: rotate(-8deg); }
.journey-photo .floral--br { bottom: -18%; right: -12%; width: clamp(64px, 12vw, 96px); transform: rotate(4deg); }
@media (max-width: 760px) {
  .journey-photo .floral--tl, .journey-photo .floral--br { width: clamp(44px, 16vw, 60px); }
  /* Cuelga un poco fuera de la esquina, como en escritorio, pero mucho
     menos (el carril del avión vive a la izquierda y no puede tocarlo). */
  .journey-photo .floral--tl { left: -8%; top: -14%; }
  /* El marco de la foto también se reduce un poco, para dejar aire real
     entre su borde y el carril del avión (el outline se sale ~7px más). */
  .journey-stop__media .journey-photo { width: 88%; margin-left: auto; }
}

@media (max-width: 760px) {
  /* En móvil el contenido se apila (una sola columna) y se deja un carril
     fijo más ancho a la izquierda para la línea/avión, en vez del carril
     central de escritorio. --wave-cx centra la onda dentro de ese carril. */
  .journey { --wave-amp: 14px; --wave-len: 560px; --wave-cx: 34px; }
  .journey-stop { grid-template-columns: 1fr; gap: 1.1rem; padding-left: 72px; margin-bottom: 3.4rem; }
  .journey-stop:nth-child(even) .journey-stop__media,
  .journey-stop:nth-child(even) .journey-stop__text { order: 0; }
  .journey-stop__text { text-align: left; }
  .journey-stop:nth-child(even) .journey-stop__text { text-align: left; }
  .journey-stop:nth-child(even) .journey-stop__desc { margin-left: 0; }
  .journey-stop:nth-child(even) .journey-stop__badge { justify-content: flex-start; }
  .journey-plane { width: 73px; }
}

/* 11e. HOTELES (tarjetas una al lado de otra) */
.hotels { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(1.4rem,3.5vw,2.2rem); max-width: 760px; margin: clamp(1.8rem,4vw,2.4rem) auto 0; align-items: start; }
.hotel-card { display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; }
/* alto fijo e igual para las tres, sin recorte visible ni marco: cada
   ilustración se centra y se escala dentro del mismo espacio */
.hotel-card__img { width: 100%; max-width: clamp(120px,24vw,150px); height: clamp(120px,24vw,150px); object-fit: contain; filter: drop-shadow(0 8px 16px rgba(58,47,34,.2)); }
.hotel-card__name { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--wine); }
.hotel-card .btn { margin-top: .2rem; padding: .7em 1.3em; font-size: .58rem; }

/* 11f. REGALOS */
.gift { max-width: 560px; margin-inline: auto; text-align: center; }
.gift__options { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 1.8rem 0; }
.account { margin-top: 1.6rem; display: inline-grid; grid-template-columns: auto auto; gap: .35rem 1.2rem; text-align: left; padding: 1.4rem 1.8rem; border: 1px solid rgba(217,143,22,.45); background: var(--paper); }
.account dt { font-family: var(--f-label); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; font-size: .58rem; color: var(--sage-deep); align-self: center; }
.account dd { font-family: var(--f-display); font-size: 1.05rem; color: var(--wine); }
@media (max-width: 560px) { .account { grid-template-columns: 1fr; gap: .1rem .4rem; text-align: center; } .account dt { margin-top: .6rem; } }

/* 11g. RSVP */
.rsvp { max-width: 540px; margin-inline: auto; position: relative; }
.rsvp__form { display: grid; gap: 1.2rem; margin-top: clamp(1.6rem,4vw,2.2rem); }
.field { display: flex; flex-direction: column; gap: .5rem; text-align: left; }
.field label { font-family: var(--f-label); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; font-size: .6rem; color: var(--sage-deep); }
.field input, .field textarea {
  font-family: var(--f-body); font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid rgba(217,143,22,.4); border-radius: 2px; padding: .8em .9em; transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(148,3,42,.1); }
.field textarea { resize: vertical; min-height: 90px; }
.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field-note { font-size: .85rem; color: var(--ink-soft); margin-top: -.3rem; }
@media (max-width: 500px) { .field-group { grid-template-columns: 1fr; } }
.choice { display: flex; flex-wrap: wrap; gap: .7rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); border: 1px solid rgba(217,143,22,.4); border-radius: 30px; padding: .55em 1.2em; cursor: pointer; transition: all .3s; }
.choice input:checked + label { background: var(--wine); color: var(--on-dark); border-color: var(--wine); }
.rsvp__submit { text-align: center; margin-top: .3rem; }
.rsvp__status { font-size: .85rem; color: var(--sage-deep); margin-top: .8rem; min-height: 1.2em; opacity: 0; transition: opacity .3s; }
.rsvp__status.is-visible { opacity: 1; }
.rsvp__thanks { display: none; text-align: center; }
.rsvp.is-sent .rsvp__form { display: none; }
.rsvp.is-sent .rsvp__thanks { display: block; animation: pageIn .7s var(--ease-silk) both; }
.rsvp__thanks h2 { font-family: var(--f-script); font-size: clamp(2.4rem,7vw,3.2rem); color: var(--wine); margin-bottom: .4rem; }

/* 12. ANIMACIONES */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-silk), transform 1s var(--ease-silk); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal--write { opacity: 1; transform: none; -webkit-mask: linear-gradient(#000,#000) left center / 0% 300% no-repeat; mask: linear-gradient(#000,#000) left center / 0% 300% no-repeat; }
.reveal--write.is-in { animation: handwrite 1.6s var(--ease-silk) forwards; }
@keyframes handwrite { from { -webkit-mask-size: 0% 300%; mask-size: 0% 300%; } to { -webkit-mask-size: 100% 300%; mask-size: 100% 300%; } }
@media (prefers-reduced-motion: reduce) { .reveal--write { -webkit-mask: none; mask: none; } .reveal--write.is-in { animation: none; } }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }
.petal { position: absolute; top: 0; left: 0; border-radius: 100% 0 100% 0; opacity: 0; }

/* 13. PIE */
.footer { text-align: center; }
.footer__inner { padding: clamp(1.2rem,4vw,2rem) var(--gutter) clamp(2.2rem,6vw,3.2rem); position: relative; }
.footer__spray { width: clamp(80px, 20vw, 130px); margin: 0 auto 1rem; }
.footer__names { font-family: var(--f-script); font-size: clamp(2.4rem,6.5vw,3.3rem); color: var(--wine); line-height: 1.3; padding-block: .15em; }
.footer .credit { font-family: var(--f-label); font-weight: 300; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sage-deep); margin-top: 1rem; }

/* 14. RESPONSIVE NAV (hamburguesa) */
@media (max-width: 900px) {
  .nav { padding: .55rem .7rem; justify-content: flex-start; background: transparent; box-shadow: none; }
  .nav__toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 11px; border-radius: 4px; z-index: 210; background: var(--paper); border: 1px solid rgba(217,143,22,.5); }
  .nav__toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--sage-deep); transition: transform .35s var(--ease-silk), opacity .25s; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links { position: fixed; top: 0; left: 0; right: 0; z-index: 205; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; width: 100%; padding: calc(var(--nav-h) + 1.2rem) 1.4rem 1.8rem; background: var(--paper); box-shadow: 0 22px 44px -18px rgba(58,47,34,.4); transform: translateY(-110%); visibility: hidden; opacity: 0; transition: transform .5s var(--ease-silk), visibility .5s, opacity .5s; max-height: 100svh; overflow-y: auto; }
  .nav.is-open .nav__links { transform: translateY(0); visibility: visible; opacity: 1; }
  .nav__links li { width: 100%; justify-content: center; border-top: 1px solid rgba(217,143,22,.25); }
  .nav__links li:first-child { border-top: 0; }
  .nav__links li:not(:last-child)::after { display: none; }
  .nav__links a { display: block; width: 100%; text-align: center; padding: .9rem 0; font-size: .8rem; letter-spacing: .2em; }
  .nav__links a::after { display: none; }
  .nav__links a.is-active { color: var(--wine); }
}

@media (max-width: 480px) {
  :root { --offset: 9px; }
  .fabric-wrap { box-shadow: 0 26px 60px -36px rgba(58,47,34,.5), 0 0 0 1px rgba(217,143,22,.4); }
}

/* 15. CONMUTADOR DE IDIOMA ES/FR */
.lang-toggle { position: fixed; top: .7rem; right: .8rem; z-index: 300; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 40px; font-family: 'Jost','Helvetica Neue',sans-serif; background: rgba(251,246,236,.94); border: 1px solid rgba(217,143,22,.5); box-shadow: 0 6px 16px -10px rgba(58,47,34,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lang-toggle button { font-family: inherit; font-size: .62rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); background: transparent; border: 0; border-radius: 30px; padding: .4em .72em; cursor: pointer; line-height: 1; transition: background .3s, color .3s; }
.lang-toggle button.is-active { background: var(--wine); color: var(--on-dark); }
.lang-toggle button:not(.is-active):hover { color: var(--wine); }
@media (max-width: 720px) { .lang-toggle { top: .5rem; right: .5rem; padding: 2px; } .lang-toggle button { font-size: .58rem; padding: .36em .62em; } }

/* =====================================================================
   16. PÁGINA SOBRE (index.html) — carta que se abre antes de la invitación
   Dos ilustraciones ya diseñadas (carta cerrada / carta abierta) que se
   cruzan en fundido al hacer clic; se usan versiones recortadas a un
   mismo encuadre (1068×1520) para que el sobre no salte de posición.
   ===================================================================== */
/* Sin scroll nunca en esta pantalla: todo debe entrar en el viewport inicial,
   en cualquier dispositivo. */
html:has(body > .stage-wrap), body:has(> .stage-wrap) { height: 100%; overflow: hidden; }
.fabric-wrap.stage-wrap { height: calc(100svh - var(--offset) * 2); display: grid; place-content: center; place-items: center; overflow: hidden; }

.stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(.6rem, 2vw, 1.2rem); padding: clamp(.6rem, 2.4vw, 1.6rem); animation: rise 1s var(--ease-silk) both; transition: opacity .55s ease, transform .7s var(--ease-silk); }
#envelopePage.is-leaving .stage { opacity: 0; transform: scale(1.05); }

/* ---- CARTA (ilustración) ----
   El ancho se limita a la vez por vw y por vh (convertido a un ancho
   equivalente vía la proporción de la imagen), así la carta jamás empuja
   el contenido más allá del alto del viewport, sin importar la forma
   de la pantalla. */
.letter { position: relative; width: min(70vw, 524px, calc(62vh * 1068 / 1520)); aspect-ratio: 1068 / 1520; cursor: pointer; }
.letter__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 36px rgba(58,47,34,.4)); transition: opacity .8s var(--ease-silk), transform .8s var(--ease-silk); }

.hint { font-family: var(--f-label); font-weight: 400; text-transform: uppercase; letter-spacing: .3em; font-size: .62rem; color: var(--sage-deep); animation: pulse 2.2s ease-in-out infinite; transition: opacity .4s ease; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stage, .letter__img, .hint { transition: none !important; animation: none !important; } }
@media (max-width: 600px) {
  .stage { gap: .5rem; padding: .6rem; }
  .letter { width: min(88vw, 462px, calc(60vh * 1068 / 1520)); }
}
@media (max-height: 680px) {
  .stage { gap: .4rem; }
  .letter { width: min(70vw, 400px, calc(56vh * 1068 / 1520)); }
}
