/* =====================================================================
   Daniel & Macarena · Hoja de estilos
   Paleta "Jardín al atardecer": marfil, verde bosque, salvia, oro viejo
   ===================================================================== */

:root {
  /* Paleta */
  --marfil:        #F6F0E6;
  --marfil-2:      #EDE3D2;
  --crema:         #FBF8F2;
  --verde:         #223A2F;
  --verde-2:       #2E4B3D;
  --verde-3:       #3B5F4D;
  --salvia:        #93A88A;
  --salvia-claro:  #CBD5C2;
  --oro:           #B6935A;
  --oro-claro:     #D8C39C;
  --oro-oscuro:    #8E7040;
  --rosa:          #D8B4A3;
  --tinta:         #1E1C19;
  --tinta-2:       #5B5750;
  --tinta-3:       #8A857C;

  /* Tipografías */
  --f-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --f-script:  'Pinyon Script', 'Brush Script MT', cursive;
  --f-body:    'Jost', 'Segoe UI', system-ui, sans-serif;

  /* Métricas */
  --ancho: 1100px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --sombra: 0 24px 60px -32px rgba(34, 58, 47, .45);
}

/* ------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--marfil);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
button { font: inherit; }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--oro-claro); color: var(--verde); }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; }
.contenedor--texto { max-width: 680px; text-align: center; }

.seccion { padding: clamp(4.5rem, 10vw, 7.5rem) var(--gutter); position: relative; }

/* --------------------------------------------------------- Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  border: 1px solid var(--verde);
  color: var(--verde);
  background: transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover, .btn:focus-visible {
  background: var(--verde);
  color: var(--marfil);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(34, 58, 47, .6);
  outline: none;
}
.btn--solido { background: var(--verde); color: var(--marfil); }
.btn--solido:hover, .btn--solido:focus-visible { background: var(--verde-2); }
.btn--oro { border-color: var(--oro); color: var(--oro-claro); }
.btn--oro:hover, .btn--oro:focus-visible { background: var(--oro); color: var(--verde); }
.btn--claro { border-color: var(--marfil); color: var(--marfil); }
.btn--claro:hover, .btn--claro:focus-visible { background: var(--marfil); color: var(--verde); }
.btn--mini { padding: .65rem 1.2rem; font-size: .7rem; letter-spacing: .14em; }
.btn--grande { padding: 1.15rem 2.4rem; font-size: .85rem; }
.btn__ico { width: 1.1em; height: 1.1em; flex: none; }

/* ------------------------------------------------- Títulos de sección */
.titulo { text-align: center; margin: 0 0 clamp(2.5rem, 6vw, 4rem); }
.titulo__script {
  display: block;
  font-family: var(--f-script);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  color: var(--oro);
  line-height: 1;
}
.titulo__h {
  margin: .15rem 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--verde);
  line-height: 1.1;
}
.titulo__linea {
  display: block;
  width: 72px;
  height: 1px;
  margin: 1.3rem auto 0;
  background: var(--oro);
  position: relative;
}
.titulo__linea::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  background: var(--oro);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* --------------------------------------------------------------- Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem var(--gutter);
  background: color-mix(in srgb, var(--marfil) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--oro) 35%, transparent);
  transform: translateY(-110%);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.nav.ver { transform: none; }
.nav__marca {
  font-family: var(--f-display);
  font-size: 1.4rem;
  letter-spacing: .12em;
  color: var(--verde);
  text-decoration: none;
}
.nav__links { display: flex; gap: 1.6rem; list-style: none; }
.nav__links a {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tinta-2);
  position: relative;
  padding: .3rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 640px) { .nav__links { display: none; } .nav { justify-content: center; } }

