/* ——— Álbum de viajes ——— */
:root {
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --script: "Great Vibes", cursive;
  --mano: "Caveat", cursive;
  --pw: 420px; --ph: 560px; --shift: 0px;
  --rx: 8deg; --ry: 0deg;
  --vidrio: rgba(18, 18, 28, .55);
  --borde-vidrio: rgba(255, 255, 255, .14);
  --texto: #f6f3ee;
  --texto-suave: rgba(246, 243, 238, .7);
  /* el tema escribe aquí --portada, --foil, --papel, --tinta, --acento, --fondo… */
  --portada: linear-gradient(145deg, #0b1a33, #16305a, #08111f);
  --foil: linear-gradient(100deg, #8a6a2f, #f7e39b, #b8862e, #fff3c4, #9c7a35, #8a6a2f);
  --papel: #f7f2e7; --papel-2: #ece3cf; --tinta: #1c3d6e; --acento: #c9a24a;
  --fondo: radial-gradient(120% 90% at 50% 20%, #0d1b33 0%, #03070f 70%);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--ui); color: var(--texto); background: #03070f; overflow: hidden;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
  /* sin zoom de doble toque ni rebote: el álbum se mueve solo con sus gestos (celular, 19/10/2026) */
  touch-action: manipulation; overscroll-behavior: none;
}
body::before { content: ""; position: fixed; inset: 0; background: var(--fondo); transition: background 1.2s ease; z-index: -2; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

#particulas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ——— Escena 3D ——— */
#escena { position: fixed; inset: 0 0 76px 0; display: grid; place-items: center; perspective: 2400px; perspective-origin: 50% 40%; touch-action: pan-y; }
#flotar { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: flotar 7s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes flotar { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(6px); } }
#tilt { transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
#libro {
  position: absolute; left: calc(var(--pw) * -1); top: calc(var(--ph) / -2); width: calc(var(--pw) * 2); height: var(--ph); transform-style: preserve-3d;
  transform: translateX(var(--shift)); transition: transform .9s cubic-bezier(.645, .045, .355, 1);
}
#libro.entrando { animation: entrar 1.6s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes entrar {
  0% { opacity: 0; transform: translateX(var(--shift)) translateY(60px) rotateX(55deg) rotateZ(-8deg) scale(.6); filter: blur(10px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateX(var(--shift)); }
}
/* La sombra del libro sobre la "mesa" (#libro::after, un plano girado 90° con desenfoque) se quitó el
   19/10/2026: con la inclinación del libro se proyectaba como una franja oscura sobre la parte de abajo de
   las páginas y tapaba botones y texto en el celular (Jorge: "elimina esa franja oscura de abajo"). */

/* ——— Hojas ——— */
.hoja {
  position: absolute; left: 50%; top: 0; width: var(--pw); height: var(--ph);
  transform-origin: left center; transform-style: preserve-3d; transform: translateZ(var(--z, 0px)) rotateY(0deg);
  transition: transform 1.05s cubic-bezier(.645, .045, .355, 1);
}
.hoja.volteada { transform: translateZ(var(--z, 0px)) rotateY(-180deg); }
.hoja.sin-transicion { transition: none; }
.cara {
  position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  /* lo de adentro de cada cara es plano: en Safari (iPhone) las fotos con su propio giro (postal, polaroids) dentro de una cara
     en 3D salían en blanco aunque el texto sí se viera (19/10/2026) */
  transform-style: flat;
  border-radius: 2px 9px 9px 2px; background: var(--papel); color: var(--tinta);
}
.cara.atras { transform: rotateY(180deg); border-radius: 9px 2px 2px 9px; }
/* papel: grano + sombra hacia el lomo */
.pagina { background-color: var(--papel); }
.pagina::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .2) 0, rgba(0, 0, 0, .06) 5%, transparent 14%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .33  0 0 0 0 .25  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cara.atras.pagina::before { background:
    linear-gradient(270deg, rgba(0, 0, 0, .2) 0, rgba(0, 0, 0, .06) 5%, transparent 14%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .33  0 0 0 0 .25  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
/* canto de hojas apiladas */
.hoja:not(.tapa) .cara:not(.atras)::after, .hoja:not(.tapa) .cara.atras::after {
  content: ""; position: absolute; top: 4px; bottom: 4px; width: 3px; z-index: 6; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 2px);
}
.hoja:not(.tapa) .cara:not(.atras)::after { right: 0; }
.hoja:not(.tapa) .cara.atras::after { left: 0; }
/* sombra que recorre la hoja al girar */
.cara .giro { position: absolute; inset: 0; z-index: 8; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05) 40%, rgba(255, 255, 255, .18) 75%, rgba(0, 0, 0, .1)); }
.hoja.girando .cara .giro { animation: giro 1.05s ease-in-out; }
@keyframes giro { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0; } }

/* ——— Portada y contraportada ——— */
.portada { background: var(--portada); color: #fff; border-radius: 3px 12px 12px 3px; }
.cara.atras.portada { border-radius: 12px 3px 3px 12px; }
.portada .grano { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.portada .lomo { position: absolute; top: 0; bottom: 0; left: 0; width: 7%; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(255, 255, 255, .12) 55%, rgba(0, 0, 0, .25)); }
.cara.atras.portada .lomo { left: auto; right: 0; transform: scaleX(-1); }
.portada .luz { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(90% 60% at 30% 10%, rgba(255, 255, 255, .45), transparent 60%); }
.marco { position: absolute; inset: 6.5% 7% 6.5% 11%; border-radius: 10px; padding: 2px; pointer-events: none;
  background: var(--foil); background-size: 300% 100%; animation: foil 9s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .9; }
.marco::before { content: ""; position: absolute; inset: 9px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .25); }
.foil {
  background: var(--foil); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: foil 9s linear infinite; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)) drop-shadow(0 -1px 0 rgba(255, 255, 255, .15));
}
@keyframes foil { to { background-position: 300% 0; } }
.portada-contenido { position: absolute; inset: 6.5% 7% 6.5% 11%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8%; gap: calc(var(--pw) * .025); }
.emblema { width: calc(var(--pw) * .3); aspect-ratio: 1; background: var(--foil); background-size: 300% 100%; animation: foil 9s linear infinite;
  -webkit-mask: url("../img/emblema.svg") center / contain no-repeat; mask: url("../img/emblema.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.portada .kick { font: 600 calc(var(--pw) * .028) / 1 var(--ui); letter-spacing: .38em; text-transform: uppercase; margin-top: calc(var(--pw) * .02); }
.portada h2 { margin: 0; font: 800 calc(var(--pw) * .1) / 1.02 var(--serif); letter-spacing: -.01em; }
.portada .nombres { font: 400 calc(var(--pw) * .1) / 1.15 var(--script); padding: 0 .2em; }
.portada .anio { font: 600 calc(var(--pw) * .03) / 1 var(--ui); letter-spacing: .45em; opacity: .9; }
.brillo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; z-index: 4;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%); background-size: 300% 100%;
  animation: barrido 6s ease-in-out infinite; }
@keyframes barrido { 0%, 55% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.holo { display: none; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .35; z-index: 3;
  background: conic-gradient(from 0deg at 30% 40%, #ff9ad5, #9fd8ff, #c3ffd9, #ffe39a, #c3a6ff, #ff9ad5); animation: holo 10s linear infinite; filter: blur(14px); }
[data-brillo="holo"] .holo { display: block; }
@keyframes holo { to { filter: blur(14px) hue-rotate(360deg); } }
.contra .portada-contenido { gap: calc(var(--pw) * .03); }
.contra .emblema { width: calc(var(--pw) * .16); }
.contra p { margin: 0; font: 600 calc(var(--pw) * .026) / 1.6 var(--ui); letter-spacing: .3em; text-transform: uppercase; }

/* ——— Guarda (interior de la tapa) ——— */
.guarda { background-color: var(--portada-2); background-image:
  radial-gradient(circle at 25% 25%, rgba(255, 255, 255, .13) 1.2px, transparent 1.6px),
  radial-gradient(circle at 75% 75%, rgba(255, 255, 255, .08) 1.2px, transparent 1.6px);
  background-size: 22px 22px; display: grid; place-items: center; }
.ex-libris { width: 72%; padding: 9% 7%; text-align: center; background: var(--papel); color: var(--tinta); border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); position: relative; transform: rotate(-1.5deg); }
.ex-libris::before { content: ""; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--acento) 60%, transparent); border-radius: 4px; }
.ex-libris small { font: 600 calc(var(--pw) * .026) / 1 var(--ui); letter-spacing: .3em; text-transform: uppercase; color: var(--acento); }
.ex-libris .firma { font: 400 calc(var(--pw) * .085) / 1.2 var(--script); margin: 6% 0 3%; color: var(--tinta); }
.ex-libris p { margin: 0; font: 500 calc(var(--pw) * .05) / 1.25 var(--mano); color: color-mix(in srgb, var(--tinta) 80%, transparent); }

