/* =============================================================
   ANA & ANTONIO — Boda · 11 de octubre de 2026
   Hoja de estilos única, organizada por secciones.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f8f2e8;
  --bg-2:      #efe2d0;
  --paper:     #fffdf9;
  --ink:       #2b241c;
  --ink-soft:  #3d3327;
  --ink-mute:  #7d7062;
  --accent:    #c96f36;   /* naranja */
  --accent-2:  #4f7f9e;   /* azul */
  --gold:      #b8925a;   /* beige/arena */
  --line:      rgba(43, 36, 28, 0.14);
  --line-soft: rgba(43, 36, 28, 0.08);
  --shadow:    0 30px 60px -25px rgba(43, 36, 28, 0.35);
  --shadow-sm: 0 12px 30px -18px rgba(43, 36, 28, 0.4);

  --serif:  "Fraunces", "Iowan Old Style", "Georgia", serif;
  --script: "Mrs Saint Delafield", "Playfair Display", Georgia, serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --container: 1120px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section { padding-block: clamp(4rem, 10vw, 7.5rem); position: relative; }
.section-alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .9rem;
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}
.section-title { font-size: clamp(2rem, 4.2vw, 3rem); font-style: italic; }
.section-sub { margin-top: 1rem; color: var(--ink-mute); font-size: 1.05rem; max-width: 52ch; }
.section-head.is-center .section-sub { margin-inline: auto; }

.divider {
  width: 46px; height: 2px; background: var(--accent);
  border-radius: 2px; margin-block: 1.4rem;
}
.divider.is-center { margin-inline: auto; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.9rem; border-radius: 999px; font-size: .92rem; font-weight: 600;
  letter-spacing: .01em; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); background: var(--accent); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--accent); font-weight: 600; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; transition: opacity .6s var(--ease-out); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; } }
.splash-mark {
  font-family: var(--script); font-weight: 400; font-size: clamp(3rem, 12vw, 5.5rem);
  color: var(--ink); letter-spacing: .01em;
  opacity: 0; animation: splashFade 1.4s var(--ease-out) .2s forwards;
}
.splash-mark em { color: var(--accent); font-style: normal; }
@keyframes splashFade { to { opacity: 1; } }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(248, 242, 232, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
}
@supports not (backdrop-filter: blur(1px)) {
  .nav.is-solid { background: rgba(248, 242, 232, 0.98); }
}
.nav.menu-open {
  background: var(--bg);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { font-family: var(--script); font-weight: 400; font-size: 1.9rem; }
.nav-brand em { color: var(--accent); font-style: normal; }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-toggle {
  display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px;
  padding: .2rem; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
}
.lang-toggle button {
  padding: .38rem .72rem; border-radius: 999px; color: var(--ink-mute);
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.lang-toggle button.is-active { background: var(--ink); color: var(--paper); }

.nav-burger {
  display: inline-flex; flex-direction: column; gap: 5px; padding: .5rem;
}
.nav-burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 490;
  background: var(--bg);
  display: flex; flex-direction: column; padding: 2rem 1.5rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease-out), opacity .35s var(--ease-out);
}
.nav-mobile.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-mobile a { font-family: var(--serif); font-style: italic; font-size: 1.7rem; padding-block: .8rem; border-bottom: 1px solid var(--line-soft); }
.nav-mobile a.is-active { color: var(--accent); }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding-top: calc(var(--nav-h) + clamp(1.5rem, 5vw, 3rem));
  padding-bottom: clamp(.5rem, 2vw, 1rem);
  overflow: clip;
}

.hero-bg-photo {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.hero-bg-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  will-change: filter;
}
.hero-bg-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(248,242,232,.86) 0%, rgba(248,242,232,.6) 32%, rgba(248,242,232,.32) 60%, rgba(248,242,232,.14) 100%);
}

.hero-content { position: relative; max-width: none; }

.hero-date {
  font-family: var(--script); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  color: var(--ink); line-height: 1;
  text-align: center; width: 100%;
}