/* -------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem var(--gutter) 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, var(--crema) 0%, transparent 70%),
    linear-gradient(180deg, var(--marfil) 0%, var(--marfil-2) 100%);
}
.hero__marco {
  position: absolute;
  inset: clamp(.75rem, 2.5vw, 1.5rem);
  border: 1px solid color-mix(in srgb, var(--oro) 55%, transparent);
  pointer-events: none;
}
.hero__marco::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid color-mix(in srgb, var(--oro) 28%, transparent);
}
/* Esquinas del marco */
.hero__marco::after {
  content: "";
  position: absolute;
  inset: -4px;
  background:
    linear-gradient(var(--oro), var(--oro)) top left / 18px 1px,
    linear-gradient(var(--oro), var(--oro)) top left / 1px 18px,
    linear-gradient(var(--oro), var(--oro)) top right / 18px 1px,
    linear-gradient(var(--oro), var(--oro)) top right / 1px 18px,
    linear-gradient(var(--oro), var(--oro)) bottom left / 18px 1px,
    linear-gradient(var(--oro), var(--oro)) bottom left / 1px 18px,
    linear-gradient(var(--oro), var(--oro)) bottom right / 18px 1px,
    linear-gradient(var(--oro), var(--oro)) bottom right / 1px 18px;
  background-repeat: no-repeat;
}

.rama {
  position: absolute;
  width: clamp(190px, 38vw, 420px);
  height: auto;
  aspect-ratio: 206 / 100;
  color: var(--salvia);
  pointer-events: none;
}
.rama--tl { top: -1.5%; left: -2%; transform: scaleY(-1); opacity: .9; }
.rama--br { bottom: -1.5%; right: -2%; transform: scaleX(-1); opacity: .9; }

.hero__mono {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--f-display);
  font-size: clamp(16rem, 48vw, 36rem);
  font-weight: 300;
  letter-spacing: -.04em;
  color: color-mix(in srgb, var(--oro) 7%, transparent);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.hero__contenido { position: relative; z-index: 1; max-width: 1000px; }

.hero__pre {
  margin: 0 0 .4rem;
  font-family: var(--f-script);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--oro);
  line-height: 1;
}
.hero__nombres {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .05em;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.3rem, 11vw, 7rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.02;
  color: var(--verde);
}
.hero__amp {
  font-family: var(--f-script);
  font-size: .62em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--oro);
  line-height: 1;
  padding: .1em 0;
}
@media (min-width: 820px) {
  .hero__nombres {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .35em;
    align-items: baseline;
    font-size: clamp(2.8rem, 5.6vw, 5.4rem);
    letter-spacing: .08em;
  }
  .hero__amp { transform: translateY(.06em); }
}