/* ——— Contenido de las páginas ——— */
.pag { position: absolute; inset: 0; padding: 9% 9% 8% 11%; display: flex; flex-direction: column; }
.cara.atras .pag { padding: 9% 11% 8% 9%; }
.folio { position: absolute; bottom: 3.2%; font: 600 calc(var(--pw) * .024) / 1 var(--ui); letter-spacing: .2em; color: color-mix(in srgb, var(--tinta) 45%, transparent); }
.cara:not(.atras) .folio { right: 7%; } .cara.atras .folio { left: 7%; }
.kick { font: 700 calc(var(--pw) * .026) / 1 var(--ui); letter-spacing: .32em; text-transform: uppercase; color: var(--acento); }
.pag h3 { margin: 2.5% 0 0; font: 800 calc(var(--pw) * .085) / 1.02 var(--serif); color: var(--tinta); letter-spacing: -.01em; }
.raya { height: 2px; width: 34%; margin: 4% 0; background: var(--foil); background-size: 300% 100%; animation: foil 9s linear infinite; border-radius: 2px; }

/* mapa */
.mapa { position: relative; margin-top: 4%; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.mapa svg { width: 100%; height: auto; overflow: visible; }
.mapa .tierra { fill: color-mix(in srgb, var(--tinta) 14%, transparent); stroke: color-mix(in srgb, var(--tinta) 45%, transparent); stroke-width: .6; vector-effect: non-scaling-stroke; }
.mapa .ruta { fill: none; stroke: var(--acento); stroke-width: 2.2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; animation: ruta 2.4s linear infinite; }
@keyframes ruta { to { stroke-dashoffset: -18; } }
.mapa .pin-v { fill: var(--acento); stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mapa .pin-s { fill: var(--papel); stroke: var(--acento); stroke-width: 1.6; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.mapa .onda { fill: none; stroke: var(--acento); stroke-width: 1.2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: onda 2.6s ease-out infinite; }
@keyframes onda { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; margin-top: 6%; text-align: center; }
.cifras b { display: block; font: 800 calc(var(--pw) * .085) / 1 var(--serif); color: var(--tinta); }
.cifras span { font: 600 calc(var(--pw) * .024) / 1.3 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--tinta) 60%, transparent); }

/* destino: página de datos */
.dest-cab { display: flex; align-items: center; justify-content: space-between; }
.bandera { font-size: calc(var(--pw) * .085); line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .2)); }
.pais { margin-top: 1.5%; font: 600 calc(var(--pw) * .03) / 1 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: color-mix(in srgb, var(--tinta) 65%, transparent); }
.coords { margin-top: 3%; font: 500 calc(var(--pw) * .026) / 1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; color: color-mix(in srgb, var(--tinta) 55%, transparent); }
.campo-pag { margin-top: 5%; }
.campo-pag label { display: block; font: 700 calc(var(--pw) * .022) / 1 var(--ui); letter-spacing: .26em; text-transform: uppercase; color: var(--acento); margin-bottom: 2%; }
.campo-pag input { width: 100%; border: 0; border-bottom: 1.5px dashed color-mix(in srgb, var(--tinta) 30%, transparent); background: transparent;
  font: 700 calc(var(--pw) * .058) / 1.2 var(--mano); color: var(--tinta); padding: 1% 0; outline: none; user-select: text; -webkit-user-select: text; }
.campo-pag input::placeholder { color: color-mix(in srgb, var(--tinta) 35%, transparent); }
.nota { flex: 1; min-height: 0; font: 600 calc(var(--pw) * .056) / calc(var(--pw) * .078) var(--mano); color: var(--tinta); outline: none; overflow: hidden;
  background-image: linear-gradient(transparent calc(var(--pw) * .074), color-mix(in srgb, var(--tinta) 16%, transparent) calc(var(--pw) * .074), color-mix(in srgb, var(--tinta) 16%, transparent) calc(var(--pw) * .078));
  background-size: 100% calc(var(--pw) * .078); user-select: text; -webkit-user-select: text; cursor: text; }
.nota:empty::before { content: attr(data-placeholder); color: color-mix(in srgb, var(--tinta) 32%, transparent); }

