/* ===== Base ===== */
:root {
  --a: #5CF2FF;
  --b: #A855FF;
  --on: #05060a;   /* texto sobre el color de acento */
  --bg: #05060a;
  --fg: #eef0f7;
  --muted: #8b91a7;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09);
  --radius: 18px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--a); color: var(--on); }

/* ===== Fondo animado ===== */
#fondo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
body::before, body::after {
  content: ""; position: fixed; z-index: 0; border-radius: 50%;
  filter: blur(90px); opacity: .35; pointer-events: none;
}
body::before { width: 60vmax; height: 60vmax; background: var(--b); top: -25vmax; left: -20vmax; animation: orbe 22s ease-in-out infinite alternate; }
body::after  { width: 50vmax; height: 50vmax; background: var(--a); bottom: -25vmax; right: -20vmax; opacity: .22; animation: orbe 28s ease-in-out infinite alternate-reverse; }
@keyframes orbe { to { transform: translate(12vmax, 8vmax) scale(1.15); } }
.ruido {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Contenedor ===== */
#app {
  position: relative; z-index: 2;
  width: 100%; max-width: 640px; margin: 0 auto;
  padding: 28px 16px calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 22px;
}

/* ===== Banner opcional (foto de fondo arriba) ===== */
.banner {
  position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 520px; pointer-events: none;
  background: var(--img) center 30% / cover no-repeat;
  -webkit-mask: linear-gradient(#000 0%, rgba(0,0,0,.6) 45%, transparent 100%);
          mask: linear-gradient(#000 0%, rgba(0,0,0,.6) 45%, transparent 100%);
  opacity: .55; filter: grayscale(1) contrast(1.15);
}
.banner::after { content: ""; position: absolute; inset: 0; background: var(--a); mix-blend-mode: multiply; opacity: .55; }

/* ===== Barra superior ===== */
.barra {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.barra .estado { display: flex; align-items: center; gap: 8px; }
.barra .estado i { width: 7px; height: 7px; border-radius: 50%; background: var(--a); box-shadow: 0 0 10px var(--a); animation: latido 1.6s infinite; }
@keyframes latido { 50% { opacity: .3; } }
.boton-icono {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line); transition: .2s;
}
.boton-icono:hover { border-color: var(--a); color: var(--a); }
.boton-icono svg { width: 17px; height: 17px; }

/* ===== Cabecera ===== */
.cabecera { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 6px; }
.avatar { position: relative; width: 148px; height: 148px; }
.avatar::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--a), transparent 30%, var(--b) 55%, transparent 80%, var(--a));
  animation: giro 6s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.avatar::after {
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  border: 1px dashed var(--line); animation: giro 40s linear infinite reverse;
}
@keyframes giro { to { transform: rotate(360deg); } }
.avatar img, .avatar .iniciales {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 60px -10px var(--a);
}
.avatar .iniciales {
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 44px;
  background: radial-gradient(circle at 30% 25%, var(--a), transparent 55%), radial-gradient(circle at 75% 80%, var(--b), transparent 60%), #0d0f18;
  color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.verificado {
  position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--a); color: var(--on); display: grid; place-items: center; border: 3px solid var(--bg);
}
.verificado svg { width: 14px; height: 14px; }

.nombre {
  font-family: var(--display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(34px, 10vw, 56px); line-height: 1; position: relative;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.55));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nombre::before, .nombre::after {
  content: attr(data-texto); position: absolute; inset: 0; opacity: 0;
  -webkit-background-clip: text; background-clip: text;
}
.nombre::before { color: var(--a); animation: glitch 5s infinite steps(1); }
.nombre::after  { color: var(--b); animation: glitch 5s infinite steps(1) .08s; }
@keyframes glitch {
  0%, 92%, 100% { opacity: 0; transform: none; clip-path: none; }
  93% { opacity: .8; transform: translate(-3px, 1px); clip-path: inset(10% 0 60% 0); }
  95% { opacity: .8; transform: translate(3px, -1px); clip-path: inset(55% 0 15% 0); }
  97% { opacity: .8; transform: translate(-2px, 0); clip-path: inset(30% 0 40% 0); }
}
.usuario { font-family: var(--mono); font-size: 13px; color: var(--a); letter-spacing: .05em; }
.lema { color: var(--muted); max-width: 420px; }
.etiquetas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.etiqueta {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass);
}
.etiqueta.lugar { color: var(--a); border-color: color-mix(in srgb, var(--a) 35%, transparent); }

