/* ============================================================
   Marta & Rory — 15.05.2027
   Paleta: claveles madrileños + tréboles irlandeses
   ============================================================ */
:root {
  --cream: #fbf7f0;
  --paper: #fffdf9;
  --tint: #f4eee3;
  --ink: #2f3a2c;
  --ink-soft: #5c6656;
  --green: #3e5a3a;
  --green-deep: #2c4129;
  --sage: #9db08f;
  --red: #c4343c;
  --gold: #b8924f;
  --line: #e4dccd;

  --f-script: "Pinyon Script", cursive;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-sans: "Jost", system-ui, sans-serif;

  --radius: 18px;
  --shadow: 0 10px 40px -18px rgba(47, 58, 44, .35);
  --topbar: 64px;
  --gutter: max(16px, env(safe-area-inset-left));
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 1.0625rem/1.7 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--green); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Tipografía ---------- */
.title {
  font: 500 clamp(2.1rem, 5vw, 3.2rem)/1.12 var(--f-serif);
  text-align: center;
  margin: 0 0 .4em;
  color: var(--green-deep);
  letter-spacing: .01em;
  text-wrap: balance;
}
.subtitle, .eyebrow {
  font: 400 .8rem/1.5 var(--f-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
h3 {
  font: 500 1.65rem/1.2 var(--f-serif);
  color: var(--green-deep);
  margin: 0 0 .8rem;
  text-wrap: balance;
}
.lead { font: 400 clamp(1.2rem, 2.6vw, 1.35rem)/1.5 var(--f-serif); color: var(--ink); text-wrap: balance; }
.script { font: 400 clamp(1.8rem, 5vw, 2.4rem)/1.3 var(--f-script); color: var(--red); text-wrap: balance; }
.center { text-align: center; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-soft); font-style: italic; }
.prose p { margin: 0 0 1em; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }

/* Ornamento: línea · clavel · trébol · línea */
.ornament { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: 0 auto 2.2rem; }
.ornament i { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament i:last-child { transform: scaleX(-1); }
.ornament svg { width: 26px; height: 26px; }
.o-clavel { color: var(--red); }
.o-trebol { color: var(--green); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px;
  padding: .8em 1.9em;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 400 .82rem/1.2 var(--f-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(44, 65, 41, .6); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--small { min-height: 38px; padding: .6em 1.2em; font-size: .72rem; }

/* ============================================================
   SOBRE DE BIENVENIDA
   ============================================================ */
.sobre { display: none; }
html.con-sobre body { overflow: hidden; }
html.con-sobre .sobre {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(196, 52, 60, .07), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(62, 90, 58, .09), transparent 55%),
    var(--cream);
  transition: opacity .9s ease .9s, visibility 0s linear 1.8s;
}
.sobre.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.sobre__btn:focus { outline: none; }
.sobre__btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
}
.sobre__para { font: 400 .78rem/1.4 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.sobre__nombres { font: 400 clamp(2.6rem, 10vw, 3.6rem)/1.1 var(--f-script); color: var(--green-deep); margin-bottom: 1rem; }
.sobre__nombres span { color: var(--red); }
.sobre__abrir {
  font: italic 400 1.15rem var(--f-serif); color: var(--ink-soft);
  margin-top: 1.4rem; animation: pulse 2.2s ease-in-out infinite;
}
.sobre__env {
  --w: min(340px, 78vw);
  position: relative; display: block;
  width: var(--w); height: calc(var(--w) * .66);
  perspective: 1200px;
  filter: drop-shadow(0 18px 30px rgba(47, 58, 44, .22));
  transition: transform .5s var(--ease);
}
.sobre__btn:hover .sobre__env { transform: translateY(-4px) rotate(-1deg); }
.sobre__back, .sobre__front, .sobre__flap, .sobre__card { position: absolute; display: block; }
.sobre__back { inset: 0; background: #e9dcc5; border-radius: 6px; }
.sobre__card {
  left: 7%; right: 7%; top: 8%; bottom: 8%;
  background: var(--paper); border-radius: 4px;
  display: grid; place-items: center;
  font: 500 1rem var(--f-serif); letter-spacing: .25em; color: var(--green-deep);
  transition: transform 1s var(--ease) .45s;
  z-index: 1;
}
.sobre__card::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); border-radius: 2px;
}
.sobre__front {
  inset: 0; z-index: 2; border-radius: 6px;
  background: linear-gradient(160deg, #f6ecdc, #efe2cb);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.sobre__flap {
  left: 0; right: 0; top: 0; height: 58%; z-index: 3;
  background: linear-gradient(180deg, #e6d5b8, #dcc8a6);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform .7s var(--ease), z-index 0s linear .35s;
  border-radius: 6px 6px 0 0;
}
.sobre__sello {
  position: absolute; left: 50%; top: 56%; z-index: 4;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #e0565d, #b0252d 60%, #8e1c23);
  box-shadow: 0 2px 0 rgba(0,0,0,.15), inset 0 0 0 4px rgba(255,255,255,.08), inset 0 -3px 6px rgba(0,0,0,.25);
  font: 400 1.15rem/1 var(--f-script); color: #f7e3d7; white-space: nowrap;
  transition: transform .45s var(--ease), opacity .35s;
}
.sobre__sello i { font-style: normal; font-size: .8em; margin: 0 1px; }
.sobre.is-open .sobre__sello { transform: scale(1.3) rotate(-12deg); opacity: 0; }
.sobre.is-open .sobre__flap { transform: rotateX(180deg); z-index: 0; }
.sobre.is-open .sobre__card { transform: translateY(-46%); }
@keyframes pulse { 50% { opacity: .45; } }

/* ============================================================
   MENÚ SUPERIOR
   ============================================================ */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--topbar);
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 max(var(--gutter), 3vw);
  background: rgba(251, 247, 240, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .3s, box-shadow .3s;
}
.topbar.is-solid { background: rgba(251, 247, 240, .94); box-shadow: 0 1px 0 var(--line); }
.topbar__logo { font: 400 1.7rem/1 var(--f-script); color: var(--green-deep); text-decoration: none; white-space: nowrap; }
.topbar__logo span { color: var(--red); }
.topbar__nav { display: flex; gap: clamp(.9rem, 1.6vw, 1.5rem); margin-left: auto; }
.topbar__nav a {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink); text-decoration: none; padding: .3em 0; border-bottom: 1px solid transparent;
  transition: border-color .25s, color .25s;
}
.topbar__nav a:hover, .topbar__nav a.is-active { border-color: var(--red); color: var(--green-deep); }

.lang { display: flex; border: 1px solid var(--green); border-radius: 999px; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,.6); }
.lang button {
  border: 0; background: transparent; color: var(--green);
  font: 500 .75rem/1 var(--f-sans); letter-spacing: .1em;
  padding: .65em .9em; min-width: 42px; cursor: pointer; transition: background .25s, color .25s;
}
.lang button.is-active { background: var(--green); color: #fff; }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; margin-right: -10px; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .topbar { gap: .75rem; }
  .lang { margin-left: auto; }
  .burger { display: block; }
  .topbar__nav {
    position: fixed; inset: var(--topbar) 0 auto 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--cream); box-shadow: 0 24px 30px -20px rgba(0,0,0,.25);
    padding: .5rem 0 1.2rem;
    max-height: calc(100svh - var(--topbar)); overflow-y: auto;
    transform: translateY(-110%); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
    z-index: -1;
  }
  .topbar__nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .topbar__nav a { padding: .95rem 24px; border: 0; text-align: center; font-size: .82rem; }
  .topbar__nav a.is-active { color: var(--red); }
  .topbar.menu-open { background: var(--cream); }
}

