:root {
  --noche: #0E1B2E;
  --noche-2: #16294A;
  --noche-3: #08111D;
  --hielo: #A9C8E8;
  --hielo-2: #DCEAF7;
  --plata: #C9CFD8;
  --papel: #F6F1E8;
  --papel-2: #ECE4D6;
  --tinta: #1C2431;
  --tinta-2: #5A6475;
  --foil: linear-gradient(100deg, #97A1AF 0%, #EEF1F5 26%, #AEB7C3 48%, #F7F9FB 70%, #98A2B0 100%);
  --grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.66, 0, .2, 1);
  --suave: cubic-bezier(.22, .8, .24, 1);
  --x: 50%;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--noche);
  color: var(--papel);
  font: 300 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sup { font: 500 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; }

/* ---------- Plata: degradado fijo + destello que pasa de vez en cuando ----------
   El padding agranda la caja pintable para que las colas de la cursiva no se recorten;
   el margen negativo lo compensa y el diseño no se mueve. */
.foil {
  display: inline-block;
  padding: .14em .34em .4em .2em;
  margin: -.14em -.34em -.4em -.2em;
  background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .95) 50%, transparent 70%), var(--foil);
  background-size: 38% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: -140% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes destello {
  0% { background-position: -140% 0, 0 0; }
  24%, 100% { background-position: 240% 0, 0 0; }
}

/* Escritura a mano: una máscara que avanza de izquierda a derecha */
.escribe {
  -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}