/* sello de pasaporte */
.sello { position: absolute; right: 8%; bottom: 7%; width: 38%; aspect-ratio: 1; transform: rotate(-14deg); pointer-events: none; z-index: 4; }
.sello svg { width: 100%; height: 100%; overflow: visible; }
.sello text { font-family: var(--ui); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sello.visitado { color: var(--tinta); opacity: .82; mix-blend-mode: multiply;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='.55' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 1.7'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='.55' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 1.7'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.sello.sueno { color: var(--acento); opacity: .75; }
.sello.recien { animation: sellar .55s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes sellar { 0% { transform: rotate(-14deg) scale(2.4); opacity: 0; } 60% { opacity: .9; } 100% { transform: rotate(-14deg) scale(1); opacity: .82; } }

/* destino: página de fotos */
.fotos { position: absolute; inset: 7% 8% 9% 9%; }
.cara.atras .fotos { inset: 7% 9% 9% 8%; }
.polaroid { position: absolute; background: #fff; padding: 3.6% 3.6% 13%; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 12px 26px rgba(0, 0, 0, .22);
  border-radius: 2px; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s; cursor: pointer; }
.polaroid:hover { box-shadow: 0 4px 8px rgba(0, 0, 0, .14), 0 20px 40px rgba(0, 0, 0, .28); }
.polaroid .marco-foto { position: relative; width: 100%; height: 100%; overflow: hidden; background: #e9e4da; }
.polaroid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid .pie { position: absolute; left: 0; right: 0; bottom: 1.5%; text-align: center; font: 700 calc(var(--pw) * .042) / 1 var(--mano); color: #3a3a3a; }
.polaroid.p0 { left: 2%; top: 0; width: 70%; height: 56%; transform: rotate(-2.5deg); z-index: 2; }
.polaroid.p1 { right: 0; top: 40%; width: 52%; height: 40%; transform: rotate(4deg); z-index: 3; }
.polaroid.p2 { left: 0; bottom: 0; width: 50%; height: 38%; transform: rotate(-5deg); z-index: 1; }
.polaroid.p0:hover { transform: rotate(-1deg) scale(1.02); } .polaroid.p1:hover { transform: rotate(2deg) scale(1.03); } .polaroid.p2:hover { transform: rotate(-3deg) scale(1.03); }
.cinta { position: absolute; top: -5%; left: 50%; width: 34%; height: 9%; transform: translateX(-50%) rotate(-3deg); z-index: 2;
  background: color-mix(in srgb, var(--acento) 35%, rgba(255, 255, 255, .55)); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); opacity: .85;
  clip-path: polygon(3% 0, 97% 4%, 100% 100%, 0 96%); }
.vacia .marco-foto { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #f1ece2 0 10px, #ebe5d9 10px 20px); }
.vacia .agregar-foto { display: flex; flex-direction: column; align-items: center; gap: 6px; color: color-mix(in srgb, var(--tinta) 55%, transparent);
  font: 600 calc(var(--pw) * .028) / 1.2 var(--ui); text-align: center; padding: 6%; }
.vacia svg { width: calc(var(--pw) * .08); height: auto; stroke: currentColor; fill: none; stroke-width: 1.6; }
.suenio img { filter: saturate(.55) brightness(1.05) sepia(.18); }
.suenio .velo { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .45)); }
.suenio .velo span { align-self: end; margin-bottom: 8%; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: #222;
  font: 700 calc(var(--pw) * .026) / 1 var(--ui); letter-spacing: .04em; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.suenio .sin-foto { width: 100%; height: 100%; display: grid; place-items: center; font-size: calc(var(--pw) * .2);
  background: linear-gradient(160deg, color-mix(in srgb, var(--acento) 40%, #fff), color-mix(in srgb, var(--tinta) 55%, #fff)); }
.quitar { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; z-index: 3;
  background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; transition: opacity .2s; }
.polaroid:hover .quitar { opacity: 1; }
@media (hover: none) { .quitar { opacity: .85; } }
.quitar svg { width: 14px; stroke: #fff; stroke-width: 2.4; fill: none; }
.polaroid.cae { animation: cae .7s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes cae { from { opacity: 0; transform: translateY(-40%) rotate(-14deg) scale(1.15); } }

/* agregar destino y próximos sueños */
.agregar { margin: auto; width: 78%; aspect-ratio: 1; border-radius: 22px; border: 2px dashed color-mix(in srgb, var(--acento) 70%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; text-align: center; background: color-mix(in srgb, var(--acento) 7%, transparent);
  color: var(--tinta); transition: transform .3s, background .3s; }
.agregar:hover { transform: scale(1.03); background: color-mix(in srgb, var(--acento) 12%, transparent); }
.agregar .mas { width: 28%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--foil); background-size: 300% 100%; animation: foil 9s linear infinite;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--acento) 45%, transparent); }
.agregar .mas svg { width: 46%; stroke: #fff; stroke-width: 2.6; fill: none; }
.agregar b { font: 800 calc(var(--pw) * .06) / 1.1 var(--serif); }
.agregar span { font: 500 calc(var(--pw) * .03) / 1.3 var(--ui); color: color-mix(in srgb, var(--tinta) 65%, transparent); max-width: 80%; }
.suenios-lista { display: flex; flex-wrap: wrap; gap: 2.5%; margin-top: 6%; }
.suenios-lista span { padding: 2% 3.4%; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--acento) 55%, transparent); margin-bottom: 2.5%;
  font: 600 calc(var(--pw) * .03) / 1 var(--ui); color: var(--tinta); background: color-mix(in srgb, var(--acento) 8%, transparent); }
.cita { margin-top: auto; font: 700 calc(var(--pw) * .06) / 1.15 var(--mano); color: var(--tinta); }
.cita small { display: block; margin-top: 3%; font: 600 calc(var(--pw) * .024) / 1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--acento); }

/* ——— Pista y barra ——— */
#pista { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); padding: 10px 18px; border-radius: 99px; font: 600 14px/1 var(--ui);
  background: var(--vidrio); border: 1px solid var(--borde-vidrio); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: pista 2.4s ease-in-out infinite; pointer-events: none; transition: opacity .5s; white-space: nowrap; }
#pista.oculta { opacity: 0; }
@keyframes pista { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
#barra { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 99px; background: var(--vidrio); border: 1px solid var(--borde-vidrio); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35); z-index: 20; }
#indicador { min-width: 128px; text-align: center; font: 600 13px/1 var(--ui); color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.sep { width: 1px; height: 22px; background: var(--borde-vidrio); margin: 0 4px; }
.btn-ico { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; transition: background .2s, transform .15s; }
.btn-ico:hover { background: rgba(255, 255, 255, .1); } .btn-ico:active { transform: scale(.92); }
.btn-ico:disabled { opacity: .3; cursor: default; }
.btn-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn-ico circle { fill: currentColor; stroke: none; }
#b-musica circle { fill: none; stroke: currentColor; }
#b-sonido .off { display: none; } #b-sonido[aria-pressed="false"] .on { display: none; } #b-sonido[aria-pressed="false"] .off { display: block; }
#b-musica[aria-pressed="true"] { background: color-mix(in srgb, var(--acento) 35%, transparent); }

/* ——— Capas: bienvenida, panel, modal, visor ——— */
.capa { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(3, 5, 12, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: aparecer .4s ease both; }
@keyframes aparecer { from { opacity: 0; } }
.bv-caja { width: min(980px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px;
  border-radius: 28px; background: rgba(16, 16, 26, .72); border: 1px solid var(--borde-vidrio); box-shadow: 0 30px 90px rgba(0, 0, 0, .5); animation: subir .6s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes subir { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.bv-vista { display: grid; place-items: center; perspective: 1400px; min-height: 360px; border-radius: 20px; background: var(--fondo); }
.mini-libro { --pw: 230px; --ph: 307px; width: var(--pw); height: var(--ph); position: relative; transform: rotateY(-18deg) rotateX(6deg); transform-style: preserve-3d;
  box-shadow: 30px 30px 60px rgba(0, 0, 0, .45); border-radius: 3px 12px 12px 3px; animation: mini 6s ease-in-out infinite; }
@keyframes mini { 0%, 100% { transform: rotateY(-18deg) rotateX(6deg) translateY(0); } 50% { transform: rotateY(-10deg) rotateX(4deg) translateY(-8px); } }
.mini-libro .cara { backface-visibility: visible; }
.bv-kick { margin: 0; font: 700 12px/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--acento); }
.bv-pasos h1 { margin: 10px 0 8px; font: 800 34px/1.05 var(--ui); letter-spacing: -.02em; }
.bv-sub { margin: 0 0 22px; color: var(--texto-suave); font-size: 16px; line-height: 1.45; }
.bv-opciones.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.op-grande { padding: 22px 16px; border-radius: 20px; border: 1px solid var(--borde-vidrio); background: rgba(255, 255, 255, .05); display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .2s, background .2s, border-color .2s; }
.op-grande:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .09); border-color: color-mix(in srgb, var(--acento) 60%, transparent); }
.op-ico { font-size: 40px; } .op-grande b { font-size: 18px; } .op-grande small { color: var(--texto-suave); font-size: 13px; }
.tabs { display: inline-flex; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .07); margin: 6px 0 16px; }
.tabs button { border: 0; background: transparent; padding: 10px 18px; border-radius: 99px; font-weight: 600; font-size: 14px; color: var(--texto-suave); }
.tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .16); color: var(--texto); }
.muestras { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.muestra { border: 0; padding: 0; background: transparent; display: flex; flex-direction: column; gap: 7px; align-items: center; }
.muestra .chip { width: 100%; aspect-ratio: 3 / 4; border-radius: 4px 10px 10px 4px; position: relative; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  transition: transform .25s; outline: 2px solid transparent; outline-offset: 3px; }
.muestra .chip::after { content: ""; position: absolute; left: 22%; right: 22%; top: 42%; height: 6%; border-radius: 2px; background: var(--m-foil); }
.muestra .chip::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); background-size: 300% 100%; animation: barrido 4s ease-in-out infinite; mix-blend-mode: overlay; }
.muestra:hover .chip { transform: translateY(-3px); }
.muestra[aria-pressed="true"] .chip { outline-color: #fff; }
.muestra span { font-size: 11.5px; line-height: 1.2; text-align: center; color: var(--texto-suave); }
.muestra[aria-pressed="true"] span { color: var(--texto); font-weight: 600; }
.campo { display: block; margin-bottom: 14px; }
.campo span { display: block; font-size: 13px; font-weight: 600; color: var(--texto-suave); margin-bottom: 6px; }
.campo input, .buscar { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--borde-vidrio); background: rgba(255, 255, 255, .06); color: var(--texto);
  font: 500 16px/1.2 var(--ui); outline: none; user-select: text; -webkit-user-select: text; }
.campo input:focus, .buscar:focus { border-color: color-mix(in srgb, var(--acento) 80%, transparent); background: rgba(255, 255, 255, .09); }
.bv-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.btn-pri, .btn-sec, .btn-peligro { min-height: 50px; padding: 0 22px; border-radius: 99px; border: 0; font-weight: 700; font-size: 15px; }
.btn-pri { background: #fff; color: #111; box-shadow: 0 10px 30px rgba(255, 255, 255, .15); }
.btn-pri.brilla { background: var(--foil); background-size: 300% 100%; animation: foil 6s linear infinite; color: #1a1408; }
.btn-sec { background: rgba(255, 255, 255, .1); color: var(--texto); }
.btn-peligro { width: 100%; margin-top: 18px; background: rgba(255, 80, 90, .12); color: #ffb3b8; }

.hoja-lateral { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100%); z-index: 45; background: rgba(14, 14, 22, .86); border-left: 1px solid var(--borde-vidrio);
  backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); display: flex; flex-direction: column; animation: lateral .45s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes lateral { from { transform: translateX(100%); } }
.hoja-lateral header, .md-caja header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 6px 22px; }
.hoja-lateral h2, .md-caja h2 { margin: 0; font: 800 22px/1 var(--ui); letter-spacing: -.01em; }
.pn-cuerpo { padding: 6px 22px 30px; overflow: auto; }
.pn-cuerpo h3 { margin: 22px 0 10px; font: 700 12px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--texto-suave); }
.pn-cuerpo .muestras { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.segmento { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.segmento button { border: 0; padding: 11px; border-radius: 10px; background: transparent; font-weight: 600; color: var(--texto-suave); }
.segmento button[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: var(--texto); }
.interruptor { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 500; }
.interruptor input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, .18); position: relative; transition: background .25s; cursor: pointer; }
.interruptor input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.interruptor input:checked { background: var(--acento); } .interruptor input:checked::before { transform: translateX(20px); }

.md-caja { width: min(720px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border-radius: 26px; background: rgba(16, 16, 26, .9); border: 1px solid var(--borde-vidrio);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5); animation: subir .5s cubic-bezier(.2, .9, .3, 1) both; overflow: hidden; }
.buscar { margin: 8px 22px 12px; width: auto; }
.md-lista { overflow: auto; padding: 4px 22px 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.md-item { position: relative; height: 104px; border-radius: 16px; border: 1px solid var(--borde-vidrio); overflow: hidden; text-align: left; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end;
  background: rgba(255, 255, 255, .05) center / cover no-repeat; transition: transform .2s, border-color .2s; }
.md-item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--acento) 70%, transparent); }
.md-item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .7)); }
.md-item > * { position: relative; }
.md-item .md-b { position: absolute; top: 10px; left: 12px; font-size: 22px; }
.md-item b { font-size: 15px; } .md-item small { font-size: 12px; color: rgba(255, 255, 255, .75); }
.md-item.ya { opacity: .45; pointer-events: none; }
.md-item.nuevo { background: color-mix(in srgb, var(--acento) 22%, transparent); }

#visor { background: rgba(0, 0, 0, .86); grid-template-rows: 1fr auto; gap: 16px; }
#visor figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; min-height: 0; }
#visor img { max-width: min(92vw, 1100px); max-height: calc(100dvh - 170px); border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: zoom .45s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes zoom { from { transform: scale(.85); opacity: 0; } }
#visor figcaption { font: 700 24px/1 var(--mano); color: #fff; }
.visor-acciones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

#aviso { position: fixed; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translate(-50%, -140%); z-index: 60; padding: 12px 18px; border-radius: 99px;
  background: rgba(20, 20, 30, .9); border: 1px solid var(--borde-vidrio); font: 600 14px/1.2 var(--ui); transition: transform .45s cubic-bezier(.2, .9, .3, 1); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
#aviso.ver { transform: translate(-50%, 0); }