.hero__fecha {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: clamp(1.6rem, 4vw, 2.6rem) 0 .3rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tinta-2);
}
.hero__fecha::before, .hero__fecha::after {
  content: "";
  height: 1px;
  width: clamp(1.5rem, 7vw, 5.5rem);
  background: var(--oro);
  flex: none;
}
@media (max-width: 520px) {
  .hero__fecha { font-size: 1.02rem; letter-spacing: .1em; gap: .8rem; }
  .hero__fecha::before, .hero__fecha::after { width: 1rem; }
  .rama--tl { width: 170px; top: -2%; left: -4%; }
  .rama--br { width: 170px; bottom: -3%; right: -8%; }
  .hero__scroll { bottom: 1.6rem; }
}
.hero__hora {
  margin: 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--tinta-3);
  letter-spacing: .04em;
}
.hero__cta {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(2rem, 5vw, 3rem);
  transform: translateX(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--oro);
  border: 1px solid var(--oro-claro);
  border-radius: 50%;
  z-index: 1;
}
.hero__scroll svg { width: 18px; height: 18px; animation: rebote 2.2s ease-in-out infinite; }
@keyframes rebote { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* Entrada del hero */
.anim { opacity: 0; transform: translateY(18px); animation: entrar 1s cubic-bezier(.2, .7, .2, 1) forwards; }
.anim-1 { animation-delay: .15s; }
.anim-2 { animation-delay: .35s; }
.anim-3 { animation-delay: .65s; }
.anim-4 { animation-delay: .9s; }
.anim-5 { animation-delay: 1.3s; }
@keyframes entrar { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------ Cuenta regresiva */
.cuenta {
  background: var(--verde);
  color: var(--marfil);
  text-align: center;
  overflow: hidden;
}
.cuenta__anillo {
  position: absolute;
  width: clamp(420px, 70vw, 900px);
  height: auto;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: color-mix(in srgb, var(--oro) 28%, transparent);
  pointer-events: none;
}
.cuenta .contenedor { position: relative; }
.cuenta__pre {
  margin: 0 0 1.6rem;
  font-family: var(--f-script);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--oro-claro);
  line-height: 1;
}
.cuenta__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.6rem, 2vw, 1.2rem);
  max-width: 800px;
  margin: 0 auto;
}
.cuenta__item {
  position: relative;
  padding: clamp(1rem, 3vw, 1.6rem) .4rem;
  border: 1px solid color-mix(in srgb, var(--oro) 45%, transparent);
  background: color-mix(in srgb, var(--verde-2) 55%, transparent);
}
.cuenta__item::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid color-mix(in srgb, var(--oro) 18%, transparent);
  pointer-events: none;
}
.cuenta__num {
  display: block;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  line-height: 1;
  color: var(--oro-claro);
  font-variant-numeric: tabular-nums;
}
.cuenta__lbl {
  display: block;
  margin-top: .55rem;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--salvia-claro);
}
.cuenta__hoy {
  margin: 1.5rem 0 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--oro-claro);
}
.cuenta__cal {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
@media (max-width: 440px) { .cuenta__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------- Invitación */
.invitacion { padding-bottom: clamp(2rem, 5vw, 3rem); }
.invitacion__ico { width: 44px; height: 44px; margin: 0 auto 1.4rem; color: var(--oro); }
.invitacion__frase {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--tinta-2);
}
.invitacion__frase::first-letter {
  font-size: 1.35em;
  color: var(--oro);
  font-weight: 400;
}
.invitacion__firma {
  margin: 1.6rem 0 0;
  font-family: var(--f-script);
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  color: var(--verde);
}

/* ------------------------------------------------------------ Detalles */
.detalles-sec { padding-top: clamp(2.5rem, 6vw, 4rem); }
.detalles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
  max-width: 900px;
  margin: 0 auto;
}
.tarjeta {
  position: relative;
  background: var(--crema);
  border: 1px solid var(--oro-claro);
  padding: clamp(2rem, 4vw, 2.8rem) clamp(1.4rem, 3vw, 2.2rem);
  text-align: center;
  box-shadow: var(--sombra);
}
.tarjeta::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid color-mix(in srgb, var(--oro) 32%, transparent);
  pointer-events: none;
}
.tarjeta__ico {
  width: 60px; height: 60px;
  margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  color: var(--oro);
  border: 1px solid var(--oro-claro);
  border-radius: 50%;
  background: var(--marfil);
}
.tarjeta__ico svg { width: 28px; height: 28px; }
.tarjeta__h {
  margin: 0 0 .4rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--verde);
}
.tarjeta__hora {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--f-display);
  font-size: 1.55rem;
  color: var(--oro-oscuro);
}
.tarjeta__hora svg { width: 18px; height: 18px; }
.tarjeta__sep { width: 36px; height: 1px; background: var(--oro-claro); margin: 1.1rem auto; }
.tarjeta__lugar { margin: 0; font-weight: 500; font-size: 1.08rem; color: var(--tinta); }
.tarjeta__dir { margin: .3rem 0 0; color: var(--tinta-2); font-size: .95rem; }
.tarjeta__nota {
  margin: 1rem 0 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--tinta-3);
}
.tarjeta__acciones {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.mapa { max-width: 900px; margin: clamp(2rem, 5vw, 3rem) auto 0; }
.mapa__tabs { display: flex; justify-content: center; gap: 0; margin-bottom: 1rem; }
.mapa__tab {
  padding: .6rem 1.4rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--oro-claro);
  background: transparent;
  color: var(--tinta-2);
  cursor: pointer;
  transition: .25s;
}
.mapa__tab:first-child { border-radius: 999px 0 0 999px; }
.mapa__tab:last-child { border-radius: 0 999px 999px 0; }
.mapa__tab + .mapa__tab { border-left: 0; }
.mapa__tab[aria-selected="true"] { background: var(--verde); color: var(--marfil); border-color: var(--verde); }
.mapa__marco { border: 1px solid var(--oro-claro); padding: 8px; background: var(--crema); box-shadow: var(--sombra); }
.mapa__marco iframe {
  width: 100%;
  height: clamp(280px, 45vw, 400px);
  border: 0;
  display: block;
  filter: sepia(.25) saturate(.85) contrast(.98);
}

