/* Baby shower de Theo — paleta del tablero de Lukão (16/11): azul cielo, beige/arena, blanco, verde salvia, celeste grisáceo, dorado suave. */
:root {
  --cielo-alto: #a2b7cd;      /* celeste grisáceo */
  --cielo: #bfd5ea;           /* azul cielo */
  --cielo-claro: #e7eff7;
  --crema: #f7f1e7;
  --blanco: #fffdf8;
  --arena: #e8d7bb;
  --arena-claro: #f3e9d8;
  --salvia: #a9bea4;
  --salvia-claro: #e2eadd;
  --dorado: #d8b664;
  --dorado-claro: #f2e3b8;
  --dorado-osc: #a9853a;
  --tinta: #33506f;
  --tinta-suave: #5d7690;
  --sombra: 0 10px 30px -12px rgba(40, 62, 88, .35);
  --sombra-chica: 0 4px 14px -6px rgba(40, 62, 88, .28);
  --f-mano: 'Caveat', 'Segoe Print', cursive;
  --f-texto: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --suave: cubic-bezier(.22, .8, .24, 1);
  --menu-alto: 66px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--crema); color: var(--tinta);
  font: 500 17px/1.5 var(--f-texto);
  padding-bottom: calc(var(--menu-alto) + env(safe-area-inset-bottom));
  overflow-x: clip;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h2 { font: 700 clamp(40px, 9vw, 58px)/1 var(--f-mano); margin: 0; letter-spacing: -.01em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; border-radius: 10px; }