.hero-names {
  margin-top: .6rem;
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-start; justify-content: center;
  gap: clamp(.7rem, 4vw, 4.2rem);
  width: 100%;
}
.hero-name-block { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; }
.hero-name {
  font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 18vw, 18.5rem);
  line-height: 1; color: var(--ink); white-space: nowrap;
}
.hero-amp {
  font-family: var(--script); font-weight: 400; font-style: normal; font-size: clamp(1.6rem, 8.3vw, 8.5rem);
  color: var(--accent); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  height: clamp(2.6rem, 18vw, 18.5rem);
}
.hero-parent-line {
  font-family: var(--serif); font-style: italic; color: var(--ink-mute);
  font-size: clamp(.6rem, 2vw, .96rem);
  max-width: 20ch;
}

.hero-sub {
  margin: 1.8rem auto 0; max-width: 46ch; color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

.countdown {
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  display: flex; gap: clamp(.9rem, 3vw, 1.8rem); justify-content: center;
}
.countdown-item {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  min-width: 58px;
}
.countdown-num {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums;
}
.countdown-label {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute);
}

.hero-collage {
  position: relative; width: min(100%, 1000px); margin: clamp(11rem, 24vw, 16rem) auto 0;
  height: clamp(340px, 56vw, 560px);
}
.collage-photo {
  position: absolute; width: auto; height: auto; max-width: none;
  filter: drop-shadow(0 18px 30px rgba(43,36,28,.28));
}
.cp-effect { width: 38%; left: 32%; top: 0; z-index: 2; }
.cp-2 { width: 22%; left: 2%; top: 24%; z-index: 1; }
.cp-3 { width: 32%; left: 66%; top: 12%; z-index: 1; }

/* =============================================================
   8. Reveal on scroll
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* =============================================================
   9. Agenda / timeline
   ============================================================= */
.agenda-list {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
  margin-top: 1rem;
}
.agenda-list::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1.5px;
  background: var(--line);
}
.agenda-track {
  position: absolute; left: 27px; top: 10px; width: 1.5px; height: 0%;
  background: var(--accent);
  transition: height 1.2s var(--ease-out);
}
.agenda-item { display: grid; grid-template-columns: 56px 1fr; gap: 1.4rem; padding-block: 1.6rem; position: relative; }
.agenda-dot {
  width: 56px; height: 56px; border-radius: 50%; background: var(--paper);
  border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 700; font-size: .82rem; color: var(--ink-mute);
  position: relative; z-index: 1; transition: border-color .4s var(--ease-out), color .4s var(--ease-out), background .4s var(--ease-out);
}
.agenda-item.is-visible .agenda-dot { border-color: var(--accent); color: var(--accent); background: var(--paper); }
.agenda-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 20px;
  padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.agenda-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.agenda-time { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.agenda-title { font-size: 1.4rem; font-style: italic; margin-top: .3rem; }
.agenda-place { font-size: .92rem; color: var(--ink-mute); margin-top: .15rem; font-weight: 600; }
.agenda-desc { margin-top: .7rem; color: var(--ink-soft); font-size: .96rem; max-width: 56ch; }

.agenda-sub-list { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.agenda-sub-item { padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.agenda-sub-item:first-child { padding-top: 0; border-top: 0; }
.agenda-sub-title { font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin-top: .25rem; }

.agenda-media-row {
  margin-top: 1.1rem; display: grid; grid-template-columns: 1fr; gap: .8rem;
}
.agenda-map {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft);
  aspect-ratio: 16 / 9;
}
.agenda-map iframe { width: 100%; height: 100%; border: 0; }
.agenda-photo {
  border-radius: 14px; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--line-soft);
}
@media (min-width: 720px) {
  .agenda-media-row { grid-template-columns: 1fr 1fr; }
}
.agenda-actions { margin-top: 1rem; }

.agenda-intro {
  max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 2.6rem);
  display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: center;
}
.agenda-intro-photo { width: min(190px, 55%); margin-inline: auto; filter: drop-shadow(0 16px 26px rgba(43,36,28,.25)); }
@media (min-width: 720px) {
  .agenda-intro { grid-template-columns: 190px 1fr; text-align: left; }
  .agenda-intro .kicker { justify-content: flex-start; }
}