/* ---------------------------------------------------------- Itinerario */
.itinerario { background: var(--marfil-2); }
.linea { position: relative; max-width: 760px; margin: 0 auto; list-style: none; }
.linea::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--oro) 10%, var(--oro) 90%, transparent);
  transform: translateX(-50%);
}
.hito {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  grid-template-areas: "hora ico txt";
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}
.hito:nth-child(even) { grid-template-areas: "txt ico hora"; }
.hito:last-child { margin-bottom: 0; }
.hito__hora {
  grid-area: hora;
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 300;
  color: var(--oro-oscuro);
  text-align: right;
}
.hito:nth-child(even) .hito__hora { text-align: left; }
.hito__ico {
  grid-area: ico;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--marfil);
  border: 1px solid var(--oro);
  color: var(--verde);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 8px var(--marfil-2);
}
.hito__ico svg { width: 26px; height: 26px; }
.hito__txt { grid-area: txt; text-align: left; }
.hito:nth-child(even) .hito__txt { text-align: right; }
.hito__txt h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  color: var(--verde);
  letter-spacing: .02em;
}
.hito__txt p { margin: .25rem 0 0; color: var(--tinta-2); font-size: .95rem; }
@media (max-width: 640px) {
  .linea::before { left: 32px; }
  .hito, .hito:nth-child(even) {
    grid-template-columns: 64px 1fr;
    grid-template-areas: "ico hora" "ico txt";
    align-items: start;
    row-gap: .1rem;
  }
  .hito__hora, .hito:nth-child(even) .hito__hora { text-align: left; line-height: 1; }
  .hito__txt, .hito:nth-child(even) .hito__txt { text-align: left; }
}

/* ---------------------------------------------------------- Dress code */
.dress__ico {
  width: 60px; height: 60px;
  margin: -1rem auto 1.2rem;
  display: grid; place-items: center;
  color: var(--oro);
  border: 1px solid var(--oro-claro);
  border-radius: 50%;
  background: var(--crema);
}
.dress__ico svg { width: 28px; height: 28px; }
.dress__h {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--verde);
}
.dress__txt { margin: .9rem auto 0; max-width: 560px; color: var(--tinta-2); font-size: 1.02rem; }
.dress__sub { margin: 2rem 0 .9rem; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--tinta-3); }
.paleta { display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem; }
.paleta__color {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 3px solid var(--crema);
  box-shadow: 0 0 0 1px var(--oro-claro), 0 8px 18px -8px rgba(0, 0, 0, .35);
  transition: transform .25s;
}
.paleta__color:hover { transform: translateY(-4px) scale(1.06); }
.dress__evitar {
  margin: 1.8rem auto 0;
  max-width: 480px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--tinta-3);
}

