/* Banderas: Windows no dibuja las banderas de los países (salen letras como «DO» o «HT»).
   Esta fuente solo tiene banderas (unicode-range) y se usa antes que las demás; el resto del texto no cambia.
   Banderas de Twemoji (CC-BY 4.0, Twitter/X) empaquetadas por country-flag-emoji-polyfill (MIT, TalkJS). */
@font-face {
  font-family: "Twemoji Country Flags";
  src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2");
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  font-display: swap;
}
/* Diseño: app de música + lista de éxitos.
   Negro profundo, tipografía grande y limpia (Inter), portadas protagonistas,
   estanterías que se deslizan de lado y una lista Top con números condensados.
   Diseño propio: no usa logos ni marcas de otras plataformas. */
:root {
  --bg: #09090b;
  --panel: #141417;
  --panel-2: #1d1d22;
  --panel-3: #26262c;
  --line: rgba(255, 255, 255, .09);
  --fg: #f5f5f7;
  --muted: #9b9ba4;
  --acento: #c6ff3d;           /* verde lima de la marca */
  --acento-2: #d9ff7a;
  --azul: #1d9bf0;             /* insignia de verificado */
  --sube: #32d74b;
  --baja: #ff453a;
  --oro: #ffcc4d;
  --body: "Twemoji Country Flags", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Twemoji Country Flags", "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 14px;
  --r-s: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; outline: none; padding-bottom: 80px; }