/* =============================================================
   10. Historia del quiz + secciones auxiliares
   ============================================================= */
.quiz-story {
  max-width: 820px; margin: 0 auto clamp(2rem, 5vw, 3rem);
  display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: center;
  text-align: center;
}
.quiz-story-photo { width: min(240px, 60%); margin-inline: auto; filter: drop-shadow(0 16px 26px rgba(43,36,28,.25)); }
.quiz-story-text p:not(.kicker) {
  font-size: clamp(1.02rem, 1.6vw, 1.14rem); color: var(--ink-soft); line-height: 1.75;
}
@media (min-width: 720px) {
  .quiz-story { grid-template-columns: 220px 1fr; text-align: left; }
  .quiz-story-text .kicker { justify-content: flex-start; }
}

.photos-warning {
  max-width: 680px; margin: 0 auto clamp(1.6rem, 4vw, 2.4rem); text-align: center;
  background: var(--bg-2); border-left: 3px solid var(--accent); border-radius: 16px;
  padding: 1.2rem 1.5rem; font-size: .94rem; color: var(--ink-soft); line-height: 1.65;
}

.section-end-nav {
  margin-top: clamp(2.5rem, 6vw, 3.5rem); display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; align-items: center;
}
.section-end-nav .link-home {
  flex-basis: 100%; text-align: center; margin-bottom: .3rem;
  font-size: .92rem; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-underline-offset: 4px;
  transition: color .3s var(--ease-out);
}
.section-end-nav .link-home:hover { color: var(--ink); }
.section-end-nav .is-current {
  opacity: .45; pointer-events: none; cursor: default;
}
.section-end-nav .link-home.is-current { text-decoration: none; }
.section-end-nav .btn.is-current:hover { transform: none; border-color: var(--line); color: var(--ink); }

.section-compact { padding-block: clamp(2.5rem, 6vw, 3.5rem); text-align: center; }
.contact-compact-title { font-size: 1.5rem; font-style: italic; margin-top: .4rem; }
.contact-grid-compact { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.contact-chip {
  display: inline-flex; align-items: baseline; gap: .5rem;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 999px;
  padding: .6rem 1.1rem; font-size: .88rem; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.contact-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact-chip .contact-name { font-weight: 700; }
.contact-chip .contact-phone { color: var(--ink-mute); }

/* =============================================================
   11. Weather
   ============================================================= */
.weather-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; }
.weather-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 1.5rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm);
}
.weather-year { font-size: .8rem; color: var(--ink-mute); font-weight: 600; letter-spacing: .06em; }
.weather-temps { display: flex; align-items: baseline; justify-content: center; gap: .5rem; margin-top: .6rem; }
.weather-hi { font-family: var(--serif); font-style: italic; font-size: 2.1rem; color: var(--accent); }
.weather-lo { font-size: 1rem; color: var(--ink-mute); }
.weather-cond { margin-top: .4rem; font-size: .82rem; color: var(--ink-mute); }
.weather-callout {
  margin-top: 2rem; background: var(--bg-2); border-radius: 18px; padding: 1.6rem 1.8rem;
  border-left: 3px solid var(--accent); font-size: .98rem; color: var(--ink-soft); max-width: 68ch;
}

.gift-section { padding-block: clamp(2.5rem, 6vw, 4rem); }
.gift-callout {
  margin-inline: auto; max-width: 46ch; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  color: var(--ink); line-height: 1.5;
}
.gift-callout strong { display: inline-block; margin-top: .3rem; color: var(--accent); font-style: normal; letter-spacing: .04em; }

/* =============================================================
   13. RSVP
   ============================================================= */
.rsvp-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 24px;
  padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); max-width: 760px; margin-inline: auto;
}
.rsvp-frame-wrap { border-radius: 16px; overflow: visible; border: 1px solid var(--line-soft); background: var(--bg); }
.rsvp-frame-wrap iframe { width: 100%; height: 1120px; border: 0; display: block; }
@media (max-width: 599px) {
  .rsvp-frame-wrap iframe { height: 1360px; }
}
.rsvp-pending {
  padding: 2.4rem 1.5rem; text-align: center; color: var(--ink-mute); font-size: .96rem;
}
.rsvp-fallback { margin-top: 1.4rem; text-align: center; font-size: .92rem; color: var(--ink-mute); }
.rsvp-fallback a { color: var(--accent); font-weight: 600; }