/* ============================================================
   1. PORTADA
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--topbar) + 2vh) var(--gutter) 12vh;
  text-align: center;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: #f1efe8 url("../img/portada.jpg") center / cover no-repeat;
  background-image: image-set(url("../img/portada.webp") type("image/webp"), url("../img/portada.jpg") type("image/jpeg"));
  animation: kenburns 16s var(--ease) both;
}
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__content { position: relative; max-width: 660px; margin-top: -10vh; }
.hero__content::before {
  /* halo suave para que el texto se lea sobre la ilustración */
  content: ""; position: absolute; inset: -14% -20%; z-index: -1;
  background: radial-gradient(closest-side, rgba(253, 251, 246, .86), rgba(253, 251, 246, 0));
}
.hero__content > * { animation: rise 1.2s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .15s; }
.hero__content > :nth-child(3) { animation-delay: .3s; }
.hero__content > :nth-child(4), .hero__content > :nth-child(5) { animation-delay: .45s; }
.hero__content > :nth-child(6) { animation-delay: .6s; }
html.con-sobre .hero__content > *, html.con-sobre .hero__bg { animation-play-state: paused; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

.hero__names {
  font: 400 clamp(2.9rem, 12vw, 6.2rem)/1.15 var(--f-script);
  color: var(--green-deep);
  margin: 0;
  white-space: nowrap;
}
.hero__names .amp { color: var(--red); font-size: .8em; }
.hero__date {
  font: 500 clamp(.95rem, 2.4vw, 1.2rem)/1.5 var(--f-sans);
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink); margin: .5rem 0 .4rem;
  padding-left: .3em; /* compensa el letter-spacing para centrar */
}
.hero__date .dot { color: var(--red); margin: 0 .5em; }
.hero__motto { font: italic 400 clamp(1.2rem, 3vw, 1.6rem)/1.4 var(--f-serif); color: var(--ink-soft); margin: 0 0 1.8rem; text-wrap: balance; }

