/* Página bio pública. Pensada primero para móvil. */
:root {
  --bg: #0b0b10;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.08);
  --accent: #ff4d8d;
  --accent-ink: #ffffff;
  --radius: 26px;
}
.accent-rosa { --accent: #ff4d8d; --accent-ink: #ffffff; }
.accent-rojo { --accent: #ff3b3b; --accent-ink: #ffffff; }
.accent-violeta { --accent: #9b6bff; --accent-ink: #ffffff; }
.accent-azul { --accent: #2f8fff; --accent-ink: #ffffff; }
.accent-verde { --accent: #22c773; --accent-ink: #04130b; }
.accent-dorado { --accent: #f5b942; --accent-ink: #1a1203; }
.accent-blanco { --accent: #ffffff; --accent-ink: #0b0b10; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.35;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

/* Fondo: la propia foto, muy desenfocada (se nota sobre todo en pantallas anchas). */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.backdrop img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(48px) saturate(1.2) brightness(0.42);
  transform: scale(1.25);
}
.backdrop-strong img { filter: blur(56px) saturate(1.1) brightness(0.3); }

.wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}
@media (min-width: 560px) {
  .wrap { margin: 28px auto; min-height: 0; border-radius: 36px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
}

/* Cabecera con foto grande */
.hero { position: relative; }
.hero-img { width: 100%; aspect-ratio: 4 / 5; max-height: 72vh; object-fit: cover; object-position: center 20%; }
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 62%;
  background: linear-gradient(to bottom, rgba(11, 11, 16, 0) 0%, rgba(11, 11, 16, 0.55) 45%, var(--bg) 96%);
}
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 22px 6px; text-align: center; }

/* Cabecera con foto circular */
.profile { padding: calc(44px + env(safe-area-inset-top)) 22px 4px; text-align: center; }
.avatar {
  width: 124px; height: 124px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.06);
}
.avatar-empty { display: grid; place-items: center; background: var(--glass); font-size: 46px; font-weight: 700; }

h1 {
  margin: 0; font-size: 31px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.verified { display: inline-block; width: 0.78em; height: 0.78em; margin-left: 0.28em; vertical-align: -0.04em; }
.verified circle { fill: var(--accent); }
.verified path { stroke: var(--accent-ink); }
.handle { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; font-weight: 500; }
.bio { margin: 14px 26px 0; text-align: center; font-size: 16px; color: rgba(255, 255, 255, 0.9); }

/* Tarjetas */
.cards { display: grid; gap: 14px; padding: 22px 16px 0; }
.card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: #17171f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 0 1px var(--line);
  transition: transform 0.14s ease;
}
.card:active { transform: scale(0.975); }
.card-image { aspect-ratio: 16 / 10; }
.card-image.card-main { aspect-ratio: 5 / 4; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 2px var(--accent); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0) 70%);
}
.card-text { position: absolute; left: 20px; right: 70px; bottom: 18px; display: grid; gap: 3px; }
.card-text strong { font-size: 21px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.15; }
.card-main .card-text strong { font-size: 24px; }
.card-text small { font-size: 14.5px; color: rgba(255, 255, 255, 0.86); font-weight: 500; }
.card-arrow {
  position: absolute; right: 16px; bottom: 16px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.card-main .card-arrow { background: var(--accent); }
.card-arrow svg { width: 20px; height: 20px; stroke: #fff; }
.card-main .card-arrow svg { stroke: var(--accent-ink); }
.badge {
  position: absolute; left: 16px; top: 16px; z-index: 1;
  padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* Tarjeta sin imagen */
.card-plain { min-height: 74px; background: var(--glass); display: flex; align-items: center; }
.card-plain .card-text { position: static; padding: 16px 70px 16px 20px; }
.card-plain .card-text strong { font-size: 18px; }
.card-plain .card-arrow { bottom: auto; top: 50%; margin-top: -21px; }
.card-plain .badge { position: static; margin-left: 16px; flex: none; }
.card-plain .badge + .card-text { padding-left: 12px; }
.card-plain.card-main { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4); }
.card-plain.card-main .card-text small { color: inherit; opacity: 0.85; }
.card-plain.card-main .card-arrow { background: rgba(0, 0, 0, 0.18); }

.foot { padding: 30px 20px 4px; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, 0.38); }

/* Aviso 18+ */
.wrap-center { display: grid; place-items: center; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); background: transparent; box-shadow: none; }
.gate {
  width: 100%; padding: 34px 24px 24px; text-align: center; border-radius: 30px;
  background: rgba(17, 17, 24, 0.86); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.gate-ring {
  width: 86px; height: 86px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; font-weight: 800;
  border: 3px solid var(--accent); color: var(--accent);
}
.gate h1 { font-size: 25px; text-shadow: none; }
.gate p { margin: 12px 0 24px; color: var(--muted); font-size: 16px; }
.need-js { margin: 12px 0 0; font-size: 14px; }
[aria-busy='true'] { opacity: 0.7; }
.btn {
  display: block; width: 100%; min-height: 58px; padding: 17px 20px; border: 0; border-radius: 18px;
  font: inherit; font-size: 18px; font-weight: 750; text-align: center; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:active { transform: scale(0.98); }
.btn-ghost { margin-top: 10px; background: transparent; color: var(--muted); font-size: 16px; font-weight: 600; min-height: 50px; padding: 14px 20px; }

/* Versión limpia (bots) y páginas de error: solo texto */
.page-clean { background: #101014; }
.wrap-clean { padding: 72px 24px 40px; text-align: center; background: transparent; box-shadow: none; }
.wrap-clean h1 { font-size: 26px; text-shadow: none; }
.wrap-clean p { color: var(--muted); }
.clean-links { display: grid; gap: 10px; margin-top: 28px; }
.clean-links a { padding: 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); font-weight: 600; }

/* Vista previa dentro del panel */
.is-preview .card { pointer-events: none; }
.is-preview .wrap { margin: 0 auto; border-radius: 0; box-shadow: none; }

@media (prefers-reduced-motion: reduce) { .card, .btn { transition: none; } }