/* -------------------------------------------------------------- Regalo */
.regalo { background: var(--verde); color: var(--marfil); overflow: hidden; }
.regalo .titulo__h { color: var(--marfil); }
.regalo .titulo__script { color: var(--oro-claro); }
.rama--regalo {
  right: -3%; top: -4%;
  transform: scaleX(-1) scaleY(-1);
  color: color-mix(in srgb, var(--salvia) 35%, transparent);
  width: clamp(240px, 42vw, 520px);
}
.regalo .contenedor { position: relative; }
.regalo__ico {
  width: 64px; height: 64px;
  margin: -1rem auto 1.4rem;
  display: grid; place-items: center;
  color: var(--oro-claro);
  border: 1px solid color-mix(in srgb, var(--oro) 55%, transparent);
  border-radius: 50%;
}
.regalo__ico svg { width: 30px; height: 30px; }
.regalo__txt {
  margin: 0 auto 2.2rem;
  max-width: 560px;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.6;
  color: var(--salvia-claro);
}

/* -------------------------------------------------------- Confirmación */
.rsvp__txt {
  margin: 0 auto 2.2rem;
  max-width: 560px;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.6;
  color: var(--tinta-2);
}
.rsvp__form {
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
}
.campo { width: 100%; display: grid; gap: .5rem; text-align: left; }
.campo__lbl { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tinta-3); }
.campo__input {
  width: 100%;
  padding: 1rem 1.2rem;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--tinta);
  background: var(--crema);
  border: 1px solid var(--oro-claro);
  border-radius: 4px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.campo__input::placeholder { color: var(--tinta-3); opacity: .75; }
.campo__input:focus { border-color: var(--oro); box-shadow: 0 0 0 3px color-mix(in srgb, var(--oro) 22%, transparent); }
.campo__input[aria-invalid="true"] { border-color: #B5543F; box-shadow: 0 0 0 3px rgba(181, 84, 63, .18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; box-shadow: none; }
.rsvp__estado {
  margin: 0;
  min-height: 1.5em;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--tinta-2);
}
.rsvp__estado.error { color: #B5543F; }
.rsvp__exito {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 2.2rem 1.6rem 1.8rem;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  background: var(--crema);
  border: 1px solid var(--oro-claro);
  box-shadow: var(--sombra);
  animation: subir .45s cubic-bezier(.2, .7, .2, 1);
}
.rsvp__exito::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid color-mix(in srgb, var(--oro) 32%, transparent);
  pointer-events: none;
}
.rsvp__exito-ico {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde);
  color: var(--marfil);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--salvia) 35%, transparent);
}
.rsvp__exito-ico svg { width: 26px; height: 26px; }
.rsvp__exito-txt {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--verde);
}
.rsvp__exito-estado {
  margin: -.4rem 0 0;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tinta-3);
}
.rsvp__limite {
  margin: 1.4rem 0 0;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oro-oscuro);
}

/* ----------------------------------------------------------------- Pie */
.pie {
  position: relative;
  overflow: hidden;
  background: var(--verde);
  color: var(--salvia-claro);
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5rem) var(--gutter) 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--oro) 40%, transparent);
}
.pie__rama {
  position: absolute;
  left: -3%; bottom: -6%;
  width: clamp(220px, 40vw, 480px);
  height: auto;
  aspect-ratio: 206 / 100;
  color: color-mix(in srgb, var(--salvia) 30%, transparent);
  pointer-events: none;
}
.pie__mono {
  position: relative;
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 300;
  letter-spacing: .14em;
  color: var(--oro-claro);
  line-height: 1;
}
.pie__mono span { font-family: var(--f-script); font-size: .72em; letter-spacing: 0; color: var(--oro); }
.pie__fecha {
  position: relative;
  margin: .8rem 0 0;
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pie__hash { position: relative; margin: .5rem 0 0; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--oro); }
.pie__frase {
  position: relative;
  margin: 1.6rem 0 0;
  font-family: var(--f-script);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--oro-claro);
}