@keyframes escribir { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

@keyframes sube { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes linea-x { to { transform: scaleX(1); } }
@keyframes linea-y { to { transform: scaleY(1); } }
@keyframes late { 0%, 100% { opacity: .75; } 50% { opacity: .25; } }

/* ---------- Portada del álbum ---------- */
.portada {
  position: fixed; inset: 0; z-index: 50;
  perspective: 2400px;
  cursor: pointer;
  outline: none;
}
.sin-intro .portada { display: none; }
.tapa {
  position: absolute; inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.6s var(--ease);
}
.tapa-cara { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tapa-frente {
  background: var(--grano), radial-gradient(120% 80% at 50% 40%, #213A5F 0%, var(--noche) 55%, var(--noche-3) 100%);
  display: grid; place-items: center;
}
.tapa-frente::after { /* lomo */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 26px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(255, 255, 255, .06) 55%, transparent);
}
.tapa-dorso {
  transform: rotateY(180deg);
  background: var(--grano), linear-gradient(90deg, var(--papel-2), var(--papel));
  display: grid; place-items: center;
  color: var(--tinta-2);
  font: 400 clamp(34px, 9vw, 54px)/1.25 var(--script);
  text-align: center;
}
.tapa-marco { position: absolute; inset: 18px; }
.tapa-marco::before {
  content: ""; position: absolute; inset: -7px; border: 1px solid rgba(201, 207, 216, .16);
  opacity: 0; animation: aparece 1.2s 1.1s forwards;
}
.l { position: absolute; background: rgba(201, 207, 216, .55); }
.l.t, .l.b { left: 0; right: 0; height: 1px; transform: scaleX(0); animation: linea-x 1.3s .1s var(--ease) forwards; }
.l.t { top: 0; }
.l.b { bottom: 0; }
.l.s, .l.d { top: 0; bottom: 0; width: 1px; transform: scaleY(0); animation: linea-y 1.3s .1s var(--ease) forwards; }
.l.s { left: 0; }
.l.d { right: 0; }
.tapa-centro { text-align: center; position: relative; }
.tapa-sup { font: 500 11px/1 var(--sans); letter-spacing: .44em; padding-left: .44em; text-transform: uppercase; color: var(--plata); opacity: 0; animation: sube 1s .35s var(--suave) forwards; }
.tapa-nombre { font: 400 clamp(84px, 25vw, 156px)/1.05 var(--script); margin: .14em 0 .02em; }
.tapa-nombre .escribe { animation: escribir 2s .7s cubic-bezier(.45, .05, .35, 1) forwards, destello 9s 2.6s ease-in-out infinite; }
.adorno { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 14px; }
.adorno i { width: 74px; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 207, 216, .8)); transform: scaleX(0); transform-origin: right; animation: linea-x 1s 2.1s var(--ease) forwards; }
.adorno i:last-child { transform-origin: left; background: linear-gradient(90deg, rgba(201, 207, 216, .8), transparent); }
.adorno b { width: 7px; height: 7px; border: 1px solid rgba(201, 207, 216, .85); transform: rotate(45deg) scale(0); animation: rombo .7s 2.2s var(--suave) forwards; }
@keyframes rombo { to { transform: rotate(45deg) scale(1); } }
.tapa-xv { font: 300 clamp(26px, 7vw, 38px)/1 var(--serif); letter-spacing: .42em; padding-left: .42em; color: var(--plata); opacity: 0; animation: sube 1s 2.4s var(--suave) forwards; }
.tapa-xv span { font-style: italic; letter-spacing: .08em; font-size: .62em; }
.tapa-toca {
  position: absolute; bottom: calc(40px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center;
  font: 400 11.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(201, 207, 216, .75);
  opacity: 0; animation: aparece .8s 2.9s forwards, late 2.4s 3.7s ease-in-out infinite;
}
.portada.abierta { pointer-events: none; }
.portada.abierta .tapa { transform: rotateY(-106deg); }
.portada.abierta .tapa-frente { filter: brightness(.5); transition: filter 1.6s var(--ease); }
.portada.fuera { opacity: 0; transition: opacity .6s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 640px;
  overflow: hidden;
  background: var(--grano), linear-gradient(180deg, var(--noche-3) 0%, var(--noche) 50%, var(--noche) 100%);
  isolation: isolate;
}
.hero::after { /* la falda se funde con la página */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%; z-index: 2;
  background: linear-gradient(180deg, transparent, var(--noche) 92%);
  pointer-events: none;
}
.hero-luz {
  position: absolute; inset: -10%; z-index: -1;
  background: radial-gradient(42% 38% at var(--x) 60%, rgba(64, 104, 160, .62), rgba(30, 56, 96, .3) 45%, transparent 72%);
  animation: respira-luz 9s ease-in-out infinite alternate;
}
@keyframes respira-luz { from { opacity: .7; transform: scale(1); } to { opacity: 1; transform: scale(1.07); } }
.hero-xv {
  position: absolute; left: var(--x); top: 47%; z-index: 0;
  transform: translate(-50%, -50%);
  font: 300 64vw/1 var(--serif);
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 207, 216, .3);
  white-space: nowrap;
  user-select: none;
  opacity: 0;
}
.hero-ella {
  position: absolute; z-index: 1;
  left: var(--x); bottom: -5svh;
  height: 76svh; width: auto; max-width: none;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45));
  opacity: 0;
}
.hero-txt {
  position: relative; z-index: 3;
  padding: max(6.5svh, 40px) 16px 0;
  text-align: center;
}
.hero-sup { font: 500 11px/1 var(--sans); letter-spacing: .44em; padding-left: .44em; text-transform: uppercase; color: var(--plata); opacity: 0; }
.hero-nombre { font: 400 clamp(84px, 24vw, 176px)/1.02 var(--script); margin-top: .12em; }
.hero-fecha { font: italic 400 clamp(17px, 4.6vw, 23px)/1.3 var(--serif); color: var(--plata); margin-top: .35em; opacity: 0; }
.cuenta { display: flex; justify-content: center; gap: 20px; margin-top: 14px; opacity: 0; }
.cuenta p { display: flex; flex-direction: column; align-items: center; }
.cuenta b { font: 400 clamp(28px, 7.4vw, 40px)/1 var(--serif); color: #EEF1F5; font-variant-numeric: lining-nums tabular-nums; }
.cuenta span { font: 500 9.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--plata); margin-top: 7px; }
.cuenta.frase { font: italic 400 20px var(--serif); color: var(--hielo-2); }

