/* Escáner QR */
.scanbox { position: relative; width: 100%; aspect-ratio: 1; max-height: 70vh; margin: 12px 0; border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: #000; }
.scanbox[hidden] { display: none; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; }
.scanframe { position: absolute; inset: 14%; border: 4px solid var(--yellow); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); animation: pulse2 1.6s infinite; }
@keyframes pulse2 { 50% { border-color: var(--teal); } }
[hidden] { display: none !important; }

/* Código de canje */
.code-box { background: var(--bg); border: 3px dashed var(--yellow); border-radius: 14px; padding: 12px; text-align: center; margin: 12px 0; }
.code-box b { display: block; font-size: 2rem; letter-spacing: .15em; color: var(--yellow); }

/* Noticias */
.news-card { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 14px 0; overflow: hidden; }
.news-card img { width: 100%; max-height: 200px; object-fit: cover; display: block; border-bottom: 3px solid var(--line); }
.news-card .news-body { padding: 14px 16px; }
.news-card.big { border-color: var(--yellow); }
.news-card.big h2 { font-size: 1.35rem; }

/* Navegación de 6 elementos en móvil */
.nav a { font-size: .6rem; padding: 8px 0 10px; letter-spacing: .02em; }
.nav a span { font-size: 1.3rem; }
#app { padding-bottom: 120px; }

/* Oferta de la semana: discreta, sin competir con el contenido */
.offer { display: flex; gap: 12px; align-items: center; margin: 22px 0 6px; padding: 10px 12px; border: 2px dashed rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.03); }
.offer img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); flex: none; }
.offer-body { min-width: 0; }
.offer-body b { display: block; margin: 4px 0 2px; }
.offer-body .btn.small { margin-top: 6px; }

