/* Tema Noir · disposición Pantalla · fuente Fraunces · efecto Motas
   (mismos valores que mysecret.bio: lib/theme.ts + PublicPage.module.css) */
:root {
  --bio-bg: #0d0c10;
  --bio-surface: #1d1a24;
  --bio-text: #f4f1f7;
  --bio-muted: #a49dae;
  --bio-accent: #e2b980;
  --bio-accent-text: #17151c;
  --bio-font: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bio-bg); color: var(--bio-text); }

.root {
  --pad-x: 1.25rem;
  min-height: 100dvh;
  padding: 0 var(--pad-x) 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background: var(--bio-bg);
  color: var(--bio-text);
  font-family: var(--bio-font);
  -webkit-font-smoothing: antialiased;
}
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ---------- Motas ---------- */
.fx { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fx span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--s) * 1.6px);
  height: calc(var(--s) * 1.6px);
  border-radius: 50%;
  background: var(--bio-accent);
  animation: fx-rise var(--d) linear var(--delay) infinite;
  will-change: transform, opacity;
}
@keyframes fx-rise {
  0% { transform: translate3d(0, 30px, 0); opacity: 0; }
  15%, 85% { opacity: .5; }
  100% { transform: translate3d(0, -160px, 0); opacity: 0; }
}

/* ---------- Cabecera a pantalla completa ---------- */
.header { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.photo {
  position: relative;
  width: calc(100% + var(--pad-x) * 2);
  margin-inline: calc(-1 * var(--pad-x));
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bio-surface);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bio-bg) 0%, color-mix(in srgb, var(--bio-bg) 60%, transparent) 26%, transparent 52%);
}
.identity { position: relative; z-index: 1; margin-top: -3.25rem; text-align: center; }
.title { margin: 0; font-size: 1.85rem; font-weight: 600; line-height: 1.2; }

/* ---------- Enlaces ---------- */
.links { display: flex; flex-direction: column; gap: .75rem; width: 100%; }
.link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.25rem;
  border-radius: 14px;
  background: var(--bio-surface);
  color: var(--bio-text);
  text-decoration: none;
  text-align: center;
  font: 600 1rem/1.2 var(--bio-font);
  border: 1px solid color-mix(in srgb, var(--bio-accent) 30%, transparent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  animation: bio-in .45s ease both;
  animation-delay: calc(var(--i, 0) * 60ms);
  -webkit-tap-highlight-color: transparent;
}
.link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
  background: color-mix(in srgb, var(--bio-accent) 16%, var(--bio-surface));
  border-color: color-mix(in srgb, var(--bio-accent) 55%, transparent);
}
.link:active { transform: none; }
.empty { margin: 0; color: var(--bio-muted); font-size: .95rem; text-align: center; }
@keyframes bio-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Ventanas: edad, salir de la app y error ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--bio-bg) 82%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gate[data-open] { display: flex; }
.gate-box {
  width: 100%;
  max-width: 22rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 20px;
  background: var(--bio-surface);
  border: 1px solid color-mix(in srgb, var(--bio-accent) 30%, transparent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  color: var(--bio-text);
  font-family: var(--bio-font);
  text-align: center;
}
.gate-icon { width: 40px; height: 40px; color: var(--bio-accent); }
.gate h2 { margin: .75rem 0 .5rem; font-size: 1.35rem; font-weight: 600; }
.gate p { margin: 0 0 1.5rem; color: var(--bio-muted); font-size: .95rem; line-height: 1.5; }
.gate button { display: block; width: 100%; min-height: 3rem; border-radius: 12px; font: 600 1rem var(--bio-font); cursor: pointer; }
.gate .yes { background: var(--bio-accent); color: var(--bio-accent-text); border: 0; }
.gate .no { margin-top: .6rem; background: transparent; color: var(--bio-muted); border: 1px solid color-mix(in srgb, var(--bio-muted) 35%, transparent); }

.steps { list-style: none; margin: 0 0 1.25rem; padding: 0; text-align: left; display: grid; gap: .65rem; }
.steps li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; line-height: 1.4; }
.num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--bio-accent);
  color: var(--bio-accent-text);
  font-weight: 600;
  font-size: .85rem;
}
.steps svg { width: 1.1rem; height: 1.1rem; vertical-align: -3px; color: var(--bio-accent); }
.arrow, .arrow-hint { position: fixed; z-index: 11; pointer-events: none; display: none; animation: point 1.1s ease-in-out infinite; }
#escape[data-open] ~ .arrow, #escape[data-open] ~ .arrow-hint { display: block; }
.arrow { top: 8px; right: 12px; width: 52px; height: 52px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.arrow-hint { top: 64px; right: 8px; color: #fff; font: 600 14px var(--bio-font); text-shadow: 0 2px 6px rgba(0, 0, 0, .7); }
@keyframes point { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -4px); } }

@media (prefers-reduced-motion: reduce) {
  .link { animation: none; }
  .fx span { animation: none; opacity: .45; }
  .arrow, .arrow-hint { animation: none; }
}