/* Entrada, después de abrir la portada */
.listo .hero-xv { animation: xv 2.8s .15s var(--suave) forwards; }
.listo .hero-ella { animation: ella 2s .05s var(--suave) forwards, respira 16s 2.1s ease-in-out infinite alternate; }
.listo .hero-sup { animation: sube 1s .5s var(--suave) forwards; }
.listo .hero-nombre .escribe { animation: escribir 2.1s .7s cubic-bezier(.45, .05, .35, 1) forwards, destello 9s 3s ease-in-out infinite; }
.listo .hero-fecha, .listo .cuenta { animation: sube 1s 2s var(--suave) forwards; }
@keyframes xv { from { opacity: 0; letter-spacing: .3em; } to { opacity: 1; letter-spacing: -.02em; } }
@keyframes ella { from { opacity: 0; transform: translateX(-50%) translateY(6%) scale(.95); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes respira { from { opacity: 1; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-50%) scale(1.022); } }

.sin-intro .hero-xv, .sin-intro .hero-ella, .sin-intro .hero-sup, .sin-intro .hero-fecha, .sin-intro .cuenta { opacity: 1; animation: none; }
.sin-intro .hero-ella { animation: respira 16s ease-in-out infinite alternate; }
.sin-intro .hero-nombre .escribe { -webkit-mask-position: 0 0; mask-position: 0 0; animation: destello 9s 1.5s ease-in-out infinite; }

/* ---------- Hoja para subir ---------- */
.subir { position: relative; z-index: 4; margin-top: -15svh; padding: 0 16px 76px; }
.hoja {
  max-width: 540px; margin: 0 auto;
  padding: 32px 22px 26px;
  background: var(--grano), var(--papel);
  color: var(--tinta);
  border-radius: 2px;
  box-shadow: 0 44px 80px -30px rgba(0, 0, 0, .75);
  position: relative;
}
.hoja::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(28, 36, 49, .12); pointer-events: none; }
.hoja .sup { color: var(--tinta-2); }
.hoja h2 { font: 500 clamp(32px, 8.6vw, 40px)/1.05 var(--serif); margin: 12px 0 18px; letter-spacing: -.012em; }
.hoja h2 em, .album h2 em { font-weight: 400; color: #3F5A80; }

.pasos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid #DDD5C6; border-bottom: 1px solid #DDD5C6; padding: 14px 0; }
.pasos li { font: 400 12.5px/1.25 var(--sans); color: var(--tinta-2); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; }
.pasos b { width: 26px; height: 26px; border: 1px solid var(--noche); border-radius: 50%; display: grid; place-items: center; font: 500 13px/1 var(--serif); color: var(--noche); }

.campo { display: block; margin: 20px 0 16px; }
.campo span { display: block; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--tinta-2); margin-bottom: 8px; }
.campo input {
  width: 100%; padding: 13px 14px;
  font: 400 17px var(--sans); color: var(--tinta);
  background: #fff; border: 1px solid #D5CDBE; border-radius: 2px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.campo input:focus { border-color: var(--noche); box-shadow: 0 0 0 3px rgba(14, 27, 46, .08); }

.acciones { display: grid; gap: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 22px;
  font: 500 14px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border-radius: 2px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .15s, background-color .2s, color .2s;
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(.975); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; flex: none; }
.btn-principal { background: var(--noche); color: #EEF1F5; border: 0; min-height: 64px; box-shadow: 0 0 0 1px rgba(14, 27, 46, .9), inset 0 0 0 1px rgba(201, 207, 216, .22); }
.btn-principal svg { stroke: var(--hielo); }
.btn-principal::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(220, 234, 247, .2), transparent);
  animation: barrido 6s 4s ease-in-out infinite;
}
@keyframes barrido { 0% { left: -60%; } 22%, 100% { left: 130%; } }
.btn-sec { background: transparent; color: var(--noche); border: 1px solid var(--noche); }

