/* ==========================================================
   Paula y Marcos · 10 de julio de 2027 · «Si quieres…»
   Colores y letras en :root; el resto, por secciones.
   ========================================================== */

@font-face {
  font-family: "Caveat Brush";
  src: url("../fuentes/caveat-brush.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Patrick Hand SC";
  src: url("../fuentes/patrick-hand-sc.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fuentes/fraunces.woff2") format("woff2");
  font-weight: 300 650;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colores del save the date */
  --mesa: #ECE2D0;
  --carta: #F7EEDC;
  --carta-2: #F1E4C8;
  --azul: #1F3A6B;
  --azul-suave: #4A5A7A;
  --noche: #1C3260;
  --rojo: #B3302B;
  --rojo-oscuro: #8E2420;
  --rojo-claro: #F6E1D9;
  --mostaza: #EFB43F;
  --oliva: #6F7350;
  --hoja-claro: #E3E1C6;
  --cielo: #B9D3E0;
  --luz: #F0B947;
  --linea: rgba(31, 58, 107, .24);
  --borde-campo: rgba(31, 58, 107, .38);
  --error: #A11D18;

  /* Letras */
  --texto: "Fraunces", Georgia, "Times New Roman", serif;
  --rotulo: "Caveat Brush", "Comic Sans MS", cursive;
  --mano: "Patrick Hand SC", "Comic Sans MS", cursive;

  --borde-mano: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --marco: inset 0 0 0 5px var(--carta), inset 0 0 0 6.5px var(--azul), 0 12px 26px -20px rgba(28, 50, 96, .6);
  --grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .17 0 0 0 0 .12 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --destellos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6l5 4M2 13h6M5 20l4-3' fill='none' stroke='%23B3302B' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  --subrayado: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6C50 2 120 9 198 3' fill='none' stroke='%23B3302B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --arco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V40A20 15 0 0 1 26 22A25 19 0 0 1 74 22A20 15 0 0 1 100 40V100Z'/%3E%3C/svg%3E");
  --relleno-hoja: var(--hoja-claro);
  --copa: var(--hoja-claro);
}

/* ---------- Base ---------- */

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--grano), var(--mesa);
  color: var(--azul);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--rojo); text-underline-offset: .18em; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