/* Bloques */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; }
.chip { flex: none; padding: 7px 14px; border: 3px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 800; font-size: .85rem; }
.chip.on { background: var(--yellow); color: #2a1a00; }
.cdot { display: inline-block; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 3px solid var(--line); box-shadow: 2px 2px 0 var(--line); background-image: linear-gradient(135deg, rgba(255,255,255,.35), transparent 60%); }
.block-head { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.block-head .grow { flex: 1; min-width: 0; }
.block { padding: 14px; }
.block p { margin: 4px 0; }
.status-row { gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.status-row .btn { flex: 1 1 140px; margin: 0; }
.friends-line { color: var(--teal); font-weight: 800; }
.block-photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; border: 3px solid var(--line); margin-bottom: 12px; }
.qr-img { display: block; margin: 12px auto; background: #fff; padding: 8px; border-radius: 12px; border: 3px solid var(--line); }
textarea { resize: vertical; }
@media (min-width: 560px) { .nav a { font-size: .68rem; } }

/* Avisos del rocódromo: comunicación directa, prioridad visual sobre las novedades */
.notice { margin: 14px 0 6px; padding: 14px; border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #000), color-mix(in srgb, var(--brand) 45%, #000)); color: #fff; position: relative; overflow: hidden; }
.notice > h2 { font-size: 1rem; margin-bottom: 8px; letter-spacing: .08em; }
.notice article img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; border: 3px solid var(--line); margin-bottom: 10px; display: block; }
.notice h3 { font-size: 1.25rem; margin: 6px 0 4px; line-height: 1.15; }
.notice .small { opacity: .85; }
.notice-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 10px; }
.notice-full { white-space: pre-wrap; word-break: break-word; margin: 0 0 6px; }
.notice .btn.small { margin-top: 4px; }
.news-h { font-size: .95rem; margin: 22px 0 0; color: var(--muted); }

/* Navegación inferior de 5 botones, cómoda para el pulgar */
.nav a { font-size: .7rem; padding: 10px 0 12px; letter-spacing: .02em; }
.nav a span { font-size: 1.55rem; margin-bottom: 3px; }

/* Comunidad */
.search-bar { display: flex; gap: 8px; margin: 12px 0 6px; }
.search-bar input { flex: 1; }
.sec-h { font-size: 1rem; margin: 22px 0 8px; }
.friend-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.friend { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--card); border: 3px solid var(--line); border-radius: 16px;
  box-shadow: 3px 3px 0 var(--line); color: inherit; text-decoration: none; min-height: 68px; }
.friend .grow { flex: 1; min-width: 0; }
.mini-badges { display: flex; gap: 4px; flex-wrap: wrap; font-size: 1.15rem; margin-top: 2px; }
.feed li { align-items: flex-start; }
.feed a { color: var(--yellow); }
.feed .avatar { width: 40px; height: 40px; }

/* Perfil de otro usuario: pantalla completa */
.fs { position: fixed; inset: 0; z-index: 60; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at 20% -10%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 55%), var(--bg); padding: 0 18px 40px; }
.fs-back { position: relative; z-index: 2; display: inline-flex; align-items: center; margin: 10px 0 0; padding: 12px 20px; min-height: 48px;
  background: var(--yellow); color: #2a1a00; border: 3px solid var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--line);
  font: inherit; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.fs-body { max-width: 520px; margin: 0 auto; text-align: center; padding-top: 14px; }
.fs-avatar { background: none; border: 0; padding: 0; cursor: zoom-in; }
.fs-avatar .avatar { width: min(62vw, 240px); height: auto; filter: drop-shadow(5px 5px 0 var(--line)); }
.fs-body h1 { margin-top: 8px; font-size: 2rem; text-transform: none; }
.avatar-viewer { position: fixed; inset: 0; z-index: 90; background: rgba(8,8,8,.97); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px; }
.avatar-viewer .fs-back { position: absolute; top: 14px; left: 14px; margin: 0; }
.av-big svg, .av-big img { width: min(90vw, 62vh); height: auto; aspect-ratio: 1; display: block; filter: drop-shadow(6px 6px 0 #000); }
.av-big img { object-fit: cover; border-radius: 22%; border: 4px solid var(--line); }
.av-name { font-size: 1.4rem; font-weight: 900; margin: 0; }
.av-close { width: min(90vw, 360px); }

/* Ficha de bloque */
.chips-static { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.comments { border-color: var(--yellow); }
.comments > h2 { font-size: 1.1rem; margin-bottom: 10px; }
.comments textarea { min-height: 64px; }

/* Aviso de solicitudes en la navegación */
.nav a span { position: relative; display: block; width: fit-content; margin: 0 auto 3px; }
.nav-badge { position: absolute; top: -4px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff;
  font-style: normal; font-size: .7rem; font-weight: 900; line-height: 18px; text-align: center; border: 2px solid var(--line); font-family: var(--mono); }

.warn-card { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 10%, var(--card)); }
/* Solicitudes pendientes y resultados */
.sec-h.hl { color: var(--yellow); }
.card.req { border-color: var(--yellow); }
.req-item { display: block !important; }
.req-item .grid2 { margin-top: 10px; }
.friend-results { margin-top: 6px; }
.friend-results .friend { margin-bottom: 8px; }

/* Elegir avatar (registro y editor) */
.avpick { display: flex; align-items: center; gap: 14px; }
.regav .avatar { width: 76px; height: 76px; display: block; }
.regav img.avatar { border-radius: 22%; border: 3px solid var(--line); object-fit: cover; }
.avpick-btns { display: grid; gap: 8px; flex: 1; }
.avpick-btns .btn { margin: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 14px 8px; cursor: pointer;
  background: var(--bg); color: var(--ink); border: 3px solid var(--line); border-radius: 18px; box-shadow: 4px 4px 0 var(--line); font: inherit; text-align: center; }
.tile:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.tile .t-ico { font-size: 2.6rem; line-height: 1; }
.tile b { text-transform: uppercase; letter-spacing: .08em; }
.tile small { color: var(--muted); }
.tile:nth-child(2) { background: color-mix(in srgb, var(--yellow) 18%, var(--bg)); }

/* 📌 Tablón */
.post { padding: 14px; margin: 10px 0; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head .grow { flex: 1; min-width: 0; }
.post-head a { color: inherit; }
.post-body { white-space: pre-wrap; word-break: break-word; margin: 10px 0 8px; font-size: 1.02rem; }
.post-foot { display: block; margin-top: 6px; padding-top: 8px; border-top: 2px dashed rgba(255,255,255,.12); color: var(--yellow); font-weight: 800; font-size: .9rem; text-decoration: none; }
.warn-line { color: var(--yellow); margin: 8px 0 0; }
.composer { border-color: var(--yellow); margin-top: 6px; }
.composer textarea { min-height: 60px; }

/* Escalada real: contadores destacados */
.climb-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 6px; }
.climb-nums:has(.climb-num:only-child) { grid-template-columns: 1fr; }
.climb-num { text-align: center; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #000)); color: #fff;
  border: 3px solid var(--line); border-radius: 16px; box-shadow: 4px 4px 0 var(--line); padding: 14px 6px; }
.climb-num b { display: block; font-family: var(--mono); font-size: 2.9rem; line-height: 1; }
.climb-num span { display: block; margin-top: 6px; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.card.climb-nums { background: none; border: 0; box-shadow: none; padding: 0; }
.secondary .stat b { font-size: 1.35rem; }
.secondary .stat span { font-size: .68rem; }

/* Pestañas Bloques | Vías */
.seg { display: flex; gap: 6px; margin: 8px 0 12px; }
.seg a, .seg button { flex: 1; text-align: center; text-decoration: none; padding: 10px 6px; border: 3px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--ink); font: inherit; font-weight: 900; font-size: .85rem; cursor: pointer; }
.seg .on { background: var(--yellow); color: #2a1a00; }
.seg.big a { padding: 14px 6px; font-size: .95rem; }

/* Conseguido */
.done-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.done-badge { flex: 1; text-align: center; padding: 12px; border: 3px solid var(--line); border-radius: 12px; background: var(--teal); color: #0a2a22;
  font-weight: 900; letter-spacing: .08em; text-transform: uppercase; box-shadow: 3px 3px 0 var(--line); }
.linklike { background: none; border: 0; color: var(--muted); font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 8px; }
.auto-note { color: var(--teal); font-weight: 700; }

/* Gráfica de actividad */
.bars { display: flex; align-items: stretch; gap: 2px; height: 150px; margin: 12px 0 4px; }
.bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar-col i { display: block; width: 100%; background: var(--brand); border-radius: 3px 3px 0 0; }
.bar-col i.zero { background: rgba(255,255,255,.18); }
.bar-col.today i.zero { background: var(--yellow); }
.bar-val { font-size: .62rem; font-family: var(--mono); font-weight: 900; min-height: 12px; color: var(--yellow); }
.bar-col small { font-size: .58rem; color: var(--muted); min-height: 12px; margin-top: 3px; }
.nav a { font-size: .62rem; }

/* Navegación superior (sólo en Inicio) */
.topnav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 14px; }
.topnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; font-size: .62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em; text-align: center; line-height: 1.1; color: var(--ink); text-decoration: none;
  background: var(--card); border: 3px solid var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--line); position: relative; }
.topnav a span { font-size: 1.5rem; line-height: 1; position: relative; }
.topnav a[aria-current=page] { background: var(--brand); color: #fff; }
.topnav .nav-badge { position: absolute; top: -6px; right: -10px; }
.notice .notice-text { -webkit-line-clamp: 2; }

.gente-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; }
.gente-box .btn { margin: 0; width: auto; flex: none; }

.react-bar { display: inline-flex; gap: 6px; margin-top: 6px; }
.react-bar button { font-size: 1.25rem; line-height: 1; padding: 4px 9px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; opacity: .75; }
.react-bar button[aria-pressed=true] { background: var(--brand); opacity: 1; transform: scale(1.08); }
.modal .list li { flex-wrap: wrap; }
.pending-note { display: block; margin: 8px 0; padding: 10px 14px; border: 3px solid var(--line); border-radius: 14px; background: var(--brand);
  color: #fff; font-weight: 800; text-decoration: none; box-shadow: 3px 3px 0 var(--line); }

/* Inicio: menú principal 2 × 2 */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.menu-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 130px;
  padding: 16px 8px; text-align: center; text-decoration: none; color: var(--ink); background: var(--card); border: 3px solid var(--line);
  border-radius: var(--radius); box-shadow: 5px 5px 0 var(--line); }
.menu-card:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--line); }
.menu-card .mc-ico { font-size: 2.8rem; line-height: 1; }
.menu-card b { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1; }
.menu-card:nth-child(1) { background: color-mix(in srgb, var(--brand) 30%, var(--card)); }
.menu-card:nth-child(2) { background: color-mix(in srgb, var(--yellow) 22%, var(--card)); }
.menu-card .nav-badge { position: absolute; top: 8px; right: 10px; }
.bio { margin: 6px 0 4px; font-size: 1.05rem; max-width: 30ch; margin-inline: auto; overflow-wrap: anywhere; }
.social-card { text-align: left; width: 100%; margin-top: 12px; }
.social-card h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }

