:root {
  --bg: #faf7f2;
  --tint: #f2ede4;
  --ink: #2b2a28;
  --muted: #7a746b;
  --line: #ddd5c8;
  --accent: #a5834f;
  --error: #9b3b2f;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.15; margin-bottom: 1.25rem; }
h3 { font-size: 1.45rem; line-height: 1.25; margin-bottom: .35rem; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.eyebrow {
  font-size: .74rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 1rem;
}

.amp { font-style: italic; color: var(--accent); }

.placeholder { color: var(--muted); font-style: italic; }

/* Navegación */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__mark { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; letter-spacing: .08em; white-space: nowrap; }
.nav__mark span { font-style: italic; color: var(--accent); }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  text-decoration: none; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
}
.nav__links a:hover { color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 1rem; }

.lang { display: flex; align-items: center; gap: .55rem; }
.lang button {
  background: none; border: 0; padding: 3px 0 5px; cursor: pointer; line-height: 0;
  border-bottom: 1px solid transparent; opacity: .4; transition: opacity .2s;
}
.lang button:hover { opacity: .8; }
.lang button svg { display: block; width: 26px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.lang button[aria-pressed="true"] { opacity: 1; border-bottom-color: var(--accent); }

/* Botones y enlaces */
.btn {
  display: inline-block;
  padding: .95rem 2.2rem;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  font-family: var(--sans); font-size: .78rem; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: wait; }
.btn--small { padding: .55rem 1.1rem; font-size: .7rem; }

.link { color: var(--accent); text-underline-offset: 4px; font-weight: 400; }

/* Portada */
.hero {
  min-height: calc(100svh - 58px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem;
}
.hero__names { font-size: clamp(3.4rem, 13vw, 8rem); line-height: 1; letter-spacing: .01em; }
.rule { width: 64px; height: 1px; background: var(--accent); margin: 2rem auto; }
.hero__date { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: .2rem; }
.hero__place { font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }

.countdown { display: flex; gap: clamp(1.2rem, 5vw, 3rem); margin: 2.5rem 0; }
.countdown div { display: flex; flex-direction: column; min-width: 3.2rem; }
.countdown strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.countdown span { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* Secciones */
.section { padding: clamp(4rem, 10vw, 7rem) 1.25rem; text-align: center; }
.section > * { max-width: 46rem; margin-left: auto; margin-right: auto; }
.section--tint { background: var(--tint); }
.lead { font-size: 1.08rem; }

/* Itinerario */
.timeline { list-style: none; padding: 0; margin-top: 2.5rem; text-align: left; max-width: 34rem; }
.timeline li {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__time { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; padding-top: .45rem; }
.timeline p { margin: 0; }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; max-width: 62rem; text-align: left; }
.cards--two { grid-template-columns: repeat(2, 1fr); max-width: 42rem; }
.card { background: var(--bg); border: 1px solid var(--line); padding: 1.75rem 1.5rem; }
.section:not(.section--tint) .card { background: transparent; }
.card p { margin: 0; font-size: .98rem; }
.card .card__tag { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 400; margin-bottom: .5rem; }
.subhead { font-size: 1.7rem; margin-top: 3.5rem; margin-bottom: 0; }
.subhead + .cards { margin-top: 1.5rem; }
.timeline__time { line-height: 1.6; }
#lugar .hero__place { margin-top: -.5rem; margin-bottom: 1.5rem; }

/* Formulario */
.form { text-align: left; max-width: 32rem; margin-top: 2.5rem; }
.field { margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.field > label:not(.choice), .field > legend {
  display: block; padding: 0; margin-bottom: .5rem;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
}
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: .8rem .9rem;
  border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--ink);
  font: inherit; font-weight: 300;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }
.choice { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; cursor: pointer; }
.choice input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.field.invalid input, .field.invalid select { border-color: var(--error); }
.field.invalid > label, .field.invalid > legend { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form__status { margin: 1.25rem 0 0; text-align: center; min-height: 1.7em; }
.form__status.ok { font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; }
.form__status.error { color: var(--error); }

/* Pie */
.footer { text-align: center; padding: 4rem 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; letter-spacing: .22em; }
.footer p { margin: 0; }
.footer__names { font-family: var(--serif); font-size: 2rem; letter-spacing: .02em; color: var(--ink); margin-bottom: .5rem !important; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .cards, .cards--two { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .timeline li { grid-template-columns: 1fr; gap: .25rem; }
  .timeline__time { padding-top: 0; }
  .nav__right { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