:focus-visible { outline: 2.5px solid var(--rojo); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Pendientes del borrador ---------- */

.pendiente {
  background: repeating-linear-gradient(-45deg, #FFF3C4 0 6px, #FCEAAA 6px 12px);
  outline: 1.5px dashed var(--rojo);
  outline-offset: 1px;
  border-radius: 4px;
  padding: .1em .45em;
  color: var(--azul);
  font-family: var(--texto);
  font-size: .9em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.pendiente::before { content: "Pendiente: "; font-weight: 600; }
.pendiente--corto::before { content: none; }
p.pendiente { padding: .5em .75em; }
.momento__hora .pendiente { font-size: .55em; }
.pie__pendiente { max-width: 22rem; margin: 2rem auto 0; }
.aviso-pendiente { max-width: 26rem; margin: 0 auto 1.5rem; text-align: center; }
.pendiente.destacado { animation: destacar 1.2s ease-out; }
@keyframes destacar {
  0%, 30% { outline-width: 4px; outline-offset: 6px; }
  100% { outline-width: 1.5px; outline-offset: 1px; }
}

.borrador {
  position: fixed;
  top: calc(.7rem + env(safe-area-inset-top));
  left: .6rem;
  z-index: 60;
  padding: .35rem .75rem;
  border: 1.5px dashed var(--rojo);
  border-radius: 999px;
  background: #FFF3C4;
  color: var(--azul);
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(28, 50, 96, .15);
}

/* ---------- Botones ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .65rem 1.5rem;
  border: 1.6px solid var(--rojo);
  border-radius: var(--borde-mano);
  background: var(--rojo);
  color: var(--carta);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.boton:hover { background: var(--rojo-oscuro); border-color: var(--rojo-oscuro); }
.boton:active { transform: translateY(1px); }
.boton:disabled { opacity: .6; cursor: progress; }

.boton--sec { background: transparent; color: var(--rojo); }
.boton--sec:hover { background: var(--rojo-claro); color: var(--rojo-oscuro); }

.boton--peque { min-height: 2.6rem; padding: .45rem 1.1rem; font-size: .95rem; }
.boton--grande { width: 100%; min-height: 3.4rem; font-size: 1.1rem; }

.boton--claro { background: var(--carta); border-color: var(--carta); color: var(--azul); }
.boton--claro:hover { background: #fff; border-color: #fff; color: var(--azul); }
.boton--claro-sec { background: transparent; border-color: rgba(247, 238, 220, .7); color: var(--carta); }
.boton--claro-sec:hover { background: rgba(247, 238, 220, .12); border-color: var(--carta); }

.botones { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.botones--izq { justify-content: flex-start; }
.botones--columna { flex-direction: column; max-width: 20rem; margin: 0 auto; }

/* ---------- Sobre de entrada ---------- */

.sobre { display: none; }

.con-sobre body { overflow: hidden; }

.con-sobre .sobre {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--grano), var(--mesa);
  transition: opacity .6s ease;
}
.sobre.saliendo { opacity: 0; pointer-events: none; }

.sobre__aviso,
.sobre__pista,
.sobre__boton { transition: opacity .4s ease, transform .5s ease; }

.sobre__aviso { margin: 0; font-family: var(--rotulo); font-size: 1.9rem; line-height: 1; color: var(--azul); }
.sobre__pista {
  margin: 0;
  font-family: var(--mano);
  font-size: 1.1rem;
  color: var(--azul-suave);
  animation: latido 2.6s ease-in-out infinite;
}
@keyframes latido { 50% { opacity: .45; } }

.sobre__boton {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  perspective: 900px;
  border-radius: 8px;
}

.sobre__cuerpo {
  position: relative;
  display: block;
  width: min(84vw, 22rem);
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  background: var(--carta-2);
  box-shadow: 0 22px 40px -20px rgba(28, 50, 96, .55);
}

.sobre__carta {
  position: absolute;
  inset: 6% 7% 8%;
  z-index: 1;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  transition: transform .75s cubic-bezier(.2, .7, .2, 1) .55s;
}
.sobre__carta img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.sobre__frente {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  fill: var(--rojo);
  stroke: var(--rojo-oscuro);
  stroke-width: 1.2;
}
.sobre__frente path { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sobre__pliegue { stroke: rgba(80, 15, 12, .35); }

.sobre__solapa {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 61%;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform .6s ease .15s, z-index 0s linear .45s;
}
.sobre__cara {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--rojo-oscuro);
  stroke-width: 1.2;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.sobre__cara path { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sobre__cara--fuera { fill: #A82C27; }
.sobre__cara--dentro { fill: var(--carta-2); transform: rotateX(180deg); }

.sobre__lema {
  position: absolute;
  top: 14%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--mano);
  font-size: clamp(1.1rem, 5vw, 1.35rem);
  line-height: 1.05;
  color: #F8E7C6;
  transform: translateX(-50%) translateZ(1px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.sobre__lema svg { width: .85rem; height: .85rem; margin-top: .3rem; color: #F8E7C6; }

.sobre.abriendo .sobre__solapa { transform: rotateX(180deg); z-index: 0; }
.sobre.abriendo .sobre__carta { transform: translateY(-60%); }
.sobre.abriendo .sobre__pista { visibility: hidden; }

/* Después de abrirse, el save the date ocupa la pantalla un momento */
.sobre__std {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: scale(.94);
  transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  cursor: pointer;
}
.sobre__std img {
  width: auto;
  height: auto;
  max-width: min(92vw, 27rem);
  max-height: calc(100svh - 5.5rem);
  border-radius: 4px;
  box-shadow: 0 22px 44px -18px rgba(28, 50, 96, .6);
}
.sobre__std figcaption { font-family: var(--mano); font-size: 1.1rem; color: var(--azul-suave); animation: latido 2.6s ease-in-out infinite; }
.sobre.std .sobre__std { opacity: 1; transform: none; pointer-events: auto; }
.sobre.std .sobre__aviso,
.sobre.std .sobre__pista,
.sobre.std .sobre__boton { opacity: 0; transform: scale(.96); pointer-events: none; }

/* ---------- Música ---------- */

.musica {
  position: fixed;
  top: calc(.7rem + env(safe-area-inset-top));
  right: .7rem;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1.5px solid var(--azul);
  border-radius: 50%;
  background: rgba(247, 238, 220, .94);
  color: var(--azul);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(28, 50, 96, .18);
}
.musica svg { width: 1.35rem; height: 1.35rem; }
.musica[aria-pressed="false"]::after {
  content: "";
  position: absolute;
  width: 1.7rem;
  height: 1.6px;
  background: var(--rojo);
  transform: rotate(-45deg);
}
.con-sobre .musica { visibility: hidden; }

/* ---------- Portada ---------- */

.portada {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  overflow: hidden;
  text-align: center;
  background: var(--grano), var(--carta);
  border-bottom: 1.5px solid var(--azul);
  box-shadow: inset 0 -5px 0 var(--carta), inset 0 -6.5px 0 var(--azul);
}

.guirnalda { flex: none; width: calc(100% + 2rem); max-width: 44rem; height: auto; }
.guirnalda__cable { fill: none; stroke: var(--azul); stroke-width: 1.1; }
.guirnalda__fondo .guirnalda__cable { stroke-opacity: .5; }
.bombilla { color: var(--azul); fill: var(--carta); }
.halo { fill: url(#resplandor); opacity: 0; }

.encendida .bombilla { animation: vidrio .9s ease-out both; animation-delay: calc(var(--i) * 85ms + .1s); }
.encendida .halo { animation: halo .9s ease-out both; animation-delay: calc(var(--i) * 85ms + .1s); }
@keyframes vidrio {
  0% { fill: #F7EEDC; }
  18% { fill: #F0B947; }
  30% { fill: #F7EEDC; }
  46% { fill: #F0B947; }
  58% { fill: #F5D998; }
  100% { fill: #F0B947; }
}
@keyframes halo {
  0% { opacity: 0; }
  18% { opacity: .9; }
  30% { opacity: 0; }
  46% { opacity: 1; }
  58% { opacity: .45; }
  100% { opacity: 1; }
}

.portada__centro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 1.5rem;
}

.portada__titulo { display: flex; flex-direction: column; align-items: center; }
.portada__si {
  font-family: var(--rotulo);
  font-size: clamp(3.6rem, 19vw, 6.2rem);
  line-height: .95;
  color: var(--mostaza);
  text-transform: uppercase;
  text-shadow: .05em .05em 0 var(--rojo);
  transform: rotate(-3deg);
}
.portada__venir {
  margin-top: .3rem;
  padding: 0 .2rem .3rem;
  font-family: var(--mano);
  font-size: clamp(1.35rem, 6.4vw, 1.9rem);
  line-height: 1.1;
  color: var(--rojo);
  background: var(--subrayado) no-repeat center bottom / 100% .35em;
}
.portada__nombres {
  margin-top: .7rem;
  font-family: var(--rotulo);
  font-size: clamp(2.6rem, 12.6vw, 4.6rem);
  line-height: 1;
  color: var(--azul);
  text-transform: uppercase;
  white-space: nowrap;
}
.portada__y { color: var(--rojo); font-size: .8em; }

.portada__fecha { margin: 1.1rem 0 0; font-size: 1.2rem; font-weight: 500; }
.portada__lugar { margin: .1rem 0 0; font-family: var(--mano); font-size: 1.3rem; color: var(--rojo); }

.cuenta {
  min-height: 3em;
  max-width: 19rem;
  margin: 1.2rem auto 1.4rem;
  line-height: 1.5;
}
.cuenta b {
  font-family: var(--rotulo);
  font-size: 1.6em;
  font-weight: 400;
  line-height: 1;
  color: var(--rojo);
}

.paisaje { flex: none; width: min(100%, 30rem); height: auto; color: var(--oliva); }
.paisaje__suelo { fill: none; stroke: var(--azul); stroke-width: 1.2; stroke-linecap: round; }
.paisaje__casa { color: var(--azul); }

/* ---------- Tarjetas (cada sección) ---------- */

.carta {
  margin: 1.1rem max(.75rem, calc((100% - 40rem) / 2));
  padding: 3rem 1.35rem 2.75rem;
  border: 1.5px solid var(--azul);
  border-radius: 2px;
  background: var(--grano), var(--carta);
  box-shadow: var(--marco);
}

.titulo { margin: 0 0 1.5rem; line-height: 1; text-align: center; }
.titulo__antes {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--mano);
  font-size: 1.35rem;
  color: var(--rojo);
}
.titulo__principal {
  position: relative;
  display: inline-block;
  padding: 0 1.9rem;
  font-family: var(--rotulo);
  font-size: clamp(2.3rem, 10.5vw, 3.1rem);
  line-height: 1;
  color: var(--azul);
  text-transform: uppercase;
}
.titulo__principal::before,
.titulo__principal::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--destellos) no-repeat center / contain;
  transform: translateY(-50%);
}
.titulo__principal::before { left: 0; }
.titulo__principal::after { right: 0; transform: translateY(-50%) scaleX(-1); }
.titulo__principal--frase { padding: 0; font-size: clamp(2.1rem, 9.5vw, 2.8rem); text-transform: none; }
.titulo__principal--frase::before,
.titulo__principal--frase::after { content: none; }

.dibujo-seccion { width: 3.25rem; height: auto; margin: 0 auto .5rem; color: var(--rojo); }

.entradilla { max-width: 30rem; margin: -.3rem auto 1.75rem; text-align: center; color: var(--azul-suave); }

.pronto { margin: 0; font-family: var(--mano); font-size: 1.35rem; color: var(--rojo); text-align: center; }

.nota {
  max-width: 30rem;
  margin: 0 auto;
  padding: .8rem 1rem;
  border-left: 3px solid var(--mostaza);
  border-radius: 0 .6rem .6rem 0;
  background: rgba(239, 180, 63, .16);
  font-size: .95rem;
}

/* Historia */
.historia__texto { max-width: 30rem; margin: 0 auto; text-align: center; }
.historia__firma { margin-top: 1.3rem; font-family: var(--rotulo); font-size: 1.8rem; color: var(--rojo); }

.postal { max-width: 18rem; margin: 2.25rem auto 0; transform: rotate(-2deg); }
.postal img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 16px 30px -14px rgba(28, 50, 96, .55);
}

/* Galería: arcos como el del save the date */
.galeria {
  display: flex;
  gap: .9rem;
  margin: 0 -.85rem; /* llega hasta el marco interior de la tarjeta, sin pisarlo */
  padding: .25rem .85rem 1rem;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.galeria::-webkit-scrollbar { display: none; }
.galeria__foto {
  flex: 0 0 66%;
  max-width: 15rem;
  aspect-ratio: 3 / 4;
  background: var(--cielo);
  scroll-snap-align: center;
  -webkit-mask: var(--arco) center / 100% 100% no-repeat;
  mask: var(--arco) center / 100% 100% no-repeat;
}
.galeria__foto img { width: 100%; height: 100%; object-fit: cover; }

/* El gran día: etiquetas colgantes */
.etiquetas {
  display: flex;
  justify-content: center;
  gap: .7rem;
  margin: 0 0 1.6rem;
  padding: 1.7rem 0 .4rem;
  list-style: none;
}
.etiqueta {
  position: relative;
  flex: 1 1 0;
  max-width: 7.5rem;
  padding: 1.6rem .35rem 1rem;
  border: 1.5px solid var(--azul);
  border-radius: 1.4rem 1.4rem .35rem .35rem;
  background: var(--carta-2);
  color: var(--azul);
  text-align: center;
  box-shadow: 0 8px 16px -12px rgba(28, 50, 96, .6);
}
.etiqueta::before {
  content: "";
  position: absolute;
  top: .55rem;
  left: 50%;
  width: .6rem;
  height: .6rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}
.etiqueta::after {
  content: "";
  position: absolute;
  bottom: calc(100% - .85rem);
  left: 50%;
  width: 1.5px;
  height: 2.2rem;
  background: #A98455;
  transform: rotate(14deg);
  transform-origin: bottom;
}
.etiqueta:nth-child(1) { transform: rotate(-4deg); }
.etiqueta:nth-child(2) { transform: rotate(3deg) translateY(.4rem); }
.etiqueta:nth-child(3) { transform: rotate(-2deg); }
.etiqueta--roja { border-color: var(--rojo-oscuro); background: var(--rojo); color: var(--carta); }
.etiqueta--azul { border-color: var(--noche); background: var(--azul); color: var(--carta); }
.etiqueta__si { display: block; font-family: var(--mano); font-size: .95rem; line-height: 1.1; color: var(--rojo); }
.etiqueta--roja .etiqueta__si { color: #F8E3B8; }
.etiqueta--azul .etiqueta__si { color: var(--mostaza); }
.etiqueta__verbo {
  display: block;
  font-family: var(--rotulo);
  font-size: clamp(1.25rem, 5.6vw, 1.8rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.etiqueta svg { width: 2.2rem; height: 2.2rem; margin: .45rem auto 0; }

/* Programa con horas (oculto hasta que se sepan) */
.programa { max-width: 22rem; margin: 1.5rem auto 0; padding: 0; list-style: none; }
.momento {
  display: grid;
  grid-template-columns: 4.5rem 3rem 1fr;
  column-gap: .9rem;
  align-items: center;
  padding-bottom: 1.25rem;
}
.momento__hora { margin: 0; text-align: right; font-family: var(--rotulo); font-size: 1.9rem; line-height: 1; color: var(--rojo); }
.momento__icono { width: 3rem; height: 3rem; color: var(--azul); }
.momento__nombre { font-size: 1.25rem; font-weight: 500; }

/* Cómo llegar */
.lugar { text-align: center; }
.lugar__dibujo { width: min(100%, 21rem); height: auto; margin: 0 auto 1.25rem; color: var(--oliva); }
.lugar__nombre { font-family: var(--rotulo); font-size: 1.9rem; color: var(--azul); }
.lugar__sitio { margin: .15rem 0 1rem; color: var(--azul-suave); }

.mapa {
  aspect-ratio: 4 / 3;
  margin: 1.75rem 0 1.1rem;
  overflow: hidden;
  border: 1.5px solid var(--azul);
  border-radius: var(--borde-mano);
  background: var(--hoja-claro);
}
.mapa iframe { display: block; width: 100%; height: 100%; border: 0; }

.detalles { display: grid; margin-top: 2.25rem; text-align: left; }
.detalle {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: .9rem;
  padding: 1.1rem 0;
  border-top: 1.5px dashed var(--linea);
}
.detalle__icono { width: 2.75rem; height: 2.75rem; color: var(--rojo); }
.detalle__titulo { margin: .35rem 0 .35rem; font-family: var(--rotulo); font-size: 1.55rem; }
.detalle p { margin-bottom: .6em; }

/* Dónde dormir */
.hoteles { margin: 1.75rem 0 0; padding: 0; list-style: none; }
.hotel { padding: 1.5rem 0; border-top: 1.5px dashed var(--linea); }
.hotel:last-child { padding-bottom: 0; }
.hotel__nombre { margin-bottom: .7rem; font-family: var(--rotulo); font-size: 1.85rem; line-height: 1.05; }
.hotel__datos { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--azul-suave); }
.hotel__datos li + li { margin-top: .35rem; }

.codigo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .7rem;
  width: fit-content;
  max-width: 100%;
  margin-bottom: .9rem;
  padding: .45rem .5rem .45rem .9rem;
  border: 1.5px dashed var(--rojo);
  border-radius: .7rem;
  background: rgba(255, 255, 255, .5);
}
.codigo__etiqueta { font-family: var(--mano); font-size: 1rem; color: var(--rojo); }
.codigo__valor { font-family: var(--mano); font-size: 1.5rem; line-height: 1; letter-spacing: .06em; color: var(--azul); }
.codigo__copiar {
  min-height: 2.25rem;
  padding: .3rem .85rem;
  border: 0;
  border-radius: 999px;
  background: var(--rojo);
  color: var(--carta);
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
}

.subhotel {
  margin-top: .9rem;
  padding: .9rem 1rem 1rem;
  border-radius: .8rem;
  background: rgba(255, 255, 255, .45);
}
.subhotel h4 { font-size: 1.05rem; font-weight: 600; }
.subhotel p { margin: .2rem 0 .7rem; font-size: .95rem; color: var(--azul-suave); }

/* ¿Qué me pongo? */
.vestimenta__frase { max-width: 28rem; margin: 0 auto 1.4rem; font-size: 1.12rem; text-align: center; }
.avisos { display: grid; gap: .6rem; max-width: 26rem; margin: 0 auto; padding: 0; list-style: none; }
.avisos li {
  padding-left: 1.7rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10A4.2 4.2 0 0 1 12 7.6 4.2 4.2 0 0 1 19.5 10c0 5.4-7.5 10-7.5 10z' fill='%23B3302B'/%3E%3C/svg%3E") no-repeat 0 .3em / 1rem;
}

/* ---------- Confirmación ---------- */

.plazo {
  display: table;
  margin: -.6rem auto 1.1rem;
  padding: .3rem 1.2rem;
  border: 1.6px solid var(--azul);
  border-radius: 50%;
  font-family: var(--mano);
  font-size: 1.25rem;
}

.rsvp { display: grid; gap: 1.6rem; max-width: 30rem; margin: 0 auto; }
.rsvp fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.campo { display: grid; gap: .4rem; }
.campo__etiqueta { padding: 0; font-size: 1.02rem; font-weight: 500; }
legend.campo__etiqueta { margin-bottom: .6rem; }
.campo__opcional { font-weight: 400; color: var(--azul-suave); }
.campo__ayuda { margin: -.35rem 0 .8rem; font-size: .95rem; color: var(--azul-suave); }
.campo__error { margin: .1rem 0 0; font-size: .92rem; font-weight: 500; color: var(--error); }

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .85rem;
  border: 1.5px solid var(--borde-campo);
  border-radius: .65rem;
  background: #FFFCF5;
  color: var(--azul);
  font: inherit;
  font-size: 1.0625rem; /* 17px: evita el zoom automático del iPhone */
}
.campo textarea { min-height: 6rem; resize: vertical; }
.campo select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23B3302B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 1rem;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus { border-color: var(--azul); outline: 2px solid var(--azul); outline-offset: 0; }
.campo input::placeholder { color: #7D869C; }
.campo [aria-invalid="true"] { border-color: var(--error); }

.opciones { display: grid; gap: .55rem; }
.opciones--grandes { grid-template-columns: 1fr 1fr; }
.opciones--grandes .campo__error { grid-column: 1 / -1; }
.opciones--mini { grid-template-columns: 1fr 1fr; gap: .45rem; }
.opciones--mini legend { margin-bottom: .45rem; }

.opcion {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1rem;
  border: 1.5px solid var(--borde-campo);
  border-radius: .8rem;
  background: #FFFCF5;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.opcion input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--rojo); }
.opcion small { display: block; margin-top: .15rem; font-size: .8rem; font-weight: 400; color: var(--azul-suave); }
.opcion:has(input:checked) { border-color: var(--rojo); background: var(--rojo-claro); box-shadow: inset 0 0 0 1px var(--rojo); }
.opcion:has(input:focus-visible) { outline: 2.5px solid var(--rojo); outline-offset: 2px; }
.opcion--grande {
  flex-direction: column;
  justify-content: flex-start;
  gap: .5rem;
  min-height: 6.5rem;
  padding-top: 1.1rem;
  font-family: var(--rotulo);
  font-size: 1.45rem;
  text-align: center;
}
.opcion--grande small { font-family: var(--texto); font-size: .78rem; line-height: 1.25; }
.opciones--mini .opcion { padding: .6rem .8rem; }

.bloque .boton--anadir { width: 100%; margin-top: .85rem; }

.personas { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.persona {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1rem 1.2rem;
  border: 1.5px solid var(--linea);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .5);
}
.persona__cabecera { display: flex; align-items: baseline; justify-content: space-between; }
.persona__titulo { margin: 0; font-family: var(--mano); font-size: 1.3rem; color: var(--rojo); }
.persona__quitar {
  padding: .3rem .1rem;
  border: 0;
  background: none;
  color: var(--azul-suave);
  font: inherit;
  font-size: .92rem;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}

.rsvp__si { display: grid; gap: 1.6rem; }

.rsvp__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rsvp__estado:empty { display: none; }
.rsvp__estado { display: grid; gap: .8rem; justify-items: center; text-align: center; }
.rsvp__fallo { margin: 0; font-weight: 500; color: var(--error); }

.rsvp-hecho {
  max-width: 30rem;
  margin: 0 auto;
  padding: 2rem 1.4rem;
  border: 1.5px solid var(--azul);
  border-radius: var(--borde-mano);
  background: rgba(255, 255, 255, .5);
  text-align: center;
}
.rsvp-hecho:focus { outline: none; }
.rsvp-hecho__dibujo { width: 3.5rem; margin: 0 auto .4rem; color: var(--rojo); }
.rsvp-hecho__titulo { margin-bottom: .5rem; font-family: var(--rotulo); font-size: 2.3rem; line-height: 1; }
.rsvp-hecho__resumen { margin: 1rem 0; padding: 0; list-style: none; font-size: .95rem; color: var(--azul-suave); }
.rsvp-hecho__resumen li + li { margin-top: .25rem; }
.rsvp-hecho__lema { font-family: var(--mano); font-size: 1.25rem; color: var(--rojo); }
.rsvp-hecho__borrador { padding: .6rem .8rem; border-radius: .5rem; background: #FFF3C4; font-size: .9rem; }
.rsvp-hecho .boton { margin-top: 1rem; }

/* ---------- Regalo: una etiqueta discreta ---------- */

.carta--regalo { padding: 1rem 0 .5rem; border: 0; background: none; box-shadow: none; }

.etiqueta-regalo {
  position: relative;
  max-width: 22rem;
  margin: 1.75rem auto 0;
  padding: 2.6rem 1.4rem 1.6rem;
  border: 1.5px solid var(--azul);
  border-radius: 2.4rem 2.4rem .4rem .4rem;
  background: var(--grano), var(--carta);
  box-shadow: var(--marco);
  text-align: center;
  transform: rotate(-1.5deg);
}
.etiqueta-regalo::before {
  content: "";
  position: absolute;
  top: .9rem;
  left: 50%;
  width: .8rem;
  height: .8rem;
  border: 1.5px solid var(--azul);
  border-radius: 50%;
  transform: translateX(-50%);
}
.etiqueta-regalo::after {
  content: "";
  position: absolute;
  bottom: calc(100% - 1.25rem);
  left: 50%;
  width: 1.5px;
  height: 2.6rem;
  background: #A98455;
  transform: rotate(-16deg);
  transform-origin: bottom;
}
.etiqueta-regalo .titulo { margin-bottom: 1rem; }
.etiqueta-regalo .titulo__principal { font-size: clamp(2rem, 9vw, 2.5rem); }

.cuenta-bancaria { margin-top: 1rem; }
.cuenta-bancaria summary {
  display: inline-block;
  font-family: var(--mano);
  font-size: 1.2rem;
  color: var(--rojo);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
  list-style: none;
}
.cuenta-bancaria summary::-webkit-details-marker { display: none; }
.cuenta-bancaria[open] summary { display: none; }
.cuenta-bancaria__iban {
  margin: .4rem 0 .8rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: .02em;
}

/* ---------- Preguntas ---------- */

.preguntas { border-top: 1.5px dashed var(--linea); }
.pregunta { border-bottom: 1.5px dashed var(--linea); }
.pregunta summary {
  position: relative;
  display: block;
  padding: 1.05rem 2.5rem 1.05rem 0;
  font-size: 1.08rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::before,
.pregunta summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .4rem;
  width: 1rem;
  height: 1.8px;
  border-radius: 2px;
  background: var(--rojo);
  transition: transform .25s ease;
}
.pregunta summary::after { transform: rotate(90deg); }
.pregunta[open] summary::after { transform: rotate(0deg); }
.pregunta p { margin: -.2rem 0 1.15rem; color: var(--azul-suave); }

/* ---------- Cierre: de noche, como la pegatina «Si quieres, nos quedamos» ---------- */

.pie { margin-top: 2.5rem; color: var(--carta); text-align: center; }
.pie__olivos { width: 100%; max-width: 44rem; height: auto; margin: 0 auto -1px; color: var(--noche); --copa: var(--noche); }
.pie__contenido {
  padding: 1.75rem 1.25rem calc(6.5rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(1.2px 1.2px at 22px 34px, rgba(255, 255, 255, .45) 50%, transparent 51%),
    radial-gradient(1px 1px at 150px 120px, rgba(255, 255, 255, .35) 50%, transparent 51%),
    var(--noche);
  background-size: 210px 190px, 210px 190px, auto;
}
.pie .boton--claro-sec { background: var(--noche); }
.pie__luna { width: 3rem; height: 3rem; margin: 0 auto .4rem; color: var(--mostaza); }
.pie__frase {
  margin: 0 0 1.75rem;
  font-family: var(--rotulo);
  font-size: clamp(2.8rem, 13vw, 3.8rem);
  line-height: 1;
  color: var(--mostaza);
  text-transform: uppercase;
  text-shadow: .05em .05em 0 var(--rojo);
}
.pie__frase span {
  display: block;
  margin-bottom: .25rem;
  font-family: var(--mano);
  font-size: .42em;
  text-transform: none;
  text-shadow: none;
  color: var(--carta);
}
.pie__texto { margin-bottom: .8rem; }
.pie__texto--dudas { margin-top: 2.2rem; }
.pie__telefonos { margin: .9rem 0 0; font-size: .95rem; color: rgba(247, 238, 220, .85); }
.pie__telefonos a { color: var(--carta); font-weight: 500; white-space: nowrap; }
.pie__firma { margin: 2.25rem 0 0; font-family: var(--mano); font-size: 1.15rem; line-height: 1.4; color: rgba(247, 238, 220, .7); }

/* ---------- Barra inferior ---------- */

.barra {
  position: fixed;
  left: 50%;
  bottom: calc(.75rem + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  gap: .4rem;
  padding: .35rem;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: rgba(247, 238, 220, .95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 26px rgba(28, 50, 96, .18);
  transform: translate(-50%, calc(100% + 2rem));
  transition: transform .35s ease;
}
.barra.visible:not(.en-formulario) { transform: translate(-50%, 0); }
.barra .boton { min-height: 2.75rem; padding: .45rem 1.15rem; border-radius: 999px; font-size: .98rem; white-space: nowrap; }
.con-sobre .barra { visibility: hidden; }

/* ---------- Menú ---------- */

.menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--grano), var(--carta);
  color: var(--azul);
}
.menu[open] { display: flex; flex-direction: column; animation: aparecer .25s ease; }
.menu::backdrop { background: rgba(28, 50, 96, .35); }
@keyframes aparecer { from { opacity: 0; } }

.menu__cerrar {
  position: absolute;
  top: calc(1rem + env(safe-area-inset-top));
  right: 1rem;
  min-height: 2.75rem;
  padding: .4rem 1rem;
  border: 1.5px solid var(--borde-campo);
  border-radius: 999px;
  background: transparent;
  color: var(--azul);
  font: inherit;
  cursor: pointer;
}
.menu__lista { margin: auto 0; padding: 4.5rem 1.5rem 1rem; list-style: none; text-align: center; }
.menu__lista a {
  display: block;
  padding: .35rem;
  font-family: var(--rotulo);
  font-size: 1.85rem;
  line-height: 1.15;
  color: var(--azul);
  text-decoration: none;
}
.menu__lista a:hover { color: var(--rojo); }
.menu__rama { width: 7rem; margin: 0 auto 2.5rem; color: var(--oliva); }

/* ---------- Pantallas grandes ---------- */

@media (min-width: 48rem) {
  .carta { padding: 4rem 3rem 3.5rem; }
}

/* ---------- Menos movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .encendida .bombilla { animation: none; fill: var(--luz); }
  .encendida .halo { animation: none; opacity: 1; }
}