.countdown { display: flex; justify-content: center; gap: clamp(.5rem, 2.5vw, 1.4rem); margin-bottom: 2rem; }
.countdown div {
  flex: 0 1 84px; min-width: 0;
  padding: .75rem .3rem .6rem;
  background: rgba(255, 253, 249, .8);
  border: 1px solid rgba(62, 90, 58, .18);
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 6px 18px -12px rgba(47, 58, 44, .4);
}
.countdown strong { font: 500 clamp(1.6rem, 4.5vw, 2.4rem)/1 var(--f-serif); color: var(--green-deep); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: .4rem; }
.countdown strong.tick { animation: tick .45s var(--ease); }
@keyframes tick { from { transform: translateY(-6px); opacity: .3; } }
.countdown-done { font: 400 1.6rem var(--f-serif); color: var(--red); }

.hero__scroll {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.hero__scroll i { width: 1px; height: 26px; background: linear-gradient(var(--ink), transparent); animation: scrollcue 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 720px), (orientation: portrait) and (max-width: 1100px) {
  /* en móvil y tablet vertical se ve la ilustración completa abajo y el cielo arriba */
  .hero { align-items: start; padding-top: calc(var(--topbar) + 8vh); }
  .hero__bg {
    background:
      linear-gradient(to bottom, #e6ecee 0%, #ecebe6 48%, rgba(238,236,230,0) 70%),
      url("../img/portada.jpg") center bottom / 140% auto no-repeat,
      #edece6;
  }
  .hero__scroll { display: none; }
}
@media (orientation: portrait) and (min-width: 721px) and (max-width: 1100px) {
  .hero__bg { background-size: auto, 118% auto, auto; }
  .hero { padding-top: calc(var(--topbar) + 12vh); }
  .hero__content { margin-top: 0; }
}
@media (max-width: 720px) {
  .hero__content { margin-top: 0; }
  .hero__date { letter-spacing: .2em; padding-left: .2em; }
  .hero__date .dot { display: none; }
  .hero__place { display: block; }
  .hero__scroll { display: none; }
}
@media (max-width: 380px) {
  .countdown span { letter-spacing: .08em; }
  .hero__content { padding: 0 4px; }
}
/* móvil en horizontal / pantallas muy bajas */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding-top: calc(var(--topbar) + 1rem); padding-bottom: 2rem; place-items: center; }
  .hero__content { margin-top: 0; }
  .hero__names { font-size: clamp(2.4rem, 9vh, 3.6rem); }
  .hero__motto { margin-bottom: .9rem; }
  .countdown { margin-bottom: 1rem; }
  .countdown div { padding: .45rem .3rem .4rem; }
  .hero__scroll { display: none; }
}

/* ============================================================
   2. TIMELINE
   ============================================================ */