/* ---------- Barra de arriba ---------- */
.barra {
  position: fixed; inset: 0 0 auto; z-index: 30; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(12px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  transition: background .4s var(--suave), box-shadow .4s var(--suave);
}
.barra.solida { background: rgba(255, 253, 248, .96); box-shadow: 0 1px 0 rgba(51, 80, 111, .08), 0 6px 18px -12px rgba(40, 62, 88, .3); }
.barra-nombre { display: block; height: 44px; padding: 4px 0; opacity: 0; transition: opacity .4s var(--suave); }
.barra.solida .barra-nombre { opacity: 1; }
.barra-nombre svg { height: 36px; width: auto; fill: var(--tinta); }
.banderas { display: flex; gap: 4px; background: rgba(255, 253, 248, .7); border-radius: 999px; padding: 3px; }
.bandera {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 7px;
  border: 0; border-radius: 999px; background: transparent; font-weight: 800; font-size: 14px; color: var(--tinta-suave);
  transition: background .3s var(--suave), color .3s var(--suave);
}
.bandera svg { width: 28px; height: 28px; border-radius: 50%; opacity: .5; transition: opacity .3s, transform .3s var(--suave); }
.bandera[aria-pressed="true"] { background: var(--blanco); color: var(--tinta); box-shadow: 0 0 0 2px var(--dorado); }
.bandera[aria-pressed="true"] svg { opacity: 1; transform: scale(1.06); }

/* ---------- Portada ---------- */
.portada {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; align-content: start; gap: 6px;
  padding: 70px 20px 34px; text-align: center;
  background: linear-gradient(180deg, var(--cielo-alto) 0%, var(--cielo) 42%, #dfe9f2 72%, var(--crema) 100%);
}
.cielo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.luz { position: absolute; left: 50%; top: 58%; width: 140vw; max-width: 1100px; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 244, 214, .75), rgba(255, 244, 214, 0)); }
.luna { position: absolute; top: 76px; right: 8vw; width: 54px; fill: #fbf3dc; animation: flota 9s ease-in-out infinite alternate; }
.luna::after { content: none; }
.estrellas-fondo { position: absolute; inset: 0 0 35%; }
.estrella {
  position: absolute; width: var(--t, 10px); aspect-ratio: 1; background: var(--c, #fff7df);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: titila var(--d, 3s) ease-in-out var(--r, 0s) infinite alternate;
}
/* Nubes esponjosas: una base redondeada y dos copos encima, todos del mismo blanco (la opacidad va en la caja, así no se ven las uniones). */
.nube {
  position: absolute; width: 220px; height: 64px; border-radius: 64px; background: #fff; opacity: .9;
  box-shadow: 0 14px 22px -16px rgba(70, 100, 135, .45);
  animation: deriva var(--v, 80s) linear infinite alternate;
}
.nube::before, .nube::after { content: ''; position: absolute; border-radius: 50%; background: #fff; }
.nube::before { width: 92px; height: 92px; left: 34px; top: -46px; }
.nube::after { width: 124px; height: 124px; right: 26px; top: -70px; }
.nube.n1 { top: 22%; left: -70px; transform: scale(.62); --v: 70s; opacity: .8; }
.nube.n2 { top: 40%; right: -90px; transform: scale(.45); --v: 95s; opacity: .62; animation-direction: alternate-reverse; }
.nube.n3 { top: 12%; left: 42%; transform: scale(.32); --v: 120s; opacity: .55; }

.portada-texto { display: grid; justify-items: center; }
.nombre { margin: 0; position: relative; width: min(74vw, 400px); line-height: 0; }
.nombre-svg { width: 100%; height: auto; overflow: visible; }
.nombre-relleno { fill: var(--tinta); }
.nombre-trazo path { fill: none; stroke: var(--dorado-osc); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pluma { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; opacity: 0;
  background: #ffe9a8; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.lema { margin: 2px 0 0; font: 700 clamp(28px, 7.4vw, 38px)/1.1 var(--f-mano); color: var(--tinta); }
.corazon { display: inline-block; color: var(--dorado-osc); animation: late 1.6s ease-in-out infinite; }

.arco { position: relative; margin: 16px 0 0; width: min(64vw, 290px); }
.arco-marco {
  position: relative; aspect-ratio: 560 / 654; border-radius: 999px 999px 20px 20px; overflow: hidden;
  border: 6px solid var(--blanco); box-shadow: var(--sombra); background: var(--arena);
  touch-action: manipulation; cursor: pointer;
}
.arco-marco img { width: 100%; height: 100%; object-fit: cover; }
.arco-estrellas { position: absolute; inset: -60% -40% 0; pointer-events: none; }
.chispa { position: absolute; left: 0; top: 0; width: var(--t, 9px); aspect-ratio: 1; background: var(--c, #ffe7a3);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); will-change: transform, opacity; }
/* El piso de nubes donde se apoya el arco: una base y copos redondos de distintos tamaños. */
.nubes-piso { position: absolute; left: -22%; right: -22%; bottom: -34px; height: 50px; pointer-events: none;
  border-radius: 50px; background: #fff; box-shadow: 0 16px 26px -14px rgba(60, 90, 125, .5); }
.nubes-piso i { position: absolute; bottom: 6px; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.nubes-piso i:nth-child(1) { left: 3%; width: 15%; }
.nubes-piso i:nth-child(2) { left: 15%; width: 18%; }
.nubes-piso i:nth-child(3) { left: 39%; width: 14%; }
.nubes-piso i:nth-child(4) { left: 60%; width: 19%; }
.nubes-piso i:nth-child(5) { left: 79%; width: 15%; }

.portada-pie { display: grid; justify-items: center; gap: 4px; margin-top: 30px; }
.fecha { margin: 0; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta); }
.faltan { margin: 0; font: 700 26px/1.1 var(--f-mano); color: var(--dorado-osc); }
.donde { margin: 0; font-size: 15px; color: var(--tinta-suave); }
.donde a { font-weight: 800; }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; margin-top: 12px;
  padding: 0 26px; border: 0; border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, #e2c37a, var(--dorado)); color: #2b4058; font-weight: 800; font-size: 17px;
  box-shadow: 0 10px 22px -10px rgba(169, 133, 58, .9), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .25s var(--suave), box-shadow .25s var(--suave);
}
.boton:active { transform: scale(.97); }
.boton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: empuja 1.8s ease-in-out infinite; }
.boton[disabled] { opacity: .6; cursor: wait; }
.boton-sec {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border: 2px solid var(--tinta); border-radius: 999px; background: transparent; color: var(--tinta);
  font-weight: 800; font-size: 16px; text-decoration: none;
}

/* ---------- Carta ---------- */
.carta-seccion { padding: 64px 18px 72px; background: linear-gradient(180deg, var(--crema), var(--arena-claro)); }
.carta {
  position: relative; max-width: 560px; margin: 0 auto; padding: 46px 26px 30px;
  background: var(--blanco); border-radius: 8px; box-shadow: var(--sombra);
  font: 500 23px/1.32 var(--f-mano); color: var(--tinta);
  background-image: repeating-linear-gradient(180deg, transparent 0 29px, rgba(162, 183, 205, .22) 29px 30px);
  background-position: 0 14px;
}
.carta p { margin: 0 0 14px; }
.carta-grande { font-size: 30px; line-height: 1.15; font-weight: 700; text-align: center; margin-bottom: 20px !important; }
.firma { text-align: right; font-weight: 700; font-size: 27px; color: var(--dorado-osc); margin: 6px 0 0 !important; }
.sello { position: absolute; top: -24px; left: 50%; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #edd18c, var(--dorado) 60%, var(--dorado-osc)); box-shadow: var(--sombra-chica);
  display: grid; place-items: center; }
.sello svg { width: 26px; height: 26px; fill: var(--blanco); }

/* ---------- Regalos ---------- */
.regalos { padding: 56px 16px 64px; background: linear-gradient(180deg, var(--arena-claro), var(--cielo-claro) 22%, var(--cielo-claro)); }
.encabezado { text-align: center; max-width: 640px; margin: 0 auto 18px; }
.bajada { margin: 8px 0 0; color: var(--tinta-suave); font-size: 17px; }
.categorias {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 12px; margin: 0 -16px;
  padding-left: 16px; padding-right: 16px; scrollbar-width: none; justify-content: safe center;
}
.categorias::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px 0 8px;
  border: 0; border-radius: 999px; background: var(--blanco); color: var(--tinta); font-weight: 800; font-size: 15px;
  box-shadow: var(--sombra-chica); scroll-snap-align: center; transition: background .3s var(--suave), color .3s var(--suave);
}
.chip .ico { width: 30px; height: 30px; --tono: var(--cielo); }
.chip[aria-selected="true"] { background: var(--tinta); color: var(--blanco); }
.chip[aria-selected="true"] .ico { --tono: var(--dorado); color: var(--blanco); }
.chip b { font-size: 12px; font-weight: 800; opacity: .7; }

.lista { list-style: none; margin: 8px auto 0; padding: 0; max-width: 1080px; display: grid; gap: 10px; }
.cargando { text-align: center; color: var(--tinta-suave); padding: 30px 0; }
.regalo {
  position: relative; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px 10px 10px; background: var(--blanco); border-radius: 20px; box-shadow: var(--sombra-chica);
  border: 2px solid transparent; transition: border-color .3s, background .3s;
}
.regalo-icono { position: relative; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: var(--fondo-ico, var(--cielo-claro)); }
.regalo-icono .ico { width: 42px; height: 42px; color: var(--tinta); }
.regalo h3 { margin: 0; font-size: 16.5px; line-height: 1.25; font-weight: 800; text-wrap: balance; }
.regalo .estado { display: block; margin-top: 2px; font-size: 14px; color: var(--tinta-suave); font-weight: 600; text-wrap: balance; }
.regalo .accion {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--tinta); background: transparent;
  color: var(--tinta); font-weight: 800; font-size: 15px; white-space: nowrap;
}
.regalo .accion:active { transform: scale(.96); }
.regalo .deshacer { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--tinta-suave); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.regalo.completo { background: rgba(255, 253, 248, .6); box-shadow: none; }
.regalo.completo h3 { color: var(--tinta-suave); }
.regalo.completo .regalo-icono { opacity: .7; }
.regalo.mio { border-color: var(--dorado); background: #fffaf0; }
.regalo.mio .estado { color: var(--dorado-osc); font-weight: 800; }
.moñito { position: absolute; right: -8px; top: -8px; width: 30px; height: 30px; }
.moñito path { fill: var(--dorado); stroke: var(--dorado-osc); stroke-width: 2; stroke-linejoin: round; }
.plata { text-align: center; margin: 22px 0 0; }

/* ---------- Mensajes ---------- */
.mensajes { padding: 56px 0 36px; background: linear-gradient(180deg, var(--cielo-claro), var(--salvia-claro) 20%, var(--salvia-claro)); }
.mensajes .encabezado { padding: 0 16px; }
.tendedero { position: relative; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 0 26px; overscroll-behavior-x: contain; }
.tendedero::-webkit-scrollbar { display: none; }
.soga { display: none; }
.notas { position: relative; list-style: none; margin: 0; padding: 22px 22px 0; display: flex; gap: 18px; width: max-content; min-width: 100%; }
.notas::before { content: ''; position: absolute; left: 0; right: 0; top: 26px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #b5966b, #c9ab7f 50%, #b5966b); box-shadow: 0 2px 2px rgba(0, 0, 0, .08); }
.nota {
  position: relative; flex: 0 0 auto; width: 236px; min-height: 150px; margin-top: 16px; padding: 28px 18px 16px;
  scroll-snap-align: center; background: var(--blanco); border-radius: 4px 4px 14px 14px; box-shadow: var(--sombra-chica);
  transform-origin: 50% -14px; animation: hamaca var(--h, 5s) ease-in-out var(--hr, 0s) infinite alternate;
  font: 500 23px/1.22 var(--f-mano); color: var(--tinta); overflow-wrap: anywhere;
}
.nota:nth-child(3n+2) { background: #fbf2e2; }
.nota:nth-child(3n+3) { background: #eef4fa; }
.nota::before { content: ''; position: absolute; left: 50%; top: -24px; width: 14px; height: 36px; margin-left: -7px; border-radius: 3px;
  background: linear-gradient(90deg, #c49c6a, #dcbb8c 45%, #c49c6a); box-shadow: inset 0 -10px 0 -7px rgba(0, 0, 0, .12), 0 2px 3px rgba(0, 0, 0, .12); }
.nota p { margin: 0; white-space: pre-line; }
.nota .de { display: block; margin-top: 10px; text-align: right; font-weight: 700; color: var(--dorado-osc); font-size: 21px; }
.nota.vacia { color: var(--tinta-suave); text-align: center; display: grid; place-items: center; }
.tendedero.quieto .nota { animation-play-state: paused; }
.form-mensaje { display: grid; gap: 12px; max-width: 520px; margin: 4px auto 0; padding: 0 18px; }
.form-mensaje .boton { justify-self: center; }
.campo { display: grid; gap: 6px; font-weight: 800; font-size: 14px; color: var(--tinta-suave); text-align: left; }
.campo input, .campo textarea {
  width: 100%; font: 600 17px/1.4 var(--f-texto); color: var(--tinta); background: var(--blanco);
  border: 2px solid #d9d1c2; border-radius: 16px; padding: 12px 14px; resize: vertical;
}
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--dorado); box-shadow: 0 0 0 4px rgba(216, 182, 100, .25); }
.aviso { min-height: 1.4em; margin: 0; text-align: center; font-weight: 700; color: var(--tinta-suave); }
.aviso.mal { color: #a2463a; }

/* ---------- Fotos ---------- */
.fotos { padding: 40px 16px 40px; background: linear-gradient(180deg, var(--salvia-claro), var(--crema) 22%); }
.album { columns: 2 150px; column-gap: 14px; max-width: 1080px; margin: 0 auto; }
.polaroid { break-inside: avoid; margin: 0 0 16px; padding: 9px 9px 12px; background: #fff; border-radius: 4px; box-shadow: var(--sombra-chica); transform: rotate(var(--g, 0deg)); cursor: zoom-in; }
.polaroid img { width: 100%; border-radius: 2px; background: var(--arena-claro); }
.polaroid figcaption { margin-top: 10px; text-align: center; font: 700 22px/1.2 var(--f-mano); color: var(--tinta); }
/* Antes de la fiesta: polaroids en blanco con un cielito adentro (la foto de ellos ya está en la portada). */
.album-vacio { position: relative; max-width: 360px; margin: 18px auto 6px; column-span: all; }
.album-vacio .polaroid { position: relative; z-index: 2; --g: -2deg; cursor: default; padding-bottom: 16px; margin: 0; }
.album-vacio .atras { position: absolute; inset: 0; z-index: 1; background: #fff; border-radius: 4px; box-shadow: var(--sombra-chica); }
.album-vacio .atras.a1 { transform: rotate(5deg) translate(14px, 6px); }
.album-vacio .atras.a2 { transform: rotate(-7deg) translate(-12px, 10px); background: #fbf6ec; }
.hueco { position: relative; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--cielo-alto), var(--cielo) 60%, #e8eff6); }
.hueco svg { width: 64px; height: 64px; color: var(--blanco); --tono: rgba(255, 255, 255, .25); }
.hueco .estrella { --c: #fff7df; }
.album:has(.album-vacio) { columns: auto; }

.pie { padding: 26px 20px 50px; text-align: center; font: 700 30px/1.2 var(--f-mano); color: var(--tinta); background: var(--crema); }
.pie p { margin: 0 auto; max-width: 460px; }

/* ---------- Menú de abajo ---------- */
.menu {
  position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--menu-alto) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--blanco); box-shadow: 0 -1px 0 rgba(51, 80, 111, .08), 0 -8px 24px -16px rgba(40, 62, 88, .45);
}
.menu a { display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--tinta-suave); font-size: 12.5px; font-weight: 800; --tono: transparent; transition: color .3s; }
.menu svg { width: 27px; height: 27px; transition: transform .35s var(--suave); }
.menu a.activo { color: var(--tinta); --tono: var(--dorado-claro); }
.menu a.activo svg { transform: translateY(-2px) scale(1.08); }

/* ---------- Hoja de reservar ---------- */
.hoja { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; }
.hoja-fondo { position: absolute; inset: 0; background: rgba(30, 46, 64, .5); }
.hoja-caja {
  position: relative; width: 100%; max-height: 92svh; overflow: auto; text-align: center;
  padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--blanco); border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 40px -20px rgba(20, 35, 50, .5);
}
.hoja-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--tinta-suave); }
.hoja h3 { margin: 14px 0 4px; font-size: 22px; font-weight: 800; }
.hoja-nota { margin: 0 0 16px; color: var(--tinta-suave); text-wrap: balance; }
.hoja-paso[data-paso="listo"], .hoja-paso[data-paso="dinero"] { display: grid; justify-items: center; gap: 10px; }
.hoja-paso[data-paso="listo"] .hoja-nota, .hoja-paso[data-paso="dinero"] .hoja-nota { margin-bottom: 4px; }
.con-pagos .paquete { width: 88px; height: 88px; }
.con-pagos .paquete-icono { border-radius: 22px; }
.con-pagos .paquete-icono .ico { width: 56px; height: 56px; }
.con-pagos h3 { margin-top: 4px; }

/* Datos para regalar en dinero */
.pagos { display: grid; gap: 12px; width: 100%; max-width: 420px; text-align: left; }
.pago { padding: 12px 14px 14px; border: 2px solid #ece2d0; border-radius: 18px; background: #fffaf2; }
.pago-cab { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.pago-cab svg { width: 32px; height: 32px; flex: none; }
.pago-mp .pago-cab svg { color: #00a6e0; }
.pago-pp .pago-cab svg { color: #003087; }
.dato { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; padding: 8px 0 2px; border-top: 1px dashed #e3d6c0; }
.dato-et { font-size: 13px; font-weight: 800; color: var(--tinta-suave); }
.dato b { grid-column: 1; font-size: 19px; font-weight: 800; letter-spacing: .02em; overflow-wrap: anywhere; }
.copiar { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--tinta);
  background: transparent; color: var(--tinta); font-weight: 800; font-size: 14px; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.copiar.ok { background: var(--salvia-claro); border-color: #7c9a76; color: #3d5a37; }
.boton-pago { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 50px; margin-top: 8px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 16px; }
.boton-paypal { background: #ffc439; color: #003087; box-shadow: 0 8px 18px -10px rgba(0, 48, 135, .45); }
.pago-link { display: block; margin-top: 6px; text-align: center; font-size: 13px; color: var(--tinta-suave); }
.hoja form { display: grid; gap: 10px; max-width: 420px; margin: 0 auto; }
.hoja form .boton, .hoja form .boton-sec { width: 100%; margin-top: 0; }
.hoja .campo { margin-bottom: 4px; }
.paquete { position: relative; width: 132px; height: 132px; margin: 4px auto 0; }
.paquete-icono { position: absolute; inset: 0; border-radius: 30px; display: grid; place-items: center; background: var(--fondo-ico, var(--cielo-claro)); }
.paquete-icono .ico { width: 84px; height: 84px; color: var(--tinta); }
.moño { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); overflow: visible; pointer-events: none; }
.moño .cinta-v, .moño .cinta-h { fill: none; stroke: var(--dorado); stroke-width: 12; opacity: 0; }
.moño .lazo { fill: var(--dorado-claro); stroke: var(--dorado-osc); stroke-width: 3; stroke-linejoin: round; opacity: 0; transform-origin: 60px 60px; }
.moño .nudo { fill: var(--dorado); stroke: var(--dorado-osc); stroke-width: 3; opacity: 0; transform-origin: 60px 60px; }
.paquete.envuelto .cinta-v, .paquete.envuelto .cinta-h, .paquete.envuelto .lazo, .paquete.envuelto .nudo { opacity: 1; }

/* ---------- Visor de fotos ---------- */
.visor { position: fixed; inset: 0; z-index: 60; background: rgba(15, 22, 30, .94); display: grid; place-items: center; padding: 50px 10px; }
.visor img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.visor-x { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border: 0; background: none; color: #fff; font-size: 36px; }
.visor-flecha { position: absolute; top: 50%; width: 48px; height: 64px; margin-top: -32px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 38px; border-radius: 12px; }
.visor-flecha.ant { left: 8px; } .visor-flecha.sig { right: 8px; }

.sin-js { position: fixed; left: 12px; right: 12px; bottom: 80px; z-index: 40; margin: 0; padding: 12px 16px; background: var(--blanco); border-radius: 14px; box-shadow: var(--sombra); text-align: center; font-weight: 700; }

/* ---------- Animaciones de fondo (CSS: corren solas, sin JS) ---------- */
@keyframes titila { from { opacity: .25; transform: scale(.7); } to { opacity: 1; transform: scale(1.1); } }
@keyframes deriva { from { translate: 0 0; } to { translate: 26vw 0; } }
@keyframes flota { from { translate: 0 0; } to { translate: -6px 8px; } }
@keyframes late { 0%, 60%, 100% { transform: scale(1); } 20% { transform: scale(1.25); } 40% { transform: scale(1.05); } }
@keyframes empuja { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
@keyframes hamaca { from { rotate: calc(var(--g, 0deg) - 1.6deg); } to { rotate: calc(var(--g, 0deg) + 1.6deg); } }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 640px) {
  .lista { grid-template-columns: repeat(2, 1fr); }
  .nota { width: 260px; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  .portada {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: center;
    column-gap: 40px; padding: 90px 6vw 60px; max-width: none;
  }
  .portada-texto { grid-column: 1; grid-row: 1; align-self: end; }
  .portada-pie { grid-column: 1; grid-row: 2; align-self: start; margin-top: 18px; }
  .arco { grid-column: 2; grid-row: 1 / span 2; width: min(32vw, 380px); margin: 0; }
  .nombre { width: min(36vw, 480px); }
  .luna { top: 96px; right: 5vw; width: 70px; }
  .lista { grid-template-columns: repeat(3, 1fr); }
  .tendedero { padding-bottom: 34px; }
  .notas { padding-left: max(22px, calc(50vw - 540px)); padding-right: max(22px, calc(50vw - 540px)); }
  .album { columns: 3 200px; }
  .menu {
    inset: auto auto 18px 50%; transform: translateX(-50%); width: 460px; height: 64px; padding: 0 6px;
    border-radius: 999px; box-shadow: var(--sombra);
  }
  body { padding-bottom: 0; }
  .pie { padding-bottom: 110px; }
  .hoja { align-items: center; justify-items: center; }
  .hoja-caja { max-width: 460px; border-radius: 26px; padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
