/* =========================================================================
   Ampi & Borja · 11.09.2027
   Maquetación a partir de la mesa de trabajo de Illustrator: 390 × 1390,17 pt.

   SISTEMA DE MEDIDAS
   - .page es un "container" (container-type: inline-size).
   - --u = 1 pt de Illustrator = 100cqw / 390. Todas las medidas del diseño se
     escriben como calc(N * var(--u)), con N = valor en pt de Illustrator.
   - La composición escala de forma idéntica en cualquier ancho: en móvil ocupa
     el 100 % y en escritorio se limita a --page-max (720 px ≈ 1,85×).
   ========================================================================= */

@font-face {
  font-family: "Marion";
  src: url("../assets/fonts/marion-regular.woff2") format("woff2"),
       url("../assets/fonts/marion-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Marion";
  src: url("../assets/fonts/marion-bold.woff2") format("woff2"),
       url("../assets/fonts/marion-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Marion";
  src: url("../assets/fonts/marion-italic.woff2") format("woff2"),
       url("../assets/fonts/marion-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Colores medidos en el diseño */
  --c-texto: #59584d;      /* gris oscuro (portada, alojamiento, dress code) */
  --c-marino: #0e3441;     /* azul marino (foco del teclado) */
  --c-preboda: #363730;    /* gris casi negro (preboda), CMYK del .ai pasado a sRGB con su perfil FOGRA39 */
  --c-rotulo: #f4efe7;     /* "HORARIOS" sobre el forro del sobre */
  --c-lienzo: #e9e3d3;     /* color medio del lienzo (fondo de respaldo) */
  --c-rosa: #d9bcb2;
  --c-kraft: #bdb689;

  --page-max: 720px;
  --serif: "Marion", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: light; /* la invitación es siempre clara, como el diseño */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  overflow-x: hidden;   /* respaldo */
  overflow-x: clip;     /* nada se sale en horizontal */
  min-height: 100vh;
  background: var(--c-lienzo) url("../assets/img/fondo-lienzo.jpg") repeat;
  background-image: image-set(url("../assets/img/fondo-lienzo.webp") type("image/webp"), url("../assets/img/fondo-lienzo.jpg") type("image/jpeg"));
  background-size: 560px auto;
  color: var(--c-texto);
  font-family: var(--serif);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: inherit; font-size: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 10px 14px; background: #fff; color: var(--c-marino);
  font: 600 15px/1 var(--serif); border-radius: 4px;
}
.skip:focus { top: 8px; }

/* ---------- Página (lienzo de la mesa de trabajo) ---------- */
.page {
  container-type: inline-size;
  --u: calc(100cqw / 390);
  position: relative;
  width: min(100%, var(--page-max));
  margin-inline: auto;
  background: var(--c-lienzo) url("../assets/img/fondo-lienzo.jpg") repeat-y 0 0;
  background-image: image-set(url("../assets/img/fondo-lienzo.webp") type("image/webp"), url("../assets/img/fondo-lienzo.jpg") type("image/jpeg"));
  background-size: 100% auto;
}
/* El tamaño de letra va en los hijos: las unidades cqw de --u se resuelven contra .page */
.page > * {
  font-size: calc(10 * var(--u));     /* Marion 10 pt */
  line-height: calc(12 * var(--u));   /* interlineado 12 pt */
}
@media (min-width: 721px) {
  .page { box-shadow: 0 0 0 1px rgba(80, 70, 50, .06), 0 18px 60px rgba(60, 50, 30, .18); }
}

.page section, .page header { position: relative; }


/* ---------- Texto común ---------- */
.texto p + p { margin-top: calc(12 * var(--u)); }  /* una línea en blanco entre párrafos */

.enlace {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: calc(.75 * var(--u));
  text-underline-offset: calc(1.6 * var(--u));
  border-radius: 2px;
  transition: opacity .2s ease;
}
.enlace:hover { opacity: .72; }
.enlace[aria-disabled="true"] { cursor: default; }
.enlace--mayus { text-transform: uppercase; }
.enlace--btn {
  font: inherit; font-weight: 700;
  padding: 0; margin: 0; border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--c-marino);
  outline-offset: 3px;
}

/* =========================================================================
   A) PORTADA  (0 → 266,5 pt)
   ========================================================================= */
.s-hero { height: calc(266.5 * var(--u)); }

.hero-arte {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  /* el borde inferior se funde con el lienzo */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 5 * var(--u)), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 5 * var(--u)), transparent);
}
.hero-arte img { width: 100%; }