/* --------------------------------------------------------------- Modal */
.modal {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  width: min(92vw, 520px);
  max-width: none;
  max-height: 92vh;
  overflow: visible;
}
.modal::backdrop {
  background: rgba(18, 30, 24, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal[open] .modal__caja { animation: subir .4s cubic-bezier(.2, .7, .2, 1); }
@keyframes subir { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__caja {
  position: relative;
  background: var(--crema);
  border: 1px solid var(--oro-claro);
  padding: 2.4rem clamp(1.2rem, 4vw, 2rem) 1.8rem;
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .6);
}
.modal__caja::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid color-mix(in srgb, var(--oro) 32%, transparent);
  pointer-events: none;
}
.modal__cerrar {
  position: absolute;
  top: .7rem; right: .7rem;
  width: 38px; height: 38px;
  border: 0;
  background: transparent;
  color: var(--tinta-2);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
  transition: .2s;
}
.modal__cerrar:hover { background: var(--marfil-2); color: var(--verde); }
.modal__ico { width: 40px; height: 40px; margin: 0 auto .8rem; color: var(--oro); }
.modal__h {
  margin: 0 0 .3rem;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--verde);
}
.modal__sub { margin: 0 0 1.4rem; text-align: center; color: var(--tinta-3); font-size: .88rem; }
.datos { list-style: none; border-top: 1px solid var(--oro-claro); }
.dato {
  display: grid;
  grid-template-columns: 1fr 42px;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid var(--oro-claro);
}
.dato__k { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tinta-3); }
.dato__v {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--tinta);
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.copiar {
  grid-row: 1 / 3;
  grid-column: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--oro-claro);
  background: var(--marfil);
  color: var(--verde);
  display: grid; place-items: center;
  cursor: pointer;
  transition: .2s;
}
.copiar:hover { background: var(--verde); color: var(--marfil); border-color: var(--verde); }
.copiar svg { width: 17px; height: 17px; }
.copiar.ok { background: var(--salvia); border-color: var(--salvia); color: var(--verde); }
.modal__acciones { display: flex; justify-content: center; margin-top: 1.4rem; }
.modal__gracias {
  margin: 1.2rem 0 0;
  text-align: center;
  font-family: var(--f-script);
  font-size: 1.5rem;
  color: var(--oro);
}

@media (max-width: 480px) {
  .modal { width: 94vw; }
  .modal__caja { padding: 2rem 1.1rem 1.4rem; }
  .modal__h { font-size: 1.35rem; letter-spacing: .06em; }
  .modal__sub { margin-bottom: 1rem; font-size: .82rem; }
  .dato { padding: .55rem 0; }
  .dato__v { font-size: 1.18rem; }
  .modal__acciones { margin-top: 1rem; }
  .modal__gracias { font-size: 1.25rem; margin-top: .9rem; }
}

/* --------------------------------------------------------------- Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.8rem;
  z-index: 100;
  transform: translate(-50%, 16px);
  padding: .8rem 1.5rem;
  border-radius: 999px;
  background: var(--verde);
  color: var(--marfil);
  border: 1px solid var(--oro);
  font-size: .82rem;
  letter-spacing: .1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* -------------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.visto { opacity: 1; transform: none; }

/* -------------------------------------------------------- Accesibilidad */
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .hero__scroll svg { animation: none; }
  .btn:hover { transform: none; }
}

/* ------------------------------------------- Ajustes finos para teléfonos */
@media (max-width: 640px) {
  /* Botones pequeños con área táctil cómoda (mínimo 44px) */
  .btn--mini { min-height: 44px; padding: .75rem 1.3rem; }
  /* Etiquetas en mayúsculas un punto más grandes para leer en pantalla chica */
  .cuenta__lbl, .dress__sub, .campo__lbl, .dato__k { font-size: .74rem; }
  /* La línea del itinerario termina en el último icono y no sigue bajo el texto */
  .hito:last-child { position: relative; }
  .hito:last-child::after {
    content: "";
    position: absolute;
    left: 27px; width: 10px;
    top: 64px; bottom: -6px;
    background: var(--marfil-2);
  }
}