[hidden] { display: none !important; }
a { color: var(--acento-2); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.eyebrow { font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--acento); margin: 0 0 12px; }
.nota { color: var(--muted); margin: 6px 0; }
.nota.pequena { font-size: 13px; }
.centro { text-align: center; }
.error { color: var(--baja); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Modo prueba ---------- */
.demo { background: #1a1608; border-bottom: 1px solid #4a3f12; font-size: 13px; color: #e8dcae; }
.demo .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-block: 7px; }
.demo-t b { color: var(--oro); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.demo-como { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.demo select { background: #0e0c05; color: var(--fg); border: 1px solid #4a3f12; border-radius: 8px; padding: 5px 8px; font: inherit; }

/* ---------- Barra superior (cristal) ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(9, 9, 11, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 800 18px/1 var(--body); letter-spacing: -.02em; color: var(--fg); text-decoration: none; white-space: nowrap; }
.brand::before { content: ""; width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--acento), #5f8f00); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  -webkit-mask: none; }
.brand b { font-weight: 800; color: var(--fg); }
.nav { display: flex; align-items: center; gap: 4px; }
.navlink { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.navlink:hover { color: var(--fg); background: var(--panel-2); }
.navlink.on { color: var(--fg); background: var(--panel-3); }
.badge { font: 700 11px/1 var(--body); font-style: normal; background: var(--acento); color: #fff; border-radius: 999px; padding: 3px 6px; min-width: 18px; text-align: center; }
.lang { display: inline-flex; background: var(--panel-2); border-radius: 999px; padding: 3px; gap: 2px; margin-left: 8px; }
.lang button { all: unset; cursor: pointer; font: 700 11px/1 var(--body); letter-spacing: .04em; padding: 7px 9px; border-radius: 999px; color: var(--muted); }
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { background: var(--fg); color: #000; }
.lang button:focus-visible { outline: 2px solid var(--azul); }
.user { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.user-a { text-decoration: none; }
.solo-estrecho { display: none; }
@media (max-width: 760px) {
  .solo-ancho { display: none !important; }
  .solo-estrecho { display: inline; }
  .top .wrap { flex-wrap: wrap; gap: 8px; }
  .nav { width: 100%; flex-wrap: wrap; gap: 2px; }
  .lang { margin-left: auto; }
  .navlink { padding: 7px 10px; font-size: 13px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  border-radius: 999px; border: 0; padding: 13px 22px;
  background: var(--acento); color: #fff; transition: transform .15s, background .15s, filter .15s;
}
.btn:hover { background: var(--acento-2); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--panel-3); color: var(--fg); }
.btn.ghost:hover { background: #33333a; }
.btn.claro { background: var(--fg); color: #000; }
.btn.claro:hover { background: #fff; }
.btn.wa { background: #1fae5b; }
.btn.small { padding: 9px 15px; font-size: 14px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.link { background: none; border: 0; padding: 4px 0; color: var(--acento-2); font: 600 14px var(--body); cursor: pointer; text-decoration: none; }
.link.muted { color: var(--muted); }
.link.muted:hover { color: var(--fg); }
.botones { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }

/* ---------- Avatar, portada e insignia ---------- */
.av {
  --h: 340; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  display: inline-grid; place-items: center; font: 800 22px/1 var(--body); color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 70% 52%), hsl(calc(var(--h) + 50) 60% 28%));
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-s { width: 32px; height: 32px; font-size: 14px; }
.av-xl { width: 120px; height: 120px; font-size: 52px; }
.portada {
  --h: 340; position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; width: 100%;
  border-radius: var(--r-s); background: linear-gradient(145deg, hsl(var(--h) 72% 50%), hsl(calc(var(--h) + 60) 65% 22%));
  color: #fff; font: 800 clamp(40px, 6vw, 72px)/1 var(--body); box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.portada img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Las miniaturas de YouTube traen franjas negras arriba y abajo: se amplían para recortarlas. */
.portada img.yt { transform: scale(1.34); }
.verif { display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em; margin-left: .25em; flex: none; }
.verif circle, .verif path.f { fill: var(--azul); }
.verif path.c { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Portada (home): N.º 1 ---------- */
.hero-n1 { position: relative; margin-top: 22px; border-radius: 22px; overflow: hidden; isolation: isolate; background: var(--panel); }
.hero-n1 .fondo { position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center; filter: blur(48px) saturate(160%) brightness(.55); transform: scale(1.1); }
.hero-n1 .fondo.sin-img { background: radial-gradient(70% 90% at 80% 20%, #c6ff3d40, transparent), radial-gradient(60% 80% at 10% 90%, #1fae7a40, transparent); filter: none; }
.hero-n1-in { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; padding: clamp(22px, 4vw, 44px); background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.05)); }
.hero-n1 .eyebrow { color: #fff; opacity: .85; }
.hero-n1 h1 { font-size: clamp(38px, 6.5vw, 76px); }
.hero-n1 .meta { color: rgba(255,255,255,.8); font-weight: 500; margin: 10px 0 0; }
.hero-n1 .big-num { font: 900 clamp(26px, 3vw, 34px)/1 var(--display); letter-spacing: .01em; margin-top: 16px; }
.hero-n1 .big-num small { font: 600 14px var(--body); color: rgba(255,255,255,.7); margin-left: 6px; letter-spacing: 0; }
.corona-n1 { position: absolute; top: 12px; left: 12px; background: var(--oro); color: #1d1500; font: 900 13px/1 var(--body); padding: 6px 9px; border-radius: 999px; z-index: 2; }
@media (max-width: 640px) { .hero-n1-in { grid-template-columns: 1fr; } .hero-n1 .portada { max-width: 240px; } }

.intro { padding: clamp(30px, 6vw, 56px) 0 8px; max-width: 760px; }
.intro .hero-p, .hero-p { font-size: 19px; color: var(--muted); margin: 14px 0 20px; max-width: 56ch; }

/* Estanterías horizontales */
.estante { margin-top: 44px; }
.estante-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.estante-cab a { color: var(--acento-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.fila-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 186px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.fila-scroll > * { scroll-snap-align: start; }
.tile { color: var(--fg); text-decoration: none; display: grid; gap: 8px; }
.tile .portada { transition: transform .2s; }
.tile:hover .portada { transform: translateY(-3px) scale(1.015); }
.tile b { font-size: 15px; font-weight: 700; display: flex; align-items: center; min-width: 0; }
.tile b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile small { color: var(--muted); font-size: 13px; margin-top: -6px; }
.tile .rank { position: absolute; left: 8px; bottom: 2px; font: 900 64px/1 var(--display); color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.op-mini { min-width: 280px; background: var(--panel); border-radius: var(--r); padding: 16px; color: var(--fg); text-decoration: none; display: grid; gap: 6px; align-content: start; }
.op-mini:hover { background: var(--panel-2); }
.op-mini b { font-size: 16px; }
.op-mini span { color: var(--muted); font-size: 13px; }

/* ---------- Buscador + cuadrícula ---------- */
.buscador { position: sticky; top: 57px; z-index: 10; background: rgba(9,9,11,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 14px 0; margin-top: 12px; }
.buscador input[type=search] {
  width: 100%; font: 500 17px var(--body); color: var(--fg); background: var(--panel-2);
  border: 1px solid transparent; border-radius: 12px; padding: 13px 18px 13px 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9ba4' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: 15px center;
}
.buscador input[type=search]:focus { border-color: var(--azul); outline: none; }
.filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.filtros select { background-color: var(--panel-2); color: var(--fg); border: 0; border-radius: 999px; padding: 9px 14px; font: 600 14px var(--body); }
.seg { display: inline-flex; background: var(--panel-2); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button, .seg label span { all: unset; cursor: pointer; font: 600 14px/1 var(--body); padding: 8px 14px; border-radius: 999px; color: var(--muted); }
.seg button:hover, .seg label span:hover { color: var(--fg); }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--fg); color: #000; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:focus-within span { outline: 2px solid var(--azul); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer; color: var(--fg); }
.check input { accent-color: var(--acento); width: 18px; height: 18px; }
.contador { font: 600 13px var(--body); color: var(--muted); margin: 18px 0 12px; }
@media (max-width: 760px) { .buscador { position: static; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 26px 18px; }
.card { position: relative; display: grid; gap: 4px; color: var(--fg); text-decoration: none; align-content: start; }
.card .portada { margin-bottom: 8px; transition: transform .2s; }
.card:hover .portada { transform: translateY(-3px) scale(1.015); }
.card h3 { display: flex; align-items: center; min-width: 0; }
.card h3 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rol { margin: 0; font: 600 13px var(--body); color: var(--muted); }
.rol-productor::before, .rol-artista::before, .rol-ambos::before, .rol-promotor::before { content: "●"; margin-right: 6px; font-size: 9px; vertical-align: 2px; }
.rol-artista::before { color: var(--acento); } .rol-productor::before { color: #64d2ff; }
.rol-ambos::before { color: #bf5af2; } .rol-promotor::before { color: var(--oro); }
.lugar { margin: 0; color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.tags span { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; color: var(--fg); background: var(--panel-2); }
.card-pie { margin: 6px 0 0; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.colab { color: var(--sube); font-weight: 600; }
.vistas { color: var(--fg); font-style: normal; font-weight: 700; }
.etiqueta-promo { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(0,0,0,.6); backdrop-filter: blur(10px); color: var(--oro); font: 700 11px/1 var(--body); padding: 6px 9px; border-radius: 999px; }
.etiqueta-promo.en-linea { position: static; display: inline-block; background: var(--panel-3); }
.vacio { color: var(--muted); grid-column: 1 / -1; padding: 30px 0; }
.vacio-grande { text-align: center; padding: 80px 0; max-width: 520px; margin: 0 auto; }
.vacio-grande h2 { margin-bottom: 12px; }
.vacio-grande .btn { margin-top: 16px; }

/* ---------- Gráficas ---------- */
.graficas { display: grid; gap: 16px; margin-top: 18px; max-width: 940px; }
.grafica { margin: 0; background: var(--panel); border-radius: var(--r); padding: 18px 18px 12px; color: var(--acento); }
.grafica figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; color: var(--fg); }
.grafica figcaption b { font-size: 16px; }
.grafica figcaption span { font-size: 13px; color: var(--muted); }
.grafica svg { max-width: 100%; height: auto; display: block; overflow: visible; }
.g-hit { fill: transparent; }
.g-fila { cursor: default; }
.g-fila[data-href] { cursor: pointer; }
.g-barra { fill: currentColor; opacity: .55; transition: opacity .15s; }
.g-barra.g-primera { opacity: 1; }
.g-fila.activa .g-barra { opacity: 1; }
.g-etq { fill: var(--fg); font: 600 13px var(--body); }
.g-val { fill: var(--muted); font: 600 12px var(--body); }
.g-fila.activa .g-val { fill: var(--fg); }
.g-eje { stroke: var(--line); stroke-width: 1; }
.g-rej { stroke: var(--line); stroke-width: 1; }
.g-eje-t { fill: var(--muted); font: 500 11px var(--body); }
.g-linea { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.g-area { fill: url(#gArea); }
.g-fin { fill: currentColor; stroke: var(--panel); stroke-width: 2; }
.g-cruz { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.g-punto { fill: currentColor; stroke: var(--panel); stroke-width: 2; opacity: 0; }
.g-col.activa .g-cruz, .g-col.activa .g-punto { opacity: 1; }
.g-tip { position: fixed; z-index: 200; pointer-events: none; background: rgba(30,30,36,.96); color: var(--fg); border: 1px solid var(--line); font: 600 13px var(--body); padding: 7px 10px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.4); white-space: nowrap; }

/* ---------- Top (lista de éxitos) ---------- */
.top-pag { padding-top: 34px; }
.top-cab { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.top-cab h1 { font-size: clamp(42px, 7vw, 84px); }
.semana { font: 700 13px var(--body); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.top-pag .filtros { margin: 18px 0 6px; }
.chart { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.chart-cab, .chart-fila { display: grid; grid-template-columns: 64px 56px 64px minmax(0, 1fr) 110px 64px 64px 72px; align-items: center; gap: 12px; }
.chart-cab { padding: 10px 8px; font: 700 11px var(--body); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.chart-cab span:nth-child(n+5) { text-align: center; }
.chart-fila { padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; transition: background .15s; }
.chart-fila:hover { background: var(--panel); }
.chart-fila .pos { font: 900 46px/1 var(--display); text-align: center; letter-spacing: -.01em; }
.chart-fila .portada { width: 64px; border-radius: 8px; font-size: 26px; box-shadow: none; }
.chart-fila .nom { min-width: 0; }
.chart-fila .nom b { display: flex; align-items: center; font-size: 17px; }
.chart-fila .nom b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-fila .nom small { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-fila .dato { text-align: center; font: 700 15px var(--body); color: var(--muted); }
.chart-fila .dato.v { color: var(--fg); }
.mov { display: inline-grid; place-items: center; min-width: 44px; height: 24px; padding: 0 6px; border-radius: 6px; font: 800 12px/1 var(--body); }
.mov.sube { color: var(--sube); background: rgba(50,215,75,.12); }
.mov.baja { color: var(--baja); background: rgba(255,69,58,.12); }
.mov.igual { color: var(--muted); background: var(--panel-2); }
.mov.nuevo { color: #000; background: var(--oro); letter-spacing: .04em; }
.chart-fila.n1 { background: linear-gradient(90deg, rgba(198,255,61,.16), transparent 70%); }
.chart-fila.n1 .pos { color: var(--acento); font-size: 64px; }
.chart-fila.n1 { grid-template-columns: 64px 56px 96px minmax(0, 1fr) 110px 64px 64px 72px; }
.chart-fila.n1 .portada { width: 96px; }
.chart-fila.n1 .nom b { font-size: 24px; letter-spacing: -.02em; }
@media (max-width: 760px) {
  .chart-cab { display: none; }
  .chart-fila, .chart-fila.n1 { grid-template-columns: 40px 52px minmax(0, 1fr) auto; grid-template-areas: "pos img nom v" "mov img nom v"; row-gap: 2px; }
  .chart-fila .pos { grid-area: pos; font-size: 32px; }
  .chart-fila .movc { grid-area: mov; text-align: center; }
  .chart-fila .portada, .chart-fila.n1 .portada { grid-area: img; width: 52px; }
  .chart-fila .nom { grid-area: nom; }
  .chart-fila .dato.v { grid-area: v; font-size: 13px; }
  .chart-fila .dato.x { display: none; }
  .chart-fila.n1 .pos { font-size: 40px; }
  .chart-fila.n1 .nom b { font-size: 18px; }
  .mov { min-width: 34px; height: 20px; font-size: 10px; }
}
.aviso { background: rgba(255,204,77,.08); border: 1px solid rgba(255,204,77,.25); color: #f0dfae; border-radius: var(--r-s); padding: 10px 14px; font-size: 14px; margin-top: 14px; }

/* ---------- Perfil ---------- */
.volver { display: inline-block; margin: 22px 0 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.volver:hover { color: var(--fg); }
.perfil-banda { position: relative; border-radius: 22px; overflow: hidden; isolation: isolate; margin-top: 10px; background: var(--panel); }
.perfil-banda .fondo { position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center; filter: blur(50px) saturate(150%) brightness(.5); }
.perfil-banda .fondo.sin-img { background: radial-gradient(60% 90% at 80% 10%, #c6ff3d30, transparent), radial-gradient(60% 90% at 0% 100%, #1fae7a30, transparent); filter: none; }
.perfil-cab { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: clamp(18px, 4vw, 40px); align-items: end; padding: clamp(20px, 4vw, 40px); }
.perfil-cab h1 { margin: 8px 0 6px; overflow-wrap: anywhere; font-size: clamp(36px, 6vw, 68px); }
.perfil-cab .rol { color: rgba(255,255,255,.8); }
.perfil-cab .lugar { color: rgba(255,255,255,.75); font-size: 15px; }
@media (max-width: 640px) { .perfil-cab { grid-template-columns: 1fr; } .perfil-cab .portada { max-width: 200px; } }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.stat { background: rgba(255,255,255,.08); backdrop-filter: blur(10px); border-radius: 12px; padding: 10px 14px; min-width: 110px; }
.stat b { display: block; font: 900 26px/1 var(--display); letter-spacing: .01em; }
.stat span { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 600; }
.perfil { max-width: 980px; }
.bio { font-size: 17px; white-space: pre-line; margin: 22px 0 0; max-width: 65ch; color: #d9d9de; }
.bloque { margin-top: 36px; }
.h-bloque { font-size: 24px; font-weight: 800; margin: 36px 0 12px; }
.bloque .h-bloque { margin-top: 0; }
.verif-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(120deg, rgba(29,155,240,.16), rgba(29,155,240,.04)); border: 1px solid rgba(29,155,240,.35); border-radius: var(--r); padding: 16px 18px; margin-top: 22px; }
.verif-card p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.verif-card b { display: flex; align-items: center; gap: 2px; }

.temas { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 2px; }
.tema { border-radius: var(--r-s); padding: 8px; transition: background .15s; }
.tema:hover { background: var(--panel); }
.tema-fila { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tema-n { width: 22px; text-align: center; color: var(--muted); font-weight: 600; font-size: 15px; }
.mini { width: 88px; height: 50px; border-radius: 6px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--panel-2); font-size: 20px; color: var(--muted); }
.mini-soundcloud { background: #ff5500; color: #fff; } .mini-spotify { background: #1db954; color: #000; }
.mini-audiomack { background: #ffa200; color: #000; } .mini-drive { background: #2f6fde; color: #fff; }
.tema-txt { flex: 1; min-width: 150px; display: flex; flex-direction: column; }
.tema-txt b { font-weight: 600; }
.tema-txt span { font-size: 13px; color: var(--muted); }
.reproductor { margin-top: 10px; }
.reproductor iframe { width: 100%; border: 0; border-radius: 12px; display: block; background: #000; }
.reproductor iframe.v169 { aspect-ratio: 16 / 9; height: auto; }
.plat { background: var(--panel-2); color: var(--fg); }
.plat:hover { background: var(--panel-3); }
.plat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.plat-spotify::before { background: #1db954; } .plat-youtube::before { background: #ff0033; }
.plat-apple::before { background: #fa57c1; } .plat-tiktok::before { background: #25f4ee; }

/* ---------- Editor y formularios ---------- */
.editor { max-width: 760px; padding-top: 30px; }
.editor h1 { margin-bottom: 8px; }
.editor form { margin-top: 22px; display: grid; gap: 16px; }
.campo { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.campo > span, .campo > legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; }
input:not([type=checkbox]):not([type=radio]), textarea, select {
  width: 100%; font: 500 16px var(--body); color: var(--fg); background: var(--panel-2);
  border: 1px solid transparent; border-radius: 10px; padding: 12px 14px;
}
.filtros select { width: auto; }
input:focus, textarea:focus, select:focus { border-color: var(--azul); outline: none; }
textarea { resize: vertical; }
input[type=date] { color-scheme: dark; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .dos, .tres { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { all: unset; cursor: pointer; font: 600 13px var(--body); background: var(--panel-2); border-radius: 999px; padding: 7px 13px; color: var(--muted); }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--acento); color: #fff; }
.chip:focus-visible { outline: 2px solid var(--azul); }
.fila { display: flex; gap: 8px; margin-top: 10px; max-width: 420px; }
.tema-ed { display: grid; grid-template-columns: 1fr 1.6fr 130px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.tema-ed .fuente { font: 600 12px var(--body); color: var(--sube); }
@media (max-width: 640px) { .tema-ed { grid-template-columns: 1fr auto; } .tema-ed input[data-k=url] { grid-column: 1 / -1; grid-row: 2; } .tema-ed .fuente { display: none; } }
.borrar { justify-self: start; margin-top: 20px; }

/* Verificación */
.requisitos { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.requisitos li { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border-radius: var(--r-s); padding: 12px 14px; }
.requisitos .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 var(--body); }
.requisitos .ok .ic { background: var(--sube); color: #000; }
.requisitos .no .ic { background: rgba(255,69,58,.15); color: var(--baja); }
.requisitos .no { box-shadow: inset 0 0 0 1px rgba(255,69,58,.35); }
.codigo { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font: 700 20px var(--mono); letter-spacing: .06em; background: var(--panel-2); padding: 8px 12px; border-radius: 8px; }
.estado { border-radius: var(--r); padding: 16px 18px; margin: 18px 0; font-weight: 600; }
.estado.pendiente { background: rgba(255,204,77,.1); color: #f0dfae; }
.estado.aprobada { background: rgba(29,155,240,.14); color: #bfe3ff; }
.estado.rechazada { background: rgba(255,69,58,.12); color: #ffc2bd; }

/* ---------- Mensajes ---------- */
.mensajes { max-width: 760px; padding-top: 30px; }
.convs { list-style: none; padding: 0; margin: 22px 0 0; }
.conv { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 12px; color: var(--fg); text-decoration: none; }
.conv:hover { background: var(--panel); }
.conv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-txt span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.nuevo .conv-txt span { color: var(--fg); font-weight: 600; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--muted); }
.chat { max-width: 760px; display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 420px; }
.chat-cab { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat-cab > span { display: flex; flex-direction: column; }
.chat-cab b { display: flex; align-items: center; }
.hilo { flex: 1; overflow-y: auto; padding: 18px 4px; display: flex; flex-direction: column; gap: 6px; }
.burbuja { max-width: 78%; align-self: flex-start; background: var(--panel-3); border-radius: 18px 18px 18px 6px; padding: 9px 14px; }
.burbuja.mia { align-self: flex-end; background: var(--acento); border-radius: 18px 18px 6px 18px; }
.burbuja.mia a { color: #fff; }
.burbuja p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.burbuja time { display: block; font-size: 11px; color: rgba(255,255,255,.6); margin-top: 3px; text-align: right; }
.escribir { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.escribir textarea { flex: 1; min-height: 50px; max-height: 160px; border-radius: 20px; }

/* ---------- Bienvenida ---------- */
body.sin-scroll { overflow: hidden; }
.bienvenida {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto; padding: 24px 20px;
  background:
    radial-gradient(55% 45% at 85% 8%, rgba(198,255,61,.35), transparent 70%),
    radial-gradient(50% 45% at 5% 95%, rgba(91,43,255,.28), transparent 70%),
    var(--bg);
  display: grid; place-items: center;
}
.bien-caja { width: 100%; max-width: 760px; }
.bien-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: clamp(28px, 6vh, 56px); }
.bien-caja h1 { font-size: clamp(44px, 8vw, 88px); letter-spacing: -.04em; }
.bien-p { font-size: 20px; color: var(--muted); margin: 16px 0 26px; max-width: 46ch; }
.bien-lista { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bien-lista li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.05); backdrop-filter: blur(12px); border-radius: var(--r); padding: 14px; }
.bien-lista b { display: block; font-size: 15px; color: var(--fg); }
.bien-lista li > span:last-child { color: var(--muted); font-size: 14px; }
.bien-ic { font-size: 22px; line-height: 1; }
.bien-botones { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-google { background: #fff; color: #1f1f1f; }
.btn-google:hover { background: #ececec; }
@media (max-width: 560px) { .bien-lista { grid-template-columns: 1fr; } .bien-botones .btn { width: 100%; } }

/* ---------- Promoción ---------- */
.promo { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--fg); padding: 0; max-width: 460px; width: calc(100% - 36px); }
.promo::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.promo-caja { padding: 26px; }
.promo-caja h2 { margin-bottom: 10px; }
.planes { list-style: none; padding: 0; margin: 18px 0 6px; display: grid; gap: 10px; }
.planes li { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border-radius: 12px; padding: 12px 14px; }
.planes li span { flex: 1; color: var(--muted); }

/* ---------- Oportunidades ---------- */
.op-pag { padding-top: 34px; max-width: 900px; }
.op-pag .filtros { margin: 18px 0; }
.ops { display: grid; gap: 12px; margin-top: 10px; }
.op { background: var(--panel); border-radius: var(--r); padding: 18px 20px; }
.op.cerrada { opacity: .55; }
.op h3 { font-size: 22px; margin: 8px 0; letter-spacing: -.02em; }
.op-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.op-tipo { color: var(--acento); }
.op-cerrada { color: var(--fg); background: var(--panel-3); padding: 0 6px; border-radius: 4px; }
.op-datos { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.op-desc { margin: 8px 0 10px; white-space: pre-line; color: #d9d9de; }
.op-pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.botones-mini { display: inline-flex; gap: 10px; align-items: center; }

.pie { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); }

.vacio.primero { display: grid; gap: 14px; justify-items: start; background: var(--panel); border-radius: var(--r); padding: 22px; color: var(--fg); }
.vacio.primero p { margin: 0; font-size: 17px; }


/* =====================================================================
   Estilo «app de música» (29 nov 2026): menú lateral en el ordenador,
   pestañas abajo en el teléfono, fotos de artista redondas, página de
   artista con cabecera grande, canciones populares y videos.
   Diseño propio inspirado en las apps de música; sin logos ni marcas de terceros.
   ===================================================================== */
:root { --bg: #000; --panel: #161618; --panel-2: #1f1f22; --panel-3: #2a2a2e; --acento: #c6ff3d; --acento-2: #d9ff7a; --lat: 248px; }
body { display: block; }
.shell { display: grid; grid-template-columns: var(--lat) minmax(0, 1fr); min-height: 100vh; }
.buscador { top: 0; }
.contenido { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.contenido main { flex: 1; padding-bottom: 60px; }
.contenido .wrap { max-width: 1240px; padding-left: clamp(18px, 3vw, 40px); padding-right: clamp(18px, 3vw, 40px); }

/* Menú lateral */
.lateral {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px;
  padding: 22px 16px 18px; background: #0f0f11; border-right: 1px solid var(--line);
}
.lateral .brand { font-size: 17px; padding: 0 6px; }
.brand::before { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #e4ff6b, #5f8f00); }
.lat-buscar input {
  width: 100%; font: 500 14px var(--body); color: var(--fg); background: var(--panel-2); border: 1px solid transparent; border-radius: 9px; padding: 9px 12px 9px 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9ba4' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 15px; background-position: 11px center;
}
.lat-buscar input:focus { border-color: var(--acento); outline: none; }
.lat-nav { display: grid; gap: 2px; }
.lat-nav .navlink { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--fg); border: 0; }
.lat-nav .navlink .ic { width: 22px; text-align: center; color: var(--acento); font-size: 16px; }
.lat-nav .navlink:hover { background: var(--panel-2); }
.lat-nav .navlink.on { background: var(--panel-3); }
.lat-nav .badge { margin-left: auto; }
.lat-pie { margin-top: auto; display: grid; gap: 12px; }
.lat-pie .btn { width: 100%; }
.lat-pie .user { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.user-a { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--fg); font-weight: 600; font-size: 14px; }
.user-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lat-pie .lang { margin: 0; justify-self: start; }

/* Pestañas de abajo: solo en el teléfono */
.tabbar { display: none; }

@media (max-width: 860px) {
  .shell { display: block; }
  .lateral {
    position: sticky; top: 0; z-index: 30; height: auto; overflow: visible; flex-direction: row; align-items: center; gap: 10px;
    padding: 10px max(14px, env(safe-area-inset-left)); background: rgba(0,0,0,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .lat-buscar, .lat-nav { display: none; }
  .lateral .brand { padding: 0; font-size: 16px; }
  .lat-pie { margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; }
  .lat-pie .btn { width: auto; }
  .lat-pie .lang { order: -1; }
  .user-n, #btnSalir, .lat-pie #btnEntrar { display: none; }
  .lateral .brand { font-size: 15px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px max(6px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(18,18,20,.88); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line);
  }
  .tabbar .tab {
    all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 52px; padding: 4px 2px; color: var(--muted); font: 600 11px/1.1 var(--body); text-align: center; border-radius: 10px;
  }
  .tabbar .tab .ic { font-size: 20px; line-height: 1; }
  .tabbar .tab.on { color: var(--acento); }
  .tabbar .tab:focus-visible { outline: 2px solid var(--azul); }
  .tabbar .tab span:last-of-type { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .badge { position: absolute; top: 2px; left: 54%; font-size: 10px; padding: 2px 5px; }
  .buscador { top: 57px; }
}

/* Fotos de artista redondas en todas partes */
.portada { border-radius: 50%; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.portada.xl { width: clamp(150px, 24vw, 240px); font-size: clamp(60px, 9vw, 96px); flex: none; }
.chart-fila .portada { border-radius: 50%; }
.tile .rank { left: 50%; bottom: -10px; transform: translateX(-50%); font-size: 46px; }
.tile { text-align: center; justify-items: center; }
.tile b { justify-content: center; max-width: 100%; }
.tile .portada { margin-bottom: 8px; }
.card { text-align: center; justify-items: center; }
.card h3 { justify-content: center; max-width: 100%; }
.card .card-pie { justify-content: center; gap: 10px; flex-wrap: wrap; }
.card .portada { width: 88%; }
.etiqueta-promo { top: 4px; left: 4px; }

/* Página de artista */
.artista-hero { position: relative; isolation: isolate; overflow: hidden; margin: 0 calc(-1 * clamp(18px, 3vw, 40px)); padding: clamp(40px, 8vw, 90px) clamp(18px, 3vw, 40px) clamp(28px, 4vw, 40px); }
.artista-hero .fondo { position: absolute; inset: -60px; z-index: -2; background-size: cover; background-position: center 30%; filter: blur(60px) saturate(170%) brightness(.55); transform: scale(1.15); }
.artista-hero .fondo.sin-img { background: radial-gradient(60% 90% at 80% 10%, #c6ff3d40, transparent), radial-gradient(60% 90% at 0% 100%, #1fae7a40, transparent); filter: none; }
.artista-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, #000 100%); }
.artista-cab { display: flex; align-items: flex-end; gap: clamp(18px, 4vw, 40px); }
.artista-txt { min-width: 0; }
.artista-txt h1 { font-size: clamp(38px, 7vw, 84px); letter-spacing: -.035em; margin: 6px 0 4px; overflow-wrap: anywhere; }
.artista-txt .rol { color: rgba(255,255,255,.8); }
.artista-txt .stats { margin-top: 14px; }
.artista-txt .botones { margin: 18px 0 0; }
.btn.play-grande { padding: 13px 26px; font-size: 16px; }
@media (max-width: 640px) {
  .artista-cab { flex-direction: column; align-items: center; text-align: center; }
  .artista-txt .stats, .artista-txt .botones { justify-content: center; }
  .stat { min-width: 0; flex: 1 1 40%; }
}

/* Canciones populares (lista numerada, en dos columnas en pantallas anchas) */
ol.temas { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; }
@media (min-width: 1100px) { ol.temas { grid-template-columns: repeat(2, minmax(0, 1fr)); } ol.temas .reproductor { grid-column: 1 / -1; } }
ol.temas .tema { border-radius: 10px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
ol.temas .tema:hover { background: var(--panel); }
.tema-fila { flex-wrap: nowrap; gap: 12px; }
.tema-n { width: 22px; flex: none; }
.mini { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; position: relative; }
.mini img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); }
.tema-txt { min-width: 0; }
.tema-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tema-play { all: unset; cursor: pointer; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--acento); color: #fff; display: grid; place-items: center; font-size: 13px; padding-left: 2px; box-sizing: border-box; }
.tema-play:hover { background: var(--acento-2); }
.tema-play:focus-visible, .tema-abrir:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.tema-abrir { flex: none; width: 32px; height: 38px; display: grid; place-items: center; color: var(--muted); text-decoration: none; font-size: 16px; border-radius: 8px; }
.tema-abrir:hover { color: var(--fg); background: var(--panel-2); }

/* Videos (fila que se desliza) */
.fila-scroll.videos { grid-auto-columns: minmax(230px, 280px); }
.video-tile { all: unset; cursor: pointer; display: grid; gap: 6px; color: var(--fg); }
.video-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.video-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); }
.video-img i { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); display: grid; place-items: center; font-style: normal; font-size: 13px; padding-left: 2px; box-sizing: border-box; }
.video-tile:hover .video-img i { background: var(--acento); }
.video-tile:focus-visible .video-img { outline: 2px solid var(--azul); outline-offset: 2px; }
.video-tile b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-tile small { color: var(--muted); font-size: 13px; margin-top: -4px; }

/* Acerca de */
.acerca .bio { margin-top: 0; }
.acerca-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 16px 0 0; font-size: 15px; }
.acerca-dl dt { color: var(--muted); }
.acerca-dl dd { margin: 0; }

/* Editor: canal de YouTube y foto */
.canal-ed { background: var(--panel); border: 1px solid color-mix(in srgb, #ff0033 40%, var(--line)); border-radius: var(--r); padding: 16px; display: grid; gap: 8px; }
.canal-ed .nota { margin: 0; }
.canal-ok { display: flex; align-items: center; gap: 12px; }
.canal-ok img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.canal-ok span { display: grid; gap: 2px; }
.canal-ok b { color: var(--sube); }
.canal-ok small { color: var(--muted); font-size: 13px; }
.foto-ed { display: grid; grid-template-columns: 84px 1fr; gap: 6px 16px; align-items: center; }
.foto-ed .botones-mini { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.foto-prev { grid-row: span 2; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, #c6ff3d, #1fae7a); font: 800 34px var(--body); color: #fff; }
.foto-prev img { width: 100%; height: 100%; object-fit: cover; }
.canal-card { border-color: color-mix(in srgb, #ff0033 45%, var(--line)); background: linear-gradient(120deg, rgba(255,0,51,.14), rgba(255,0,51,.03)); }

.nw { white-space: nowrap; }
.hero-n1 a, .tile, .card, .chart-fila { text-decoration: none; }
/* Top en pantallas medianas (con menú lateral): solo puesto, flecha, foto, nombre y vistas */
@media (min-width: 761px) and (max-width: 1180px) {
  .chart-cab, .chart-fila, .chart-fila.n1 { grid-template-columns: 52px 50px 64px minmax(0, 1fr) 110px; }
  .chart-fila.n1 { grid-template-columns: 52px 50px 84px minmax(0, 1fr) 110px; }
  .chart-fila.n1 .portada { width: 84px; }
  .chart-fila .dato.x, .chart-cab span:nth-child(n+6) { display: none; }
}

/* ===================== Registro paso a paso y categorías (29 nov 2026) ===================== */
#fPerfil .paso { display: grid; gap: 16px; }
#fPerfil.asistente .paso { display: none; }
#fPerfil.asistente .paso.activo { display: grid; }
.asistente-caja { max-width: 640px; }
.asistente-caja h1 { font-size: clamp(28px, 5vw, 42px); margin: 6px 0 4px; }
.pasos-barra { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 6px 0 10px; }
.pasos-barra span { height: 5px; border-radius: 999px; background: var(--panel-3); transition: background .25s; }
.pasos-barra span.hecho { background: var(--acento); }
.asis-nav { justify-content: space-between; }
.asis-nav .btn { min-width: 130px; }
.asis-ya { display: block; margin: 14px auto 0; text-align: center; }
.mas-ed { border: 1px solid rgba(255,255,255,.10); border-radius: 14px; padding: 12px 14px; background: var(--panel); }
.mas-ed > summary { cursor: pointer; font-weight: 600; color: var(--acento); list-style-position: inside; }
.mas-ed > .mas-cuerpo { display: grid; gap: 14px; margin-top: 14px; }
.h-sub { font-size: 19px; margin: 14px 0 0; }
/* Idioma de la plataforma: tarjetas grandes */
.idiomas-app { display: grid; gap: 10px; }
.idioma-app { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 3px; padding: 18px 20px; border-radius: var(--r); background: var(--panel); border: 2px solid var(--line); }
.idioma-app b { font-size: 20px; }
.idioma-app small { color: var(--muted); font-size: 14px; }
.idioma-app:hover { border-color: var(--acento-2); }
.idioma-app.on { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 10%, var(--panel)); }
.idioma-app:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
/* Foto de perfil */
.foto-ed { grid-template-columns: 96px 1fr; }
.foto-prev { width: 96px; height: 96px; }
.foto-txt { display: grid; gap: 2px; align-self: end; }
.foto-ed .botones-mini { grid-column: 2; align-self: start; }
.foto-ed .error { grid-column: 1 / -1; margin: 0; }
/* Banderas y posiciones por categoría */
.bandera { font-family: "Twemoji Country Flags", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.posiciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.posicion { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px); font: 700 13px/1.2 var(--body); color: #fff; }
.posicion.uno { background: linear-gradient(135deg, #ffcc4d, #f59e0b); color: #1d1500; }
.posicion:hover { filter: brightness(1.1); }
.posicion:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.top-cat { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 0; }
.tile .bandera-rank { font-size: 34px; bottom: -6px; text-shadow: none; }
@media (max-width: 640px) { .posiciones { justify-content: center; } .asis-nav .btn { min-width: 0; flex: 1; } }
.completa-card { border-color: color-mix(in srgb, var(--oro) 50%, var(--line)); background: linear-gradient(120deg, rgba(255,204,77,.14), rgba(255,204,77,.03)); }

/* ===================== Paleta «tropical neón» (29 nov 2026) ===================== */
:root {
  --acento: #c6ff3d; --acento-2: #d9ff7a; --violeta: #2ee6a6; --oro: #ffc42e;
  --grad: linear-gradient(135deg, #e4ff6b 0%, #c6ff3d 45%, #5ff08a 100%);
  --grad-suave: linear-gradient(135deg, rgba(198,255,61,.22), rgba(95,240,138,.14) 50%, rgba(31,174,122,.18));
  --bg: #07060b;
}
body { background: radial-gradient(1200px 600px at 0% -10%, rgba(31,174,122,.16), transparent 60%), radial-gradient(900px 500px at 100% 0%, rgba(198,255,61,.10), transparent 60%), var(--bg); background-attachment: fixed; }
.lateral { background: rgba(10,11,9,.94); }
.brand::before { background: var(--grad); box-shadow: 0 0 18px rgba(198,255,61,.45); }
.btn:not(.ghost):not(.claro):not(.wa):not(.plat) { background: var(--grad); background-size: 140% 140%; color: #fff; box-shadow: 0 6px 20px -8px rgba(198,255,61,.7); }
.btn:not(.ghost):not(.claro):not(.wa):not(.plat):hover { filter: brightness(1.08) saturate(1.1); background-position: 100% 50%; }
.btn.claro { box-shadow: 0 6px 20px -10px rgba(255,255,255,.6); }
.eyebrow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-n1 .eyebrow, .artista-hero .eyebrow { -webkit-text-fill-color: #fff; color: #fff; background: none; }
.lat-nav .navlink .ic { color: var(--acento); }
.lat-nav .navlink.on { background: var(--grad-suave); }
.tabbar .tab.on { color: var(--acento); }
.chip[aria-pressed="true"] { background: var(--grad); }
.seg button[aria-pressed="true"], .seg input:checked + span { background: #fff; color: #120a18; }
.hero-n1 { box-shadow: 0 30px 80px -40px rgba(198,255,61,.55); }
.hero-n1 .fondo.sin-img, .artista-hero .fondo.sin-img { background: radial-gradient(60% 90% at 85% 10%, rgba(198,255,61,.55), transparent), radial-gradient(60% 90% at 0% 100%, rgba(31,174,122,.5), transparent), radial-gradient(50% 60% at 60% 80%, rgba(46,230,166,.25), transparent); }
.chart-fila.n1 { background: linear-gradient(90deg, rgba(198,255,61,.22), rgba(95,240,138,.10) 50%, transparent 85%); }
.chart-fila.n1 .pos { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portada { box-shadow: 0 12px 30px rgba(0,0,0,.45), 0 0 0 2px rgba(255,255,255,.06); }
.tile:hover .portada, .card:hover .portada { box-shadow: 0 14px 34px rgba(198,255,61,.35), 0 0 0 2px rgba(198,255,61,.5); }
.bienvenida { background: radial-gradient(55% 45% at 85% 8%, rgba(198,255,61,.45), transparent 70%), radial-gradient(50% 45% at 5% 95%, rgba(31,174,122,.38), transparent 70%), radial-gradient(40% 40% at 60% 60%, rgba(46,230,166,.12), transparent 70%), var(--bg); }
.tema-play { background: var(--grad); }
.grafica { color: var(--acento); }
.badge { background: var(--grad); }

/* Pestañas de idioma en el Top */
.seg-idiomas { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px 0 4px; max-width: 100%; }
.seg-idiomas::-webkit-scrollbar { display: none; }
.seg-idiomas button { flex: none; }
.tile .idioma-rank { font: 800 13px/1 var(--body); bottom: 6px; padding: 5px 9px; border-radius: 999px; background: var(--grad); text-shadow: none; white-space: nowrap; }

/* Cambiar foto desde el perfil */
.foto-cambiar { position: relative; display: grid; justify-items: center; flex: none; }
.btn-foto { all: unset; cursor: pointer; position: absolute; bottom: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
  color: #fff; font: 700 13px var(--body); box-shadow: 0 4px 14px rgba(0,0,0,.4); white-space: nowrap; }
.btn-foto:hover { background: var(--acento); }
.btn-foto:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.btn-foto[disabled] { opacity: .7; cursor: wait; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }

/* ===================== App instalable (30 nov 2026) ===================== */
.instalar {
  position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); bottom: 18px; width: min(520px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px;
  background: rgba(24,20,32,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(198,255,61,.35); box-shadow: 0 18px 40px -12px rgba(0,0,0,.7);
}
.inst-ic img { width: 44px; height: 44px; border-radius: 11px; display: block; }
.inst-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.inst-txt b { font-size: 15px; }
.inst-txt small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.inst-x { all: unset; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); flex: none; }
.inst-x:hover { color: var(--fg); background: var(--panel-3); }
.inst-x:focus-visible { outline: 2px solid var(--azul); }
@media (min-width: 861px) { .instalar { left: auto; right: 22px; transform: none; } }
@media (max-width: 860px) { .instalar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
#btnInstalar { width: 100%; }
/* Abierta como app en el iPhone: dejar sitio a la hora y la batería */
@media (display-mode: standalone) and (max-width: 860px) {
  .lateral { padding-top: max(10px, env(safe-area-inset-top)); }
}
@media (max-width: 440px) { .instalar.con-boton .inst-txt small { display: none; } }

/* ===== Administración, moderación y textos legales ===== */
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.chat-top .chat-cab { border-bottom: 0; flex: 1; min-width: 0; }
.chat-acc { display: flex; gap: 14px; flex-shrink: 0; }
.link.muted.reportar { align-self: center; }
.motivos { display: grid; gap: 8px; margin: 14px 0; }
.dlg-reporte textarea { width: 100%; }
.legal { max-width: 760px; }
.legal-bloque { margin-top: 30px; }
.legal-bloque h3 { font-size: 17px; margin: 20px 0 6px; }
.legal-bloque p { color: var(--muted); line-height: 1.6; margin: 0; }
.legal a { word-break: break-all; }
.admin .adm-pestanas { margin: 10px 0 20px; }
.adm-cifras { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-cifras .stat { background: var(--panel-2); }
.adm-caja { background: var(--panel); border-radius: var(--r); padding: 20px; margin-top: 20px; max-width: 640px; }
.adm-caja h3 { margin: 0 0 8px; }
.adm-buscar { width: 100%; max-width: 420px; margin-bottom: 14px; }
.adm-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.adm-fila { display: grid; grid-template-columns: minmax(200px, 1.2fr) auto; gap: 10px 16px; align-items: center; background: var(--panel); border-radius: var(--r-s); padding: 12px 14px; }
.adm-fila.oculto, .adm-fila.revisado { opacity: .6; }
.adm-quien { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; min-width: 0; }
.adm-quien > span { display: flex; flex-direction: column; min-width: 0; }
.adm-quien b { display: flex; align-items: center; gap: 2px; }
.adm-quien small { color: var(--muted); }
.adm-marcas { display: flex; gap: 6px; justify-self: end; }
.adm-marcas i { font-style: normal; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 9px; background: var(--panel-3); }
.adm-marcas .m-oculto { color: #f0dfae; }
.adm-det { grid-column: 1 / -1; font-size: 14px; color: var(--muted); word-break: break-all; }
.adm-det:empty { display: none; }
.adm-acc { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.codigo-mini { font-family: ui-monospace, monospace; color: var(--fg); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--fg); color: #000; font-weight: 600; padding: 12px 18px; border-radius: 999px; z-index: 100; box-shadow: 0 8px 30px rgba(0,0,0,.4); transition: opacity .5s; max-width: calc(100% - 40px); }
.toast.error { background: #ff6b6b; }
.toast.fuera { opacity: 0; }
.acepta { margin-top: 14px; }
.pie a { color: inherit; }

/* ===== Videos del canal (editar perfil) ===== */
.videos-ed { margin-top: 14px; min-width: 0; }
.canal-ed { min-width: 0; }
.videos-ed:empty { display: none; }
.vid-cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.vid-cab span { color: var(--acento-2); font-weight: 700; font-size: 14px; }
.videos-ed .botones-mini { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.vid-lista { grid-template-columns: minmax(0, 1fr); min-width: 0; list-style: none; margin: 0; padding: 4px; max-height: 380px; overflow-y: auto; background: var(--panel); border-radius: var(--r-s); display: grid; gap: 2px; }
.vid-lista li { min-width: 0; }
.vid-fila { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; cursor: pointer; }
.vid-fila:hover { background: var(--panel-2); }
.vid-fila input { accent-color: var(--acento); width: 20px; height: 20px; flex-shrink: 0; }
.vid-fila img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--panel-3); }
.vid-txt { display: flex; flex-direction: column; min-width: 0; }
.vid-txt b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid-txt small { color: var(--muted); font-size: 12px; }
.vid-mus { font-style: normal; color: var(--oro, #ffc42e); }
.ver-todos { margin-top: 12px; }

/* ===== Idiomas: en el teléfono, lista desplegable ===== */
.lang-sel { display: none; }
@media (max-width: 860px) {
  .lateral .lang button { display: none; }
  .lateral .lang { padding: 0; background: none; }
  .lateral .lang-sel { display: block; background: var(--panel-2); color: var(--fg); border: 0; border-radius: 999px; padding: 7px 10px; font: 700 13px var(--body); }
}
.bien-top .lang-sel { display: none; }

/* ===== Tarjetas de Explorar: escuchar y colaborar ===== */
.card-w { position: relative; min-width: 0; }
.card-acc { position: absolute; top: 4px; right: 4px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.card-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; font-size: 16px; color: #fff;
  background: rgba(10,8,16,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(0,0,0,.35);
  display: grid; place-items: center; transition: transform .15s, background .15s; }
.card-btn:hover { transform: scale(1.08); background: var(--acento); }
.card-btn[data-accion="mini"] { background: var(--acento); }

/* ===== Reproductor pequeño ===== */
.mini-rep { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: min(360px, calc(100vw - 24px)); background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.mini-cab { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.mini-cab b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.mini-cab .link { font-size: 13px; }
.mini-rep iframe { display: block; width: 100%; border: 0; }
.mini-rep iframe.v169 { aspect-ratio: 16 / 9; height: auto; min-height: 200px; }   /* YouTube pide al menos 200 × 200 */
@media (max-width: 860px) { .mini-rep { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* ===== Propuesta de colaboración ===== */
.seg-colab { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; background: none; padding: 0; border-radius: 0; }
.seg-colab label span { background: var(--panel-2); }
.dlg-colab textarea, .dlg-colab input[type=url] { width: 100%; }

/* ===== Mensajes estilo Instagram ===== */
.mensajes { max-width: 640px; }
.conv-buscar { width: 100%; margin-top: 14px; border-radius: 999px !important; }
.convs { margin-top: 10px; }
.conv { padding: 10px 8px; gap: 14px; }
.av-conv { width: 56px; height: 56px; font-size: 22px; flex-shrink: 0; }
.conv-txt b { display: flex; align-items: center; gap: 2px; font-weight: 600; }
.conv-txt > span { font-size: 14px; }
.conv-txt time { color: var(--muted); font-weight: 400; }
.conv.nuevo .conv-txt b { font-weight: 800; }
.punto { width: 10px; height: 10px; border-radius: 50%; background: var(--acento); display: block; }

.chat { max-width: 760px; height: calc(100dvh - 40px); min-height: 420px; display: flex; flex-direction: column; }
.chat-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.chat-volver { font-size: 34px; line-height: 1; color: var(--fg); text-decoration: none; padding: 0 8px 4px 0; }
.chat-cab { flex: 1; min-width: 0; padding: 0; border: 0; gap: 10px; }
.chat-cab small { color: var(--muted); font-size: 12px; }
.av-chat { width: 42px; height: 42px; font-size: 18px; flex-shrink: 0; }
.chat-menu { position: relative; }
.chat-menu summary { list-style: none; cursor: pointer; font-size: 24px; padding: 4px 10px; border-radius: 10px; }
.chat-menu summary::-webkit-details-marker { display: none; }
.chat-menu summary:hover { background: var(--panel-2); }
.chat-menu-caja { position: absolute; right: 0; top: 110%; z-index: 5; min-width: 210px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px; display: grid; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.chat-menu-caja a, .chat-menu-caja button { all: unset; cursor: pointer; padding: 10px 12px; border-radius: 10px; font: 600 14px var(--body); color: var(--fg); }
.chat-menu-caja a:hover, .chat-menu-caja button:hover { background: var(--panel-3); }

.hilo { padding: 14px 2px; gap: 2px; }
.dia { align-self: center; margin: 14px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 82%; }
.msg.mia { align-self: flex-end; flex-direction: row-reverse; }
.msg.suya { align-self: flex-start; }
.msg.fin { margin-bottom: 8px; }
.msg-av { width: 28px; flex-shrink: 0; }
.msg-av .av-s { width: 28px; height: 28px; font-size: 12px; }
.msg-cuerpo { display: flex; flex-direction: column; min-width: 0; }
.msg.mia .msg-cuerpo { align-items: flex-end; }
.msg time { font-size: 11px; color: var(--muted); margin: 3px 6px 0; }
.msg .burbuja { max-width: 100%; align-self: auto; border-radius: 22px; padding: 9px 15px; background: var(--panel-3); }
.msg.suya:not(.fin) .burbuja { border-bottom-left-radius: 6px; }
.msg.mia .burbuja { background: linear-gradient(135deg, #d4ff4f, #8ef05a); color: #fff; }
.msg.mia:not(.fin) .burbuja { border-bottom-right-radius: 6px; }
.msg .burbuja.solo-arch { padding: 6px; }
.visto { align-self: flex-end; font-size: 12px; color: var(--muted); margin: -4px 4px 6px; }
.chat-vacio { margin: auto; text-align: center; display: grid; justify-items: center; gap: 8px; padding: 30px 10px; }
.chat-vacio b { display: flex; align-items: center; font-size: 20px; }

.burbuja.colab { border: 1px solid rgba(255,196,46,.45); background: linear-gradient(135deg, rgba(95,240,138,.22), rgba(31,174,122,.22)); }
.msg.mia .burbuja.colab { background: linear-gradient(135deg, #c6ff3d, #5ff08a); border: 0; }
.colab-tit { font-weight: 800; font-size: 13px; margin: 0 0 6px !important; letter-spacing: .02em; }
.colab-resp { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.arch { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 320px; background: rgba(0,0,0,.22); border-radius: 16px; padding: 8px 10px; }
.arch-ic { font-size: 26px; flex-shrink: 0; }
.arch-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.arch-txt b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arch-txt small { font-size: 12px; opacity: .75; }
.arch-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: #000; font-size: 15px; flex-shrink: 0; }
.burbuja .arch + p, .burbuja .arch-img + p { margin-top: 8px; }
.arch-audio { display: block; width: 100%; max-width: 320px; margin-top: 6px; height: 36px; }
.arch-img { all: unset; cursor: zoom-in; display: block; border-radius: 16px; overflow: hidden; min-width: 120px; min-height: 60px; }
.arch-img img { display: block; max-width: min(260px, 60vw); max-height: 320px; object-fit: cover; }

.adj-prev { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border-radius: 14px; padding: 8px 12px; margin-bottom: 8px; }
.adj-prev.subiendo { opacity: .7; }
.escribir { align-items: flex-end; gap: 8px; padding: 10px 0 calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 0; }
.escribir textarea { flex: 1; min-height: 44px; max-height: 140px; border-radius: 22px; padding: 11px 16px; resize: none; line-height: 1.35; }
.esc-adj, .esc-enviar { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; cursor: pointer; font-size: 20px; display: grid; place-items: center; }
.esc-adj { background: var(--panel-2); color: var(--fg); font-size: 24px; }
.esc-enviar { background: var(--acento); color: #fff; }
.esc-enviar:disabled { opacity: .5; }
@media (max-width: 860px) {
  .chat { height: calc(100dvh - 58px - 66px - env(safe-area-inset-bottom, 0px)); }
  .msg { max-width: 88%; }
}

/* La caja de escribir siempre a la vista, encima de las pestañas */
.escribir, .adj-prev { position: sticky; bottom: 0; background: var(--bg); z-index: 2; }
@media (max-width: 860px) { .escribir { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); padding-bottom: 8px; } .adj-prev { bottom: calc(128px + env(safe-area-inset-bottom, 0px)); } }

/* Explorar en el teléfono: dos perfiles por fila */
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } .card-btn { width: 32px; height: 32px; font-size: 14px; } .card h3 { font-size: 15px; } }

/* ===== El idioma se cambia en Configuración (no en la pantalla) ===== */
.lateral .lang, .lang-sel { display: none !important; }
.icono-top { display: none; }
@media (max-width: 860px) {
  .icono-top { display: grid; place-items: center; position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--panel-2);
    color: var(--fg); text-decoration: none; font-size: 18px; }
  .icono-top[hidden] { display: none; }
  .icono-top .badge { position: absolute; top: -4px; right: -4px; font-size: 10px; padding: 2px 5px; }
}
.ajustes { max-width: 640px; }
.aj-caja { background: var(--panel); border-radius: var(--r); padding: 20px; margin-top: 18px; }
.aj-caja .h-bloque { margin-top: 0; }
.idioma-app.on { border-color: var(--acento); background: rgba(198,255,61,.12); }

/* ===== Registro: elegir país ===== */
.paises-app { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.pais-app { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r);
  background: var(--panel); border: 2px solid var(--line); font-weight: 700; }
.pais-app:hover, .pais-app.on { border-color: var(--acento); }
.pais-bandera { font-size: 28px; line-height: 1; }
.asistente .campo-nac { display: none; }
.musica-fija { background: var(--panel-2); border-radius: 12px; padding: 10px 14px; font-weight: 600; }

/* ===== Estados (como las historias) ===== */
.estados { margin: 6px 0 18px; }
.fila-estados { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: none; }
.fila-estados::-webkit-scrollbar { display: none; }
.estado-circ { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 6px; width: 76px; flex-shrink: 0; position: relative; }
.estado-circ .av-est { width: 66px; height: 66px; font-size: 26px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--acento); }
.estado-circ:not(.visto):not(.nuevo) .av-est { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px #5ff08a, 0 0 18px rgba(198,255,61,.55); }
.estado-circ.visto .av-est { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--panel-3); }
.estado-circ.nuevo .av-est { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--panel-3); }
.estado-circ .mas { position: absolute; top: 46px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--acento); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 800; box-shadow: 0 0 0 3px var(--bg); }
.estado-circ small { font-size: 12px; color: var(--muted); max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.visor-estado { border: 0; padding: 0; margin: auto; width: min(460px, 100vw); height: min(820px, 100dvh); max-height: 100dvh; max-width: 100vw;
  background: #000; color: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.visor-estado::backdrop { background: rgba(0,0,0,.92); }
.visor-estado[open] { display: flex; }
.ve-barras { display: flex; gap: 4px; padding: 10px 10px 0; }
.ve-barras span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.ve-barras span.lleno i { display: block; width: 100%; height: 100%; background: #fff; }
.ve-barras span.activo i { display: block; height: 100%; width: 0; background: #fff; animation-name: llenarEstado; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes llenarEstado { to { width: 100%; } }
.ve-cab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ve-cab > span { flex: 1; display: flex; flex-direction: column; }
.ve-cab b { display: flex; align-items: center; }
.ve-cab small { color: rgba(255,255,255,.65); font-size: 12px; }
.ve-video { position: relative; flex: 1; display: grid; place-items: center; background: #000; }
.ve-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; pointer-events: none; }
.ve-zona { all: unset; position: absolute; top: 0; bottom: 0; width: 35%; cursor: pointer; }
.ve-zona.izq { left: 0; } .ve-zona.der { right: 0; }
.ve-texto { margin: 0; padding: 12px 16px 0; font-size: 17px; font-weight: 600; text-align: center; }
.ve-pie { display: flex; justify-content: center; gap: 10px; padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 560px) { .visor-estado { border-radius: 0; width: 100vw; height: 100dvh; } }

/* ===== «Estoy buscando» ===== */
.busq-fila { grid-auto-columns: minmax(270px, 320px) !important; }
.busq-tile, .aviso-card { background: var(--panel); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); }
.busq-tile p, .aviso-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.busq-quien { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; min-width: 0; }
.busq-quien > span { display: flex; flex-direction: column; min-width: 0; }
.busq-quien b { display: flex; align-items: center; font-size: 15px; line-height: 1.3; }
.busq-quien small { color: var(--muted); font-size: 12px; }
.av-busq { width: 48px; height: 48px; font-size: 20px; flex-shrink: 0; }
.busq-tile .botones-mini, .aviso-card .botones-mini { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.busq-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding: 16px 18px; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(198,255,61,.18), rgba(95,240,138,.14) 55%, rgba(31,174,122,.18)); border: 1px solid rgba(255,196,46,.35); }
.busq-banner p { margin: 4px 0 0; color: var(--muted); }
.contacto-btns { display: contents; }

/* ===== Avisos ===== */
.avisos { max-width: 720px; }
.avisos-lista { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 12px; }
.aviso-card.nuevo { border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento) inset; }
.aviso-card.mini { grid-template-columns: 1fr auto auto; align-items: center; }
.rep-sol iframe { width: 100%; border: 0; border-radius: 12px; display: block; }
.rep-sol iframe.v169 { aspect-ratio: 16 / 9; height: auto; }
.busq-lista { display: grid; gap: 12px; margin-bottom: 10px; }
.sol-estado { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--panel-3); white-space: nowrap; }
.sol-estado.e-aceptada { background: rgba(48,209,88,.18); color: #7ee2a0; }
.sol-estado.e-rechazada { color: var(--muted); }
.chat-permiso { text-align: center; padding: 18px 14px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--panel); border-radius: var(--r); margin-bottom: 8px; }
.chat-permiso p { margin: 0 0 12px; color: var(--muted); }
@media (max-width: 860px) { .chat-permiso { margin-bottom: 76px; } .aviso-card.mini { grid-template-columns: 1fr auto; } }
.ve-cab .av { width: 34px; height: 34px; flex: 0 0 34px; font-size: 14px; }

/* ===== Fluidez en Android, iPhone y PC ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
a, button, select, label, .chip, summary { touch-action: manipulation; }
img { -webkit-user-drag: none; }
:focus-visible { outline: 2px solid var(--azul, #4da3ff); outline-offset: 2px; }
/* El iPhone amplía la pantalla al tocar un campo con letra menor de 16 px: en pantallas táctiles, 16 px siempre */
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }
/* Listas que se deslizan: suaves y sin arrastrar la página entera */
.hilo, .vid-lista, .fila-scroll, .fila-estados, .chat-menu-caja { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.fila-scroll { scroll-snap-type: x proximity; }
.fila-scroll > * { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Chat: alto real de la pantalla (también con el teclado abierto en el iPhone) */
.chat { height: calc(var(--vvh, 100dvh) - 40px); }
@media (max-width: 860px) {
  .chat { height: calc(var(--vvh, 100dvh) - 58px - 66px - env(safe-area-inset-bottom, 0px)); }
  body.teclado { padding-bottom: 0; }
  body.teclado .tabbar, body.teclado .instalar, body.teclado #mini { display: none !important; }
  body.teclado .chat { height: calc(var(--vvh, 100dvh) - 58px); }
  body.teclado .escribir { bottom: 0; }
  body.teclado .adj-prev { bottom: 62px; }
  body.teclado .chat-permiso { margin-bottom: 8px; }
}

/* Teléfono: todo más compacto para ver lo importante sin bajar tanto */
@media (max-width: 560px) {
  h1 { font-size: clamp(30px, 9vw, 40px); }
  .artista-cab .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
  .artista-cab .stat { min-width: 0; padding: 8px 6px; text-align: center; }
  .artista-cab .stat b { font-size: 19px; }
  .artista-cab .stat span { display: block; font-size: 10.5px; line-height: 1.2; }
  .artista-cab .botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .artista-cab .botones > .btn, .artista-cab .botones .contacto-btns > .btn { width: 100%; justify-content: center; padding: 11px 8px; font-size: 14px; }
  .artista-cab .botones .reportar { justify-self: center; }
  .posiciones { gap: 6px; }
  .filtros { gap: 8px; }
  .filtros select { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .estante { margin-top: 26px; }
  .tabbar .tab { min-height: 50px; }
}

/* PC: más perfiles por fila y lecturas cómodas */
@media (min-width: 1280px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .legal, .ajustes, .avisos, .mensajes { margin-left: auto; margin-right: auto; }
}
@media (hover: hover) {
  .card-acc { opacity: .0; transition: opacity .15s; }
  .card-w:hover .card-acc, .card-w:focus-within .card-acc { opacity: 1; }
}

/* ===== Reels (videos de 1 minuto, como un feed vertical) ===== */
.reels { max-width: 480px; margin: 0 auto; }
.reels-cab { display: flex; align-items: center; gap: 10px; padding: 12px 0 10px; }
.reels-cab b { flex: 1; font-size: 22px; font-weight: 800; }
.reels-feed { height: calc(var(--vvh, 100dvh) - 110px); overflow-y: auto; scroll-snap-type: y mandatory; border-radius: 18px; background: #000;
  overscroll-behavior: contain; scrollbar-width: none; }
.reels-feed::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; background: #000; overflow: hidden; }
.reel-v { width: 100%; height: 100%; object-fit: contain; background: #000; }
.reel-tap { all: unset; position: absolute; inset: 0; cursor: pointer; }
.reel-mute { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; pointer-events: none; display: none; white-space: nowrap; }
.reel.silencio .reel-mute { display: block; }
.reel-info { position: absolute; left: 0; right: 72px; bottom: 0; padding: 70px 14px 18px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; pointer-events: none; }
.reel-info a { pointer-events: auto; color: #fff; }
.reel-info .busq-quien small { color: rgba(255,255,255,.7); }
.reel-tema { margin: 8px 0 0; font-weight: 700; font-size: 15px; }
.reel-texto { margin: 4px 0 0; font-size: 14px; opacity: .9; line-height: 1.4; }
.reel-acc { position: absolute; right: 8px; bottom: 20px; display: grid; gap: 14px; justify-items: center; }
.reel-acc button { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 3px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.reel-acc span { width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.38); display: grid; place-items: center; font-size: 20px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.reel-acc small { font-size: 11px; font-weight: 700; max-width: 64px; text-align: center; }
.reel-acc [aria-pressed="true"] span { color: var(--acento); background: rgba(255,255,255,.92); }
.reel-acc .latido span { animation: latido .35s ease; }
@keyframes latido { 50% { transform: scale(1.3); } }
.reels-vacio { height: 100%; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; color: #fff; padding: 20px; }
.reels-vacio p { margin: 0; }
.reels-vacio p:first-child { font-size: 52px; }
body.en-reels main { padding-bottom: 0; }
body.en-reels .pie { display: none; }
@media (max-width: 860px) {
  .reels-feed { height: calc(var(--vvh, 100dvh) - 58px - 66px - 58px - env(safe-area-inset-bottom, 0px)); border-radius: 14px; }
  .reels-cab { padding: 8px 0; }
}

/* Miniaturas de reels (perfil y Explorar) */
.reels-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.reel-mini { all: unset; box-sizing: border-box; cursor: pointer; position: relative; aspect-ratio: 9 / 16; background: linear-gradient(160deg, var(--panel-3), #000);
  border-radius: 10px; overflow: hidden; display: block; }
.reel-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-mini::before { content: "▶"; position: absolute; top: 8px; right: 8px; color: #fff; font-size: 12px; text-shadow: 0 1px 3px #000; }
.reel-mini span { position: absolute; left: 8px; bottom: 7px; right: 8px; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px #000;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reels-fila { grid-auto-columns: 120px !important; }

/* Ventana para subir */
.reel-elegir { margin: 6px 0 12px; display: inline-flex; }
.reel-prev video { width: 100%; max-height: 300px; border-radius: 12px; background: #000; display: block; margin-bottom: 10px; }
.reel-prev input[type=range] { width: 100%; accent-color: var(--acento); }
.reel-progreso { margin: 12px 0; }
.reel-progreso .barra { height: 8px; background: var(--panel-3); border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.reel-progreso .barra i { display: block; height: 100%; width: 0; background: var(--grad, var(--acento)); transition: width .3s; }

/* Temas que cuentan para el Top (los 5 más nuevos) */
.cuenta-top { font-style: normal; font-size: 11px; font-weight: 800; color: #000; background: var(--oro, #ffc42e); border-radius: 999px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }

/* Avisos: tu puesto esta semana */
.puesto-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 14px 0 22px; display: grid; gap: 6px; }
.puesto-card b { font-size: 20px; }
.puesto-card p { margin: 0; color: var(--muted); }
.puesto-card .eyebrow { margin: 0; }
.puesto-card.uno { background: linear-gradient(135deg, rgba(255,196,46,.22), rgba(198,255,61,.16)); border-color: rgba(255,196,46,.5); }

/* Logo de Mizikal: el mismo icono de la app junto al nombre */
.brand::before { background: url("../img/icon-192.png?v=3") center / cover no-repeat; box-shadow: none; }

/* ---------- Tu país primero y Top Mundial ---------- */
.chip-pais { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 18px 0 0; padding: 10px 16px; border-radius: 14px; background: var(--panel-2); font-size: 14px; }
.chip-pais span { font-weight: 700; }
.chip-pais a { color: var(--acento-2); font-weight: 600; text-decoration: none; margin-left: auto; }
.chip-pais .link { font-size: 14px; }
.btn-mundo { margin: 6px 0 14px; display: inline-flex; }
.mundo-q { width: 100%; max-width: 520px; margin: 10px 0 18px; }
.paises-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pais-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-3, rgba(255,255,255,.08)); color: var(--fg); text-decoration: none; transition: transform .15s, border-color .15s; }
.pais-card:hover { transform: translateY(-2px); border-color: var(--acento); }
.pais-card.mio { border-color: var(--acento); }
.pais-flag { font-size: 40px; line-height: 1; }
.pais-txt { display: grid; gap: 2px; min-width: 0; }
.pais-txt b { font-size: 16px; }
.pais-txt small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pais-txt .pais-uno { color: var(--fg); }
.mundo-pag .volver { display: inline-block; margin-bottom: 8px; text-decoration: none; }
.canciones { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.canciones li { display: grid; grid-template-columns: 34px 40px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--panel); }
.canciones li.n1 { background: linear-gradient(90deg, rgba(198,255,61,.22), var(--panel)); }
.canciones .pos { font: 900 22px/1 var(--display); text-align: center; }
.canciones .card-btn { position: static; }
.canciones .nom { display: grid; min-width: 0; }
.canciones .nom b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canciones .nom a { color: var(--muted); font-size: 13px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canciones .v { font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) { .canciones li { grid-template-columns: 26px 36px 1fr auto; gap: 8px; padding: 8px 10px; } .paises-grid { grid-template-columns: 1fr 1fr; } .pais-card { flex-direction: column; align-items: flex-start; gap: 6px; } .pais-flag { font-size: 32px; } }
/* Aviso de icono nuevo (iPhone con la app en la pantalla de inicio) */
.aviso-icono { position: fixed; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--panel-2); box-shadow: 0 12px 40px rgba(0,0,0,.5); max-width: 520px; margin: 0 auto; }
.aviso-icono img { border-radius: 13px; flex: none; }
.aviso-icono p { margin: 4px 0 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Las listas para elegir país también usan la fuente de las banderas */
select, option, input, textarea, button { font-family: var(--body); }

/* Admin: corregir datos de un perfil */
.adm-editar { list-style: none; padding: 12px 14px; margin: -4px 0 8px; border: 1px solid var(--borde, rgba(255,255,255,.12)); border-radius: 12px; background: rgba(255,255,255,.03); }
.adm-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; align-items: end; }
.adm-form > .nota, .adm-form > .botones-mini { grid-column: 1 / -1; }
.adm-form .campo { margin: 0; }

/* Estados con foto o video del teléfono */
.est-modo { margin: 4px 0 12px; }
.est-prev img, .est-prev video { width: 100%; max-height: 46vh; object-fit: contain; border-radius: 12px; background: #000; display: block; }
.ve-medio { width: 100%; height: 100%; display: grid; place-items: center; }
.ve-medio img, .ve-medio video { max-width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.ve-barras span.activo.espera i { animation-play-state: paused; }

/* =====================================================================
   Fase 3 — Diseño (v62)
   ===================================================================== */
/* Esqueletos de carga */
.esq { background: linear-gradient(100deg, rgba(255,255,255,.05) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.05) 70%);
  background-size: 300% 100%; animation: esq-brillo 1.3s ease-in-out infinite; border-radius: var(--r); }
@keyframes esq-brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }
#grid > .esq { aspect-ratio: 3 / 4; }
.esq-filas { display: grid; gap: 10px; margin-top: 14px; }
.esq-filas .esq { height: 68px; }
.esq-perfil { display: grid; grid-template-columns: minmax(140px, 260px) 1fr; gap: 24px; align-items: center; margin-top: 24px; }
.esq-perfil .esq-foto { aspect-ratio: 1; border-radius: 22px; }
.esq-txt { display: grid; gap: 14px; }
.esq-l1 { height: 44px; width: 70%; } .esq-l2 { height: 18px; width: 45%; } .esq-l3 { height: 48px; width: 60%; border-radius: 999px; }
@media (max-width: 640px) { .esq-perfil { grid-template-columns: 112px 1fr; gap: 16px; } .esq-l1 { height: 30px; } }
@media (prefers-reduced-motion: reduce) { .esq { animation: none; } }

/* Portada del N.º 1 compacta en el teléfono: foto al lado, no a pantalla completa */
@media (max-width: 640px) {
  .hero-n1-in { grid-template-columns: 112px 1fr; gap: 16px; padding: 18px; align-items: center; }
  .hero-n1 .portada { max-width: none; width: 112px; border-radius: 18px; }
  .hero-n1 h1 { font-size: clamp(28px, 8.5vw, 38px); line-height: .95; overflow-wrap: anywhere; }
  .hero-n1 .eyebrow { font-size: 11px; }
  .hero-n1 .meta { font-size: 13px; margin-top: 6px; }
  .hero-n1 .big-num { font-size: 24px; margin-top: 10px; }
  .hero-n1 .big-num small { display: block; margin: 4px 0 0; font-size: 12px; }
  .hero-n1 .botones { grid-column: 1 / -1; margin-top: 4px; }
  .hero-n1-in > div { display: contents; }
  .hero-n1-in > div > :not(.botones) { grid-column: 2; }
  .hero-n1-in > a { grid-row: 1 / span 5; align-self: start; }
  .hero-n1 .botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-n1 .botones .btn { justify-content: center; text-align: center; min-width: 0; padding-left: 10px; padding-right: 10px; font-size: 14px; white-space: normal; line-height: 1.15; }
  .estante-cab { gap: 10px; }
  .estante-cab h2 { min-width: 0; }
  .estante-cab > a, .estante-cab > button { flex: none; white-space: nowrap; }
}

/* Botones de al menos 44 px en pantallas táctiles (teléfono y tableta) */
@media (pointer: coarse) {
  .btn, .btn.small, .seg button, .card-btn, .icono-top, .user-a, .tema-play, .tema-abrir, .posicion,
  button.link, a.link, select, .btn-mundo, .btn-foto { min-height: 44px; box-sizing: border-box; }
  .card-btn, .icono-top, .tema-play, .user-a { min-width: 44px; }
  .tema-abrir { min-width: 44px; display: inline-grid; place-items: center; }
  .btn.small { padding-top: 11px; padding-bottom: 11px; }
  button.link, a.link { display: inline-flex; align-items: center; }
  .seg button { padding-top: 10px; padding-bottom: 10px; }
  .check { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; }
  .check input[type=checkbox] { width: 22px; height: 22px; }
}

/* Animaciones suaves al cambiar de pantalla */
@keyframes entra-suave { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#app > * { animation: entra-suave .22s ease-out both; }
@media (prefers-reduced-motion: reduce) { #app > * { animation: none; } }

/* Perfil en el teléfono: foto más pequeña, botones (Escuchar, Colaborar…) arriba y las posiciones en una fila deslizable */
@media (max-width: 640px) {
  .artista-cab .portada.xl { width: 132px; font-size: 56px; }
  .artista-txt { display: flex; flex-direction: column; width: 100%; }
  .artista-txt .stats { order: 1; }
  .artista-txt .botones { order: 2; margin-top: 14px; }
  .artista-txt .posiciones { order: 3; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin: 14px -16px 0; padding: 0 16px 4px; scroll-snap-type: x proximity; }
  .artista-txt .posiciones::-webkit-scrollbar { display: none; }
  .artista-txt .posicion { flex: none; scroll-snap-align: start; white-space: nowrap; }
}

/* Pantallas vacías con dibujo y un botón para seguir */
.vacio-ilus { list-style: none; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 48px 20px; margin-top: 12px;
  border: 1px dashed var(--line); border-radius: 22px; background: var(--grad-suave, var(--panel)); }
.vacio-ilus .ic { font-size: 44px; line-height: 1; }
.vacio-ilus p { margin: 0; color: var(--muted); max-width: 34ch; }

/* Selectores con opciones largas (p. ej. «¿Qué haces?») en el teléfono: cuadrícula de 2 columnas, no una píldora rota */
@media (max-width: 640px) {
  .seg-grande { display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; width: 100%; box-sizing: border-box; }
  .seg-grande label { display: grid; }
  .seg.seg-grande label span { display: grid; place-items: center; text-align: center; min-height: 44px; box-sizing: border-box; padding: 10px 8px; line-height: 1.15; border-radius: 14px; }
}
@media (pointer: coarse) { .seg label span { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; } }

/* Títulos de página iguales en el teléfono (Top y Top Mundial eran más grandes que los demás) */
@media (max-width: 640px) { .top-cab h1 { font-size: clamp(30px, 9vw, 40px); } }

/* Reproductor con cola (Fase 4) */
.mini-txt { display: grid; min-width: 0; flex: 1; }
.mini-txt b, .mini-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-txt small { color: var(--muted); font-size: 12px; }
.mini-ctrl { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.mini-b { all: unset; cursor: pointer; display: grid; place-items: center; width: 44px; height: 40px; border-radius: 12px; background: var(--panel-2, #1c1a22); font-size: 18px; }
.mini-b:hover { background: var(--panel-3, #2a2730); }
.mini-b:focus-visible { outline: 2px solid var(--azul); }
.mini-b[disabled] { opacity: .35; cursor: default; }
.mini-pos { font: 600 13px var(--body); color: var(--muted); min-width: 52px; text-align: center; }
.mini-ctrl .link { margin-left: auto; }
.top-botones { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.cab-acc { display: inline-flex; align-items: baseline; gap: 14px; flex: none; }
.cab-acc .link { color: var(--acento-2); font-weight: 600; font-size: 15px; }
.tile-btn { all: unset; cursor: pointer; display: grid; gap: 8px; color: var(--fg); }
.tile-btn:focus-visible { outline: 2px solid var(--azul); border-radius: var(--r); }
.tile-play { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; }

/* Seguir y novedades (Fase 5) */
.btn-seguir[aria-pressed="true"] { color: var(--fg); }
.nov-fila { grid-auto-columns: minmax(220px, 260px); }
.nov { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 6px; align-content: start; padding: 10px; border-radius: var(--r); background: var(--panel); color: var(--fg); text-decoration: none; min-width: 0; }
.nov:hover { background: var(--panel-2, #1c1a22); }
.nov:focus-visible { outline: 2px solid var(--azul); }
.nov b { display: flex; align-items: center; min-width: 0; font-size: 15px; }
.nov b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nov small { color: var(--muted); font-size: 12.5px; }
.nov-txt { font-size: 13.5px; color: #d8d8de; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nov-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--panel-2, #1c1a22); }
.nov-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nov-av { display: grid; place-items: center; }
.nov-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; }
.seg-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.seg-lista li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--panel); }
.seg-lista .busq-quien { min-width: 0; }

/* ===== Identidad verde lima (v66) =====
   El lima es claro: todo lo que lleva fondo de acento usa texto casi negro para que se lea. */
:root { --sobre-acento: #0b1200; }
.badge, .btn:not(.ghost):not(.claro):not(.wa):not(.plat), .chip[aria-pressed="true"], .tema-play, .esc-enviar,
.estado-circ .mas, .card-btn[data-accion="mini"], .card-btn:hover, .btn-foto:hover, .tile .idioma-rank,
.burbuja.mia, .msg.mia .burbuja, .msg.mia .burbuja.colab, .burbuja.mia a, .msg.mia .burbuja a, .video-tile:hover .video-img i { color: var(--sobre-acento); }
.btn:hover { filter: brightness(1.06); }
.msg.mia .burbuja .hora, .msg.mia .burbuja small, .burbuja.mia small { color: rgba(11,18,0,.65); }
.brand::before { box-shadow: 0 0 18px rgba(198,255,61,.35); }

/* ===== Reproductor nuevo (v66): barra fija abajo en PC, barra compacta en el móvil y pantalla completa ===== */
.rep { position: fixed; z-index: 60; left: var(--lat); right: 0; bottom: 0; background: rgba(12,13,10,.94);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-top: 1px solid var(--line); }
body.con-rep { padding-bottom: 96px; }
.rep-linea { position: absolute; left: 0; right: 0; top: -1px; height: 2px; display: none; }
.rep-linea i { display: block; height: 100%; width: 0; background: var(--acento); }
.rep-barra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 520px) minmax(0, 1fr); align-items: center; gap: 16px; height: 84px; padding: 0 16px; }
.rep-info { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; min-width: 0; border-radius: 10px; padding: 6px; }
.rep-info:focus-visible { outline: 2px solid var(--azul); }
.rep-portada { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; background: var(--panel-2); }
@media (max-width: 860px) { .rep-portada { display: none; } }
body.rep-abierto .rep-portada { display: none; }
.rep-info .mini-txt b { font-size: 15px; } .rep-info .mini-txt small { font-size: 13px; }
.rep-centro { display: grid; gap: 4px; justify-items: center; }
.rep-botones { display: flex; align-items: center; gap: 14px; }
.rep-botones .mini-b { width: 38px; height: 38px; border-radius: 50%; background: transparent; font-size: 17px; }
.rep-botones .mini-b:hover { background: var(--panel-3); }
.rep-play { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: var(--sobre-acento, #0b1200);
  font-size: 18px; box-shadow: 0 6px 22px -6px rgba(198,255,61,.7); transition: transform .15s; }
.rep-play:hover { transform: scale(1.06); } .rep-play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rep-play.pausado { padding-left: 3px; box-sizing: border-box; }
.rep-prog { display: flex; align-items: center; gap: 10px; width: 100%; font: 600 12px var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.rep-prog span { min-width: 36px; text-align: center; }
.rep input[type=range] { --pr: 0%; -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 4px; cursor: pointer; margin: 0;
  background: linear-gradient(90deg, var(--acento) var(--pr), rgba(255,255,255,.18) var(--pr)); }
.rep input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.rep input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.rep input[type=range]:focus-visible { outline: 2px solid var(--azul); outline-offset: 4px; }
.rep-der { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.rep-der .link { font-size: 13px; white-space: nowrap; }
.rep-vol { display: flex; align-items: center; gap: 6px; width: 140px; }
.rep-vol .mini-b { width: 34px; height: 34px; background: transparent; font-size: 16px; }
.rep-der #repGrande { width: 36px; height: 36px; font-size: 16px; }
/* El video siempre a la vista (YouTube lo exige): tarjeta encima de la barra */
.rep-video { position: fixed; right: 16px; bottom: 96px; width: 360px; min-height: 202px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 18px 50px rgba(0,0,0,.6); border: 1px solid var(--line); }
.rep-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.rep-cola { display: none; }
.rep input[type=range] { padding: 0; border: 0; min-height: 0; height: 4px; box-shadow: none; }
.rep-der > * { flex: none; }
.rep-der .link, .rep-der .mini-pos { display: none; }
@media (max-width: 1100px) { .rep-vol { width: 100px; } .rep-barra { grid-template-columns: minmax(0, 1fr) minmax(240px, 420px) auto; } }

/* Móvil y tablet: barra compacta encima de las pestañas */
@media (max-width: 860px) {
  .rep { left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  body.con-rep { padding-bottom: calc(66px + 80px + 212px + env(safe-area-inset-bottom, 0px)); }
  .rep-linea { display: block; top: auto; bottom: 0; }
  .rep { overflow: visible; }
  .rep-barra { grid-template-columns: minmax(0, 1fr) auto; height: 64px; padding: 0 6px 0 14px; gap: 4px; }
  /* YouTube exige que el video se vea al menos a 200 × 200: tarjeta encima de la barra */
  .rep-video { position: absolute; right: 0; bottom: calc(100% + 8px); top: auto; left: auto; width: min(358px, 100%); height: 202px; aspect-ratio: auto; border-radius: 12px; }
  .rep-info { padding: 4px 2px; } .rep-info .mini-txt b { font-size: 14px; } .rep-info .mini-txt small { font-size: 12px; }
  .rep-der #repGrande { display: none; }
  .rep-centro { grid-template-columns: auto; }
  .rep-prog, #miniAnt, .rep-vol, .rep-der .link, .rep-der .mini-pos, .rep-der #miniCerrar { display: none; }
  .rep-centro { order: 2; } .rep-der { order: 3; gap: 0; }
  .rep-barra { grid-template-columns: minmax(0, 1fr) auto auto; }
  .rep-botones { gap: 4px; }
  .rep-play { width: 40px; height: 40px; font-size: 16px; }
}

/* Reproductor abierto: pantalla completa con el video grande, controles y la cola */
body.rep-abierto { overflow: hidden; }
body.rep-abierto .rep { left: 0; right: 0; top: 0; bottom: 0; border: 0; border-radius: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center;
  padding: calc(60px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)); gap: 18px; z-index: 80;
  background: radial-gradient(80% 50% at 50% 0%, rgba(198,255,61,.16), transparent 70%), #07080a; }
body.rep-abierto .rep-linea { display: none; }
body.rep-abierto .rep-video { position: relative; inset: auto; height: auto; min-height: 202px; aspect-ratio: 16 / 9; width: min(760px, 100%); border-radius: 18px; box-shadow: 0 30px 80px -30px rgba(198,255,61,.35); flex: none; }
body.rep-abierto .rep-barra { width: min(760px, 100%); height: auto; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
body.rep-abierto .rep-info { justify-content: center; text-align: center; }
body.rep-abierto .rep-info .mini-txt b { font-size: 22px; } body.rep-abierto .rep-info .mini-txt small { font-size: 15px; }
body.rep-abierto .rep-centro { order: 0; width: 100%; }
body.rep-abierto .rep-prog { display: flex; order: -1; }
body.rep-abierto .rep-botones { gap: 26px; }
body.rep-abierto #miniAnt { display: grid; }
body.rep-abierto .rep-botones .mini-b { width: 52px; height: 52px; font-size: 22px; }
body.rep-abierto .rep-play { width: 68px; height: 68px; font-size: 26px; }
body.rep-abierto .rep-der { justify-content: center; flex-wrap: wrap; gap: 12px; }
body.rep-abierto .rep-vol, body.rep-abierto .rep-der .link, body.rep-abierto .rep-der .mini-pos { display: flex; }
body.rep-abierto .rep-der #miniCerrar { display: grid; }
body.rep-abierto .rep-der #repGrande, body.rep-abierto #repGrande { display: grid; position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; background: var(--panel-2); z-index: 2; }
body.rep-abierto .rep-cola { display: block; width: min(760px, 100%); }
.rep-cola h3 { margin: 6px 0 10px; font-size: 16px; }
.rep-cola ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rep-tema { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; border-radius: 12px; }
.rep-tema:hover { background: var(--panel-2); } .rep-tema:focus-visible { outline: 2px solid var(--azul); }
.rep-tema img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; background: var(--panel-2); }
.rep-tema span { display: grid; min-width: 0; flex: 1; }
.rep-tema b, .rep-tema small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-tema b { font-size: 14px; font-weight: 600; } .rep-tema small { color: var(--muted); font-size: 12px; }
.rep-tema.on { background: rgba(198,255,61,.10); } .rep-tema.on b, .rep-tema i { color: var(--acento); font-style: normal; }
body.teclado #mini.rep { display: none !important; }

/* ===== Perfil de artista (v67): un solo botón lima, «Seguir» con borde, cifras ligeras y lista de temas a lo ancho ===== */
.artista-hero .botones { align-items: center; gap: 10px; }
.artista-hero .botones .btn.play-grande:not(.ghost) { min-height: 52px; padding: 0 28px; font-size: 16px; font-weight: 800; box-shadow: 0 10px 30px -10px rgba(198,255,61,.75); }
.artista-hero .botones .btn:not(.play-grande):not(.wa):not(.x) { background: rgba(255,255,255,.08); color: var(--fg); box-shadow: none; border: 1px solid rgba(255,255,255,.16); }
.artista-hero .botones .btn:not(.play-grande):not(.wa):not(.x):hover { background: rgba(255,255,255,.14); }
.artista-hero .botones .btn.btn-seguir:not(.x):not(.y) { background: transparent; border: 1.5px solid rgba(255,255,255,.55); font-weight: 700; }
.artista-hero .botones .btn.btn-seguir[aria-pressed="true"]:not(.x):not(.y) { border-color: var(--acento); color: var(--acento); }
@media (min-width: 861px) {
  .artista-txt .stats { gap: 0; margin-top: 10px; }
  .artista-txt .stat { background: none; backdrop-filter: none; border-radius: 0; padding: 2px 20px 2px 0; margin-right: 20px; min-width: 0; border-right: 1px solid rgba(255,255,255,.16); }
  .artista-txt .stat:last-child { border-right: 0; margin-right: 0; }
  .artista-txt .stat b { font: 800 22px/1.1 var(--body); }
  .artista-txt .stat span { font-size: 12px; }
}
/* Lista de temas */
.perfil .temas { gap: 0; }
.perfil .tema { padding: 6px 10px; border-radius: 10px; }
.perfil .tema-fila { gap: 14px; }
.perfil .tema .mini { width: 52px; height: 52px; border-radius: 8px; }
.perfil .tema .mini img { width: 100%; height: 100%; object-fit: cover; }
.tema-n { position: relative; display: grid; place-items: center; height: 24px; }
.tema-num { font-variant-numeric: tabular-nums; }
.ecu { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.ecu i { width: 3px; background: var(--acento); border-radius: 1px; animation: ecu .9s ease-in-out infinite; }
.ecu i:nth-child(2) { animation-delay: -.3s; } .ecu i:nth-child(3) { animation-delay: -.6s; }
@keyframes ecu { 0%, 100% { height: 30%; } 50% { height: 100%; } }
body.rep-pausado .ecu i { animation-play-state: paused; }
.tema.sonando { background: rgba(198,255,61,.08); }
.tema.sonando .tema-txt b { color: var(--acento); }
.tema.sonando .tema-num { display: none; } .tema.sonando .ecu { display: flex; }
.tema.sonando .tema-play { box-shadow: 0 0 0 2px var(--acento); }
@media (prefers-reduced-motion: reduce) { .ecu i { animation: none; height: 70%; } }
@media (max-width: 860px) {
  .perfil .tema { padding: 6px 4px; }
  .perfil .tema-fila { gap: 10px; }
  .perfil .tema .mini { width: 44px; height: 44px; }
  .perfil .tema-n { width: 16px; }
  .perfil .tema-play { width: 40px; height: 40px; min-height: 40px; }
  .perfil .tema-abrir { width: 26px; }
}

/* ===== Menú lateral (v67): secciones «Menú» y «Tu música», elemento activo con barra lima ===== */
.lat-sec { margin: 14px 10px 6px; font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lat-sec:first-child { margin-top: 2px; }
.lat-sep { display: block; height: 1px; margin: 10px 10px; background: var(--line); }
button.navlink { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; font: 600 15px var(--body); color: var(--fg); }
button.navlink:focus-visible { outline: 2px solid var(--azul); }
.lat-nav .navlink { position: relative; transition: background .15s, color .15s; }
.lat-nav .navlink:hover { background: rgba(255,255,255,.06); }
.lat-nav .navlink.on { background: rgba(198,255,61,.10); color: var(--acento); }
.lat-nav .navlink.on::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acento); }

/* Página «Escuchado hace poco» */
.hist-pag .botones { margin: 14px 0 18px; }
.hist-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hist-fila { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 12px; }
.hist-fila:hover { background: var(--panel); } .hist-fila:focus-visible { outline: 2px solid var(--azul); }
.hist-fila img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; background: var(--panel-2); }
.hist-txt { display: grid; min-width: 0; flex: 1; }
.hist-txt b, .hist-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-txt b { font-weight: 600; } .hist-txt small { color: var(--muted); font-size: 13px; }
.hist-play { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); font-size: 13px; padding-left: 2px; box-sizing: border-box; }
.hist-fila:hover .hist-play, .hist-fila.on .hist-play { background: var(--acento); color: var(--sobre-acento); }
.hist-fila.on b { color: var(--acento); }
@media (max-width: 860px) { .hist-fila img { width: 76px; } .hist-fila { gap: 10px; padding: 6px 4px; } }

/* ===== Mensajes en 3 columnas en PC (v68): lista · conversación · ficha del contacto ===== */
.msj3 { display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; gap: 0; height: calc(var(--vvh, 100dvh) - 40px); min-height: 480px;
  margin-top: 16px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.02); }
body.con-rep .msj3 { height: calc(var(--vvh, 100dvh) - 40px - 96px); }
.msj3.sin-ficha { grid-template-columns: 300px minmax(0, 1fr); }
.msj-lista { display: flex; flex-direction: column; min-height: 0; padding: 16px 12px 0; border-right: 1px solid var(--line); background: rgba(0,0,0,.25); }
.msj-lista h1 { font-size: 24px; margin: 4px 6px 0; }
.msj-lista #msjConvs { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.msj-lista .conv-buscar { margin: 12px 0 6px; }
.msj-lista .convs { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px 12px; overscroll-behavior: contain; }
.msj-lista .conv { padding: 9px 8px; border-radius: 12px; }
.msj-lista .conv.on { background: rgba(198,255,61,.10); }
.msj-lista .conv.on .conv-txt b { color: var(--acento); }
.msj3 .chat { max-width: none; height: auto; min-height: 0; padding: 0 18px; }
.msj3 .chat .chat-volver { display: none; }
.msj3 .chat-top { padding: 12px 0; }
.msj-elige { display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); text-align: center; padding: 20px; }
.msj-elige .ic { font-size: 54px; filter: grayscale(.2); }
.msj-ficha { overflow-y: auto; padding: 22px 16px; border-left: 1px solid var(--line); background: rgba(0,0,0,.25); }
.ficha-cab { display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--fg); text-decoration: none; }
.ficha-cab .av-xl { width: 96px; height: 96px; font-size: 38px; }
.ficha-cab b { font-size: 18px; margin-top: 6px; } .ficha-cab small { color: var(--muted); }
.ficha-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 6px; }
.ficha-btns .btn-seguir[aria-pressed="true"] { color: var(--acento); }
.ficha-bio { color: #cfcfd6; font-size: 14px; line-height: 1.45; margin: 10px 0 0; }
.msj-ficha h3 { font-size: 14px; margin: 22px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ficha-archs { display: grid; gap: 6px; }
.ficha-arch { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel); }
.ficha-arch:hover { background: var(--panel-2); } .ficha-arch:focus-visible { outline: 2px solid var(--azul); }
.ficha-arch > span:first-child { font-size: 20px; }
.ficha-arch span:last-child { display: grid; min-width: 0; }
.ficha-arch b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha-arch small { color: var(--muted); font-size: 12px; }
.msg.resalta .burbuja { box-shadow: 0 0 0 2px var(--acento); transition: box-shadow .3s; }
@media (max-width: 1279px) { .msj3:not(.sin-ficha) { grid-template-columns: 280px minmax(0, 1fr); } .msj-ficha { display: none; } }

/* ===== Mis estadísticas (v68): tarjetas de cifras y gráficas en rejilla ===== */
.dash { padding-top: 24px; max-width: 980px; }
.dash-cab { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dash-cab > div { flex: 1; min-width: 220px; }
.dash-cab h1 { margin: 4px 0 2px; font-size: clamp(28px, 4vw, 40px); }
.dash-cab .nota { margin: 0; }
.av-dash { width: 72px; height: 72px; font-size: 28px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--acento); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 22px 0 8px; }
.kpi { position: relative; display: grid; align-content: start; gap: 4px; padding: 16px 16px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.kpi-principal { background: linear-gradient(160deg, rgba(198,255,61,.16), var(--panel) 60%); border-color: rgba(198,255,61,.35); }
.kpi-ic { position: absolute; right: 14px; top: 12px; font-size: 18px; opacity: .8; }
.kpi b { font: 800 30px/1.05 var(--body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-etq { color: var(--muted); font-size: 13px; font-weight: 600; padding-right: 22px; }
.kpi-cambio { font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.kpi-cambio.sube { color: var(--sube); } .kpi-cambio.baja { color: var(--baja); } .kpi-cambio.igual { color: var(--muted); }
.kpi-nota { font-size: 12px; color: var(--muted); }
.dash .posiciones { margin-top: 8px; }
.dash-graficas { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 22px 0 30px; }
@media (min-width: 1148px) { .dash-graficas { grid-template-columns: 1fr 1fr; } .dash-ancho { grid-column: 1 / -1; } }
.dash-graficas .grafica { border: 1px solid var(--line); }
.dash-vacia .nota { margin: 0; }
@media (max-width: 600px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi b { font-size: 24px; } .kpi { padding: 12px; } }

/* ---------- Agenda de eventos ---------- */
.ev-mes { font-size: 15px; color: var(--muted); margin: 18px 0 2px; letter-spacing: .02em; }
.ev-mes:first-child { margin-top: 0; }
.evento { display: grid; grid-template-columns: 64px 1fr; gap: 16px; background: var(--panel); border-radius: var(--r); padding: 18px 20px; transition: box-shadow .3s; }
.evento.resalta { box-shadow: 0 0 0 2px var(--acento); }
.evento h3 { font-size: 21px; margin: 2px 0 8px; letter-spacing: -.02em; }
.ev-fecha { display: grid; justify-items: center; align-content: center; gap: 0; width: 64px; height: 72px; border-radius: 14px;
  background: rgba(198, 255, 61, .1); border: 1px solid rgba(198, 255, 61, .35); color: var(--fg); line-height: 1.1; }
.ev-fecha b { font-size: 26px; font-weight: 800; color: var(--acento); }
.ev-fecha small { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.ev-artistas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.ev-art { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 5px 11px; color: var(--fg); background: var(--panel-2); text-decoration: none; }
.ev-art:hover { background: var(--acento); color: var(--sobre-acento); }
.ev-mini { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; background: var(--panel); border-radius: var(--r);
  padding: 12px 14px; color: var(--fg); text-decoration: none; min-width: 0; }
.ev-mini:hover { background: var(--panel-2); }
.ev-mini .ev-fecha { width: 56px; height: 62px; border-radius: 12px; }
.ev-mini .ev-fecha b { font-size: 22px; }
.ev-mini-txt { display: grid; gap: 3px; min-width: 0; }
.ev-mini-txt b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-mini-txt span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-lista { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 8px; }
.ev-sugs:empty { display: none; }
#evBusca { margin-top: 8px; }
#evSel:empty { display: none; }
@media (max-width: 560px) {
  .evento { grid-template-columns: 52px 1fr; gap: 12px; padding: 14px; }
  .evento > .ev-fecha { width: 52px; height: 60px; }
  .evento > .ev-fecha b { font-size: 21px; }
  .evento h3 { font-size: 18px; }
}

/* ---------- Beats ---------- */
.bt-q { flex: 1 1 200px; max-width: 320px; background: var(--panel-2); border: 0; border-radius: 999px; padding: 9px 16px; color: var(--fg); font: 500 14px var(--body); }
.bt-de { color: var(--muted); margin: 0 0 10px; }
.beats { display: grid; gap: 8px; }
.beat { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; background: var(--panel);
  border-radius: var(--r); padding: 10px 14px 10px 10px; transition: box-shadow .3s; }
.beat.resalta { box-shadow: 0 0 0 2px var(--acento); }
.beat.vendido { opacity: .6; }
.beat-play { position: relative; width: 72px; height: 72px; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, rgba(198, 255, 61, .25), rgba(95, 240, 138, .12)); }
.beat-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.beat-play i { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--acento); color: var(--sobre-acento); font-style: normal; font-size: 13px; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.beat-play:hover i { transform: scale(1.08); }
.beat-info { display: grid; gap: 3px; min-width: 0; }
.beat-info > b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beat-info > a { font-size: 13px; justify-self: start; }
.beat-datos { display: flex; flex-wrap: wrap; gap: 5px; }
.beat-datos span { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; background: var(--panel-2); color: var(--fg); }
.beat-notas { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beat-lic { display: grid; justify-items: end; gap: 4px; text-align: right; }
.beat-lic b { font-size: 15px; }
.beat-acc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) {
  .beat { grid-template-columns: 60px minmax(0, 1fr); gap: 10px 12px; }
  .beat-play { width: 60px; height: 60px; }
  .beat-lic { grid-column: 2; justify-items: start; text-align: left; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .beat-acc { grid-column: 1 / -1; justify-content: flex-start; }
  .bt-q { max-width: none; }
}

/* ---------- Planes (solo informativo) ---------- */
.planes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 20px 0 14px; }
.plan { background: var(--panel); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 8px; border: 1px solid transparent; }
.plan-actual { border-color: rgba(198, 255, 61, .5); }
.plan h2 { margin: 0; font-size: 24px; }
.plan ul { margin: 4px 0 8px; padding-left: 18px; display: grid; gap: 6px; flex: 1; }
.plan .btn { align-self: flex-start; }
.plan-tag { margin: 0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--acento); }
.plan-tag.pronto { color: var(--muted); }
.plan-precio { margin: 0; font-size: 36px; font-weight: 800; }
.plan-precio small { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-precios { list-style: none; padding: 0 !important; }
.plan-precios li { display: flex; justify-content: space-between; gap: 10px; background: var(--panel-2); border-radius: 10px; padding: 8px 12px; }
.plan-precios span { color: var(--muted); }

/* ---------- Equipo: managers y sellos ---------- */
.eq-lista { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.eq-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel); border-radius: var(--r); padding: 10px 12px; min-width: 0; }
.eq-fila .busq-quien { min-width: 0; }
.eq-acc { display: flex; align-items: center; gap: 8px; flex: none; }
#eqBusca { margin-top: 6px; }
@media (max-width: 560px) {
  .eq-fila { flex-wrap: wrap; }
  .eq-acc { width: 100%; justify-content: flex-end; }
}

/* ---------- «Me gusta» y comentarios ---------- */
.reacc { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.evento .reacc, .beat-info .reacc { margin: 2px 0 4px; }
.rx-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: var(--panel-2); color: var(--fg); border-radius: 999px;
  padding: 6px 12px; font: 600 13px var(--body); cursor: pointer; min-height: 32px; }
.rx-btn:hover { background: rgba(198, 255, 61, .14); }
.rx-like i { font-style: normal; font-size: 15px; line-height: 1; }
.rx-like b:empty { display: none; }
.rx-like[aria-pressed="true"] { color: var(--acento); background: rgba(198, 255, 61, .14); }
.rx-like[aria-pressed="true"] i { animation: rx-latido .35s ease; }
@keyframes rx-latido { 50% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .rx-like[aria-pressed="true"] i { animation: none; } }
.tema-fila .reacc .rx-btn { background: transparent; padding: 6px 8px; }
.tema-fila .reacc .rx-btn:hover { background: var(--panel-2); }
.ve-pie .reacc .rx-btn { background: rgba(255, 255, 255, .12); }
.coments { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 10px; margin-top: 4px; }
.cm-lista { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.cm-lista li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; }
.cm-lista p { margin: 0; }
.cm-autor { font-weight: 700; color: var(--fg); text-decoration: none; }
.cm-lista small { color: var(--muted); }
.cm-txt { white-space: pre-wrap; word-break: break-word; }
.cm-form { display: flex; gap: 8px; align-items: flex-end; }
.cm-form textarea { flex: 1; min-height: 44px; resize: vertical; }

/* ---------- Pedidos de licencia (Fase 6) ---------- */
.beat-acc .btn + .btn { margin-left: 0; }
.pd-beat { margin: 0 0 12px; line-height: 1.6; }
.pd-pag #segPd { margin: 6px 0 16px; }
.pd-n:empty { display: none; }
.pd-n { font-style: normal; background: var(--acento); color: #000; border-radius: 999px; padding: 1px 7px; font-size: 12px; margin-left: 4px; }
.pd-lista { display: grid; gap: 12px; }
.pedido { background: var(--panel); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; border-left: 4px solid var(--panel-3); }
.pedido.est-pendiente { border-left-color: var(--acento); }
.pedido.est-aceptado { border-left-color: var(--azul); }
.pedido.est-rechazado, .pedido.est-cancelado { opacity: .75; }
.pd-cab { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.pd-titulo { font-weight: 700; color: var(--fg); text-decoration: none; font-size: 16px; }
.pd-estado { font: 600 12px var(--body); padding: 3px 10px; border-radius: 999px; background: var(--panel-2); }
.est-pendiente .pd-estado { background: rgba(198, 255, 61, .16); color: var(--acento); }
.est-entregado .pd-estado { background: rgba(255, 255, 255, .12); }
.pd-meta, .pd-msg, .pd-resp { margin: 0; }
.pd-meta { color: var(--muted); font-size: 14px; }
.pd-msg, .pd-resp { white-space: pre-wrap; word-break: break-word; }
.pd-resp { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.pd-resp-in { width: 100%; min-height: 44px; resize: vertical; }
.pd-acc { margin: 0; flex-wrap: wrap; }
.btn .pedidos-badge { margin-left: 6px; }

/* =====================================================================
   REDISEÑO PREMIUM (v77): negro y gris carbón, verde neón, iconos de trazo,
   barra de arriba con buscador, panel de inicio y animaciones suaves.
   ===================================================================== */
:root {
  --bg: #060607;
  --panel: #101012;
  --panel-2: #17171b;
  --panel-3: #222228;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --neon: rgba(198, 255, 61, .28);
  --sombra: 0 18px 50px -24px rgba(0, 0, 0, .9);
  --suave: cubic-bezier(.2, .7, .2, 1);
}
body { background: radial-gradient(1200px 600px at 85% -10%, rgba(198,255,61,.07), transparent 60%), var(--bg); background-attachment: fixed; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }

/* Menú lateral */
.lateral { background: linear-gradient(180deg, #0c0c0e, #08080a); border-right: 1px solid var(--line); }
.lat-nav .navlink { color: #c9c9d1; font-weight: 500; position: relative; transition: background .2s var(--suave), color .2s; }
.lat-nav .navlink svg.ic { color: #8d8d97; transition: color .2s; }
.lat-nav .navlink:hover { background: rgba(255,255,255,.04); color: #fff; }
.lat-nav .navlink:hover svg.ic { color: var(--acento); }
.lat-nav .navlink.on { background: linear-gradient(90deg, rgba(198,255,61,.14), rgba(198,255,61,.02)); color: #fff; font-weight: 600; }
.lat-nav .navlink.on svg.ic { color: var(--acento); }
.lat-nav .navlink.on::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acento); box-shadow: 0 0 12px var(--acento); }
.lat-sec { color: #6d6d76 !important; letter-spacing: .14em !important; }
.icono-top { display: inline-flex; align-items: center; justify-content: center; position: relative; }

/* Barra de arriba (solo PC) */
.barra-top { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 16px; padding: 14px clamp(18px, 3vw, 40px);
  background: rgba(6,6,7,.72); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.top-buscar { flex: 1; max-width: 520px; position: relative; display: flex; align-items: center; }
.top-buscar svg.ic { position: absolute; left: 14px; width: 18px; height: 18px; color: #8d8d97; pointer-events: none; }
.top-buscar input { width: 100%; font: 500 14px var(--body); color: var(--fg); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px 11px 42px;
  transition: border-color .2s, box-shadow .2s, background .2s; }
.top-buscar input:focus { outline: none; border-color: rgba(198,255,61,.6); box-shadow: 0 0 0 4px rgba(198,255,61,.12); background: #1b1b20; }
.top-der { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-pro { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font: 700 13px var(--body); color: var(--acento); text-decoration: none;
  border: 1px solid rgba(198,255,61,.35); background: rgba(198,255,61,.06); transition: background .2s, box-shadow .2s; }
.top-pro svg.ic { width: 16px; height: 16px; }
.top-pro:hover { background: rgba(198,255,61,.14); box-shadow: 0 0 22px -6px var(--acento); }
.top-ic { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #d6d6dd; background: var(--panel-2); border: 1px solid var(--line); transition: color .2s, border-color .2s; }
.top-ic:hover { color: var(--acento); border-color: rgba(198,255,61,.4); }
.top-ic .badge { position: absolute; top: -3px; right: -3px; color: #000; }
.top-user { display: inline-flex; align-items: center; gap: 9px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); font: 600 14px var(--body); text-decoration: none; }
.top-user:hover { border-color: rgba(198,255,61,.4); }
@media (min-width: 861px) { .lat-buscar, #topAvisos { display: none !important; } }
@media (max-width: 860px) { .barra-top { display: none; } }

/* Tarjetas y botones */
.btn { transition: transform .18s var(--suave), box-shadow .25s, background .2s, color .2s, border-color .2s; }
.btn:not(.ghost):not(.claro):hover { box-shadow: 0 0 0 4px rgba(198,255,61,.12), 0 10px 30px -8px rgba(198,255,61,.55); transform: translateY(-1px); }
.btn.ghost { border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: rgba(198,255,61,.5); color: var(--acento); }
.btn:active { transform: translateY(0) scale(.98); }
.card, .evento, .beat, .pedido, .op-mini, .ev-mini, .plan, .bloque, .chart-fila, .op, .nov { border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--suave), box-shadow .25s, background .25s; }
.card:hover, .evento:hover, .beat:hover, .op-mini:hover, .ev-mini:hover, .plan:hover { border-color: rgba(198,255,61,.28); box-shadow: var(--sombra), 0 0 0 1px rgba(198,255,61,.06); }
.card:hover, .op-mini:hover, .ev-mini:hover { transform: translateY(-3px); }
.estante { margin-top: 38px; }
.estante-cab h2 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -.02em; }
.estante-cab a, .estante-cab .link { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.estante-cab a:hover, .estante-cab .link:hover { color: var(--acento); }

/* Saludo del panel */
.dash-saludo { margin-top: 26px; }
.dash-saludo h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.dash-saludo p { color: var(--muted); margin: 6px 0 0; }

/* Destacado + artistas populares */
.dash-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 22px; margin-top: 22px; align-items: stretch; }
.dash-top .hero-n1 { margin-top: 0; background: linear-gradient(120deg, #1a2a06 0%, #0f1a0a 45%, #0b0b0d 100%); border: 1px solid rgba(198,255,61,.18); }
.dash-top .hero-n1-in { grid-template-columns: 1fr minmax(160px, 240px); background: none; height: 100%; }
.dash-top .hero-n1-in > a { order: 2; }
.dash-top .hero-n1 h1 { font-size: clamp(32px, 4vw, 54px); }
.dash-top .hero-n1 .portada { box-shadow: 0 0 0 6px rgba(198,255,61,.12), 0 30px 60px -20px rgba(198,255,61,.45); }
.chip-tend { display: inline-block; background: var(--acento); color: #000; -webkit-text-fill-color: #000; border-radius: 999px; padding: 4px 10px; margin-right: 8px; letter-spacing: .06em; }
.dash-lado { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; }
.dash-lado .estante-cab { margin-bottom: 8px; }
.lado-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lado-lista li { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 6px 8px; transition: background .2s; }
.lado-lista li:hover { background: rgba(255,255,255,.04); }
.lado-lista a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; }
.lado-lista .portada { width: 44px; height: 44px; font-size: 18px; box-shadow: none; flex: none; }
.lado-txt { min-width: 0; display: grid; }
.lado-txt b { display: flex; align-items: center; gap: 4px; font-size: 14px; min-width: 0; }
.lado-txt b > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lado-txt small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lado-play { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #000; background: var(--acento); opacity: .0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.lado-play svg.ic { width: 14px; height: 14px; fill: currentColor; }
.lado-lista li:hover .lado-play, .lado-play:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .lado-play { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .dash-top { grid-template-columns: 1fr; } }

/* Tarjetas de canción (imagen grande) */
.fila-scroll.canciones { grid-auto-columns: minmax(210px, 240px); }
.cancion { all: unset; cursor: pointer; display: grid; gap: 4px; min-width: 0; }
.cancion-img { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 6px; }
.cancion-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--suave), filter .3s; }
.cancion-img i { position: absolute; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: #000;
  box-shadow: 0 8px 24px -6px rgba(198,255,61,.7); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--suave); }
.cancion-img i svg.ic { width: 16px; height: 16px; fill: currentColor; }
.cancion:hover .cancion-img img, .cancion:focus-visible .cancion-img img { transform: scale(1.06); filter: brightness(.8); }
.cancion:hover .cancion-img i, .cancion:focus-visible .cancion-img i { opacity: 1; transform: none; }
@media (hover: none) { .cancion-img i { opacity: 1; transform: none; width: 36px; height: 36px; } }
.cancion b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cancion small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pestañas del teléfono con iconos de trazo */
.tabbar .tab svg.ic { width: 22px; height: 22px; }
.tabbar .tab.on svg.ic { filter: drop-shadow(0 0 6px rgba(198,255,61,.55)); }

/* Hoja «Más» del teléfono */
.hoja-mas { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 82vh; border: 0; border-top: 1px solid var(--line-2); border-radius: 22px 22px 0 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: #0d0d10; color: var(--fg); animation: sube .28s var(--suave); }
.hoja-mas::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.hoja-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mas-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow-y: auto; }
.mas-nav .lat-sec, .mas-nav .lat-sep { grid-column: 1 / -1; margin: 10px 4px 2px; font-size: 11px; text-transform: uppercase; color: #6d6d76; }
.mas-nav .navlink { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); font: 600 14px var(--body); text-decoration: none; }
.mas-nav .navlink svg.ic { color: var(--acento); }
.mas-nav .navlink.on { border-color: rgba(198,255,61,.45); }
.mas-nav button.navlink { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font: 600 14px var(--body); }
.mas-nav .badge { margin-left: auto; color: #000; }
@keyframes sube { from { transform: translateY(40px); opacity: 0; } }

/* Entrada suave de cada página */
#app > * { animation: entra .4s var(--suave) both; }
#app > *:nth-child(2) { animation-delay: .04s; }
#app > *:nth-child(3) { animation-delay: .08s; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { #app > *, .hoja-mas { animation: none; } .cancion-img img, .card, .btn { transition: none; } }
.top-buscar svg.ic { z-index: 1; }
.dash-top .btn.claro { background: var(--acento); color: #000; border-color: var(--acento); box-shadow: 0 10px 30px -10px rgba(198,255,61,.7); }
.dash-top .btn.claro:hover { background: var(--acento-2); }
.top-buscar svg.ic { z-index: 1; }
.dash-top .btn.claro { background: var(--acento); color: #000; border-color: var(--acento); box-shadow: 0 10px 30px -10px rgba(198,255,61,.7); }
.dash-top .btn.claro:hover { background: var(--acento-2); }
.barra-top #topQ { padding: 11px 16px 11px 42px; min-height: 0; }
@media (min-width: 861px) {
  :root { --alto-top: 69px; }
  .buscador { top: var(--alto-top); }
  .chat-top { top: var(--alto-top); }
  .dash-top .hero-n1 { box-shadow: 0 24px 60px -40px rgba(198,255,61,.45); }
}
@media (min-width: 861px) {
  .msj3 { height: calc(var(--vvh, 100dvh) - 40px - var(--alto-top)); }
  .chat:not(.msj3 .chat) { height: calc(var(--vvh, 100dvh) - 40px - var(--alto-top)); }
}

/* Mizikal Pro (planes) */
.pl-pag { text-align: center; }
.pl-pag > .nota { max-width: 620px; margin-inline: auto; }
.pl-pag h1 { font-size: clamp(34px, 4.5vw, 52px); background: linear-gradient(90deg, #fff, var(--acento)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pl-pag .planes-grid { margin-top: 26px; text-align: left; }
.plan { border-radius: 22px; background: linear-gradient(180deg, #131316, #0c0c0e); }
.plan-precio { font: 900 44px/1 var(--display) !important; }
.plan-pro { border-color: rgba(198,255,61,.45) !important; background: radial-gradient(120% 70% at 50% 0%, rgba(198,255,61,.13), transparent 60%), linear-gradient(180deg, #121a08, #0b0c08) !important;
  box-shadow: 0 0 0 1px rgba(198,255,61,.12), 0 30px 70px -30px rgba(198,255,61,.45); }
.plan-pro h2 { color: var(--acento); }
.plan li::marker { color: var(--acento); }
@media (max-width: 640px) {
  .dash-top .hero-n1-in { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .dash-top .hero-n1-in > a { order: 0; }
  .dash-top .hero-n1 .portada.xl, .dash-top .hero-n1 .portada { width: 112px; font-size: 44px; max-width: 112px; }
  .dash-top .hero-n1 h1 { font-size: 34px; }
  .dash-saludo { margin-top: 18px; }
  .dash-lado { padding: 16px; border-radius: 18px; }
  .fila-scroll.canciones { grid-auto-columns: minmax(180px, 200px); }
}
.dash-top .hero-n1-in > a { grid-row: auto; }
@media (max-width: 640px) { .dash-top .hero-n1 .botones .btn { flex: 0 1 auto; padding-left: 18px; padding-right: 18px; border-radius: 999px; } }
@media (max-width: 640px) { .dash-top .hero-n1-in > div { display: block; } .dash-top .hero-n1-in > div > * { grid-column: auto; } .dash-top .hero-n1 .botones { margin-top: 16px; } }

/* Títulos de página con icono */
.h-ico { display: flex; align-items: center; gap: 14px; }
.h-ico-c { flex: none; width: clamp(44px, 5vw, 56px); height: clamp(44px, 5vw, 56px); border-radius: 16px; display: grid; place-items: center; color: var(--acento);
  background: radial-gradient(circle at 30% 20%, rgba(198,255,61,.22), rgba(198,255,61,.05)); border: 1px solid rgba(198,255,61,.3); box-shadow: 0 0 30px -10px rgba(198,255,61,.6); }
.h-ico-c svg.ic { width: 55%; height: 55%; }

/* Iconos pequeños dentro de botones y datos (v80) */
svg.ib { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; margin-right: .38em; }
.card-btn svg.ib, .tema-abrir svg.ib, .reel-acc svg.ib, .link.muted > svg.ib:only-child { margin-right: 0; }
.reel-acc span svg.ib { width: 22px; height: 22px; }
.op-datos svg.ib { color: var(--acento); }
.btn svg.ib { vertical-align: -.22em; }

/* Estados vacíos con icono (v81) */
.ilus-c { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: var(--acento);
  background: radial-gradient(circle at 50% 35%, rgba(198,255,61,.16), rgba(198,255,61,.04)); border: 1px solid rgba(198,255,61,.22); box-shadow: 0 0 34px rgba(198,255,61,.12); }
.ilus-c svg.ic { width: 34px; height: 34px; }
.msj-elige .ilus-c { margin: 0 auto 6px; }
p.vacio { text-align: center; border: 1px dashed #2f2f35; border-radius: 16px; background: rgba(255,255,255,.015); padding: 30px 18px; }
.vacio-grande { background: linear-gradient(180deg, #141416, #0c0c0d); border: 1px solid #26262b; border-radius: 22px; padding: 56px 24px; margin-top: 24px; }
.vacio-grande p { color: var(--muted); font-size: 17px; }

/* Títulos de bloque con icono (v82) */
.h-bloque svg.ib { color: var(--acento); width: .95em; height: .95em; vertical-align: -.12em; margin-right: .45em; }

/* Top Mundial y Planes con iconos (v83) */
.top-cat svg.ib, .estante-cab h2 svg.ib, .planes h2 svg.ib, .plan h2 svg.ib { color: var(--acento); }
.top-cab h1.h-ico { margin: 0; }

/* Más iconos de línea (v84) */
.kpi-ic svg.ic { width: 22px; height: 22px; color: var(--acento); }
.busq-banner svg.ib, .puesto-card svg.ib, .completa-card svg.ib, .nov-item small svg.ib { color: var(--acento); }
.rx-btn svg.ib { margin-right: .3em; }

/* v85: el icono de «Tendencia» va en negro sobre el verde */
.chip-tend svg.ib { color: currentColor; width: 1em; height: 1em; margin-right: .3em; }

/* v86: foco del teclado y campos en verde de la marca (el azul queda solo para la insignia) */
html body :focus-visible { outline-color: var(--acento) !important; }
input:focus, textarea:focus, select:focus,
.buscador input[type=search]:focus, .lat-buscar input:focus, .barra-top #topQ:focus {
  border-color: var(--acento); box-shadow: 0 0 0 3px rgba(198, 255, 61, .14); }
::selection { background: rgba(198, 255, 61, .32); color: #fff; }
input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus, select:focus { border-color: rgba(198, 255, 61, .7); }

/* v88: banda para crear perfil (visitantes sin perfil) */
.cta-banda { display: flex; align-items: center; gap: 22px; margin: 22px 0 8px; padding: 22px 26px; border-radius: 22px;
  background: linear-gradient(110deg, rgba(198,255,61,.13), rgba(198,255,61,.03) 55%, #111113); border: 1px solid rgba(198,255,61,.25); }
.cta-banda .cta-txt { flex: 1; min-width: 0; }
.cta-banda .eyebrow { margin: 0 0 4px; }
.cta-banda h2 { margin: 0 0 4px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.15; }
.cta-banda .cta-txt > p:last-child { margin: 0; color: var(--muted); }
.cta-banda .btn { flex: none; }
@media (max-width: 640px) {
  .cta-banda { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .cta-banda .btn { width: 100%; justify-content: center; }
}

/* v89: iconos de la bienvenida */
.bien-ic svg.ic { width: 22px; height: 22px; color: var(--acento); }

/* v91: página de Ayuda */
.ayuda { max-width: 1100px; }
.ayuda .hero-p { color: var(--muted); max-width: 60ch; }
.ayuda-indice { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.ayuda-indice a { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid #26262b; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color .2s, color .2s; }
.ayuda-indice a:hover { border-color: rgba(198,255,61,.5); color: var(--acento); }
.ayuda-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ayuda-caja { background: linear-gradient(180deg, #141416, #0e0e10); border: 1px solid #26262b; border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: calc(var(--alto-top, 0px) + 16px); }
.ayuda-caja h2 { display: flex; align-items: center; gap: 12px; font-size: 19px; margin: 0 0 4px; }
.ayuda-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--acento); background: rgba(198,255,61,.08); border: 1px solid rgba(198,255,61,.2); }
.ayuda-caja ul { margin: 0; padding-left: 18px; color: #d6d6dc; display: grid; gap: 6px; flex: 1; }
.ayuda-caja li::marker { color: var(--acento); }
.ayuda-caja .btn { align-self: flex-start; margin-top: 8px; }
.ayuda-contacto { margin: 28px 0 10px; padding: 22px 24px; border-radius: 20px; border: 1px dashed #2f2f35; }
.ayuda-contacto h2 { margin: 0 0 6px; font-size: 20px; }
.ayuda-contacto p { margin: 0 0 8px; color: var(--muted); }
@media (max-width: 640px) { .ayuda-grid { grid-template-columns: 1fr; } .ayuda-caja { padding: 18px; } }
.ayuda-caja ul { align-content: start; }

/* v93 — Agenda: cartel del próximo evento · Beats: los más gustados */
.ev-top { margin: 18px 0 8px; display: block; }
.ev-top .hero-n1 h1 { font-size: clamp(30px, 4.6vw, 56px); overflow-wrap: anywhere; }
.ev-top .hero-n1 .meta svg.ib { color: var(--acento); }
.ev-hero-fecha { order: 2; justify-self: center; }
.ev-hero-fecha .ev-fecha { transform: scale(1.8); transform-origin: center; }
.bt-cuerpo { display: block; }
.bt-cuerpo.con-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.bt-top { background: var(--panel); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 16px; position: sticky; top: 84px; }
.bt-top .h-bloque { margin: 0 0 12px; font-size: 17px; }
.bt-top ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bt-top li { display: grid; grid-template-columns: 18px 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.bt-top-n { font: 800 15px var(--display); color: var(--acento); text-align: center; }
.bt-top-play { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 0; padding: 0; background: #1a1d22; cursor: pointer; color: #fff; }
.bt-top-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-top-play i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .2s; }
.bt-top-play:hover i, .bt-top-play:focus-visible i { opacity: 1; }
.bt-top-txt { min-width: 0; display: grid; }
.bt-top-txt b, .bt-top-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-top-txt small { color: var(--muted, #9aa0a6); }
.bt-top-lk { color: var(--acento); font-weight: 700; font-size: 13px; }
@media (max-width: 1599px) { .bt-cuerpo.con-top { grid-template-columns: 1fr; } .bt-top { position: static; order: -1; } .bt-top ol { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }

/* v94 — fichas de género (Beats) y de mes (Agenda) */
.chips.fichas { margin: 4px 0 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.fichas::-webkit-scrollbar { display: none; }
.chips.fichas .chip { white-space: nowrap; border: 1px solid rgba(255,255,255,.08); transition: color .2s, border-color .2s, background .2s; }
.chips.fichas .chip:hover { border-color: rgba(198,255,61,.45); }
.chips.fichas .chip[aria-pressed="true"] { background: var(--acento); color: #0b0b0d; border-color: var(--acento); }

/* v96 — Perfil: las cifras caben en una fila (etiquetas largas en dos líneas) */
@media (min-width: 861px) {
  .artista-txt .stats { row-gap: 10px; }
  .artista-txt .stat { flex: 0 1 auto; padding-right: 16px; margin-right: 16px; }
  .artista-txt .stat span { display: block; max-width: 13ch; line-height: 1.25; margin-top: 4px; }
}
@media (min-width: 861px) and (max-width: 1279px) {
  .artista-txt .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
  .artista-txt .stat { border-right: 0; margin-right: 0; padding-right: 0; }
}
/* v96 — Configuración: idiomas en cuadrícula */
.idiomas-app { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.idiomas-app .idioma-app { margin: 0; text-align: center; justify-content: center; }

/* v97 — Perfil de artista: dos columnas en PC y plataformas con icono */
.plat::before { display: none; }
.plat { gap: 8px; border: 1px solid rgba(255,255,255,.08); }
.plat svg.ib { width: 1.25em; height: 1.25em; color: var(--acento); }
.plat-youtube svg.ib { color: #ff3355; } .plat-spotify svg.ib { color: #1ed760; }
.plat-apple svg.ib { color: #fa57c1; } .plat-tiktok svg.ib { color: #25f4ee; }
.plat:hover { border-color: rgba(198,255,61,.45); }
@media (min-width: 1200px) {
  .perfil { max-width: 1280px; }
  .perfil-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
  .perfil-lado { display: grid; gap: 16px; position: sticky; top: 84px; margin-top: 28px; }
  .perfil-lado .bloque { margin: 0; background: var(--panel); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 18px; }
  .perfil-lado .h-bloque { font-size: 18px; margin-top: 0; }
  .perfil-lado .plataformas { display: grid; gap: 8px; }
  .perfil-lado .plat { justify-content: flex-start; width: 100%; padding: 10px 14px; font-size: 14px; }
  .perfil-lado .plat .ib:last-child { margin-left: auto; opacity: .6; }
  .perfil-lado .acerca-dl { grid-template-columns: auto 1fr; }
  .perfil-lado .botones { flex-direction: column; align-items: stretch; }
  .perfil-lado .botones .btn { justify-content: flex-start; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1200px) and (max-width: 1599px) { .perfil-main ol.temas { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1200px) {
  .perfil-lado .acerca-dl { grid-template-columns: 1fr; gap: 0; font-size: 14px; }
  .perfil-lado .acerca-dl dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-top: 12px; }
  .perfil-lado .acerca-dl dt:first-child { margin-top: 0; }
  .perfil-lado .bio { font-size: 14px; line-height: 1.55; }
}

/* v98 — Perfil: canciones más vistosas y barra fija del móvil */
.perfil ol.temas .tema { border-bottom: 0; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.perfil ol.temas .tema:hover { border-color: rgba(255,255,255,.08); }
.perfil ol.temas .tema.sonando { border-color: rgba(198,255,61,.35); }
.perfil .tema-n { width: 28px; }
.perfil .tema-num { font: 800 16px var(--display); color: var(--muted); }
.perfil ol.temas .tema:nth-child(-n+3) .tema-num { color: var(--acento); font-size: 20px; }
.perfil .tema .mini { box-shadow: 0 8px 20px -10px rgba(0,0,0,.8); }
@media (min-width: 861px) { .perfil .tema .mini { width: 60px; height: 60px; border-radius: 10px; } .perfil .tema-txt b { font-size: 16px; } }
.perfil-barra { display: none; }
@media (max-width: 860px) {
  .perfil-barra { display: flex; position: fixed; left: 0; right: 0; top: 64px; z-index: 29; align-items: center; gap: 10px; padding: 8px 14px;
    background: rgba(11,11,13,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
  .perfil-barra.ver { opacity: 1; visibility: visible; transform: none; }
  .perfil-barra .portada { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; font-size: 15px; }
  .perfil-barra b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
  .perfil-barra .btn { flex: none; min-height: 38px; padding: 0 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .perfil-barra { transition: none; } }

/* v99 — Mis estadísticas: 6 cifras en 2 filas iguales de 3 */
@media (min-width: 861px) { .kpis:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* v99 — Editar perfil: cada apartado en su tarjeta */
#fPerfil:not(.asistente) .paso { background: var(--panel); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: clamp(16px, 2.4vw, 24px); margin-top: 18px; }
#fPerfil:not(.asistente) .paso > .h-bloque:first-child { margin-top: 0; }
/* v99 — Editar perfil: «Guardar perfil» siempre a mano, pegado abajo (encima del reproductor y de las pestañas) */
#fPerfil:not(.asistente) > .botones:has(#edGuardar) { position: sticky; bottom: 0; z-index: 6; margin: 18px -12px 0; padding: 12px; border-radius: 16px;
  background: rgba(11,11,13,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.08); }
body.con-rep #fPerfil:not(.asistente) > .botones:has(#edGuardar) { bottom: 96px; }
@media (max-width: 860px) {
  #fPerfil:not(.asistente) > .botones:has(#edGuardar) { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); margin-left: 0; margin-right: 0; }
  body.con-rep #fPerfil:not(.asistente) > .botones:has(#edGuardar) { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  body.teclado #fPerfil:not(.asistente) > .botones:has(#edGuardar) { bottom: 0; }
}

/* v100 — Bienvenida con fotos a pantalla completa que se deslizan */
.bienvenida { place-items: end start; padding: clamp(22px, 5vw, 64px); background: #08080a; isolation: isolate; }
.bien-fotos { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #08080a; }
.bien-foto { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.1);
  transition: opacity 1.4s ease, transform 7.5s ease-out; }
.bien-foto.on { opacity: 1; transform: scale(1); }
.bien-velo { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,8,10,.94) 0%, rgba(8,8,10,.72) 38%, rgba(8,8,10,.18) 75%, rgba(8,8,10,.35) 100%),
              linear-gradient(0deg, rgba(8,8,10,.85) 0%, transparent 45%),
              radial-gradient(45% 40% at 10% 100%, rgba(198,255,61,.22), transparent 70%); }
.bienvenida .bien-caja { max-width: 640px; }
.bienvenida .bien-top { margin-bottom: clamp(18px, 5vh, 48px); }
.bienvenida .bien-caja h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: .98; text-shadow: 0 6px 40px rgba(0,0,0,.5); }
.bienvenida .bien-p { color: rgba(255,255,255,.82); margin-bottom: 22px; }
.bien-pie { display: flex; gap: 14px; align-items: center; max-width: 460px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,.07); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12); }
.bien-pie .bien-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(198,255,61,.14); }
.bien-pie b { display: block; font-size: 16px; color: #fff; }
.bien-pie span:last-child { color: rgba(255,255,255,.75); font-size: 14px; }
.bien-pie.entra { animation: bienEntra .6s ease both; }
@keyframes bienEntra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bien-puntos { display: flex; gap: 8px; margin: 14px 0 24px; }
.bien-puntos button { all: unset; cursor: pointer; position: relative; width: 26px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.28); overflow: hidden; transition: width .3s; }
.bien-puntos button[aria-current] { width: 54px; }
.bien-puntos button[aria-current]::after { content: ""; position: absolute; inset: 0; background: var(--acento); transform-origin: left; animation: bienBarra 5.5s linear both; }
.bien-puntos button:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
@keyframes bienBarra { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 640px) {
  .bienvenida { place-items: end stretch; padding: 20px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .bien-velo { background: linear-gradient(0deg, rgba(8,8,10,.97) 0%, rgba(8,8,10,.86) 48%, rgba(8,8,10,.25) 78%, rgba(8,8,10,.45) 100%); }
  .bienvenida .bien-top { margin-bottom: auto; }
  .bienvenida .bien-caja h1 { font-size: clamp(34px, 10vw, 46px); }
  .bienvenida .bien-p { font-size: 16px; margin: 10px 0 16px; }
  .bien-pie { padding: 12px; } .bien-pie .bien-ic { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .bien-foto { transition: opacity .3s; transform: none; } .bien-foto.on { transform: none; }
  .bien-puntos button[aria-current]::after { animation: none; transform: none; } .bien-pie.entra { animation: none; }
}
@media (max-width: 640px) {
  .bienvenida .bien-top { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); left: 18px; margin: 0; }
  .bien-velo { background: linear-gradient(0deg, rgba(8,8,10,.98) 0%, rgba(8,8,10,.92) 42%, rgba(8,8,10,.25) 64%, rgba(8,8,10,.05) 84%, rgba(8,8,10,.55) 100%); }
  .bienvenida .bien-caja h1 { font-size: clamp(32px, 9vw, 42px); }
  .bienvenida .bien-p { font-size: 15px; }
  .bien-puntos { margin: 12px 0 18px; }
  .bienvenida .bien-caja > .nota.pequena { font-size: 12px; margin-top: 10px; }
}
@media (max-width: 640px) {   /* encuadre de cada foto en vertical */
  .bien-foto:nth-child(1) { background-position: 68% center; }
  .bien-foto:nth-child(3) { background-position: 40% center; }
  .bien-foto:nth-child(4) { background-position: 55% 80%; }
  .bien-foto:nth-child(5) { background-position: 60% center; }
}
@media (min-width: 641px) and (max-width: 1100px) and (orientation: portrait) {
  .bien-foto:nth-child(1) { background-position: 75% center; }
  .bien-foto:nth-child(3) { background-position: 40% center; }
  .bien-foto:nth-child(4) { background-position: 55% 80%; }
  .bien-foto:nth-child(5) { background-position: 60% center; }
  .bien-velo { background: linear-gradient(0deg, rgba(8,8,10,.97) 0%, rgba(8,8,10,.85) 40%, rgba(8,8,10,.2) 70%, rgba(8,8,10,.45) 100%); }
}

/* v101 — Bienvenida en vertical (teléfonos y tabletas): la foto se ve COMPLETA arriba,
   con una copia borrosa de la misma foto rellenando el fondo, y el texto debajo */
.bien-fondo { display: none; }
@media (orientation: portrait) and (max-width: 1100px) {
  .bien-fondo { display: block; position: absolute; inset: -60px; background-size: cover; background-position: center;
    filter: blur(42px) brightness(.38) saturate(1.3); transition: background-image .9s ease; }
  .bien-foto { inset: 0 0 auto 0; height: 62.5vw; background-size: cover !important; background-position: center !important; transform: none !important;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
  .bien-velo { background: linear-gradient(180deg, rgba(8,8,10,.55) 0, transparent 96px, transparent calc(62.5vw - 70px), rgba(8,8,10,.55) 62.5vw, rgba(8,8,10,.8) 100%) !important; }
  .bienvenida { place-items: start stretch; padding: calc(62.5vw + 6px) clamp(18px, 5vw, 48px) calc(24px + env(safe-area-inset-bottom, 0px)); }
  .bienvenida .bien-top { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: clamp(16px, 4vw, 40px); margin: 0; }
  .bienvenida .bien-caja { max-width: 680px; }
  .bienvenida .eyebrow { margin-top: 0; }
}
@media (orientation: portrait) and (max-width: 1100px) and (prefers-reduced-motion: reduce) { .bien-fondo { transition: none; } }
@media (orientation: portrait) and (max-width: 1100px) {
  .bienvenida { place-items: end stretch; }
  .bien-fondo { filter: blur(40px) brightness(.6) saturate(1.4); }
  .bien-velo { background: linear-gradient(180deg, rgba(8,8,10,.5) 0, transparent 96px, transparent calc(62.5vw - 70px), rgba(8,8,10,.35) 62.5vw, rgba(8,8,10,.6) 75%, rgba(8,8,10,.85) 100%) !important; }
}