/* Fecha: gris debajo (desplazado ≈ 0,8 pt a la izquierda y 1,7 pt hacia abajo) + amarillo encima */
.hero-fecha {
  position: absolute;
  left: calc(65 * var(--u));
  top: calc(147 * var(--u));
  width: calc(261 * var(--u));
  aspect-ratio: 731 / 90;
  z-index: 2;
}
.hero-fecha picture, .hero-fecha img { width: 100%; }
.hero-fecha__gris {
  position: absolute;
  left: calc(-0.8 * var(--u));
  top: calc(1.7 * var(--u));
  width: calc(100% * 733 / 731) !important;
  opacity: .75;
}
.hero-fecha__amarilla { position: relative; }

.hero-texto {
  position: absolute;
  top: calc(191.1 * var(--u));
  left: 50%;
  transform: translateX(-50%);
  width: calc(303 * var(--u));
  text-align: center;
}
.hero-texto .enlace-wrap { margin-top: calc(12 * var(--u)); }

/* =========================================================================
   B) HORARIOS  (266,5 → 449 pt) · sobre animado
   ========================================================================= */
.s-horarios {
  height: calc(182.5 * var(--u));
  z-index: 3;                       /* el sobre pisa el papel rosa */
}
.s-horarios::before {               /* estampado floral, recortado a la sección */
  content: "";
  position: absolute; inset: 0;
  background: #e8dfcf url("../assets/img/fondo-floral.jpg") no-repeat;
  background-image: image-set(url("../assets/img/fondo-floral.webp") type("image/webp"), url("../assets/img/fondo-floral.jpg") type("image/jpeg"));
  background-size: 100% auto;
  background-position: 0 calc(-97.5 * var(--u));
}

.sobre {
  --dur: .9s;
  position: absolute;
  left: calc(115.5 * var(--u));
  top: calc(-10.5 * var(--u));
  width: calc(158 * var(--u));
  aspect-ratio: 562 / 730;
  perspective: calc(900 * var(--u));
  z-index: 1;
}
.sobre__trasera, .sobre__bolsillo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  user-select: none;
}
.sobre__trasera { z-index: 1; }
.sobre__bolsillo { z-index: 4; }