/* Ecualizador */
.ecualizador { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.ecualizador span {
  width: 3px; border-radius: 2px; background: linear-gradient(var(--a), var(--b));
  animation: barra 1s ease-in-out infinite alternate;
}
@keyframes barra { from { height: 15%; } to { height: 100%; } }

/* Redes */
.redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.red {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line); transition: .25s;
}
.red:hover { transform: translateY(-3px); border-color: var(--a); box-shadow: 0 8px 24px -8px var(--a); color: var(--a); }
.ico {
  display: inline-block; width: 19px; height: 19px; background: currentColor; flex: none;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
}

/* Cifras */
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(12px); overflow: hidden; }
.cifra { padding: 16px 8px; text-align: center; }
.cifra + .cifra { border-left: 1px solid var(--line); }
.cifra b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; }
.cifra small { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ===== Tarjetas y secciones ===== */
.seccion { display: flex; flex-direction: column; gap: 12px; }
.titulo-seccion {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.titulo-seccion::before { content: attr(data-n); color: var(--a); }
.titulo-seccion::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

.tarjeta {
  position: relative; border-radius: var(--radius); background: var(--glass);
  border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* Lanzamiento */
.lanzamiento { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 14px; overflow: hidden; }
.lanzamiento::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(130deg, var(--a), transparent 40%, transparent 60%, var(--b));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.portada { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.portada img, .portada .generada { width: 100%; height: 100%; object-fit: cover; }
.portada .generada {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 2px, transparent 2px 4px),
    conic-gradient(from 200deg at 60% 40%, var(--b), var(--a), #0b0d16, var(--b));
  display: flex; align-items: flex-end; padding: 10px;
  font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.1; text-transform: uppercase;
}
.info-lanz { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.info-lanz .tipo { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--a); }
.info-lanz h2 { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.1; }
.cuenta { display: flex; gap: 6px; }
.cuenta div { flex: 1; text-align: center; padding: 6px 2px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.cuenta b { display: block; font-family: var(--mono); font-size: 18px; font-variant-numeric: tabular-nums; }
.cuenta small { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.plataformas { display: flex; gap: 8px; flex-wrap: wrap; }
.plataformas a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--glass-2); transition: .2s; }
.plataformas a:hover { background: var(--a); color: var(--on); }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  background: linear-gradient(120deg, var(--a), var(--b)); color: var(--on);
  box-shadow: 0 8px 30px -10px var(--a); transition: .2s;
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px var(--a); }
.boton.secundario { background: var(--glass-2); color: var(--fg); box-shadow: none; border: 1px solid var(--line); }
.boton svg { width: 16px; height: 16px; }

/* Enlaces */
.enlace {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.enlace::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .7s;
}
.enlace:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--a) 60%, transparent); box-shadow: 0 10px 30px -14px var(--a); }
.enlace:hover::after { transform: translateX(100%); }
.enlace .icono-caja {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: rgba(0,0,0,.35); border: 1px solid var(--line); color: var(--a);
}
.enlace .icono-caja svg { width: 20px; height: 20px; }
.enlace .texto { flex: 1; min-width: 0; }
.enlace b { display: block; font-weight: 600; }
.enlace small { color: var(--muted); font-size: 13px; }
.enlace .flecha { width: 18px; height: 18px; color: var(--muted); transition: .25s; flex: none; }
.enlace:hover .flecha { color: var(--a); transform: translate(3px, -3px); }
.enlace.destacado { border-color: color-mix(in srgb, var(--a) 45%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--a) 14%, transparent), color-mix(in srgb, var(--b) 12%, transparent)); }
.enlace.destacado .icono-caja { background: var(--a); color: var(--on); border: 0; }