.timeline-sec {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) var(--gutter);
  background: #f6e9d6 url("../img/finca.jpg") center bottom / cover no-repeat;
  background-image: image-set(url("../img/finca.webp") type("image/webp"), url("../img/finca.jpg") type("image/jpeg"));
  min-height: 90vh;
  display: grid; place-items: start center;
}
.timeline-card {
  width: min(1100px, 100%);
  background: rgba(255, 252, 246, .84);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  text-align: center;
}
.timeline {
  list-style: none; padding: 0; margin: 1rem 0 2.5rem;
  display: grid; grid-template-columns: repeat(6, 1fr);
  position: relative;
}
.timeline::before {
  /* la línea que une los puntos: se "dibuja" al aparecer */
  content: ""; position: absolute; left: calc(100% / 12); right: calc(100% / 12);
  top: 128px; height: 1.5px; background: var(--green-deep);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s;
}
.timeline li {
  display: flex; flex-direction: column; align-items: center; position: relative; padding: 0 .3rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease, transform .7s var(--ease);
  transition-delay: calc(var(--i) * .2s + .3s);
}
.timeline img { height: 110px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 30px; transition: transform .4s var(--ease); }
.timeline li:hover img { transform: translateY(-6px) rotate(-3deg); }
.timeline li::after {
  content: ""; position: absolute; top: 122px; left: 50%; translate: -50% 0;
  width: 13px; height: 13px; border-radius: 50%; background: var(--green-deep);
  box-shadow: 0 0 0 4px rgba(255, 252, 246, .9);
}
.timeline time { font: 500 1.7rem/1.1 var(--f-serif); color: var(--green-deep); }
.timeline span { font: 400 clamp(1.35rem, 2.1vw, 1.7rem)/1.15 var(--f-script); color: var(--ink); margin-top: .25rem; }
.timeline.is-in::before { transform: none; }
.timeline.is-in li { opacity: 1; transform: none; }
.timeline-note { font: italic 400 1.3rem/1.5 var(--f-serif); max-width: 560px; margin: 0 auto 1.4rem; text-wrap: balance; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.cal { position: relative; }
.cal summary { list-style: none; }
.cal summary::-webkit-details-marker { display: none; }
.cal[open] summary { background: var(--green); color: #fff; }
.cal__menu {
  position: absolute; left: 50%; top: calc(100% + 8px); translate: -50% 0; z-index: 5;
  min-width: 100%; padding: .4rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  display: grid;
  animation: rise .3s var(--ease);
}
.cal__menu a { padding: .75rem 1rem; border-radius: 10px; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.cal__menu a:hover { background: var(--tint); }

@media (max-width: 860px) {
  /* en móvil, timeline vertical */
  .timeline { grid-template-columns: 1fr; gap: 1.1rem; max-width: 340px; margin-inline: auto; text-align: left; }
  .timeline::before { left: 104px; right: auto; top: 18px; bottom: 18px; width: 1.5px; height: auto; transform: scaleY(0); transform-origin: top; }
  .timeline li { display: grid; grid-template-columns: 80px 1fr; grid-template-rows: auto auto; column-gap: 48px; align-items: center; padding: 0; transform: translateX(-12px); }
  .timeline li::after { top: 50%; left: 104px; translate: -50% -50%; }
  .timeline img { grid-row: 1 / 3; height: 68px; margin: 0 auto; }
  .timeline time { align-self: end; font-size: 1.4rem; }
  .timeline span { align-self: start; font-size: 1.5rem; margin: 0; }
  .timeline-sec { min-height: 0; }
}
@media (max-width: 360px) {
  .timeline li { grid-template-columns: 64px 1fr; column-gap: 36px; }
  .timeline::before, .timeline li::after { left: 82px; }
  .timeline img { height: 56px; }
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { position: relative; padding: clamp(4.5rem, 9vw, 7rem) var(--gutter); }
.section--tint { background: var(--tint); }
.wrap { max-width: 1040px; margin: 0 auto; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* ============================================================
   3. MADRID
   ============================================================ */
.card--sanisidro { max-width: 820px; margin: 0 auto; position: relative; overflow: hidden; }
.card--sanisidro h3 { text-align: center; }
.prose .guino {
  font: italic 400 1.3rem/1.5 var(--f-serif); color: var(--red); text-align: center; margin-top: 1.6em;
  text-wrap: balance;
}

/* --- Tiempo / ropa --- */
.weather { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.weather li { display: flex; gap: .8rem; align-items: center; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-weight: 400; }
.weather__i { font-size: 1.25rem; width: 1.6rem; text-align: center; }
.tag {
  display: inline-block; margin: 0 0 1rem;
  padding: .4em 1em; border-radius: 999px;
  background: rgba(196, 52, 60, .08); color: var(--red);
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}

/* ============================================================
   4. ALOJAMIENTO
   ============================================================ */
.areas { text-align: center; margin: 2.5rem 0 1rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.chips li {
  padding: .5em 1.2em; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--sage);
  font: 500 1.15rem/1.2 var(--f-serif); color: var(--green-deep);
  transition: transform .3s var(--ease), background .3s;
}
.chips li:hover { transform: translateY(-2px); background: #fff; }
.h-icon { display: flex; align-items: center; gap: .6rem; }
.h-icon__i { font-size: 1.3rem; }
.transport { list-style: none; padding: 0; margin: 0; }
.transport li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .5rem; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.transport li:last-child { border: 0; padding-bottom: 0; }
.transport__i { font-size: 1.2rem; line-height: 1.6; }
.transport strong { display: block; font-weight: 500; color: var(--green-deep); }

.bus-route { display: flex; align-items: center; gap: .7rem; margin-top: 1.6rem; }
.bus-route__stop {
  font: 500 .72rem/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep);
  padding: .5em .8em; border: 1px solid var(--sage); border-radius: 999px; white-space: nowrap;
}
.bus-route__line { position: relative; flex: 1; height: 30px; }
.bus-route__line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--sage); }
.bus-route__bus { position: absolute; top: 3px; left: 0; width: 40px; height: 24px; animation: bus 7s ease-in-out infinite; }
@keyframes bus {
  0% { left: 0; transform: scaleX(1); }
  44% { left: calc(100% - 40px); transform: scaleX(1); }
  50% { left: calc(100% - 40px); transform: scaleX(-1); }
  94% { left: 0; transform: scaleX(-1); }
  100% { left: 0; transform: scaleX(1); }
}

/* ============================================================
   5. PREBODA
   ============================================================ */
.preboda { max-width: 620px; margin: 0 auto; text-align: center; }
.preboda__icon { display: flex; justify-content: center; gap: .1rem; font-size: 2.4rem; margin-bottom: .4rem; }
.preboda__icon span { display: inline-block; transform-origin: bottom center; }
.preboda.is-visible .preboda__icon span:first-child { animation: cheersL 1.2s var(--ease) .5s both; }
.preboda.is-visible .preboda__icon span:last-child { animation: cheersR 1.2s var(--ease) .5s both; }
@keyframes cheersL { 0% { transform: translateX(-14px) rotate(-10deg); } 55% { transform: translateX(4px) rotate(14deg); } 100% { transform: rotate(0); } }
@keyframes cheersR { 0% { transform: translateX(14px) rotate(10deg); } 55% { transform: translateX(-4px) rotate(-14deg); } 100% { transform: rotate(0); } }
.preboda .eyebrow { margin-bottom: 1rem; }
.preboda .lead { margin: 0 0 .6rem; }

/* ============================================================
   6. RSVP
   ============================================================ */
.section--green { background: var(--green-deep); color: #f3efe6; overflow: hidden; }
.section--green .title { color: #fff; }
.rsvp-intro { max-width: 560px; margin: 0 auto 2rem; text-wrap: balance; }
.rsvp-deco { position: absolute; color: #fff; opacity: .06; pointer-events: none; }
.rsvp-deco--1 { width: 280px; height: 280px; top: -40px; left: -70px; transform: rotate(-20deg); }
.rsvp-deco--2 { width: 220px; height: 220px; bottom: 6%; right: -60px; transform: rotate(18deg); }
.rsvp-deco--3 { width: 140px; height: 140px; top: 40%; right: 8%; transform: rotate(40deg); }
.rsvp { position: relative; max-width: 640px; margin: 0 auto; color: var(--ink); display: grid; gap: 1.3rem; }
.field { display: grid; gap: .5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 500; font-size: .95rem; color: var(--green-deep); padding: 0; }
.field legend { margin-bottom: .55rem; }
.opt { font-weight: 300; color: var(--ink-soft); font-size: .85em; }
input:not([type=radio]), textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--f-sans); color: var(--ink); /* 16px: evita el zoom en iPhone */
  padding: .8em 1em;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(62, 90, 58, .15); }
.field.is-invalid input, .field.is-invalid .choices label { border-color: var(--red); box-shadow: 0 0 0 3px rgba(196, 52, 60, .12); }
.field.is-invalid { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
textarea { resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choices--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices label {
  display: flex; align-items: center; gap: .65rem;
  min-height: 50px; padding: .65em 1em; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); cursor: pointer; flex: 1 1 200px;
  transition: border-color .2s, background .2s, transform .2s;
  line-height: 1.35;
}
.choices label:hover { border-color: var(--sage); }
.choices label:has(input:checked) { border-color: var(--green); background: rgba(157, 176, 143, .2); }
.choices input { accent-color: var(--green); width: 1.15rem; height: 1.15rem; margin: 0; flex-shrink: 0; }
.if-yes { display: grid; gap: 1.3rem; animation: rise .5s var(--ease); }
.stepper { display: flex; align-items: center; gap: .5rem; }
.stepper button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sage); background: var(--cream);
  font-size: 1.3rem; line-height: 1; color: var(--green-deep); cursor: pointer; transition: background .2s;
}
.stepper button:hover { background: rgba(157, 176, 143, .25); }
.stepper input { width: 64px; text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-icon { position: relative; display: block; }
.input-icon > span { position: absolute; left: .9em; top: 50%; translate: 0 -50%; pointer-events: none; }
.input-icon input { padding-left: 2.6em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rsvp .btn { justify-self: center; margin-top: .5rem; min-width: 220px; }
.rsvp .btn[disabled] { opacity: .6; cursor: wait; }
.form-msg { text-align: center; margin: 0; min-height: 1.5em; font-weight: 400; }
.form-msg.ok { color: var(--green); font: 500 1.35rem/1.4 var(--f-serif); }
.form-msg.err { color: var(--red); }
@media (max-width: 520px) {
  .choices--grid { grid-template-columns: 1fr; }
  .choices label { flex-basis: 100%; }
  .rsvp .btn { width: 100%; }
}

/* ============================================================
   7. REGALO
   ============================================================ */
.gift { max-width: 680px; margin: 0 auto; text-align: center; }
.gift__icon { color: var(--gold); display: inline-block; margin-bottom: .2rem; }
.gift.is-visible .gift__icon { animation: wiggle 1.4s var(--ease) .4s; }
@keyframes wiggle { 20% { transform: rotate(-8deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }
.iban {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1rem;
  margin-top: 1.5rem; padding: 1rem; border: 1px dashed var(--sage); border-radius: 12px; background: var(--cream);
}
.iban code { font: 500 clamp(.92rem, 3.4vw, 1.15rem)/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; color: var(--green-deep); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }

/* ============================================================
   8. SOBRE NOSOTROS
   ============================================================ */
.about { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 460px); justify-content: center; align-items: center; gap: clamp(2rem, 6vw, 5rem); margin: 1rem auto 3.5rem; }
.about__text .lead { margin: 0 0 1rem; }
.about__text .script { margin: 0; }
.route { margin: 0; }
.route svg { width: 100%; height: auto; overflow: visible; display: block; }
.route__land path { fill: #e9e0cc; stroke: #dccfb3; stroke-width: 1.2; stroke-linejoin: round; }
.route__path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .3s; }
.route__path--a { stroke: var(--red); }
.route__path--b { stroke: var(--green); transition-delay: .9s; }
.route__pin circle { fill: var(--paper); stroke: var(--green-deep); stroke-width: 2.2; }
.route__pin text { font: 500 21px var(--f-serif); fill: var(--green-deep); }
.route__pin--dublin text { font-weight: 600; fill: var(--red); }
.route__heart { fill: var(--red); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s cubic-bezier(.3, 1.6, .5, 1) 2.2s; }
.route.is-visible .route__path { stroke-dashoffset: 0; }
.route.is-visible .route__heart { transform: scale(1); animation: beat 1.6s ease-in-out 3s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .about__text { order: -1; }
  .route { width: min(240px, 70vw); margin: 0 auto; }
}


.polaroids { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.8rem 1.6rem; padding: 0 .5rem; }
.polaroid {
  --r: 0deg;
  display: block; width: 220px;
  padding: 11px 11px 0; background: #fff;
  box-shadow: 0 14px 30px -16px rgba(47, 58, 44, .5), 0 1px 2px rgba(0,0,0,.06);
  text-decoration: none;
  transform: rotate(var(--r));
}
.polaroid:nth-child(7n+1) { --r: -3deg; }
.polaroid:nth-child(7n+2) { --r: 2deg; }
.polaroid:nth-child(7n+3) { --r: -1.5deg; }
.polaroid:nth-child(7n+4) { --r: 3deg; }
.polaroid:nth-child(7n+5) { --r: -2deg; }
.polaroid:nth-child(7n+6) { --r: 1.5deg; }
.polaroid:nth-child(7n+7) { --r: -2.5deg; }
.polaroid:hover { transform: rotate(0) scale(1.05); box-shadow: 0 22px 40px -18px rgba(47, 58, 44, .55); position: relative; z-index: 2; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--tint); }
.polaroid > span { display: block; padding: .55rem 0 .7rem; font: 400 1.55rem/1.2 var(--f-script); color: var(--ink); text-align: center; }
.polaroids .polaroid { opacity: 0; translate: 0 24px; transition: transform .45s var(--ease), box-shadow .45s, opacity .8s ease, translate .8s var(--ease); }
.polaroids.is-in .polaroid { opacity: 1; translate: 0 0; }
.polaroids.is-in .polaroid:nth-child(2) { transition-delay: 0s, 0s, .1s, .1s; }
.polaroids.is-in .polaroid:nth-child(3) { transition-delay: 0s, 0s, .2s, .2s; }
.polaroids.is-in .polaroid:nth-child(4) { transition-delay: 0s, 0s, .3s, .3s; }
.polaroids.is-in .polaroid:nth-child(5) { transition-delay: 0s, 0s, .4s, .4s; }
.polaroids.is-in .polaroid:nth-child(6) { transition-delay: 0s, 0s, .5s, .5s; }
.polaroids.is-in .polaroid:nth-child(7) { transition-delay: 0s, 0s, .6s, .6s; }
@media (max-width: 600px) {
  .polaroids { gap: 1.1rem .9rem; padding: 0; }
  .polaroid { width: calc(50% - .45rem); padding: 7px 7px 0; }
  .polaroid > span { font-size: 1.2rem; padding: .35rem 0 .45rem; }
  .polaroid:nth-child(odd) { --r: -1.5deg; }
  .polaroid:nth-child(even) { --r: 1.5deg; }
}

/* Visor de fotos */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26, 32, 24, .94);
  display: grid; place-items: center; padding: 56px 16px;
  animation: fade .3s ease;
}
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .6rem; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; max-height: 78svh; width: auto; border-radius: 6px; }
.lightbox figcaption { font: 400 1.8rem var(--f-script); color: #f3efe6; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 300 2.8rem/1 var(--f-serif); cursor: pointer; width: 52px; height: 52px; display: grid; place-items: center; }
.lightbox__close { top: max(8px, env(safe-area-inset-top)); right: 8px; }
.lightbox__prev { left: 4px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 4px; top: 50%; translate: 0 -50%; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 3rem var(--gutter) max(3rem, env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--line); }
.footer .ornament { margin-bottom: .6rem; }
.footer .script { margin: 0; font-size: 2.4rem; color: var(--green-deep); }
.footer p { margin: 0; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

/* Confeti (pétalos y tréboles) al confirmar */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 150; }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .timeline li, .polaroids .polaroid { opacity: 1; transform: none; translate: none; }
  .timeline::before { transform: none; }
}