/* Solapa: gira en 3D sobre su borde inferior (línea de pliegue) */
.sobre__solapa {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: calc(100% * 314 / 730);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  transform: rotateX(0deg);
  z-index: 2;
  pointer-events: none;
}
.cara {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cara img { width: 100%; height: 100%; }
.cara--exterior {
  transform: rotateX(180deg);
  filter: drop-shadow(0 calc(-1.2 * var(--u)) calc(1.5 * var(--u)) rgba(70, 55, 35, .28));
}

.sobre__rotulo {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: calc(10 * var(--u));
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.sobre__rotulo--abierto {
  top: calc(100% * 203 / 314);
  color: var(--c-rotulo);
  font-weight: 700;
  text-shadow: 0 0 calc(2 * var(--u)) rgba(90, 70, 40, .25);
}
.sobre__rotulo--cerrado {
  top: 36%;
  color: var(--c-texto);
  font-weight: 400;
  letter-spacing: .04em;
}

/* Carta con el mapa */
.sobre__carta {
  position: absolute;
  left: calc(100% * 27 / 562);
  top: calc(100% * 249 / 730);
  width: calc(100% * 509 / 562);
  aspect-ratio: 1308 / 736;
  z-index: 3;
  transform-origin: 0 0;
  transition: transform .35s cubic-bezier(.3, .7, .25, 1);
  will-change: transform;
}
/* Mientras el mapa está ampliado (lo controla js/main.js con el scroll) */
.sobre__carta.is-zoom {
  z-index: 20;                       /* por encima del bolsillo y del resto de secciones */
}
.sobre__carta.is-anim {
  transition:
    transform .55s cubic-bezier(.3, .7, .25, 1),
    clip-path .2s ease;
}
.sobre__carta.is-cerrando {
  transition:
    transform .55s cubic-bezier(.45, 0, .25, 1),
    clip-path .2s ease .35s;         /* vuelve a "entrar" en el bolsillo al final */
}
.sobre__carta.is-zoom .sobre__mapa-btn {
  box-shadow: 0 6px 30px rgba(60, 45, 25, .28);
}

.sobre__mapa-btn {
  display: block;
  width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0;
  background: none;
  cursor: zoom-in;
  box-shadow: 0 calc(-.5 * var(--u)) calc(2 * var(--u)) rgba(60, 45, 25, .18);
}
.sobre__carta.is-zoom .sobre__mapa-btn { cursor: default; }
.sobre__mapa-btn img { width: 100%; height: 100%; }

@media (hover: hover) {
  .sobre__carta:not(.is-zoom):hover { transform: translateY(-6%); }
}

/* Hotspot "punto de encuentro" (coordenadas medidas sobre la imagen del mapa) */
.hotspot {
  position: absolute;
  left: 74.3%;
  top: 7.2%;
  width: 20.6%;
  height: 5%;
  z-index: 2;
  border-radius: 2px;
}
.hotspot:hover { background: rgba(255, 240, 180, .35); }

/* Sin animación: sobre abierto, sin transiciones */
@media (prefers-reduced-motion: reduce) {
  .sobre__carta, .sobre__carta.is-anim, .sobre__carta.is-cerrando { transition: none !important; }
}

/* =========================================================================
   B2) ¿VENÍS EN COCHE?  (449 → 615,5 pt) · sobre el lienzo
   ========================================================================= */
.s-coche {
  min-height: calc(166.5 * var(--u));
  padding: calc(29.3 * var(--u)) 0 calc(16 * var(--u));
}
.texto--coche {
  width: calc(300 * var(--u));
  text-align: center;
}
.texto--coche h2 {
  font-weight: 700;
  font-size: calc(11 * var(--u));
  line-height: calc(13 * var(--u));
  text-transform: uppercase;
}
.texto--coche h2 + p { margin-top: calc(12 * var(--u)); }

/* ---------- Botón "RUTA" (¿Venís en coche?) ----------
   Borde de trazo irregular, como dibujado a mano, sobre un lavado del mismo
   amarillo que los subrayados; chincheta propia en amarillo, gris y lila. */
.boton-ruta {
  --amarillo: #fadca1;
  --lila: #8f8291;
  display: inline-flex;
  align-items: center;
  gap: calc(4 * var(--u));
  color: var(--c-texto);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .2s ease;
}
.boton-ruta:hover { opacity: .78; }
.boton-ruta__titulo {
  text-decoration: underline;
  text-decoration-thickness: calc(.75 * var(--u));
  text-underline-offset: calc(1.6 * var(--u));
}
.boton-ruta[aria-disabled="true"] { cursor: default; }

.boton-ruta__pin {
  width: calc(10 * var(--u));
  height: calc(13 * var(--u));
  flex: none;
  overflow: visible;
  transform-origin: 50% 90%;
}
.boton-ruta__gota {
  fill: var(--amarillo);
  stroke: var(--c-texto);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.boton-ruta__ojo { fill: var(--lila); stroke: var(--c-texto); stroke-width: 1.1; }
.boton-ruta__sombra { fill: none; stroke: rgba(89, 88, 77, .45); stroke-width: 1.3; stroke-linecap: round; }
.boton-ruta:hover .boton-ruta__pin { animation: pin-salto .6s cubic-bezier(.3, .7, .25, 1); }
@keyframes pin-salto {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-18%); }
  70% { transform: translateY(3%) scaleY(.94); }
}

.boton-ruta__titulo {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: calc(10 * var(--u));
  line-height: calc(12 * var(--u));
  padding-top: calc(.6 * var(--u));
}
@media (max-width: 564px) {
  .boton-ruta { gap: 6px; }
  .boton-ruta__pin { width: 15px; height: 20px; }
  .boton-ruta__titulo { font-size: 14.5px; line-height: 1.15; }
}
@media (prefers-reduced-motion: reduce) {
  .boton-ruta:hover .boton-ruta__pin { animation: none; }
}

/* =========================================================================
   C) ALOJAMIENTO  (615,5 → 822,5 pt) · papel rosa con borde rasgado
   ========================================================================= */
.s-alojamiento {
  height: calc(207 * var(--u));
  overflow: hidden;                 /* recorta el borde superior del papel */
  z-index: 2;
}
.papel-rosa {
  position: absolute;
  left: calc(-28 * var(--u));
  top: calc(-53 * var(--u));
  width: calc(520 * var(--u));
  max-width: none;
  height: calc(260 * var(--u));
  transform: rotate(180deg);        /* el borde rasgado del diseño es el superior del original */
}
.titulo-alojamiento {
  position: absolute;
  left: calc(5 * var(--u));
  top: calc(3.75 * var(--u));
  width: calc(383 * var(--u));
}
.titulo-img img { width: 100%; }
.texto--alojamiento {
  position: absolute;
  top: calc(66 * var(--u));
  left: 50%;
  transform: translateX(-50%);
  width: calc(306 * var(--u));
  text-align: center;
}

/* =========================================================================
   D) DRESS CODE  (822,5 → 967,5 pt) · sobre el lienzo
   ========================================================================= */
.s-dresscode { height: calc(145 * var(--u)); z-index: 1; }
.dress__texto {
  position: absolute;
  right: calc((390 - 161) * var(--u));
  top: calc(24 * var(--u));
  width: calc(118 * var(--u));
  text-align: right;
}
.dress__texto h2 {
  font-weight: 700;
  font-size: calc(11 * var(--u));
  line-height: calc(13 * var(--u));
  text-transform: uppercase;
}
.dress__texto p { margin-top: calc(12 * var(--u)); }
.dress__ilustracion {
  position: absolute;
  left: calc(194 * var(--u));
  top: 0;
  width: calc(145 * var(--u));
  z-index: 3;
}
.dress__ilustracion img { width: 100%; }

/* =========================================================================
   E) PREBODA  (967,5 → 1181,3 pt) · papel kraft
   ========================================================================= */
.s-preboda {
  height: calc(213.8 * var(--u));
  color: var(--c-preboda);
  background: var(--c-kraft) url("../assets/img/fondo-kraft.jpg") no-repeat 0 0;
  background-image: image-set(url("../assets/img/fondo-kraft.webp") type("image/webp"), url("../assets/img/fondo-kraft.jpg") type("image/jpeg"));
  background-size: 100% 100%;
  z-index: 2;
}
.titulo-preboda {
  position: absolute;
  left: calc(51.5 * var(--u));
  top: calc(7.3 * var(--u));
  width: calc(285 * var(--u));
}
.texto--preboda {
  position: absolute;
  top: calc(76.15 * var(--u));
  left: 50%;
  transform: translateX(-50%);
  width: calc(316 * var(--u));
  text-align: center;
}
.preboda__botones {
  display: flex;
  justify-content: center;
  gap: calc(38.7 * var(--u));
}

/* =========================================================================
   F) REGALO  (1181,3 → 1390,17 pt) · estampado floral girado
   ========================================================================= */
.s-regalo {
  height: calc(208.86 * var(--u));
  color: var(--c-texto);
  background: #e8dfcf url("../assets/img/fondo-floral-180.jpg") no-repeat;
  background-image: image-set(url("../assets/img/fondo-floral-180.webp") type("image/webp"), url("../assets/img/fondo-floral-180.jpg") type("image/jpeg"));
  background-size: 100% auto;
  background-position: 0 calc(-41.8 * var(--u));
}
.regalo__panel {
  position: absolute;
  left: calc(58 * var(--u));
  top: calc(25.9 * var(--u));
  width: calc(274 * var(--u));
  height: calc(155 * var(--u));
  padding: calc(20.4 * var(--u)) calc(31 * var(--u)) 0;
  text-align: center;
  isolation: isolate;
}
.regalo__panel::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: #e4ded3 url("../assets/img/papel-iban.jpg") center / cover no-repeat;
  background-image: image-set(url("../assets/img/papel-iban.webp") type("image/webp"), url("../assets/img/papel-iban.jpg") type("image/jpeg"));
  opacity: .9;
}
.regalo__panel p + p { margin-top: calc(12 * var(--u)); }
.regalo__panel .regalo__iban + p { margin-top: calc(7 * var(--u)); }