/* ——— Celular: una sola página a la vez ——— */
@media (max-width: 760px) {
  #escena { inset: 0 0 84px 0; }
  .bv-caja { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  .bv-vista { min-height: 230px; }
  .mini-libro { --pw: 150px; --ph: 200px; }
  .bv-pasos h1 { font-size: 28px; }
  .muestras { grid-template-columns: repeat(5, 1fr); gap: 7px; }
  .muestra span { font-size: 10px; }
  #indicador { min-width: 84px; font-size: 12px; }
  .btn-ico { width: 40px; height: 40px; }
  #b-completa { display: none; }
  .sep { margin: 0 1px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hoja, #libro { transition-duration: .2s !important; }
}

/* logo de Freedom: el PNG blanco se usa como máscara para pintarlo con foil o con tinta */
.logo-freedom { width: 46%; aspect-ratio: 1340 / 260; background: var(--foil); background-size: 300% 100%; animation: foil 9s linear infinite;
  -webkit-mask: url("../img/logo-freedom.png") center / contain no-repeat; mask: url("../img/logo-freedom.png") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.logo-freedom.tinta { background: var(--tinta); animation: none; filter: none; opacity: .85; }
.portada .logo-freedom { width: 52%; margin-bottom: calc(var(--pw) * .02); }
.contra .logo-freedom { width: 58%; }
.ex-libris .logo-freedom { width: 44%; margin: 0 auto 7%; }

/* ——— Estilo masculino: cuero, costura, esquinas metálicas, correa y brújula ——— */
.costura, .esquina, .correa, .textura { display: none; }
[data-estilo="el"] .marco { display: none; }
[data-estilo="el"] .costura { display: block; position: absolute; inset: 4% 4.5% 4% 10%; border-radius: 8px; pointer-events: none;
  border: 2px dashed color-mix(in srgb, var(--foil-1) 55%, transparent); box-shadow: 0 1px 0 rgba(0, 0, 0, .45), inset 0 1px 0 rgba(0, 0, 0, .45); }
[data-estilo="el"] .esquina { display: block; position: absolute; width: 13%; aspect-ratio: 1; pointer-events: none; z-index: 5;
  background: var(--foil); background-size: 300% 100%; animation: foil 9s linear infinite; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
[data-estilo="el"] .esquina.e1 { top: 0; right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); border-top-right-radius: 12px; }
[data-estilo="el"] .esquina.e2 { bottom: 0; right: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); border-bottom-right-radius: 12px; }
.cara.atras .esquina.e1 { right: auto; left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); border-radius: 12px 0 0 0; }
.cara.atras .esquina.e2 { right: auto; left: 0; clip-path: polygon(0 0, 100% 100%, 0 100%); border-radius: 0 0 0 12px; }
[data-estilo="el"] .correa { display: block; position: absolute; top: -1%; bottom: -1%; right: 11%; width: 5.5%; z-index: 6; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), var(--portada-3) 25%, color-mix(in srgb, var(--portada-3) 70%, #fff 8%) 55%, rgba(0, 0, 0, .6));
  box-shadow: -3px 0 6px rgba(0, 0, 0, .45), 3px 0 6px rgba(0, 0, 0, .35); }
.cara.atras .correa { display: none; }
[data-estilo="el"] .textura { display: block; position: absolute; inset: 0; pointer-events: none; opacity: .55; mix-blend-mode: overlay; }
[data-textura="cuero"] .textura { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='c'><feTurbulence type='turbulence' baseFrequency='.045' numOctaves='3' seed='4'/><feDiffuseLighting lighting-color='white' surfaceScale='2.2'><feDistantLight azimuth='225' elevation='55'/></feDiffuseLighting></filter><rect width='100%' height='100%' filter='url(%23c)'/></svg>"); }
[data-textura="carbono"] .textura { opacity: .5; mix-blend-mode: normal; background:
  repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 4px, rgba(0, 0, 0, .35) 4px 8px),
  repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 4px, rgba(0, 0, 0, .3) 4px 8px); }
[data-textura="lona"] .textura { opacity: .45; background:
  repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 3px),
  repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); }
[data-estilo="el"] .portada .grano { opacity: .35; }
[data-estilo="el"] .portada-contenido { inset: 4% 18% 4% 10%; padding: 9% 6%; }
[data-estilo="el"] .contra .portada-contenido { inset: 4% 10% 4% 4.5%; }
[data-estilo="el"] .emblema { -webkit-mask-image: url("../img/brujula.svg"); mask-image: url("../img/brujula.svg"); width: calc(var(--pw) * .26); }
[data-estilo="el"] .portada h2 { font: 700 calc(var(--pw) * .1) / .98 "Oswald", var(--ui); text-transform: uppercase; letter-spacing: .04em; }
[data-estilo="el"] .portada .nombres { font: 600 calc(var(--pw) * .036) / 1.4 "Oswald", var(--ui); text-transform: uppercase; letter-spacing: .32em; padding: 0; margin-top: 2%; }
[data-estilo="el"] .portada .kick { font-family: "Oswald", var(--ui); letter-spacing: .5em; }
[data-estilo="el"] .portada .anio { font-family: "Oswald", var(--ui); }
[data-estilo="el"] .portada .brillo { opacity: .55; }
[data-estilo="el"] .ex-libris { border-radius: 2px; transform: none; }
[data-estilo="el"] .ex-libris .firma { font: 700 calc(var(--pw) * .06) / 1.2 "Oswald", var(--ui); text-transform: uppercase; letter-spacing: .12em; }
[data-estilo="el"] .guarda { background-image:
  linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 26px 26px; }
[data-estilo="el"] .pag h3, [data-estilo="el"] .cifras b, [data-estilo="el"] .agregar b { font-family: "Oswald", var(--ui); text-transform: uppercase; letter-spacing: .02em; font-weight: 700; }
/* muestras del selector: los de hombre muestran la correa y la costura */
.muestra[data-genero-m="el"] .chip { box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25), 0 8px 20px rgba(0, 0, 0, .4); }
.muestra[data-genero-m="el"] .chip::after { left: auto; right: 14%; top: -2%; bottom: -2%; width: 9%; height: auto; border-radius: 0; background: rgba(0, 0, 0, .45); }

