@font-face { font-family: "Great Vibes"; src: url("/fonts/greatvibes.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --papel: #636165;
  --crema: #f7f0e2;
  --rubor: #f5e3ec;
  --oro: #d9b866;
  --oro-claro: #f1dc9f;
  --oro-texto: #efdca8;
  --oro-grad: linear-gradient(180deg, #fbecb4 0%, #ecc97c 38%, #d4a957 58%, #f3dc9c 84%, #d8ae62 100%);
  --oro-boton: linear-gradient(180deg, #f8e8aa 0%, #deb860 40%, #b8893c 58%, #e9ce87 85%, #c29446 100%);
  --fucsia: #e04d9c;
  --turquesa: #66d6cb;
  --error: #ffd0d8;
  --greca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='14' viewBox='0 0 36 14'%3E%3Cpath d='M0 13H6V7H12V1H24V9H18V5H15M24 13H30V7H36' fill='none' stroke='%23e2c47c' stroke-width='1.5'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--papel); color: var(--crema);
  font-family: "Cormorant", Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.con-cookies { padding-bottom: 96px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.papel {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(70% 50% at 0% 100%, rgba(224,77,156,.12), transparent 60%),
    radial-gradient(70% 50% at 100% 100%, rgba(102,214,203,.10), transparent 60%),
    url("/media/papel.webp") repeat, var(--papel);
  background-size: auto, auto, auto, 320px, auto;
}

/* chispas: solo opacidad y transformación (ligero en teléfonos modestos) */
.chispas { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.chispa {
  position: absolute; width: 14px; height: 14px; opacity: 0; will-change: opacity, transform;
  background: var(--img) center / contain no-repeat;
  animation: titilar var(--d, 4s) ease-in-out var(--r, 0s) infinite;
}
.chispa.oro { --img: url("/media/destello-oro.svg"); }
.chispa.fucsia { --img: url("/media/destello-fucsia.svg"); }
.chispa.turquesa { --img: url("/media/destello-turquesa.svg"); }
.chispa.blanco { --img: url("/media/destello-blanco.svg"); }
@keyframes titilar { 0%, 100% { opacity: 0; transform: scale(.2) rotate(-30deg); } 45% { opacity: 1; transform: scale(1) rotate(0deg); } 60% { opacity: .85; transform: scale(.85) rotate(10deg); } }

/* ramos de zinnias (la flor de Jarumi) y mariposas en vuelo */
.ramo { position: fixed; z-index: -1; width: 96px; height: auto; pointer-events: none; opacity: .9; filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); transform-origin: 50% 100%; }
.r-izq { left: -18px; bottom: -22px; animation: mecer 7s ease-in-out infinite; }
.r-der { right: -18px; bottom: -22px; animation: mecer 8s ease-in-out -2s infinite; scale: -1 1; }
@keyframes mecer { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
.vuelo { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mariposa { position: absolute; left: 0; top: 0; }
.mariposa svg { width: 100%; height: 100%; display: block; overflow: visible; }
.velo { position: fixed; inset: 0; z-index: 39; background: radial-gradient(circle at 50% 45%, rgba(40,38,42,.35), rgba(30,28,32,.85)); opacity: 0; pointer-events: none; }
.clon { position: fixed; z-index: 40; margin: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(241,220,159,.5); pointer-events: none; transform-origin: 0 0; }
.clon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.clon .c-intro { opacity: 0; }
.clon .c-brillo { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,240,200,.55) 48%, transparent 60%); background-size: 250% 100%; background-position: 150% 0; mix-blend-mode: screen; animation: barrido .9s ease-in .5s forwards; }
@keyframes barrido { to { background-position: -100% 0; } }
#festejo { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

main { min-height: 100svh; }
.pantalla {
  display: none; min-height: 100svh;
  padding: max(64px, calc(env(safe-area-inset-top) + 48px)) 16px max(32px, calc(env(safe-area-inset-bottom) + 24px));
}
.pantalla.activa { display: flex; flex-direction: column; align-items: center; justify-content: safe center; animation: aparecer .7s ease both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- tipografía ---------- */
.pre { margin: 0; font-style: italic; font-size: 1.15rem; color: var(--rubor); letter-spacing: .02em; }
.nombres, .titulo {
  margin: .1em 0 .05em; font-family: "Great Vibes", cursive; font-weight: 400; line-height: 1.12;
  font-size: clamp(3rem, 14vw, 4.6rem);
  background: var(--oro-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); padding: .12em .3em .08em; overflow: visible;
}
.nombres { background-image: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.75) 50%, transparent 60%), var(--oro-grad); background-size: 250% 100%, 100% 100%; background-repeat: no-repeat; animation: destello-oro 7s ease-in-out 1.5s infinite; }
@keyframes destello-oro { 0%, 70% { background-position: 150% 0, 0 0; } 100% { background-position: -100% 0, 0 0; } }
.titulo { font-size: clamp(2.4rem, 10.5vw, 3.6rem); text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.nombres span { font-size: .8em; }
.sub { margin: 0; font-style: italic; color: var(--rubor); text-align: center; font-size: 1.1rem; text-wrap: balance; }
.valor, .fecha-corta { font-variant-numeric: lining-nums; }
.sin-js { position: fixed; inset: auto 0 0; z-index: 50; margin: 0; padding: 14px; text-align: center; background: #3a383d; color: #f7f0e2; }
.fecha-corta { margin: 8px 0 0; letter-spacing: .4em; color: var(--oro-texto); font-size: .95rem; font-weight: 600; }
.puerta-texto { text-align: center; margin: 4px 0 18px; }
.greca { position: relative; width: min(300px, 78%); height: 28px; margin: 6px auto; display: grid; place-items: center; }
.greca::before { content: ""; position: absolute; inset: 7px 0; background: var(--greca) left center / 36px 14px repeat-x;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12% 40%, transparent 43% 57%, #000 60% 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12% 40%, transparent 43% 57%, #000 60% 88%, transparent); }
.greca img { position: relative; width: 28px; height: 28px; animation: girar 24s linear infinite; }
@keyframes girar { to { rotate: 360deg; } }

/* ---------- sobre ---------- */
.puerta-grid { width: 100%; display: flex; flex-direction: column; align-items: center; }
.col-texto { width: 100%; display: flex; flex-direction: column; align-items: center; }
.sobre { position: relative; width: min(84vw, 330px); aspect-ratio: 1.42; margin: 6px auto 18px; perspective: 900px; }
.sobre-cuerpo { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.sobre { perspective: 700px; }
.sobre-cuerpo::before {
  content: ""; position: absolute; inset: 0; border-radius: 10px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(245,227,236,.18), transparent 60%), linear-gradient(160deg, #6a676d, #545257 55%, #48464b);
  box-shadow: 0 26px 50px -18px rgba(0,0,0,.7), inset 0 0 0 1px rgba(241,220,159,.45);
}
.sobre-tarjeta {
  position: absolute; left: 27%; width: 46%; top: 7%; aspect-ratio: 9 / 16;
  border-radius: 6px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.35);
  opacity: 0; transition: transform .6s cubic-bezier(.2,.9,.25,1) .55s, opacity .25s ease .5s; z-index: 1;
}
.sobre-tarjeta img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.sobre-frente {
  position: absolute; inset: 0; z-index: 2; border-radius: 10px;
  background:
    linear-gradient(to top right, #78757b 49.6%, transparent 50.4%) left / 51% 100% no-repeat,
    linear-gradient(to top left, #727075 49.6%, transparent 50.4%) right / 51% 100% no-repeat,
    linear-gradient(to top, #7e7b81 0, #79767c 52%, transparent 52%);
  box-shadow: inset 0 0 0 1.5px rgba(241,220,159,.55), inset 0 -18px 30px -18px rgba(0,0,0,.35);
}
.sobre-solapa {
  position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 3;
  transform-origin: top center; transition: transform .65s cubic-bezier(.65,0,.35,1) .15s, z-index 0s .45s;
  background: linear-gradient(180deg, #8d8a90, #727075);
  clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 10px 10px 0 0;
}
.sobre-solapa::after {
  content: ""; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%, 50% 98%, 97% 1%, 3% 1%, 50% 98%, 50% 100%);
  background: var(--oro-grad); opacity: .95;
}
.sello {
  position: absolute; z-index: 4; left: 50%; top: 58%; width: 66px; height: 66px; margin: -33px 0 0 -33px;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #f6e2a2, #c99a45 55%, #8f6528);
  box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 0 0 3px rgba(255,240,200,.35), inset 0 -4px 8px rgba(0,0,0,.25);
  transition: transform .45s ease, opacity .35s ease;
  animation: latir 2.6s ease-in-out infinite;
}
@keyframes latir { 0%, 100% { box-shadow: 0 4px 10px rgba(0,0,0,.45), 0 0 0 0 rgba(241,220,159,.0), inset 0 0 0 3px rgba(255,240,200,.35); } 50% { box-shadow: 0 4px 10px rgba(0,0,0,.45), 0 0 0 10px rgba(241,220,159,.18), inset 0 0 0 3px rgba(255,240,200,.35); } }
.sello span { font-family: "Great Vibes", cursive; font-size: 28px; color: #5b3d14; text-shadow: 0 1px 0 rgba(255,240,200,.6); }
.sobre .deco { position: absolute; z-index: 5; height: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.sobre .m1 { width: 64px; left: -16px; top: -30px; transform: rotate(-14deg); animation: aletear 3.2s ease-in-out infinite; }
.sobre .m2 { width: 52px; right: -10px; top: -22px; transform: rotate(16deg); animation: aletear 2.7s ease-in-out .6s infinite; }
.sobre .f1 { width: 70px; right: -14px; bottom: -18px; }
.sobre .f2 { width: 50px; left: -12px; bottom: -14px; animation: mecer 6s ease-in-out infinite; }
.sobre .f3 { width: 34px; left: 32px; bottom: -18px; animation: mecer 7s ease-in-out -3s infinite; }
@keyframes aletear { 0%, 100% { scale: 1 1; } 50% { scale: .8 1; } }
.sobre.abierto .sello { transform: scale(.4) rotate(-20deg); opacity: 0; animation: none; }
.sobre.abierto .sobre-solapa { transform: rotateX(180deg); z-index: 0; }
.sobre.abierto .sobre-tarjeta { opacity: 1; transform: translateY(-62%); }
.sobre.abierto .sobre-cuerpo { transform: translateY(6%); }
.sobre { margin-bottom: 28px; }
body.abriendo .puerta-texto, body.abriendo .abrir { opacity: 0; filter: blur(4px); transform: translateY(8px); transition: opacity .45s ease .5s, filter .45s ease .5s, transform .45s ease .5s; }

/* ---------- formularios ---------- */
.formulario { width: min(100%, 440px); display: grid; gap: 12px; }
.abrir { justify-items: center; }
.boton-oro.grande { min-height: 58px; padding: 14px 34px; font-size: 1.25rem; width: min(100%, 340px); }
.identidad { display: grid; gap: 12px; }
.instruccion { margin: 0 0 4px; text-align: center; color: var(--crema); font-size: 1.05rem; }
.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.campo { display: grid; gap: 4px; }
label, legend { font-size: .95rem; color: var(--oro-texto); letter-spacing: .02em; }
.opcional { color: var(--rubor); font-style: italic; }
input, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--crema);
  background: rgba(40,38,42,.45); border: 1px solid rgba(241,220,159,.72); border-radius: 10px; font-variant-numeric: lining-nums tabular-nums;
  padding: 12px 14px; min-height: 48px; outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus { border-color: var(--oro-claro); box-shadow: 0 0 0 3px rgba(241,220,159,.25); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.verificacion:empty { display: none; }
.verificacion { display: flex; justify-content: center; }
.error { margin: 0; min-height: 1.2em; color: var(--error); text-align: center; font-size: 1rem; }
.legal { margin: 0; text-align: center; font-size: .9rem; color: var(--rubor); }
a { color: var(--oro-claro); }

.boton-oro, .boton-linea, .enlace, .pastilla { font: inherit; cursor: pointer; text-decoration: none; text-align: center; -webkit-tap-highlight-color: transparent; }
.boton-oro {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px;
  border: 0; border-radius: 999px; font-size: 1.15rem; font-weight: 700; letter-spacing: .03em; color: #3a2a12;
  background: var(--oro-boton); background-size: 100% 140%; color: #2a1c08;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.6);
  position: relative; overflow: hidden; transition: transform .15s ease, filter .2s;
}
.boton-oro::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); mix-blend-mode: soft-light;
  animation: brillo 4.5s ease-in-out infinite;
}
@keyframes brillo { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.boton-oro:hover { filter: brightness(1.06); }
.boton-oro:active { transform: scale(.98); }
.boton-oro[disabled] { filter: grayscale(.4) brightness(.85); cursor: progress; }
.boton-linea {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid var(--oro); color: var(--oro-claro); background: rgba(40,38,42,.35); font-size: 1.05rem;
}
.chico { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.enlace { background: none; border: 0; color: var(--oro-claro); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; font-size: 1.05rem; }

/* ---------- tarjeta en video ---------- */
#tarjeta { padding: 0; position: relative; justify-content: center; }
#tarjeta.activa { animation: none; }
.marco-video { position: relative; width: 100%; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.fondo-video { display: none; }
video { position: relative; width: 100%; height: 100%; max-width: calc(100svh * 9 / 16); object-fit: contain; display: block; background: transparent; }
.controles {
  position: fixed; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 12px;
}
.pastilla.resaltar { background: var(--oro-boton); color: #2a1c08; border-color: transparent; font-weight: 700; animation: latir 1.6s ease-in-out infinite; }
.sonido-flotante { position: fixed; z-index: 25; top: max(12px, env(safe-area-inset-top)); right: 12px; display: none; }
body.con-musica .sonido-flotante { display: grid; }
.redondo {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(241,220,159,.6); background: rgba(40,38,42,.55);
  color: var(--oro-claro); display: grid; place-items: center; cursor: pointer; font-size: 1.5rem; line-height: 1; font-family: inherit;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.redondo svg { width: 24px; height: 24px; fill: currentColor; }
.redondo .off, .redondo[aria-pressed="true"] .on { display: none; }
.redondo[aria-pressed="true"] .off { display: inline; }
.pastilla {
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1px solid rgba(241,220,159,.6);
  background: rgba(40,38,42,.6); color: var(--oro-claro); font-size: 1.05rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.activar { position: fixed; left: 50%; top: max(18px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 5; white-space: nowrap; animation: latir 2s ease-in-out infinite; }

/* ---------- hojas ---------- */
.hoja {
  position: relative; width: min(100%, 460px); display: grid; justify-items: center; gap: 10px;
  padding: 26px 20px 22px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(92,90,95,.9), rgba(74,72,77,.94));
  border: 1px solid rgba(241,220,159,.45);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
}
.lado-tarjeta { margin: 0; }
.lado-form { display: grid; justify-items: center; gap: 10px; width: 100%; }
.miniatura { width: 112px; height: auto; border-radius: 8px; border: 1px solid rgba(241,220,159,.6); box-shadow: 0 10px 22px -10px rgba(0,0,0,.6); display: block; }
.deco-sup { width: 58px; height: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); animation: aletear 3s ease-in-out infinite; }
.opciones { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opciones legend { grid-column: 1 / -1; margin-bottom: 6px; width: 100%; }
.opciones input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion {
  display: grid; place-items: center; min-height: 56px; padding: 8px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(241,220,159,.5); background: rgba(40,38,42,.35); color: var(--crema); font-size: 1.1rem; text-align: center;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.opciones input:checked + .opcion { background: rgba(217,184,102,.22); border-color: var(--oro-claro); box-shadow: 0 0 0 2px rgba(241,220,159,.35); color: #fff; }
.opciones input:focus-visible + .opcion { outline: 2px solid var(--oro-claro); outline-offset: 2px; }
.acomp { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(40,38,42,.25); border: 1px dashed rgba(241,220,159,.3); }
.acomp-titulo { margin: 0; text-align: center; color: var(--crema); }
.contador { display: grid; grid-template-columns: 48px 1fr 48px; gap: 10px; align-items: center; }
.contador input { text-align: center; font-size: 1.3rem; }
.cerrado { text-align: center; color: var(--rubor); margin: 8px 0 0; }

.detalles { display: grid; gap: 14px; width: 100%; }
#listo.activa .dato { animation: subir .6s cubic-bezier(.2,.9,.25,1) both; }
#listo.activa .dato:nth-child(2) { animation-delay: .1s; }
#listo.activa .dato:nth-child(3) { animation-delay: .2s; }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.dato { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 14px; border-radius: 16px; background: rgba(40,38,42,.28); border: 1px solid rgba(241,220,159,.22); }
.dato p { margin: 0; }
.dato .boton-oro { width: 100%; }
.etiqueta { color: var(--oro-texto); letter-spacing: .2em; text-transform: uppercase; font-size: .82rem; font-weight: 600; }
.valor { font-size: 1.1rem; }
.otras-apps { text-align: center; font-size: .98rem; }
.otras-apps summary { cursor: pointer; color: var(--oro-claro); min-height: 44px; display: inline-flex; align-items: center; }
.otras-apps p { margin: 4px 0 0; }
.nota { margin: 4px 0 0; text-align: center; font-size: .95rem; color: var(--rubor); font-style: italic; }
.botones-pie { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }

/* ---------- cookies ---------- */
.cookies {
  position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 20;
  margin: 0 auto; max-width: 560px; padding: 10px 12px; border-radius: 14px; display: flex; align-items: center; gap: 10px;
  background: rgba(52,50,55,.95); border: 1px solid rgba(241,220,159,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); animation: aparecer .6s ease both;
}
.cookies p { margin: 0; font-size: .9rem; line-height: 1.3; flex: 1; }
.cookies-botones { display: flex; gap: 8px; flex-shrink: 0; }
.cookies .chico { min-height: 40px; padding: 6px 12px; font-size: .92rem; }
@media (max-width: 420px) { .cookies { flex-direction: column; align-items: stretch; } .cookies-botones { justify-content: flex-end; } }

/* ---------- aviso de privacidad ---------- */
.legal-texto { justify-items: start; text-align: left; }
.legal-texto .titulo { justify-self: center; }
.legal-texto h2 { margin: 10px 0 0; font-size: 1.15rem; color: var(--oro-texto); letter-spacing: .04em; }
.legal-texto p, .legal-texto ul { margin: 0; }
.legal-texto ul { padding-left: 1.1em; display: grid; gap: 4px; }

@media (min-width: 600px) and (max-width: 1023px) { .sobre { width: min(70vw, 480px); } .formulario { width: min(100%, 520px); } }

/* ================= ESCRITORIO ================= */
@media (min-width: 1024px) {
  body { font-size: clamp(20px, 1.15vw, 24px); }
  .mariposa svg { filter: drop-shadow(0 6px 6px rgba(0,0,0,.28)); }
  .ramo { width: clamp(180px, 15vw, 260px); }
  .r-izq { left: -30px; bottom: -30px; }
  .r-der { right: -30px; bottom: -30px; }

  .pantalla { padding: 48px 56px; }

  /* puerta en dos columnas */
  .puerta-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 6vw, 120px); max-width: min(1640px, 90vw); }
  .col-texto { align-items: flex-start; }
  .sobre { width: clamp(420px, 36vw, 720px); margin: 40px auto; }
  .sobre .m1 { width: 92px; left: -30px; top: -46px; }
  .sobre .m2 { width: 74px; right: -22px; top: -36px; }
  .sobre .f1 { width: 104px; right: -26px; bottom: -28px; }
  .sobre .f2 { width: 74px; left: -20px; bottom: -22px; }
  .sobre .f3 { width: 50px; left: 46px; bottom: -26px; }
  .sello { width: 90px; height: 90px; margin: -45px 0 0 -45px; }
  .sello span { font-size: 38px; }
  .puerta-texto { text-align: left; }
  .puerta-texto .sub { text-align: left; }
  .nombres { font-size: clamp(5rem, 5.4vw, 8.5rem); white-space: nowrap; }
  .formulario { width: 100%; max-width: 480px; }
  .col-texto .instruccion, .col-texto .legal, .col-texto .error { text-align: left; }
  .abrir { justify-items: start; }
  .lado-form .legal, .lado-form .error { text-align: left; }

  /* tarjeta: video a toda altura con el arte difuminado a los lados */
  .fondo-video { display: block; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 50%, transparent 40%, rgba(20,18,22,.55)); }
  body[data-pantalla="tarjeta"] .ramo { width: clamp(220px, 20vw, 360px); }
  video { box-shadow: 0 0 0 1px #e2c47c, 0 40px 120px -30px #000; }
  .controles { left: calc(50% + 50svh * 9 / 16 + 28px); right: auto; bottom: 48px; flex-direction: column; align-items: flex-start; }
  .sonido-flotante { top: 24px; right: 24px; }

  /* confirmación en dos columnas */
  .hoja { padding: 40px 48px; }
  .hoja-confirmar { width: min(100%, 1060px); grid-template-columns: 5fr 7fr; align-items: center; gap: 48px; justify-items: stretch; }
  .lado-tarjeta { display: grid; place-items: center; position: relative; }
  .lado-tarjeta::before { content: ""; position: absolute; width: 70%; height: 80%; border-radius: 50%; background: radial-gradient(circle, rgba(224,77,156,.22), transparent 70%); filter: blur(20px); }
  .miniatura { position: relative; width: min(100%, 300px); transform: rotate(-2.5deg); border: 2px solid rgba(241,220,159,.75); box-shadow: 0 30px 50px -20px rgba(0,0,0,.75); transition: transform .4s ease; }
  .miniatura:hover { transform: rotate(0) scale(1.02); }
  .lado-form { justify-items: start; }
  .lado-form .titulo, .lado-form .sub, .lado-form .cerrado { text-align: left; }
  .lado-form .greca { margin: 6px 0; }
  .lado-form .formulario { max-width: none; }
  .acomp { grid-template-columns: 1fr 1fr; }
  .acomp-titulo { grid-column: 1 / -1; text-align: left; }

  /* agradecimiento a lo ancho */
  .hoja-listo { width: min(100%, 1120px); padding: 48px 56px 36px; }
  .detalles { grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
  .dato { align-content: start; padding: 24px 20px; }
  .dato .boton-oro { margin-top: auto; }

  .cookies { left: 24px; right: auto; max-width: 420px; flex-direction: column; align-items: stretch; }
  .cookies-botones { justify-content: flex-end; }
  body.con-cookies { padding-bottom: 0; }

  .legal-texto { width: min(100%, 920px); grid-template-columns: 220px 1fr; column-gap: 40px; row-gap: 14px; padding: 48px 56px; font-size: 1.05rem; line-height: 1.6; }
  .legal-texto .titulo, .legal-texto .volver, .legal-texto .intro { grid-column: 1 / -1; }
  .legal-texto h2 { margin: 0; text-align: right; }
}
@media (min-width: 1024px) and (max-height: 760px) { .sobre { width: clamp(360px, 28vw, 460px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .vuelo { display: none !important; }
}