/* IBAN copiable: el número entero es el botón */
.regalo__iban {
  margin: calc(9 * var(--u)) calc(-24 * var(--u)) 0;   /* algo más ancho que el texto del panel */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.iban {
  display: inline-flex;
  align-items: center;
  gap: calc(4 * var(--u));
  padding: calc(2.5 * var(--u)) calc(7 * var(--u));
  margin: 0;
  border: 0;
  border-radius: calc(3 * var(--u));
  background: rgba(89, 88, 77, .07);
  color: inherit;
  font: inherit;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  cursor: copy;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, transform .15s ease;
}
.iban__texto {
  text-decoration: underline dotted;
  text-decoration-thickness: calc(.7 * var(--u));
  text-underline-offset: calc(2 * var(--u));
  text-decoration-color: rgba(89, 88, 77, .45);
}
.iban:hover { background: rgba(89, 88, 77, .12); }
.iban:active { transform: scale(.98); }
.iban__icono { width: calc(9.5 * var(--u)); height: calc(9.5 * var(--u)); flex: none; }
.iban__icono--ok { display: none; }
.iban.is-copiado { background: rgba(84, 120, 72, .16); }
.iban.is-copiado .iban__icono--copiar { display: none; }
.iban.is-copiado .iban__icono--ok { display: block; }
.iban__aviso {
  margin-top: calc(2.5 * var(--u));
  font-size: calc(7.5 * var(--u));
  line-height: calc(9 * var(--u));
  font-style: italic;
  letter-spacing: .02em;
  opacity: .72;
}
.iban:disabled { cursor: default; background: none; }
.iban:disabled ~ .iban__aviso, .iban:disabled .iban__icono { display: none; }

/* =========================================================================
   "Saber más" del hotel — texto flotante sobre la página
   ========================================================================= */
.info {
  /* fuera de .page (su container-type haría de contenedor del fixed), así que define su propia unidad */
  --u: calc(min(100vw, var(--page-max)) / 390);
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  pointer-events: none;
}
.info[hidden] { display: none; }
.info__panel {
  --dx: 0px; --dy: 0px;
  position: relative;
  width: min(100%, calc(300 * var(--u)), 460px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: max(22px, calc(20 * var(--u))) max(20px, calc(22 * var(--u)));
  color: var(--c-texto);
  font-size: max(15px, calc(10.5 * var(--u)));
  line-height: 1.38;
  text-align: left;
  /* fondo translúcido: deja ver la página detrás */
  background: rgba(246, 232, 226, .58);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 12px 40px rgba(90, 60, 50, .16);
  pointer-events: auto;
  outline: none;
  opacity: 0;
  transform: translate(var(--dx), var(--dy)) scale(.12);
  transition: transform .45s cubic-bezier(.3, .7, .25, 1), opacity .3s ease;
}
.info.is-open .info__panel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .info__panel { transition: opacity .2s ease; transform: none; }
}
.info__titulo {
  margin: 0 1.6em .9em 0;
  font-weight: 700;
  font-size: 1.02em;
  line-height: 1.25;
  text-wrap: balance;
}
.info__panel p { margin: 0 0 .55em; }
.info__panel .info__grupo { margin-top: .9em; margin-bottom: .2em; }
.info__panel ul { margin: 0 0 .6em; padding-left: 1.1em; }
.info__panel li { margin: .15em 0; }
.info__panel li::marker { color: rgba(89, 88, 77, .6); }
.info__panel strong { font-weight: 700; }
.info__cerrar {
  position: absolute;
  top: 6px; right: 6px;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: none;
  color: var(--c-texto);
  font: 400 24px/1 var(--serif);
  cursor: pointer;
}
.info__cerrar:hover { background: rgba(255, 255, 255, .45); }

/* =========================================================================
   Detallitos a lápiz (capa "detalles" del .ai)
   Las medidas en pt van con --u; las de los subrayados van en em para que
   sigan al título también en móvil, donde la letra cambia de tamaño.
   ========================================================================= */
.deco {
  position: absolute;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
.deco--borja { left: calc(240.48 * var(--u)); top: 0; width: calc(133.92 * var(--u)); z-index: 2; }

.texto--coche h2,
.dress__texto h2 { position: relative; }
.deco--subrayado-coche { left: 50%; top: .918em; width: 11.105em; transform: translateX(calc(-50% - .371em)); z-index: -1; }
.deco--subrayado-dress { right: -.178em; top: .653em; width: 7.396em; z-index: -1; }
.texto--coche, .dress__texto { isolation: isolate; }   /* el subrayado queda detrás de las letras */

.deco--e1 { left: calc(4.56 * var(--u));  top: calc(10.6 * var(--u));  width: calc(21.84 * var(--u)); }
.deco--e2 { left: calc(343.92 * var(--u)); top: calc(17.32 * var(--u)); width: calc(24 * var(--u)); }
.deco--e3 { left: calc(36.96 * var(--u)); top: calc(23.8 * var(--u));  width: calc(20.88 * var(--u)); }
.deco--e4 { left: calc(32.16 * var(--u)); bottom: calc(13.1 * var(--u)); width: calc(27.36 * var(--u)); }

/* =========================================================================
   Secciones que crecen con su texto
   En pantallas anchas todo queda en la misma posición que en el diseño;
   en móvil, la letra es más grande y las secciones se alargan lo necesario.
   ========================================================================= */
.s-hero { height: auto; min-height: calc(266.5 * var(--u)); padding: calc(191.1 * var(--u)) 0 calc(15 * var(--u)); }
.hero-texto,
.texto--alojamiento,
.texto--coche,
.texto--preboda { position: relative; top: auto; left: auto; transform: none; margin-inline: auto; z-index: 2; }

.s-alojamiento { height: auto; min-height: calc(207 * var(--u)); padding: calc(66 * var(--u)) 0 calc(69 * var(--u)); }
.s-alojamiento::before {             /* papel rosa liso que se alarga hacia arriba */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  bottom: calc(34 * var(--u));       /* no tapa los huecos del borde rasgado */
  background: var(--c-rosa) url("../assets/img/papel-rosa-relleno.jpg") repeat-y calc(-28 * var(--u)) 0;
  background-image: image-set(url("../assets/img/papel-rosa-relleno.webp") type("image/webp"), url("../assets/img/papel-rosa-relleno.jpg") type("image/jpeg"));
  background-size: calc(520 * var(--u)) auto;
}
.papel-rosa {
  top: auto;
  bottom: 0;
  height: calc(205.4 * var(--u));
  transform: none;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 calc(24 * var(--u)));
  mask-image: linear-gradient(to bottom, transparent, #000 calc(24 * var(--u)));
}
.titulo-alojamiento { z-index: 2; }

.s-dresscode {
  height: auto;
  min-height: calc(145 * var(--u));
  display: flex;
  align-items: flex-start;
  gap: calc(33 * var(--u));
  padding: 0 0 calc(12 * var(--u)) calc(43 * var(--u));
}
.dress__texto { position: relative; right: auto; top: auto; margin-top: calc(24 * var(--u)); flex: none; }
.dress__ilustracion { position: relative; left: auto; top: auto; flex: none; }

.s-preboda {
  height: auto;
  min-height: calc(213.8 * var(--u));
  padding: calc(76.15 * var(--u)) 0 calc(16 * var(--u));
  background-size: cover;
  background-position: center top;
}
.preboda__botones { flex-wrap: wrap; row-gap: calc(8 * var(--u)); }

.s-regalo { height: auto; min-height: calc(208.86 * var(--u)); padding: calc(25.9 * var(--u)) 0 calc(28 * var(--u)); }
.regalo__panel {
  position: relative;
  left: auto; top: auto;
  height: auto;
  min-height: calc(155 * var(--u));
  margin-left: calc(58 * var(--u));
  padding-bottom: calc(14 * var(--u));
}

/* ---------- Móvil: letra más grande ---------- */
@media (max-width: 564px) {
  .page > * { font-size: 14.5px; line-height: 1.36; }
  br.d { display: none; }               /* los saltos de línea fijos del diseño solo en pantallas anchas */
  .texto p + p,
  .regalo__panel p + p,
  .hero-texto .enlace-wrap { margin-top: .85em; }

  .hero-texto,
  .texto--alojamiento,
  .texto--coche,
  .texto--preboda { width: calc(100% - 40px); }
  .texto--coche h2 { font-size: 16px; line-height: 1.2; }
  .s-coche { padding-bottom: calc(22 * var(--u)); }
  .s-hero { padding-bottom: calc(24 * var(--u)); }
  .s-alojamiento { padding-bottom: calc(58 * var(--u)); }

  .s-dresscode { gap: calc(20 * var(--u)); padding-left: calc(10 * var(--u)); padding-bottom: calc(18 * var(--u)); }
  .dress__texto { width: calc(186 * var(--u)); margin-top: calc(19.5 * var(--u)); }
  .dress__texto h2 { font-size: 16px; line-height: 1.2; }
  .dress__texto p { margin-top: .7em; text-wrap: balance; }
  .dress__ilustracion { width: calc(160 * var(--u)); margin-top: calc(6 * var(--u)); }

  .s-preboda { padding-bottom: calc(24 * var(--u)); }
  .preboda__botones { margin-top: 1em; column-gap: 28px; }

  .regalo__panel { width: calc(100% - 40px); margin-left: 20px; padding: 22px 18px 18px; }
  .regalo__iban { margin-inline: -10px; }
  .iban { padding: 4px 8px; gap: 6px; }
  .iban__icono { width: 15px; height: 15px; }
  .iban__aviso { font-size: 12px; line-height: 1.3; margin-top: 4px; }
  .sobre__rotulo { font-size: 11px; }
}

/* Mapa ampliado (copia nítida a tamaño real) */
.mapa-grande {
  position: fixed;
  left: 0; top: 0;
  z-index: 55;
  transform-origin: 0 0;
  box-shadow: 0 8px 36px rgba(60, 45, 25, .3);
  will-change: transform;
}
.mapa-grande[hidden] { display: none; }
.mapa-grande picture, .mapa-grande img { display: block; width: 100%; height: 100%; }
.mapa-grande.is-anim { transition: transform .55s cubic-bezier(.3, .7, .25, 1), clip-path .2s ease; }
.mapa-grande.is-cerrando { transition: transform .55s cubic-bezier(.45, 0, .25, 1), clip-path .2s ease .35s; }
.sobre__carta.is-oculta { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .mapa-grande.is-anim, .mapa-grande.is-cerrando { transition: none; }
}

/* Impresión: todo visible y sin sombras */
@media print {
  body { background: none; }
  .page { box-shadow: none; }
  .sobre__carta { transform: none !important; }
}