/* =============================================================
   14. FAQ
   ============================================================= */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { font-size: 1.3rem; color: var(--accent); transition: transform .35s var(--ease-out); flex-shrink: 0; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-answer { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: .96rem; max-width: 62ch; }

/* =============================================================
   15. Contact
   ============================================================= */
.contact-name { font-weight: 700; }
.contact-phone { color: var(--ink-mute); font-size: .92rem; }

/* =============================================================
   16. Quiz
   ============================================================= */
.quiz-wrap {
  max-width: 720px; margin-inline: auto;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 24px;
  padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: var(--shadow);
  min-height: 360px;
}
.quiz-stage { display: none; }
.quiz-stage.is-active { display: block; }

.quiz-name-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.quiz-input {
  flex: 1 1 220px; padding: .9rem 1.1rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); font-size: .98rem; transition: border-color .3s var(--ease-out);
}
.quiz-input:focus { border-color: var(--accent); }

.quiz-progress { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.quiz-progress-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.quiz-progress-bar { height: 4px; background: var(--bg-2); border-radius: 4px; overflow: hidden; margin-top: .6rem; }
.quiz-progress-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .5s var(--ease-out); }

.quiz-question { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 1.4rem; }
.quiz-options { display: flex; flex-direction: column; gap: .7rem; }
.quiz-option {
  text-align: left; padding: 1rem 1.2rem; border-radius: 14px; border: 1.5px solid var(--line);
  font-size: .98rem; transition: border-color .3s var(--ease-out), background .3s var(--ease-out), transform .2s var(--ease-out);
  display: flex; align-items: center; gap: .8rem;
}
.quiz-option:hover:not([disabled]) { border-color: var(--accent); transform: translateX(3px); }
.quiz-option-letter {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700;
  flex-shrink: 0; color: var(--ink-mute);
}
.quiz-option.is-correct { border-color: var(--accent-2); background: rgba(79,127,158,.12); }
.quiz-option.is-correct .quiz-option-letter { background: var(--accent-2); color: var(--paper); border-color: var(--accent-2); }
.quiz-option.is-wrong { border-color: var(--accent); background: rgba(201,111,54,.1); }
.quiz-option.is-wrong .quiz-option-letter { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.quiz-option[disabled] { pointer-events: none; }

.quiz-feedback { margin-top: 1.1rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--bg); font-size: .92rem; color: var(--ink-soft); }
.quiz-feedback strong { color: var(--ink); }
.quiz-feedback.is-correct { border-left: 3px solid var(--accent-2); }
.quiz-feedback.is-wrong { border-left: 3px solid var(--accent); }

.quiz-nav { display: flex; justify-content: flex-end; margin-top: 1.6rem; }

.quiz-score {
  text-align: center;
}
.quiz-score-num { font-family: var(--serif); font-style: italic; font-size: clamp(3.4rem, 10vw, 5rem); color: var(--accent); line-height: 1; }
.quiz-score-label { color: var(--ink-mute); margin-top: .4rem; }
.quiz-review { margin-top: 2rem; display: flex; flex-direction: column; gap: .8rem; text-align: left; }
.quiz-review-item { padding: 1rem 1.2rem; border-radius: 14px; background: var(--bg); font-size: .9rem; }
.quiz-review-item .q { font-weight: 600; margin-bottom: .3rem; }
.quiz-review-item .a-ok { color: var(--accent-2); font-weight: 600; }
.quiz-review-item .a-bad { color: var(--accent); font-weight: 600; text-decoration: line-through; text-decoration-color: rgba(201,111,54,.5); }
.quiz-review-item .comment { margin-top: .35rem; color: var(--ink-mute); }

.quiz-actions-final { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.6rem; }