/* Perfil: apodo editable */
.nickrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.nickrow h1 { margin: 0; overflow-wrap: anywhere; }
.icon-btn { background: var(--card); border: 2px solid var(--line); border-radius: 12px; font-size: 1.1rem; line-height: 1; padding: 6px 8px; cursor: pointer; box-shadow: 2px 2px 0 var(--line); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.nickform { width: 100%; max-width: 300px; margin: 12px auto 0; text-align: center; }
.nickform input { font-size: 16px; text-align: center; width: 100%; }
.nickform .grid2 { margin-top: 8px; }

/* Campo de contraseña con ojo + ayudas del login */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 52px; font-size: 16px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-width: 44px; min-height: 40px; background: transparent; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink); }
.pw-eye[aria-pressed=true] { filter: none; }
.auth-help { margin: 14px 0 6px; line-height: 2; }
.auth-help a { font-weight: 800; }
.auth-help .linklike { font-size: .9rem; }

/* ===== V2 · Bloques y vías: tarjeta compacta, actividad y ficha viva ===== */
.block.compact { padding: 12px; margin-bottom: 12px; }
.block.compact .block-head { min-height: 48px; }
.block.compact .block-head b { font-size: 1.15rem; }
.st-chip { flex: none; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; padding: 5px 9px; border: 2px solid var(--line); border-radius: 99px; background: var(--card); white-space: nowrap; }
.st-chip.sent { background: color-mix(in srgb, var(--teal) 35%, var(--card)); }
.st-chip.trying { background: color-mix(in srgb, var(--yellow) 30%, var(--card)); }
.act { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 2px !important; font-weight: 800; font-size: .95rem; }
.act small { font-weight: 600; color: var(--muted); font-size: .72rem; }
.status-row .btn, .done-row .linklike { min-height: 46px; }
.status-row .btn { font-size: .88rem; }
.done-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; min-height: 46px; }
.more-filters { margin: 2px 0 10px; }
.more-filters summary { cursor: pointer; font-weight: 800; font-size: .85rem; color: var(--muted); padding: 10px 2px; min-height: 44px; display: flex; align-items: center; }
.more-filters .sel { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.more-filters select { width: 100%; min-height: 46px; font-size: 16px; margin-top: 4px; }
.chip { min-height: 44px; display: inline-flex; align-items: center; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: .95rem; text-decoration: none; color: var(--muted); }
.ficha .row { align-items: center; gap: 12px; }
.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.act-box { border: 3px solid var(--line); border-radius: 14px; background: var(--bg); padding: 10px 4px; text-align: center; }
.act-box b { display: block; font-size: 1.2rem; }
.act-box span { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; line-height: 1.15; margin-top: 2px; }
.comments .ops { margin: 10px 0; }
.op { align-items: flex-start; }
.op .op-text { margin: 4px 0 0; font-size: 1.02rem; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.op.gente { border-left: 5px solid var(--teal); padding-left: 10px; }
.gente-tag { font-size: .95rem; }
.op-empty { text-align: center; padding: 8px 0 12px; }
.icon-act { flex: none; min-width: 44px; min-height: 44px; background: transparent; border: 0; font-size: 1.15rem; cursor: pointer; color: var(--ink); }
.comments .btn { margin-top: 8px; }
.nav a span .ico-svg { display: block; }

/* ===== V2 · Inicio compacto y Comunidad ===== */
.home .notice { margin: 8px 0 10px; padding: 12px; }
.home .notice > h2 { font-size: .9rem; margin-bottom: 6px; }
.home .notice h3 { font-size: 1.1rem; margin: 2px 0; }
.home .notice article img { max-height: 110px; margin-bottom: 6px; }
.home .notice-text { margin: 0 0 8px; -webkit-line-clamp: 2; }
.home .notice .btn.small { min-height: 44px; }
.news-compact { display: flex; align-items: center; gap: 12px; padding: 12px; text-decoration: none; color: inherit; margin: 0 0 12px; }
.news-compact img { width: 64px; height: 64px; border-radius: 12px; border: 3px solid var(--line); object-fit: cover; flex: none; }
.news-compact .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.news-compact b { font-size: 1.05rem; line-height: 1.15; }
.happening h2 { font-size: 1rem; margin-bottom: 4px; letter-spacing: .06em; }
.happening .friend { min-height: 56px; }
.ac-ico { font-size: 1.5rem; width: 40px; text-align: center; flex: none; }
.home-prog .hello-s { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.home-prog .stat-line { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 8px; font-size: 1rem; }
.home-prog .stat-line b { font-size: 1.25rem; }
.session-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 3px dashed var(--line); }
.session-cta .btn { margin: 0; white-space: nowrap; flex: none; min-height: 48px; }
.session-cta p { margin: 2px 0 0; }
.mini-cards { margin-top: 12px; align-items: stretch; }
.mini { display: block; padding: 12px; text-decoration: none; color: inherit; margin: 0; min-height: 110px; }
.mini h3 { font-size: .95rem; margin-bottom: 6px; }
.mini p { margin: 4px 0; }
.sub-h { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.hot-row { min-height: 56px; }
.act-mini { font-weight: 800; font-size: .85rem; white-space: nowrap; }
.blk-link { font-weight: 800; }
.find-row { margin-top: 12px; }
.find-row .btn { min-height: 48px; margin: 0; }
#find { margin-top: 10px; }
.sec-h { margin: 22px 0 8px; }
.retro-note { background: color-mix(in srgb, var(--yellow) 14%, var(--bg)); border: 2px dashed var(--yellow); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.partner { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 12px; margin-top: 8px; opacity: .92; }
.partner p { margin: 2px 0 0; }

/* ===== V2 · Perfil (identidad) separado de Ajustes de cuenta ===== */
.fs-avatar.sm .avatar { width: 120px; height: 120px; }
.profile .hero { text-align: center; }
.profile .bio { margin: 6px auto 10px; max-width: 32ch; overflow-wrap: anywhere; }
.shortcuts { margin: 12px 0; }
.shortcuts .btn { min-height: 52px; padding: 8px 4px; font-size: .78rem; margin: 0; }
.settings { padding: 0; }
.settings > summary { cursor: pointer; padding: 16px; font-weight: 900; list-style: none; min-height: 52px; display: flex; align-items: center; }
.settings > summary::-webkit-details-marker { display: none; }
.settings[open] > summary { border-bottom: 3px dashed var(--line); }
.settings .set-block { padding: 14px 16px 4px; }
.settings .set-block h3 { margin: 0 0 6px; font-size: .95rem; }
.settings .danger-zone { border-top: 3px dashed var(--line); margin-top: 12px; padding-bottom: 16px; }
.settings .btn { margin-bottom: 8px; min-height: 48px; }

/* ===== V2 · UX móvil (390×844, una mano) ===== */
/* Avisos emergentes abajo, encima de la navegación: ya no tapan títulos ni cabeceras */
.toast-wrap { top: auto; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.toast { animation-name: pop-up; }
@keyframes pop-up { from { transform: scale(.6) translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
/* Zonas táctiles de al menos 44px */
.btn.small, .linklike, .icon-btn, .react-bar button, .seg a, .seg button, .chip, .pw-eye, .icon-act { min-height: 44px; }
.btn.small { padding-top: 10px; padding-bottom: 10px; }
.react-bar button { min-width: 48px; font-size: 1.35rem; }
.react-bar { gap: 8px; }
.icon-btn { min-width: 44px; }
.linklike { padding: 12px 8px; }
.seg a, .seg button { display: flex; align-items: center; justify-content: center; }
/* Navegación inferior con iconos SVG: cuatro pestañas, etiquetas en una línea */
.nav a { white-space: nowrap; font-size: .72rem; }
.nav a span { margin-bottom: 2px; }
.nav a .ico-svg { width: 28px; height: 28px; }
/* Contadores y textos que se partían o se cortaban */
.climb-num span, .stat span { text-wrap: balance; letter-spacing: .03em; overflow-wrap: anywhere; }
.card h2, .card h3, .view h1 { overflow-wrap: anywhere; }
.back-link { margin-bottom: 4px; }

/* Inicio: todo más denso para que quepa lo importante en ~1,3 pantallas */
.home .notice article { display: flex; gap: 10px; align-items: flex-start; }
.home .notice article img { width: 56px; height: 56px; max-height: none; margin: 0; flex: none; object-fit: cover; }
.home .notice-body { min-width: 0; }
.home .notice h3 { font-size: 1.05rem; }
.home .notice-text { font-size: .9rem; -webkit-line-clamp: 1; margin-bottom: 4px; }
.home .notice > .btn.small { margin-top: 4px; }
.happening { padding: 12px 14px; }
.happening .friend { border: 0; box-shadow: none; background: none; padding: 8px 0; min-height: 52px; }
.happening .list li + li { border-top: 2px dashed var(--line); }
.happening .friend b { font-size: .98rem; line-height: 1.2; }
.happening .friend .small { margin: 2px 0 0; }
.chips { scrollbar-width: none; padding: 2px 0 8px; }
.chips::-webkit-scrollbar { display: none; }
.act-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.act-row .act { margin: 4px 0 !important; }
.more-filters { margin: 0 0 8px; }
.more-filters summary { min-height: 40px; padding: 6px 2px; }
.block.compact { margin-bottom: 10px; }
button.back-link { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; padding: 0; }

/* ===== V2.1 · Bloques y vías más compacto ===== */
.blocks-view h1 { font-size: 1.5rem; margin: 4px 0 6px; }
.blocks-view .seg { margin: 4px 0 8px; }
.blocks-view .seg.big a { padding: 10px 6px; font-size: .9rem; }
.blocks-view form.row { margin: 6px 0 !important; }
.blocks-view .chips { padding: 0 0 6px; }
.more-filters { border: 3px solid var(--line); border-radius: 14px; background: var(--card); margin: 0 0 10px; box-shadow: 3px 3px 0 var(--line); }
.more-filters summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; padding: 6px 14px; min-height: 44px; font-weight: 800; font-size: .92rem; color: var(--ink); }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters .caret { font-style: normal; font-size: 1.1rem; transition: transform .15s; }
.more-filters[open] .caret { transform: rotate(180deg); }
.more-filters[open] summary { border-bottom: 3px dashed var(--line); }
.more-filters > .chips, .more-filters > .grid2 { padding: 10px 12px 12px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.block.compact { padding: 8px 10px; margin-bottom: 8px; }
.block.compact .block-head { min-height: 44px; gap: 10px; }
.block.compact .block-head b { font-size: 1.08rem; }
.block.compact .block-head .small { margin: 0; }
.block.compact .act { margin: 2px 0 !important; font-size: .88rem; gap: 2px 12px; }
.block.compact .status-row { margin-top: 6px; gap: 8px; flex-wrap: nowrap; }
.block.compact .status-row .btn { flex: 1 1 0; min-height: 44px; padding: 8px 6px; font-size: .84rem; white-space: nowrap; }
.act-row .linklike { min-height: 44px; padding: 8px; }
/* Estado del autor de una opinión: pequeño y secundario */
.state-tag { display: inline-block; font-size: .72rem; font-weight: 800; line-height: 1; padding: 4px 8px; border: 2px solid var(--line); border-radius: 99px; background: var(--bg); margin: 3px 0 0; white-space: nowrap; }
.state-tag.ok { background: color-mix(in srgb, var(--teal) 22%, var(--bg)); }
.state-tag.try { background: color-mix(in srgb, #d9a066 24%, var(--bg)); }
/* Ficha de otra persona */
.person-hero { text-align: center; padding-top: 18px; }
.person-hero h1 { margin: 8px 0 2px; }
.person-hero .rel { margin: 10px 0 2px; }
.person-hero .rel .btn { width: 100%; }
.person .list .friend { min-height: 52px; }
#op-form { scroll-margin-bottom: 120px; }
.field-err { color: #ff9a8f; font-weight: 800; font-size: .85rem; margin: 4px 2px 0; }
[aria-invalid=true] { border-color: #ff6b5e !important; }
.home .notice-text { -webkit-line-clamp: 2; }
.list li > a.friend, .list li > .friend { flex: 1 1 auto; min-width: 0; }

/* V2.2 · Botones de estado: nunca se recortan ("LO HE CONSE…"). Si no caben a la vez, bajan de línea; el texto puede
   partirse en dos líneas; objetivo táctil ≥ 44 px; sin depender de la tipografía del sistema. */
.status-row, .block.compact .status-row { flex-wrap: wrap; }
.status-row .btn, .block.compact .status-row .btn {
  flex: 1 1 148px; min-width: 0; min-height: 48px; height: auto; white-space: normal; overflow: visible; text-overflow: clip;
  overflow-wrap: break-word; line-height: 1.15; padding: 10px 8px; font-size: .86rem; letter-spacing: 0;
}
/* «Me ha servido»: botón secundario bajo la opinión, sin contador */
.helpful { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; padding: 8px 12px; border: 2px solid var(--line);
  border-radius: 99px; background: var(--bg); color: inherit; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.helpful.on { background: color-mix(in srgb, var(--teal) 24%, var(--bg)); }
.age { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--muted); margin-left: 4px; }
/* Está dando que hablar · Novedades · La idea del bloque */
li.talk { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.talk .op-text { margin: 4px 0; }
.talk-btn { margin-top: 6px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.novelties .small { margin: 2px 0 0; }
.idea .op-text { margin: 6px 0; }
.idea-admin { gap: 12px; flex-wrap: wrap; }
.idea textarea, .idea input { width: 100%; margin: 6px 0; }

/* V2.3 · Novedades que cuentan algo, «Me ha servido» discreto, señal en la propia opinión e invitación al conseguir */
.novelties .nov .op-text { margin: 4px 0 0; font-size: .96rem; line-height: 1.3; }
.novelties .nov-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.novelties .nov-meta .state-tag { margin: 0; }
.novelties .nov-meta .age { margin-left: 0; }
.nov-more { display: block; width: 100%; min-height: 44px; text-align: center; margin-top: 2px; }
.helped { margin: 6px 0 0; font-weight: 800; color: color-mix(in srgb, var(--teal) 70%, var(--text, #fff)); }
.helpful.quiet { min-width: 44px; justify-content: center; padding: 8px; margin: 2px 0 0 -8px; background: none; border-color: transparent; opacity: .72; font-size: 1rem; }
.helpful.quiet.on { opacity: 1; border-color: var(--line); background: color-mix(in srgb, var(--teal) 24%, var(--bg)); }
.invite-op { text-align: center; }
.invite-op .invite-emoji { font-size: 2.4rem; margin: 0; line-height: 1; }
.invite-op h2 { margin: 6px 0 10px; }
.invite-op p { margin: 4px 0; }
.invite-op .btn { width: 100%; min-height: 48px; }
.invite-op .btn:first-of-type { margin-top: 14px; }

/* V3 · Descubrir, recomendación, vida del bloque */
.eyebrow { margin: 0 0 6px; font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.hero-block { border-color: var(--brand); }
.hb-head { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-height: 44px; }
.hb-head b { font-size: 1.3rem; line-height: 1.15; }
.hb-why { margin: 6px 0 2px; font-weight: 800; color: var(--teal); font-size: .9rem; }
.hero-block .btn { margin-top: 10px; }
.intro p { margin: 6px 0 12px; }
.disc-sec { margin-bottom: 6px; }
.disc-link { margin: 4px 0 10px; }
.new-tag { font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.life { padding-top: 12px; padding-bottom: 12px; }
.life-line { margin: 0; font-weight: 700; }
.life .gente-box { margin-top: 8px; }
.prog-h { margin: 0; font-size: 1.05rem; }
.gente-feed .friend b:last-of-type { white-space: normal; }
.hello-line { display: flex; align-items: center; gap: 10px; margin: 2px 2px 10px; font-size: 1rem; }
.badges-card summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; }
/* V3 · objetivos táctiles ≥ 44 px también en enlaces de texto y cabeceras de tarjeta */
a.linklike { display: inline-flex; align-items: center; min-height: 44px; }
.block-head { min-height: 44px; }
.blk-link { position: relative; }
.blk-link::after { content: ""; position: absolute; inset: -13px -4px; }
.pts-mini { font-size: .8rem; font-weight: 700; color: var(--muted); }
.empty-line { margin: 4px 2px 10px; }

/* Rediseño sobrio de Inicio: fondo carbón uniforme, un único acento de marca, botones de navegación con icono lineal */
html, body { background: #131313; }
body { background-image: none; }
.home-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 8px; }
.nav-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 104px; padding: 16px 14px;
  background: #1c1c1c; border: 1px solid #2e2e2e; border-radius: 16px; color: #ececec; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background .12s, border-color .12s, transform .08s; }
.nav-tile.wide { grid-column: 1 / -1; min-height: 76px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
.nav-tile:active { background: #262626; border-color: var(--brand); transform: scale(.985); }
.nav-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nav-tile-top { display: inline-flex; }
.nav-tile-ico { display: block; color: var(--brand); }
.nav-tile-label { font-weight: 700; font-size: .98rem; line-height: 1.2; }
.nav-tile-alert { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff;
  font: 800 .8rem/20px system-ui, sans-serif; font-style: normal; text-align: center; }
.home .hero-block, .home .intro { background: #1a1a1a; border: 1px solid #2e2e2e; box-shadow: none; border-radius: 16px; }
.home .hero-block { border-color: color-mix(in srgb, var(--brand) 65%, #2e2e2e); }
.nav { background: #171717; border-top: 1px solid #2a2a2a; box-shadow: none; }
.nav a { color: #8d8d8d; }
.nav a[aria-current=page] { color: var(--brand); }

#app { position: relative; z-index: 1; }

/* V4.1 · Fondo de TODAS las pantallas: fotografía de escalada muy atenuada (sobre carbón) + velo oscuro plano. */
#app::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url(/static/img/wall-bg.webp) center / cover no-repeat; opacity: .8; }
#app::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: rgba(19, 19, 19, .4); }
@media (min-width: 900px) { #app::before { background-position: center 35%; } #app::after { background: rgba(19, 19, 19, .55); } }
@media (prefers-reduced-data: reduce) { #app::before { display: none; } }
/* Un único acento (el del rocódromo) y textos secundarios neutros en Inicio y en la barra inferior: fuera los restos lila */
.home, .nav { --muted: #9d9d9d; }
.home .hb-why { color: var(--ink); font-weight: 700; }
.nav a { color: #9d9d9d; }
.nav a[aria-current=page] { color: var(--brand); }