/* ——— Postal icónica del destino + fotos propias ——— */
.postal { position: absolute; right: 0; top: 0; width: 64%; height: 35%; transform: rotate(3deg); z-index: 1; background: #fff; padding: 2.6%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 12px 26px rgba(0, 0, 0, .2); border-radius: 2px; }
.postal::before { content: ""; position: absolute; inset: 0; border-radius: 2px; pointer-events: none;
  background: radial-gradient(circle at 50% 0, transparent 3px, #fff 3.5px) 0 -1px / 12px 7px repeat-x, radial-gradient(circle at 50% 100%, transparent 3px, #fff 3.5px) 0 calc(100% + 1px) / 12px 7px repeat-x; }
.postal .p-img { position: relative; width: 100%; height: 100%; overflow: hidden; background: color-mix(in srgb, var(--acento) 25%, #eee); }
.postal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.postal .p-txt { position: absolute; left: 6%; top: 9%; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); line-height: 1; }
.postal .p-txt small { display: block; font: 400 calc(var(--pw) * .045) / 1 var(--script); }
.postal .p-txt b { font: 800 calc(var(--pw) * .052) / 1 var(--serif); letter-spacing: .01em; }
[data-estilo="el"] .postal .p-txt small { font: 600 calc(var(--pw) * .022) / 1.4 "Oswald", var(--ui); letter-spacing: .3em; text-transform: uppercase; }
[data-estilo="el"] .postal .p-txt b { font-family: "Oswald", var(--ui); text-transform: uppercase; }
.postal .estampilla { position: absolute; top: 7%; right: 5%; width: 15%; aspect-ratio: 4 / 5; background: #fff; display: grid; place-items: center;
  font-size: calc(var(--pw) * .045); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); outline: 2px dashed #fff; outline-offset: 2px; }
.polaroid.p0 { left: 0; top: 23%; width: 60%; height: 46%; transform: rotate(-3deg); z-index: 3; }
.polaroid.p1 { right: 0; top: 45%; width: 46%; height: 33%; transform: rotate(4deg); z-index: 2; }
.polaroid.p2 { left: 16%; bottom: 0; width: 44%; height: 29%; transform: rotate(-2deg); z-index: 4; }
.polaroid.p0:hover { transform: rotate(-1.5deg) scale(1.02); }
.polaroid.p0.vacia .agregar-foto { color: var(--tinta); }
.polaroid.p0.vacia .agregar-foto b { font: 800 calc(var(--pw) * .036) / 1.15 var(--ui); }
.polaroid.p0.vacia .marco-foto { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--acento) 10%, #f6f1e7) 0 10px, color-mix(in srgb, var(--acento) 16%, #f1ebdf) 10px 20px); }
.polaroid.p0.vacia .ico-pulso { width: calc(var(--pw) * .12); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--foil); background-size: 300% 100%;
  animation: foil 9s linear infinite, pulso 2.4s ease-in-out infinite; box-shadow: 0 8px 20px color-mix(in srgb, var(--acento) 40%, transparent); }
.polaroid.p0.vacia .ico-pulso svg { width: 50%; stroke: #fff; }
@keyframes pulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.con-quien { margin-top: 3%; font: 600 calc(var(--pw) * .028) / 1 var(--ui); color: color-mix(in srgb, var(--tinta) 70%, transparent); }

/* ——— Agregar destino: paso de detalle ——— */
.md-hero { position: relative; height: 200px; margin: 4px 22px 0; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.md-hero img { width: 100%; height: 100%; object-fit: cover; display: block; animation: zoom .6s ease both; }
.md-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .7)); }
.md-hero-txt { position: absolute; left: 18px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.md-hero-txt span { font-size: 26px; } .md-hero-txt b { font: 800 30px/1 var(--ui); letter-spacing: -.01em; } .md-hero-txt small { color: rgba(255, 255, 255, .8); }
.md-form { padding: 16px 22px 22px; overflow: auto; }
.md-form .segmento { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--borde-vidrio); background: rgba(255, 255, 255, .05); font-weight: 600; font-size: 14px; }
.chips button[aria-pressed="true"] { background: color-mix(in srgb, var(--acento) 35%, transparent); border-color: var(--acento); }

/* ——— Confirmar foto ——— */
.cf-caja { width: min(820px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; padding: 26px;
  border-radius: 26px; background: rgba(16, 16, 26, .9); border: 1px solid var(--borde-vidrio); animation: subir .5s cubic-bezier(.2, .9, .3, 1) both; }
.cf-polaroid { background: #fff; padding: 12px 12px 54px; border-radius: 3px; transform: rotate(-2.5deg); box-shadow: 0 25px 60px rgba(0, 0, 0, .5); position: relative; animation: cae .7s cubic-bezier(.3, 1.4, .5, 1) both; }
.cf-polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #eee; }
.cf-pie { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font: 700 26px/1 var(--mano); color: #333; }
.cf-lado h2 { margin: 6px 0 18px; font: 800 28px/1.1 var(--ui); }

/* ——— Celebración ——— */
#celebracion { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; text-align: center;
  background: radial-gradient(80% 70% at 50% 40%, color-mix(in srgb, var(--portada-2) 45%, #05060c), #020306 85%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
#celebracion canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cel-contenido { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 520px; }
.cel-foto { width: min(240px, 58vw); background: #fff; padding: 10px 10px 42px; border-radius: 3px; position: relative; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); margin-bottom: 22px; }
.cel-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.cel-pie { position: absolute; left: 0; right: 0; bottom: 10px; font: 700 22px/1 var(--mano); color: #333; }
.cel-titulo { margin: 0; font: 800 clamp(38px, 9vw, 64px)/1 var(--ui); letter-spacing: -.02em; background: var(--foil); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 6s linear infinite; }
.cel-texto { margin: 12px 0 4px; font: 600 clamp(18px, 4.6vw, 22px)/1.35 var(--ui); }
.cel-stats { margin: 0 0 24px; color: var(--texto-suave); font-size: 15px; }
.cel-cta { min-height: 58px; padding: 0 30px; font-size: 17px; }
.cel-cerrar { margin-top: 12px; border: 0; background: transparent; color: var(--texto-suave); font-weight: 600; min-height: 44px; padding: 0 14px; text-decoration: underline; text-underline-offset: 3px; }
#celebracion.activa .cel-foto { animation: celFoto 1s cubic-bezier(.2, 1.4, .4, 1) both; }
#celebracion.activa .cel-titulo { animation: foil 6s linear infinite, celSube .7s .35s cubic-bezier(.2, 1.3, .4, 1) both; }
#celebracion.activa .cel-texto, #celebracion.activa .cel-stats { animation: celSube .6s .55s ease both; }
#celebracion.activa .cel-cta, #celebracion.activa .cel-cerrar { animation: celSube .6s .8s ease both; }
@keyframes celFoto { 0% { opacity: 0; transform: translateY(-60px) rotate(-18deg) scale(.6); } 100% { opacity: 1; transform: rotate(-4deg); } }
@keyframes celSube { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@media (max-width: 760px) {
  .cf-caja { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  .cf-polaroid { width: 70%; margin: 0 auto; }
  .md-hero { height: 160px; }
}

/* ——— Insignias ——— */
.insignias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5% 4%; margin-top: 4%; flex: 1; align-content: start; }
.insignia { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.insignia .medalla { width: 70%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: calc(var(--pw) * .068); position: relative;
  background: radial-gradient(circle at 35% 30%, #fff, var(--papel-2)); border: 2px dashed color-mix(in srgb, var(--tinta) 30%, transparent);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .08); filter: grayscale(.85) contrast(.9); opacity: .82; }
.insignia.ok .medalla { border: 0; }
.insignia.ok .medalla { filter: none; opacity: 1; background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--acento) 25%, #fff));
  box-shadow: 0 0 0 3px transparent, 0 6px 16px color-mix(in srgb, var(--acento) 40%, transparent); }
.insignia.ok .medalla::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; padding: 3px; background: var(--foil); background-size: 300% 100%; animation: foil 9s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.insignia:not(.ok) .medalla::after { content: "🔒"; position: absolute; right: -8%; bottom: -6%; width: 42%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-size: 46%; background: var(--papel); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); filter: none; }
.insignia b { font: 700 calc(var(--pw) * .027) / 1.15 var(--ui); color: var(--tinta); }
.insignia small { font: 600 calc(var(--pw) * .022) / 1.2 var(--ui); color: color-mix(in srgb, var(--tinta) 70%, transparent); }
.insignia:not(.ok) b { color: color-mix(in srgb, var(--tinta) 80%, transparent); }

/* ——— Certificado de edición ——— */
.certificado { margin: auto 0; padding: 9% 8%; text-align: center; border-radius: 6px; position: relative; color: var(--tinta);
  background: radial-gradient(120% 80% at 50% 0%, #fff, var(--papel)); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.certificado::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid color-mix(in srgb, var(--acento) 70%, transparent); border-radius: 4px; }
.certificado::after { content: ""; position: absolute; inset: 13px; border: 1px dashed color-mix(in srgb, var(--acento) 45%, transparent); border-radius: 3px; }
.certificado .logo-freedom { width: 40%; margin: 0 auto 6%; }
.certificado small { font: 700 calc(var(--pw) * .022) / 1 var(--ui); letter-spacing: .3em; text-transform: uppercase; color: var(--acento); }
.certificado .numero { margin: 6% 0 2%; font: 800 calc(var(--pw) * .16) / 1 var(--serif); }
[data-estilo="el"] .certificado .numero { font-family: "Oswald", var(--ui); }
.certificado .de { font: 600 calc(var(--pw) * .026) / 1 var(--ui); letter-spacing: .2em; color: color-mix(in srgb, var(--tinta) 60%, transparent); }
.certificado .para { margin-top: 9%; font: 700 calc(var(--pw) * .055) / 1.1 var(--mano); }
.certificado .sello-oro { position: absolute; right: 9%; bottom: -5%; width: 22%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  background: var(--foil); background-size: 300% 100%; animation: foil 9s linear infinite; box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
  font: 800 calc(var(--pw) * .02) / 1.1 var(--ui); color: #2a1d05; letter-spacing: .1em; text-align: center; }

/* ——— Life Experiences en el álbum ——— */
.le-pagina { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, #1b1408, #070503 70%); color: #f5e6c4; }
.le-pagina .pag { color: #f5e6c4; }
.le-pagina .kick { color: #e8c77a; }
.le-pagina h3 { color: #fff3d6 !important; }
.le-candado { width: calc(var(--pw) * .14); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; margin: 4% 0;
  background: var(--foil); background-size: 300% 100%; animation: foil 9s linear infinite; box-shadow: 0 10px 30px rgba(232, 199, 122, .35); }
.le-candado svg { width: 46%; stroke: #2a1d05; fill: none; stroke-width: 2.2; }
.le-lista { list-style: none; padding: 0; margin: 4% 0 0; display: flex; flex-direction: column; gap: 3.2%; font: 500 calc(var(--pw) * .032) / 1.3 var(--ui); }
.le-lista li::before { content: "✦ "; color: #e8c77a; }
.le-pie { margin-top: auto; font: 600 calc(var(--pw) * .024) / 1.4 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 230, 196, .6); }
.le-video { position: absolute; inset: 6% 8% 21% 8%; border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.le-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.le-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .75)); }
.le-video .le-play { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 2; width: 22%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 10px rgba(255, 255, 255, .18); animation: pulso 2.4s ease-in-out infinite; }
.le-video .le-play svg { width: 36%; fill: #1a1408; margin-left: 8%; }
.le-video .le-txt { position: absolute; left: 7%; right: 7%; bottom: 7%; z-index: 2; color: #fff; }
.le-video .le-txt small { font: 700 calc(var(--pw) * .024) / 1 var(--ui); letter-spacing: .26em; text-transform: uppercase; color: #e8c77a; }
.le-video .le-txt b { display: block; margin-top: 3%; font: 800 calc(var(--pw) * .06) / 1.05 var(--serif); }
[data-estilo="el"] .le-video .le-txt b, [data-estilo="el"] .le-pagina h3 { font-family: "Oswald", var(--ui); text-transform: uppercase; }
.le-link { margin-top: 2.5%; align-self: flex-start; border: 0; background: transparent; padding: 0; font: 700 calc(var(--pw) * .024) / 1.2 var(--ui); color: var(--acento); letter-spacing: .04em; cursor: pointer; }

/* ——— Nota de voz en la página ——— */
.voz-btn { margin-top: 3%; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: 1px solid color-mix(in srgb, var(--acento) 60%, transparent); border-radius: 99px;
  padding: 1.6% 3.4%; background: color-mix(in srgb, var(--acento) 10%, transparent); color: var(--tinta); font: 700 calc(var(--pw) * .026) / 1 var(--ui); cursor: pointer; }
.voz-btn.tiene { background: var(--tinta); color: var(--papel); border-color: transparent; }
.voz-btn .ondas { display: inline-flex; gap: 2px; align-items: center; height: 1em; }
.voz-btn .ondas i { width: 2px; height: 40%; background: currentColor; border-radius: 2px; }
.voz-btn.sonando .ondas i { animation: ondaVoz .8s ease-in-out infinite; }
.voz-btn .ondas i:nth-child(2) { animation-delay: .1s; height: 90%; } .voz-btn .ondas i:nth-child(3) { animation-delay: .2s; height: 60%; } .voz-btn .ondas i:nth-child(4) { animation-delay: .3s; height: 80%; }
@keyframes ondaVoz { 50% { transform: scaleY(.3); } }

/* ——— Grabadora ——— */
.gr-caja, .an-caja { width: min(440px, 100%); padding: 28px; border-radius: 26px; text-align: center; background: rgba(16, 16, 26, .92); border: 1px solid var(--borde-vidrio); animation: subir .5s cubic-bezier(.2, .9, .3, 1) both; }
.gr-caja h2, .an-caja h2 { margin: 8px 0 22px; font: 800 26px/1.15 var(--ui); }
.gr-boton { width: 112px; height: 112px; border-radius: 50%; border: 0; display: grid; place-items: center; margin: 0 auto; background: rgba(255, 80, 90, .18); transition: transform .2s; }
.gr-boton span { width: 56px; height: 56px; border-radius: 50%; background: #ff4d5a; transition: border-radius .25s, transform .25s; box-shadow: 0 8px 24px rgba(255, 77, 90, .5); }
.gr-boton.grabando { animation: latido 1.2s ease-in-out infinite; }
.gr-boton.grabando span { border-radius: 10px; transform: scale(.7); }
@keyframes latido { 50% { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(255, 77, 90, .12); } }
.gr-tiempo { margin: 16px 0 0; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.an-caja .cel-foto { margin: 0 auto 18px; transform: rotate(-3deg); }

/* ——— Celebración: insignia nueva y enlace a Life Experiences ——— */
.cel-insignia { margin: -10px 0 18px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid var(--borde-vidrio); font-weight: 600; }
#celebracion.activa .cel-insignia { animation: celSube .6s 1s ease both; }
.cel-le { margin-top: 6px; border: 0; background: transparent; color: #e8c77a; font-weight: 700; font-size: 14px; min-height: 40px; }

/* ——— Ceremonia de apertura ——— */
body.ceremonia #barra, body.ceremonia #pista { opacity: 0; pointer-events: none; transition: opacity .6s; }
body.ceremonia #escena { animation: luzCer 2s ease both; }
@keyframes luzCer { from { filter: brightness(.15); } }
body.ceremonia #flotar { animation: none; transform: translateY(-7vh) scale(.84); transition: transform 2.5s cubic-bezier(.2, .9, .3, 1); }
.nombres.grabando .letra { display: inline-block; opacity: 0; animation: grabar .5s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes grabar { from { opacity: 0; transform: translateY(-0.4em) scale(1.6); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.nombres.grabando .letra { background: var(--foil); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.lazo { display: none; position: absolute; left: 0; right: 0; top: 63%; height: 7%; z-index: 7; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acento) 70%, #fff), var(--acento) 45%, color-mix(in srgb, var(--acento) 60%, #000)); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.lazo::before, .lazo::after { content: ""; position: absolute; top: 50%; width: 16%; aspect-ratio: 1.4; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: inherit; border: 2px solid rgba(255, 255, 255, .35); }
.lazo::before { left: 34%; transform: translateY(-50%) rotate(-25deg); } .lazo::after { right: 34%; transform: translateY(-50%) rotate(25deg); }
[data-estilo="ella"] body.ceremonia .hoja.tapa > .cara:not(.atras) .lazo { display: block; }
body.ceremonia.soltar .lazo { animation: soltarLazo 1s cubic-bezier(.6, 0, .4, 1) both; }
@keyframes soltarLazo { to { transform: translateY(160%) scaleX(1.3); opacity: 0; } }
body.ceremonia.soltar .correa { transition: transform .9s cubic-bezier(.6, 0, .4, 1), opacity .9s; transform: translateX(260%) rotate(8deg); opacity: 0; }
#bienvenida-cer { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; width: min(560px, calc(100% - 32px)); text-align: center; padding: 22px 24px;
  border-radius: 24px; background: rgba(10, 10, 18, .7); border: 1px solid var(--borde-vidrio); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: subir .8s cubic-bezier(.2, .9, .3, 1) both; }
.bc-kick { margin: 0; font: 700 12px/1 var(--ui); letter-spacing: .3em; text-transform: uppercase; color: var(--acento); }
.bc-titulo { margin: 10px 0 6px; font: 800 clamp(26px, 6vw, 36px)/1.1 var(--ui); }
.bc-texto { margin: 0 0 18px; color: var(--texto-suave); }

/* ——— Reproductor Life Experience ——— */
#experiencia { position: fixed; inset: 0; z-index: 80; background: #000; overflow: hidden; }
.ex-escenario { position: absolute; inset: 0; }
.ex-toma { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.1s ease, transform 5s linear; }
.ex-toma.ver { opacity: 1; transform: scale(1); }
.ex-velo { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 25%, transparent 50%, rgba(0, 0, 0, .8)); }
.ex-barra { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 16px; right: 64px; display: flex; gap: 4px; z-index: 3; }
.ex-barra i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.ex-barra i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.ex-barra i.lleno::after { transform: scaleX(1); }
.ex-barra i.corre::after { animation: corre 3.8s linear forwards; }
@keyframes corre { to { transform: scaleX(1); } }
.ex-cerrar { position: absolute; top: max(4px, env(safe-area-inset-top)); right: 8px; z-index: 4; color: #fff; }
.ex-marca { position: absolute; top: max(34px, calc(env(safe-area-inset-top) + 24px)); left: 16px; z-index: 3; width: 120px; }
.ex-marca .logo-freedom { width: 100%; background: #fff; animation: none; }
.ex-texto { position: absolute; left: 0; right: 0; bottom: max(16%, 118px); padding: 0 24px; text-align: center; z-index: 3; opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s; }
.ex-texto.ver { opacity: 1; transform: none; }
.ex-kick { margin: 0; font: 700 13px/1 var(--ui); letter-spacing: .3em; text-transform: uppercase; color: #e8c77a; }
.ex-frase { margin: 12px 0 0; font: 800 clamp(28px, 6vw, 52px)/1.08 var(--ui); letter-spacing: -.01em; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.ex-wa { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100% - 32px); min-height: 50px; padding: 0 22px; border-radius: 99px; background: #25d366; color: #fff; font: 700 15px/1 var(--ui); text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .4); animation: aparecer .5s ease both; }
.ex-wa svg { width: 22px; height: 22px; flex: none; }
.ex-wa span { overflow: hidden; text-overflow: ellipsis; }
.ex-final { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: radial-gradient(90% 70% at 50% 40%, rgba(27, 20, 8, .82), rgba(0, 0, 0, .94)); animation: aparecer .8s ease both; }
.ex-final h2 { margin: 12px 0; max-width: 640px; font: 800 clamp(30px, 6vw, 50px)/1.05 var(--ui); background: linear-gradient(100deg, #b8862e, #f7e39b, #c9a24a, #fff3c4, #b8862e); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 7s linear infinite; }
.ex-desc { max-width: 520px; margin: 0 0 24px; color: rgba(255, 255, 255, .8); font-size: 17px; line-height: 1.5; }
/* El botón del cierre, dorado y en 3D, con el nombre del patrocinador en otro color que llame la atención
   (Jorge, 19/10/2026: "sí en doradito, pero en 3D, y que llame la atención en otro color"). */
.ex-cta { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35em; text-decoration: none; min-height: 64px; padding: 12px 28px; font-size: 18px; line-height: 1.2; text-align: center;
  border-radius: 20px; border-bottom: 6px solid #8a6414; box-shadow: 0 10px 0 #5e4209, 0 22px 40px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 255, 255, .55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45); transform: translateY(0); transition: transform .12s, box-shadow .12s; animation: foil 6s linear infinite, exLatido 2.4s ease-in-out infinite; }
.ex-cta:active { transform: translateY(6px); box-shadow: 0 4px 0 #5e4209, 0 10px 20px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .55); }
.ex-cta .ex-nombre { display: inline-block; padding: 2px 12px; border-radius: 12px; background: linear-gradient(180deg, #a855f7, #6d28d9); color: #fff; font-weight: 900; letter-spacing: .01em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .45); box-shadow: 0 4px 0 #3b0f7a, 0 8px 18px rgba(109, 40, 217, .55), inset 0 1px 0 rgba(255, 255, 255, .35); transform: rotate(-2deg); }
@keyframes exLatido { 0%, 100% { filter: drop-shadow(0 0 0 rgba(245, 196, 81, 0)); } 50% { filter: drop-shadow(0 0 18px rgba(245, 196, 81, .55)); } }
.ex-cta[aria-disabled="true"] { display: none; }
.ex-sin-wa { max-width: 420px; color: #e8c77a; font-weight: 600; }
.ex-acciones { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.ex-nota { margin-top: 18px; font-size: 12px; color: rgba(255, 255, 255, .45); }

/* ——— Intro cinematográfica ——— */
#bienvenida { background: radial-gradient(90% 80% at 50% 30%, rgba(20, 22, 40, .7), rgba(2, 3, 8, .96)); }
.intro { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 620px; padding: 20px; }
.intro .logo-freedom { width: 190px; margin-bottom: 34px; animation: foil 9s linear infinite, introAp 1.4s .2s ease both; }
.intro-l { margin: 0; font: 500 clamp(18px, 4.4vw, 24px)/1.4 var(--ui); color: var(--texto-suave); }
.intro-l1 { animation: introAp 1.4s .9s ease both; }
.intro-l2 { animation: introAp 1.4s 2.1s ease both; }
.intro-t { margin: 28px 0 6px; font: 800 clamp(42px, 10vw, 76px)/1 var(--serif); letter-spacing: -.02em; background: var(--foil); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 7s linear infinite, introGrande 1.6s 3.2s cubic-bezier(.2, .9, .3, 1) both; }
.intro-ed { margin: 0 0 30px; font: 700 12px/1 var(--ui); letter-spacing: .34em; text-transform: uppercase; color: var(--acento); animation: introAp 1s 4s ease both; }
.intro-btn { min-height: 60px; padding: 0 36px; font-size: 18px; animation: foil 6s linear infinite, introAp 1s 4.4s ease both; }
.intro-nota { margin-top: 12px; color: var(--texto-suave); animation: introAp 1s 4.6s ease both; }
@keyframes introAp { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@keyframes introGrande { from { opacity: 0; transform: scale(.85); filter: blur(12px); letter-spacing: .1em; } }
.bv-progreso { display: flex; gap: 6px; margin-bottom: 18px; }
.bv-progreso i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); transition: background .4s; }
.bv-progreso i.ok { background: var(--acento); }
.bv-opciones.dos { grid-template-columns: 1fr 1fr; }
.op-grande[aria-pressed="true"] { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 18%, transparent); }
.muestras.todos { grid-template-columns: repeat(5, 1fr); }
.suenos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 300px; overflow: auto; padding: 2px; }
.sueno-op { position: relative; height: 74px; border-radius: 12px; border: 2px solid transparent; overflow: hidden; background: #222 center / cover no-repeat; display: flex; align-items: flex-end;
  padding: 6px 8px; text-align: left; transition: transform .15s, border-color .2s; }
.sueno-op::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .75)); }
.sueno-op span { position: relative; font: 700 12px/1.1 var(--ui); }
.sueno-op[aria-pressed="true"] { border-color: var(--acento); transform: scale(.97); }
.sueno-op[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 5px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--acento); color: #111; font: 800 13px/1 var(--ui); }
@media (max-width: 760px) {
  .suenos-grid { grid-template-columns: repeat(3, 1fr); max-height: 34vh; }
  .op-grande { padding: 16px 10px; } .op-ico { font-size: 32px; }
  .bv-vista { display: none; }
}
.segmento.cuatro { grid-template-columns: repeat(4, 1fr); } .segmento.cuatro button { padding: 11px 4px; font-size: 13px; }
.ex-final { overflow: auto; justify-content: flex-start; padding-top: max(60px, 8vh); }
.ex-gal-t { margin-top: 30px; }
.ex-galeria { display: flex; gap: 10px; overflow-x: auto; max-width: min(900px, 100%); padding: 12px 4px; scroll-snap-type: x mandatory; }
.ex-yt { flex: 0 0 180px; height: 110px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .15); background: #111 center / cover no-repeat; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 8px 10px; scroll-snap-align: start; transition: transform .2s; }
.ex-yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .8)); }
.ex-yt span { position: relative; font: 700 13px/1.1 var(--ui); }
.ex-yt:hover { transform: translateY(-2px); }
.ex-yt-reproductor { position: absolute; inset: 0; z-index: 8; background: #000; display: grid; place-items: center; }
.ex-yt-marco { width: min(100%, calc((100dvh - 40px) * 16 / 9)); aspect-ratio: 16 / 9; }
.ex-yt-marco iframe { width: 100%; height: 100%; border: 0; }

/* ——— Video para compartir ——— */
.rl-caja { width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 0 22px; padding-bottom: 22px;
  border-radius: 26px; background: rgba(16, 16, 26, .92); border: 1px solid var(--borde-vidrio); animation: subir .5s cubic-bezier(.2, .9, .3, 1) both; }
.rl-caja header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 22px; }
.rl-caja h2 { margin: 0; font: 800 22px/1 var(--ui); }
.rl-vista { margin-left: 22px; width: min(260px, 40vw); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.rl-vista canvas, .rl-vista video { width: 100%; height: 100%; display: block; object-fit: cover; }
.rl-lado { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding-right: 22px; }
.rl-texto { margin: 0; color: var(--texto-suave); line-height: 1.5; }
.rl-barra { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.rl-barra i { display: block; height: 100%; width: 0; background: var(--foil); background-size: 300% 100%; animation: foil 4s linear infinite; transition: width .3s; }
.rl-listo { display: flex; gap: 10px; flex-wrap: wrap; }
.rl-listo a { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 760px) {
  .rl-caja { grid-template-columns: 1fr; }
  .rl-vista { margin: 0 auto 16px; width: min(220px, 55vw); }
  .rl-lado { padding: 0 20px; }
}

/* ——— Tarjeta de viajero ——— */
.tj-caja { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(560px, 100%); }
.tj-cerrar { position: absolute; top: -52px; right: 0; color: #fff; }
.tj-escena { width: 100%; perspective: 1400px; padding: 10px; touch-action: none; }
.tj-tarjeta { --rx: 0deg; --ry: 0deg; position: relative; width: 100%; aspect-ratio: 1012 / 638; transform-style: preserve-3d; cursor: pointer;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .9, .3, 1); animation: tjEntra 1s cubic-bezier(.2, 1.2, .4, 1) both; }
.tj-tarjeta.volteada { transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + 180deg)); }
@keyframes tjEntra { from { opacity: 0; transform: translateY(40px) rotateX(40deg) rotateZ(-6deg) scale(.8); } }
.tj-cara { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; color: #fff;
  background: var(--portada); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .18); padding: 6.5%; container-type: inline-size; }
.tj-atras { transform: rotateY(180deg); }
.tj-holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: .55;
  background: linear-gradient(115deg, rgba(255, 154, 213, .4), rgba(159, 216, 255, .4) 30%, rgba(195, 255, 217, .3) 55%, rgba(255, 227, 154, .45) 80%); background-size: 200% 200%;
  background-position: var(--brillo-x, 50%) var(--brillo-y, 50%); transition: background-position .2s; }
.tj-luz { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--brillo-x, 30%) var(--brillo-y, 20%), rgba(255, 255, 255, .35), transparent 45%); mix-blend-mode: soft-light; }
.tj-arriba { position: relative; display: flex; justify-content: space-between; align-items: center; }
.tj-arriba .logo-freedom { width: 34%; }
.tj-arriba span { font: 600 2.6cqw/1 "Oswald", var(--ui); letter-spacing: .25em; text-transform: uppercase; background: var(--foil); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 8s linear infinite; }
.tj-chip { position: relative; margin-top: 7%; width: 13%; aspect-ratio: 1.35; border-radius: 1.4cqw; background: linear-gradient(135deg, #f7e39b, #b8862e); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.tj-chip::before { content: ""; position: absolute; inset: 30% 0; border-top: 1px solid rgba(0, 0, 0, .25); border-bottom: 1px solid rgba(0, 0, 0, .25); }
.tj-nombres { position: relative; margin-top: 6%; font: 400 8.4cqw/1.1 var(--script); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
[data-estilo="el"] .tj-nombres { font: 700 5.6cqw/1.1 "Oswald", var(--ui); text-transform: uppercase; letter-spacing: .06em; }
.tj-abajo { position: absolute; left: 6.5%; right: 6.5%; bottom: 8%; display: flex; gap: 12%; }
.tj-abajo small, .tj-prox small { display: block; font: 600 2.1cqw/1 "Oswald", var(--ui); letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.tj-abajo b { display: block; margin-top: 4px; font: 700 3.8cqw/1 "Oswald", var(--ui); }
.tj-banda { position: absolute; left: 0; right: 0; top: 12%; height: 15%; background: rgba(0, 0, 0, .55); }
.tj-cifras { position: relative; margin-top: 26%; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.tj-cifras b { display: block; font: 700 7cqw/1 "Oswald", var(--ui); }
.tj-cifras span { font: 600 2cqw/1 "Oswald", var(--ui); letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.tj-prox { position: relative; margin-top: 7%; text-align: center; } .tj-prox b { display: block; margin-top: 6px; font: 700 4.4cqw/1 var(--ui); }
.tj-pie { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; font: 600 2cqw/1 "Oswald", var(--ui); letter-spacing: .25em; text-transform: uppercase; opacity: .6; }
.tj-ayuda { margin: 0; color: var(--texto-suave); font-size: 14px; }
.btn-sec.ancho { width: 100%; margin-bottom: 8px; text-align: left; }

/* ——— Versión para imprimir ——— */
#impresion { display: none; }
@media print {
  @page { size: 148mm 197mm; margin: 0; }
  html, body { background: #fff !important; overflow: visible !important; height: auto !important; }
  body::before, #particulas, #escena, #barra, .capa, .hoja-lateral, #aviso, #celebracion, #experiencia, #bienvenida-cer { display: none !important; }
  #impresion { display: block; --pw: 148mm; --ph: 197mm; }
  .hoja-imp { width: 148mm; height: 197mm; position: relative; overflow: hidden; page-break-after: always; break-after: page; }
  .hoja-imp .cara { position: absolute; inset: 0; transform: none !important; border-radius: 0 !important; backface-visibility: visible; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hoja-imp .voz-btn, .hoja-imp .le-link, .hoja-imp .quitar, .hoja-imp .giro, .hoja-imp .vacia .agregar-foto { display: none !important; }
  .hoja-imp *, .hoja-imp *::before, .hoja-imp *::after { animation: none !important; transition: none !important; }
}
.pn-nube { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 14px; font-weight: 600; }
.hoja-imp .polaroid.vacia { display: none; }
@media (max-width: 400px) { #b-musica, #b-completa, #barra .sep { display: none; } #indicador { min-width: 64px; font-size: 11px; } .btn-ico { width: 38px; height: 38px; } }

/* ——— Acercar una página (celular) ——— */
#zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .6s cubic-bezier(.2, .9, .3, 1); }
#ver-dos { position: absolute; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 15; min-height: 40px; padding: 0 16px; border-radius: 99px;
  border: 1px solid var(--borde-vidrio); background: var(--vidrio); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font: 600 13px/1 var(--ui); color: var(--texto); animation: aparecer .3s ease both; }
body.acercado #flotar { animation: none; }
/* la cara que queda de espaldas se esconde del todo: evita que sellos y brillos se asomen por detrás */
.hoja.volteada:not(.girando) > .cara:not(.atras), .hoja:not(.volteada):not(.girando) > .cara.atras { visibility: hidden; }
/* insignias: 4 × 3 para que las 12 quepan completas en la página */
.insignias { grid-template-columns: repeat(4, 1fr); gap: 3.5% 2.5%; margin-top: 3%; align-content: center; }
.insignia { gap: 2px; }
.insignia .medalla { width: 74%; font-size: calc(var(--pw) * .05); }
.insignia b { font-size: calc(var(--pw) * .022); line-height: 1.1; margin-top: 3%; }
.insignia small { font-size: calc(var(--pw) * .018); }
#indicador { white-space: nowrap; }

/* ——— Acceso de miembros VIP ——— */
#acceso { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; text-align: center;
  background: radial-gradient(90% 80% at 50% 30%, rgba(20, 22, 40, .85), rgba(2, 3, 8, .98)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ac-caja { max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: subir .6s cubic-bezier(.2, .9, .3, 1) both; }
.ac-caja .logo-freedom { width: 150px; }
.ac-candado { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--foil); background-size: 300% 100%; animation: foil 8s linear infinite;
  box-shadow: 0 14px 40px color-mix(in srgb, var(--acento) 35%, transparent); }
.ac-candado svg { width: 40%; fill: none; stroke: #2a1d05; stroke-width: 2.2; }
.ac-candado.cargando svg { animation: pulso 1.2s ease-in-out infinite; }
#acceso h1 { margin: 6px 0 0; font: 800 clamp(26px, 6vw, 34px)/1.1 var(--ui); }
#acceso p { margin: 0; color: var(--texto-suave); line-height: 1.5; }
#acceso .btn-pri { display: inline-flex; align-items: center; text-decoration: none; margin-top: 6px; }
.ac-nota { font-size: 13px; opacity: .8; }
#banner-recuerdo { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 30; width: min(720px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(16, 16, 26, .9); border: 1px solid var(--borde-vidrio);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 13px; line-height: 1.4; }
#banner-recuerdo .btn-pri { min-height: 40px; padding: 0 16px; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; flex: 0 0 auto; }
body.solo-lectura .quitar, body.solo-lectura #b-agregar, body.solo-lectura #b-compartir, body.solo-lectura .agregar, body.solo-lectura .polaroid.vacia .agregar-foto,
body.solo-lectura #visor-cambiar, body.solo-lectura #visor-quitar { display: none !important; }
body.solo-lectura .polaroid.vacia { cursor: default; }
/* marca de miembro en la placa y el certificado */
.marca-vip { margin-top: 5%; font: 600 calc(var(--pw) * .02) / 1.4 var(--ui); letter-spacing: .08em; color: color-mix(in srgb, var(--tinta) 65%, transparent); }
.certificado .marca-vip { margin-top: 6%; padding: 0 6%; }
@media print { .hoja-imp::after { content: attr(data-marca); position: absolute; left: 0; right: 0; bottom: 2.5mm; text-align: center; font: 600 6pt/1 sans-serif; letter-spacing: .1em; color: rgba(0,0,0,.4); } }
.certificado { padding-bottom: 13%; } .certificado .sello-oro { bottom: -9%; right: 5%; width: 20%; } .certificado .marca-vip { padding: 0 4%; }

/* ——— "Así se vive": shorts verticales como historias ——— */
#experiencia .ex-fondo { position: absolute; inset: -40px; background: #000 center / cover no-repeat; filter: blur(40px) brightness(.45) saturate(1.3); transition: background-image .6s; }
.ex-escena { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 54px 12px 110px; }
.ex-short { height: 100%; aspect-ratio: 9 / 16; max-width: calc(100vw - 24px); border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.ex-short iframe, .ex-short #ex-yt { width: 100%; height: 100%; border: 0; display: block; }
.ex-flecha { color: #fff; background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); flex: 0 0 auto; }
#experiencia .ex-texto { bottom: max(84px, calc(env(safe-area-inset-bottom) + 68px)); } /* deja sitio al botón de WhatsApp de abajo */
#experiencia .ex-frase { font-size: clamp(22px, 4.4vw, 34px); }
.ex-barra i.activo::after { animation: corre 45s linear forwards; }
@media (max-width: 760px) {
  .ex-escena { padding: 46px 0 96px; gap: 0; }
  .ex-flecha { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); }
  #ex-ant { left: 6px; } #ex-sig { right: 6px; }
  .ex-short { border-radius: 0; height: 100%; }
}
.le-video .le-portada { width: 100%; height: 100%; object-fit: cover; display: block; animation: lePortada 14s ease-in-out infinite alternate; }
@keyframes lePortada { from { transform: scale(1.05); } to { transform: scale(1.18) translateY(-3%); } }

/* botón de WhatsApp al pie de varias páginas */
.wa-pag { margin-top: 4%; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 2.2% 4.4%; border: 0; border-radius: 99px;
  background: #25d366; color: #fff; font: 700 calc(var(--pw) * .03) / 1 var(--ui); box-shadow: 0 6px 16px rgba(37, 211, 102, .35); cursor: pointer; position: relative; z-index: 5; }
.wa-pag svg { width: calc(var(--pw) * .045); height: auto; }
.mapa ~ .wa-pag, .cita ~ .wa-pag, .le-pie ~ .wa-pag { align-self: center; }
.le-pagina .wa-pag { margin-top: 4%; }
/* en la página del video el botón va debajo, centrado (Jorge, 19/10/2026: "que salga el botón de su patrocinador") */
.le-pagina > .wa-pag { position: absolute; left: 8%; right: 8%; bottom: 6%; margin: 0; justify-content: center; z-index: 3; }
/* tarjeta de viajero: botón grande en el certificado */
.btn-tarjeta { margin: 7% auto 0; display: flex; align-items: center; gap: 4%; width: 86%; padding: 3.4% 4%; border: 0; border-radius: 16px; text-align: left; cursor: pointer;
  background: var(--portada); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25), inset 0 0 0 1.5px rgba(255, 255, 255, .25); position: relative; overflow: hidden; z-index: 5; }
.btn-tarjeta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); background-size: 300% 100%; animation: barrido 3.5s ease-in-out infinite; mix-blend-mode: overlay; }
.btn-tarjeta .bt-mini { flex: 0 0 auto; width: 22%; aspect-ratio: 1.58; border-radius: 6px; background: linear-gradient(135deg, #f7e39b, #b8862e); box-shadow: 0 3px 8px rgba(0, 0, 0, .35); position: relative; }
.btn-tarjeta .bt-mini::before { content: ""; position: absolute; left: 12%; top: 30%; width: 24%; height: 34%; border-radius: 3px; background: rgba(0, 0, 0, .18); }
.btn-tarjeta b { display: block; font: 800 calc(var(--pw) * .036) / 1.1 var(--ui); }
.btn-tarjeta small { display: block; margin-top: 3px; font: 500 calc(var(--pw) * .024) / 1.2 var(--ui); opacity: .85; }
.certificado { margin-top: 0; }
@media print { .wa-pag, .btn-tarjeta { display: none !important; } }