.leaderboard { margin-top: 3rem; }
.leaderboard-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }
.leaderboard-list { display: flex; flex-direction: column; gap: .5rem; max-width: 460px; margin-inline: auto; }
.leaderboard-row {
  display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem;
  background: var(--bg); border-radius: 12px; font-size: .92rem;
}
.leaderboard-rank { font-weight: 700; color: var(--accent); width: 1.6em; flex-shrink: 0; }
.leaderboard-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-score { color: var(--ink-mute); font-weight: 600; }
.leaderboard-empty, .quiz-notice { text-align: center; color: var(--ink-mute); font-size: .88rem; padding: .8rem; }

/* =============================================================
   17. Photo wall
   ============================================================= */
.photos-upload {
  max-width: 560px; margin: 0 auto 2.6rem; background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 20px; padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm);
}
.photos-upload-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.file-btn {
  position: relative; overflow: hidden;
}
.file-btn input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.photos-status { margin-top: .8rem; font-size: .86rem; color: var(--ink-mute); min-height: 1.2em; }

.photos-gallery {
  display: flex; gap: 1rem; overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x proximity; padding-block: .5rem 1.5rem; padding-inline: .25rem;
  touch-action: pan-x pan-y;
}
.photos-gallery::-webkit-scrollbar { height: 8px; }
.photos-gallery::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.photo-card {
  flex: 0 0 auto; width: min(78vw, 340px); aspect-ratio: 4/5; border-radius: 18px; overflow: hidden;
  scroll-snap-align: start; position: relative; background: var(--bg-2); box-shadow: var(--shadow-sm);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.photo-card-name {
  position: absolute; left: .8rem; bottom: .7rem; padding: .35rem .75rem; border-radius: 999px;
  background: rgba(43,36,28,.55); color: var(--paper); font-size: .78rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.photos-hint { text-align: center; font-size: .82rem; color: var(--ink-mute); margin-top: -.6rem; margin-bottom: 1.5rem; }
.photos-empty { text-align: center; color: var(--ink-mute); padding: 2rem 1rem; }

/* Visor de foto ampliada */
.lightbox {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(20, 16, 12, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 100%; border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.2rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: var(--paper);
  font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease-out);
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* =============================================================
   17.5 Decoración floral de fondo (a partir de la agenda)
   ============================================================= */
.floral-side {
  position: absolute; top: 0; bottom: 0; width: clamp(64px, 8vw, 130px);
  background-image: url('assets/img/floral-garland.svg');
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
  opacity: .28;
  pointer-events: none;
  z-index: 0;
}
.floral-side.is-left { left: 0; }
.floral-side.is-right { right: 0; transform: scaleX(-1); }
.section > .container { position: relative; z-index: 1; }
@media (max-width: 719px) {
  .floral-side { width: 46px; opacity: .2; }
}

/* =============================================================
   18. Footer
   ============================================================= */
.footer {
  padding-block: 3.5rem 2.5rem; text-align: center; border-top: 1px solid var(--line-soft);
}
.footer-names { margin-top: 0; }
.footer-thanks { margin-top: .8rem; color: var(--ink-mute); font-size: .92rem; }
.footer-date { margin-top: .3rem; color: var(--ink-mute); font-size: .82rem; letter-spacing: .04em; }

/* =============================================================
   19. Responsive
   ============================================================= */
@media (max-width: 539px) {
  .weather-grid { grid-template-columns: 1fr; }
  .agenda-item { grid-template-columns: 40px 1fr; gap: 1rem; }
  .agenda-dot { width: 40px; height: 40px; font-size: .62rem; }
  .agenda-list::before, .agenda-track { left: 19px; }
  .countdown { gap: .6rem; }
  .countdown-item { min-width: 48px; }
  .hero-collage { height: clamp(320px, 92vw, 440px); }
}


@media (min-width: 720px) {
  .container { padding-inline: 2rem; }
}

@media (min-width: 960px) {
  .agenda-item { grid-template-columns: 84px 1fr; gap: 2rem; }
  .agenda-list::before, .agenda-track { left: 41px; }
  .agenda-dot { width: 84px; height: 84px; font-size: .92rem; }
}

/* =============================================================
   20. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; }
  .splash { animation-duration: .01s; }
}