/* Tira de fotos subidas: polaroids que se revelan */
.tira { display: flex; gap: 12px; overflow-x: auto; padding: 18px 6px 6px; margin: 4px -6px 0; scrollbar-width: none; }
.tira::-webkit-scrollbar { display: none; }
.tira:empty { display: none; }
.pola {
  flex: 0 0 88px; background: #fff; padding: 5px 5px 0; position: relative;
  box-shadow: 0 8px 18px -10px rgba(14, 27, 46, .55);
  transform: rotate(var(--r, 0deg));
  animation: pola-cae .55s var(--suave);
}
@keyframes pola-cae { from { opacity: 0; transform: translateY(-14px) rotate(calc(var(--r) * 3)); } to { opacity: 1; transform: rotate(var(--r)); } }
.pola .ph, .pola img { width: 78px; height: 78px; object-fit: cover; background: var(--papel-2); }
.pola img { filter: sepia(.55) brightness(1.75) contrast(.45) blur(1.6px); transition: filter 2.6s ease; }
.pola.ok img { filter: none; }
.pola-barra { height: 2px; background: #E6DFD2; margin-top: 4px; overflow: hidden; }
.pola-barra i { display: block; height: 100%; width: 0; background: var(--noche); transition: width .3s; }
.pola.ok .pola-barra i { background: #5C8DC0; }
.pola p { font: 400 11px/1.2 var(--sans); color: var(--tinta-2); text-align: center; padding: 5px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pola.ok::after {
  content: ""; position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--noche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23DCEAF7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  animation: sello .45s var(--suave);
}
@keyframes sello { from { transform: scale(0); } to { transform: scale(1); } }
.pola.error p { color: #9B2C2C; }
.mias { margin-top: 14px; text-align: center; font: italic 400 18px var(--serif); color: var(--tinta-2); }
.nota { margin-top: 14px; text-align: center; font: 400 12px var(--sans); color: #8A8F98; letter-spacing: .02em; }

/* ---------- Álbum ---------- */
.album { background: var(--grano), var(--papel); color: var(--tinta); padding: 60px 16px 72px; }
.album-cab { max-width: 1100px; margin: 0 auto 38px; display: grid; grid-template-columns: 38% 1fr; gap: 20px; align-items: end; }
.album-retrato {
  background: #fff; padding: 6px 6px 0;
  box-shadow: 0 18px 40px -22px rgba(14, 27, 46, .6);
  transform: rotate(-2.4deg);
}
.album-retrato figcaption { font: 400 22px/1 var(--script); color: var(--tinta-2); text-align: center; padding: 8px 0 10px; }
.album-titulo .sup { color: var(--tinta-2); display: flex; align-items: center; gap: 9px; }
.vivo { width: 7px; height: 7px; border-radius: 50%; background: #4E86C4; position: relative; flex: none; }
.vivo::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #4E86C4; animation: pulso 2s ease-out infinite; }
@keyframes pulso { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.album-titulo h2 { font: 500 clamp(27px, 7.4vw, 54px)/1.04 var(--serif); margin: 12px 0 16px; letter-spacing: -.015em; }
.cifras { display: flex; gap: 22px; }
.cifras p { display: flex; flex-direction: column; }
.cifras b { font: 500 clamp(34px, 9vw, 56px)/1 var(--serif); color: var(--noche); font-variant-numeric: lining-nums; }
.cifras span { font: 500 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--tinta-2); margin-top: 6px; }
.filtro { display: flex; gap: 18px; margin-top: 18px; }
.filtro button { background: none; border: 0; padding: 6px 0; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-2); border-bottom: 1px solid transparent; }
.filtro button[aria-pressed="true"] { color: var(--noche); border-bottom-color: var(--noche); }

.fotos { max-width: 1100px; margin: 0 auto; columns: 2; column-gap: 12px; }
.foto {
  break-inside: avoid;
  margin: 0 0 14px;
  background: #fff;
  padding: 5px 5px 0;
  position: relative;
  box-shadow: 0 1px 1px rgba(14, 27, 46, .08), 0 10px 22px -14px rgba(14, 27, 46, .45);
  transform: rotate(var(--r, 0deg));
  cursor: zoom-in;
  transition: box-shadow .3s;
}
.foto::before, .foto::after {
  content: ""; position: absolute; width: 18px; height: 18px; z-index: 1;
  background: linear-gradient(135deg, var(--noche) 50%, transparent 50%);
  opacity: .9;
}
.foto::before { top: -3px; left: -3px; }
.foto::after { bottom: -3px; right: -3px; transform: rotate(180deg); }
.foto img { width: 100%; background: var(--papel-2); opacity: 0; transition: opacity .7s ease; }
.foto img.cargada { opacity: 1; }
.foto figcaption { font: italic 400 14px/1.2 var(--serif); color: var(--tinta-2); padding: 7px 2px 8px; display: flex; justify-content: space-between; gap: 8px; }
.foto figcaption span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foto.nueva { animation: llega 1s var(--suave); }
@keyframes llega { from { opacity: 0; transform: translateY(-36px) rotate(calc(var(--r) * 5)) scale(1.06); } to { opacity: 1; transform: rotate(var(--r)) scale(1); } }
.solo-mias .foto:not(.mia) { display: none; }
@media (hover: hover) { .foto:hover { box-shadow: 0 1px 1px rgba(14, 27, 46, .08), 0 22px 34px -16px rgba(14, 27, 46, .55); } }

.vacio { max-width: 1100px; margin: 8px auto 0; text-align: center; display: grid; justify-items: center; gap: 18px; }
.vacio p { font: 400 22px/1.35 var(--serif); color: var(--tinta-2); }
.vacio-marcos { display: flex; gap: 14px; }
.vacio-marcos i { width: 78px; height: 96px; border: 1px dashed #BDB4A3; background: rgba(255, 255, 255, .5); }
.vacio-marcos i:nth-child(1) { transform: rotate(-4deg); }
.vacio-marcos i:nth-child(2) { transform: translateY(-8px); }
.vacio-marcos i:nth-child(3) { transform: rotate(3deg); }
.album-pie { display: flex; justify-content: center; margin-top: 28px; }
.album-pie .btn { min-width: 240px; }

.pie { text-align: center; padding: 60px 16px calc(56px + env(safe-area-inset-bottom)); color: var(--plata); background: var(--grano), radial-gradient(60% 80% at 50% 100%, #1B3150, var(--noche) 70%); }
.pie-gracias { font: italic 400 20px var(--serif); }
.pie-firma { font: 400 64px/1.1 var(--script); margin: 8px 0 6px; }
.pie-anio { font: 500 11px/1 var(--sans); letter-spacing: .36em; text-transform: uppercase; }

/* botón flotante de cámara */
.fab {
  position: fixed; z-index: 20;
  right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--noche); color: var(--hielo);
  box-shadow: 0 0 0 1px rgba(201, 207, 216, .35), 0 14px 30px -10px rgba(0, 0, 0, .6);
  transform: scale(0); transition: transform .4s var(--suave);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fab.ver { transform: scale(1); }
.fab svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

/* aviso */
.aviso {
  position: fixed; z-index: 65; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px);
  background: var(--noche); color: var(--hielo-2);
  border: 1px solid rgba(201, 207, 216, .3);
  padding: 13px 20px; font: italic 400 18px/1.3 var(--serif); text-align: center;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6);
  transition: transform .45s var(--suave), opacity .45s;
}
.aviso.ver { transform: translate(-50%, 0); opacity: 1; }
.confeti { position: fixed; inset: 0; z-index: 70; pointer-events: none; }

/* visor */
.visor {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8, 17, 29, .97);
  display: grid; place-items: center;
  padding: 58px 12px 76px;
  animation: aparece .25s;
}
.visor img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s; }
.visor img.cambia { opacity: 0; transform: scale(.98); }
.visor-n { position: absolute; top: 20px; left: 18px; font: 500 11px/1 var(--sans); letter-spacing: .24em; color: var(--plata); }
.visor-cerrar { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--plata); font: 300 44px/1 var(--sans); width: 54px; height: 54px; }
.visor-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--plata); font: 300 54px/1 var(--serif); width: 50px; height: 90px; }
.visor-ant { left: 0; }
.visor-sig { right: 0; }
.visor-pie { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 22px; align-items: center; font: italic 400 18px var(--serif); color: var(--plata); padding: 0 16px; }
.visor-pie span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visor-pie a { font: 500 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--noche); background: var(--plata); padding: 11px 16px; text-decoration: none; flex: none; }

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
  :root { --x: 68%; }
  .hero-txt { position: absolute; left: 7vw; top: 50%; transform: translateY(-56%); text-align: left; padding: 0; max-width: 48vw; }
  .hero-sup { padding-left: 0; }
  .hero-nombre { font-size: clamp(130px, 12.5vw, 216px); }
  .hero-ella { height: 94vh; bottom: -6vh; }
  .hero-xv { font-size: 74vh; top: 46%; }
  .cuenta { justify-content: flex-start; }
  .subir { margin-top: -13vh; }
  .hoja { margin-left: 7vw; max-width: 560px; padding: 40px 38px 32px; }
  .album { padding: 84px 32px 96px; }
  .album-cab { grid-template-columns: 300px 1fr; gap: 60px; }
  .fotos { columns: 4; column-gap: 20px; }
  .foto { margin-bottom: 22px; }
  .visor-nav { width: 80px; }
}
@media (min-width: 600px) and (max-width: 899px) { .fotos { columns: 3; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .escribe { -webkit-mask-image: none; mask-image: none; }
}