/* Vídeos */
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.video { padding: 0; overflow: hidden; text-align: left; display: flex; flex-direction: column; transition: .25s; }
.video:first-child { grid-column: 1 / -1; }
.video:hover { border-color: var(--a); transform: translateY(-2px); }
.miniatura { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0d16; }
.miniatura img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video:hover .miniatura img { transform: scale(1.05); }
.miniatura .sin-video {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--b) 70%, transparent), transparent 50%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--a) 55%, transparent), transparent 55%),
    #0b0d16;
}
.miniatura .play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(5,6,10,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); transition: .25s;
}
.miniatura .play svg { width: 20px; height: 20px; margin-left: 3px; }
.video:hover .play { background: var(--a); color: var(--on); transform: scale(1.08); }
.miniatura .tipo-video {
  position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
}
.video .pie { padding: 12px 14px; }
.video .pie b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.video .pie small { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Prensa */
.nota { display: block; padding: 16px; transition: .25s; }
.nota:hover { border-color: var(--a); transform: translateX(4px); }
.nota .medio { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.nota .medio span:first-child { color: var(--a); }
.nota .medio span:last-child { color: var(--muted); }
.nota h3 { font-family: var(--display); font-size: 16px; font-weight: 600; margin: 8px 0 6px; line-height: 1.25; }
.nota p { color: var(--muted); font-size: 14px; }
.nota p::before { content: "“"; color: var(--a); font-family: var(--display); margin-right: 2px; }
.nota p::after { content: "”"; color: var(--a); font-family: var(--display); }
.dossier { display: flex; align-items: center; gap: 14px; padding: 16px; }
.dossier .texto { flex: 1; }
.dossier b { display: block; font-family: var(--display); font-size: 15px; font-weight: 600; }
.dossier small { color: var(--muted); font-size: 13px; }

/* Bio */
.bio { padding: 18px; color: #c9cde0; }
.bio p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bio.abierta p { -webkit-line-clamp: unset; }
.bio button { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--a); }

/* Contacto */
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contacto a { padding: 16px; display: flex; flex-direction: column; gap: 4px; transition: .25s; }
.contacto a:hover { border-color: var(--a); }
.contacto a:only-child { grid-column: 1 / -1; }
.contacto small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--a); }
.contacto span { font-size: 13px; word-break: break-all; }

/* Pie */
.pie-pagina {
  margin-top: 10px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.pie-pagina a b { color: var(--fg); }
.pie-pagina a:hover b { color: var(--a); }

/* Modal de vídeo */
dialog {
  margin: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #000; color: var(--fg);
  width: min(960px, calc(100% - 32px)); padding: 0; overflow: hidden;
}
dialog::backdrop { background: rgba(3,4,8,.82); backdrop-filter: blur(10px); }
dialog .marco { aspect-ratio: 16 / 9; }
dialog iframe { width: 100%; height: 100%; border: 0; display: block; }
dialog .vacio { display: grid; place-items: center; height: 100%; color: var(--muted); font-family: var(--mono); font-size: 13px; padding: 20px; text-align: center; }
dialog .cerrar { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0,0,0,.6); }

/* Aviso copiado */
.aviso {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 10;
  padding: 10px 16px; border-radius: 12px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 14px;
  transition: .3s; pointer-events: none;
}
.aviso.visible { transform: translate(-50%, 0); opacity: 1; }

/* Aparición al hacer scroll */
.revelar { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.revelar.visto { opacity: 1; transform: none; }

@media (max-width: 420px) {
  .lanzamiento { grid-template-columns: 1fr; }
  .portada { max-width: 220px; width: 100%; margin: 0 auto; }
  .info-lanz { text-align: center; align-items: center; }
  .cuenta { width: 100%; }
  .contacto { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar { opacity: 1; transform: none; }
}
