/* ==========================================================================
   App del Mago — sistema visual "estudio profesional"
   Sobrio, editorial, premium. Inter (interfaz) + Fraunces (títulos).
   Claro y oscuro. Sin brillos ni esquinas de juguete.
   ========================================================================== */

:root {
  /* Claro */
  --bg: #f4f2ec;
  --bg-2: #eceae2;
  --surface: #ffffff;
  --surface-2: #f6f4ee;
  --ink: #1b1922;
  --ink-soft: #565060;
  --ink-faint: #928c9c;
  --line: rgba(20, 16, 30, 0.10);
  --line-2: rgba(20, 16, 30, 0.06);
  --brand: #9a7a2e;          /* latón sobrio */
  --brand-press: #7f6323;
  --on-brand: #fbf8ef;
  --accent: #7a3b4a;         /* burdeos apagado */
  --ok: #2e7d5b;
  --warn: #b07d22;
  --danger: #b23b3b;
  --shadow: 0 1px 2px rgba(20, 15, 10, 0.05), 0 6px 18px rgba(20, 15, 10, 0.06);
  --shadow-lg: 0 8px 24px rgba(20, 15, 10, 0.10);
  --radius: 14px;
  --radius-sm: 10px;
  --tap: 50px;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
}

:root[data-theme="dark"] {
  --bg: #0f0e13;
  --bg-2: #0a090d;
  --surface: #17161d;
  --surface-2: #201e28;
  --ink: #ecebf1;
  --ink-soft: #a7a3b4;
  --ink-faint: #6f6b7c;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.05);
  --brand: #d0af5e;          /* latón cálido, no neón */
  --brand-press: #b9963f;
  --on-brand: #17130a;
  --accent: #c98494;
  --ok: #67c39a;
  --warn: #d8ab55;
  --danger: #e5807c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e13; --bg-2: #0a090d; --surface: #17161d; --surface-2: #201e28;
    --ink: #ecebf1; --ink-soft: #a7a3b4; --ink-faint: #6f6b7c;
    --line: rgba(255,255,255,0.09); --line-2: rgba(255,255,255,0.05);
    --brand: #d0af5e; --brand-press: #b9963f; --on-brand: #17130a;
    --accent: #c98494; --ok: #67c39a; --warn: #d8ab55; --danger: #e5807c;
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.32);
    --shadow-lg: 0 14px 40px rgba(0,0,0,0.5);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

html { height: 100%; }
body {
  margin: 0; height: 100%;
  overflow: hidden; overscroll-behavior: none;
  font-family: var(--ui);
  font-size: 16px; line-height: 1.5;
  color: var(--ink); background: var(--bg);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
input, textarea, select { user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; font-family: inherit; }

.app {
  position: relative; height: 100%; max-width: 860px; margin: 0 auto;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: none;
  padding: calc(16px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right))
           calc(96px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
}
/* Legibilidad: las pantallas de texto se limitan; las anchas (rejillas) no */
.screen { animation: fade .3s ease; max-width: 720px; margin: 0 auto; }
.screen.wide { max-width: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Iconos SVG (línea) */
.i { width: 22px; height: 22px; display: inline-block; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.i-sm { width: 18px; height: 18px; }

/* Marca / emblema de relleno (pica + destello) */
.mk { width: 22px; height: 22px; display: inline-block; vertical-align: middle; flex: 0 0 auto; color: var(--brand); }
.appbar .brandmark .mk, .tbbrand .mk { width: 26px; height: 26px; color: var(--brand); }
.splash .logo .mk { width: 76px; height: 76px; }
.gate-hero .logo .mk { width: 78px; height: 78px; }
.lock .lk .mk { width: 56px; height: 56px; }
.empty .big .mk { width: 64px; height: 64px; color: var(--brand); }
.gate-hero .tagline { font-family: var(--display); font-style: italic; font-weight: 500; color: var(--brand); font-size: 15.5px; margin: 4px 0 6px; letter-spacing: .01em; }

/* ---------- App bar ---------- */
.appbar { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; min-height: 40px; }
.appbar .brandmark { display: flex; align-items: center; gap: 9px; }
.appbar .brandmark .i { width: 26px; height: 26px; color: var(--brand); stroke-width: 1.6; }
.appbar .wm { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.appbar .spacer { flex: 1; }
.pagetitle { display: none; font-family: var(--display); font-weight: 600; margin: 0; }
.iconbtn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.iconbtn:active { transform: scale(.94); }
.iconbtn.on { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }

.pagehead { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; }
.pagehead .back {
  width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center;
}
.pagehead .back:active { transform: scale(.94); }
.pagehead h1 { font-family: var(--display); font-size: 20px; margin: 0; font-weight: 600; letter-spacing: -0.02em; }

h1.title { font-family: var(--display); font-size: 27px; margin: 4px 0 2px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.subtitle { color: var(--ink-faint); font-size: 14px; margin: 0 0 18px; }
.sec-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); font-weight: 600; margin: 22px 2px 10px; }

/* ---------- Buscador ---------- */
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 13px; height: 46px; margin-bottom: 14px; }
.search input { border: none; background: transparent; outline: none; color: var(--ink); font-size: 15.5px; flex: 1; }
.search .mag { color: var(--ink-faint); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 7px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Grid ---------- */
.count { color: var(--ink-faint); font-size: 12.5px; margin: 14px 2px 12px; letter-spacing: .01em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 13px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .14s ease, border-color .2s ease; display: flex; flex-direction: column; }
.card:active { transform: scale(.985); }
.card:hover { border-color: var(--line-strong, var(--line)); }
.card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph { color: var(--ink-faint); opacity: .55; }
.card .thumb .cthumb { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: var(--surface-2); }
.card .thumb .ph .i { width: 30px; height: 30px; }
.card .thumb .play { position: absolute; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.card .thumb .play .i { width: 18px; height: 18px; }
.card .thumb .fav { position: absolute; top: 9px; right: 9px; color: var(--brand); }
.card .thumb .fav .i { filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.card .body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card .body h3 { font-family: var(--display); font-size: 16px; margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.card .body .meta { color: var(--ink-faint); font-size: 12px; }
.card .body .foot { margin-top: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- Pills ---------- */
.pill { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 7px; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 5px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.df { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }
.pill.df::before { display: none; }
.pill.st-poraprender { background: color-mix(in srgb, var(--ink-faint) 14%, transparent); color: var(--ink-soft); }
.pill.st-aprendiendo { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.pill.st-dominado { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }

/* ---------- Vacío ---------- */
.empty { text-align: center; padding: 54px 24px; color: var(--ink-faint); }
.empty .big { color: var(--ink-faint); opacity: .5; margin-bottom: 14px; }
.empty .big .i { width: 46px; height: 46px; stroke-width: 1.4; }
.empty h3 { font-family: var(--display); color: var(--ink); font-size: 20px; margin: 0 0 8px; font-weight: 600; }
.empty p { margin: 0 0 20px; line-height: 1.55; font-size: 14.5px; }

/* ---------- Botones ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: var(--tap); border: none; border-radius: var(--radius-sm); font-size: 15.5px; font-weight: 600; cursor: pointer; color: var(--on-brand); background: var(--brand); margin-top: 12px; letter-spacing: -0.01em; }
.btn:active { transform: scale(.985); background: var(--brand-press); }
.btn .i { width: 19px; height: 19px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:active { background: var(--surface-2); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.small { min-height: 42px; font-size: 14px; width: auto; padding: 0 16px; margin: 0; }
.btn:disabled { opacity: .5; }

/* ---------- Formularios ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); padding: 13px 14px; font-size: 16px; outline: none; transition: border-color .15s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field .hint { font-size: 12px; color: var(--ink-faint); margin-top: 6px; line-height: 1.5; }
.row { display: flex; gap: 10px; }
.row .field { flex: 1; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); border-radius: var(--radius-sm); padding: 11px 4px; font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Vídeos ---------- */
.vidadd { display: flex; gap: 8px; }
.vidadd input { flex: 1; }
.vidlist { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.vidrow { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; }
.vidrow .vt { width: 62px; height: 40px; border-radius: 7px; background: var(--surface-2); flex: 0 0 62px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--ink-faint); }
.vidrow .vt img { width: 100%; height: 100%; object-fit: cover; }
.vidrow .vt .i { width: 18px; height: 18px; }
.vidrow .vi { flex: 1; min-width: 0; }
.vidrow .vi .n { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vidrow .vi .p { font-size: 11px; color: var(--ink-faint); text-transform: capitalize; }
.vidrow .x { color: var(--ink-faint); padding: 6px 8px; cursor: pointer; background: none; border: none; display: flex; }
.vidrow .x:active { color: var(--danger); }

.player { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: #000; margin-bottom: 12px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.linkcard { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; text-decoration: none; color: var(--ink); }
.linkcard .ic { color: var(--ink-faint); }
.linkcard .n { flex: 1; font-weight: 500; word-break: break-all; font-size: 14px; }
.linkcard .go { color: var(--brand); }

/* ---------- Detalle ---------- */
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 18px; align-items: center; }
.notes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; line-height: 1.65; color: var(--ink-soft); white-space: pre-wrap; font-size: 15px; }
.tagchips { display: flex; flex-wrap: wrap; gap: 7px; }
.tagchip { font-size: 12px; padding: 5px 11px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); }

/* ---------- FAB ---------- */
.fab { position: fixed; z-index: 40; right: max(18px, calc(50% - 320px + 18px)); bottom: calc(80px + env(safe-area-inset-bottom)); width: 54px; height: 54px; border-radius: 16px; border: none; background: var(--brand); color: var(--on-brand); cursor: pointer; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; }
.fab .i { width: 24px; height: 24px; stroke-width: 2; }
.fab:active { transform: scale(.94); background: var(--brand-press); }

/* ---------- Barra inferior ---------- */
.tabbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 9px 8px calc(9px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar a { flex: 1; max-width: 120px; text-align: center; text-decoration: none; color: var(--ink-faint); font-size: 10.5px; font-weight: 600; letter-spacing: .01em; padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tabbar a .i { width: 22px; height: 22px; }
.tabbar a.on { color: var(--brand); }

/* ---------- Included / performance ---------- */
.hero { border-radius: var(--radius); padding: 22px; margin-bottom: 14px; color: #f3ede2; position: relative; overflow: hidden; background: linear-gradient(150deg, #241f2e, #3a2c38); border: 1px solid var(--line); }
.hero h2 { font-family: var(--display); margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.hero p { margin: 0; opacity: .82; font-size: 14px; line-height: 1.5; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 14px; }
.panel h2 { font-family: var(--display); margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.panel p { color: var(--ink-soft); line-height: 1.6; font-size: 15px; }
.lead { font-size: 16px; color: var(--ink); }
.hint { color: var(--ink-faint); font-size: 13px; }

.scanwrap { position: relative; min-height: 58vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.orb { width: 176px; height: 176px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fff 0%, #ecdcac 14%, var(--brand) 46%, #6e551d 82%, #2c2109 100%); box-shadow: 0 0 50px color-mix(in srgb, var(--brand) 45%, transparent), inset 0 0 40px rgba(255,255,255,.22); animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.orb.armed { filter: saturate(1.15) brightness(1.04); }
.scanwrap .prompt { margin-top: 24px; color: var(--ink-soft); font-size: 15px; max-width: 300px; }
.scanwrap .sub { margin-top: 6px; color: var(--ink-faint); font-size: 12px; }
.progress { width: 76%; height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 20px; }
.progress > i { display: block; height: 100%; width: 0%; background: var(--brand); transition: width .1s linear; }
.scanstatus { margin-top: 12px; font-size: 13px; color: var(--brand); min-height: 18px; }
.cardface { width: 188px; height: 264px; border-radius: 16px; background: #fdfdfb; color: #16181f; margin: 0 auto; position: relative; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; animation: pop .5s cubic-bezier(.2,.9,.3,1.3); }
@keyframes pop { from { transform: scale(.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.cardface .center { font-size: 76px; }
.cardface .corner { position: absolute; font-size: 21px; font-weight: 700; text-align: center; line-height: 1; }
.cardface .corner.tl { top: 12px; left: 14px; }
.cardface .corner.br { bottom: 12px; right: 14px; transform: rotate(180deg); }
.cardface.red { color: #d8203f; }
.textreveal { font-family: var(--display); font-size: 34px; font-weight: 600; text-align: center; padding: 30px 16px; color: var(--brand); animation: pop .5s cubic-bezier(.2,.9,.3,1.3); word-break: break-word; }

/* Carga secreta */
.qs { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(6px); display: none; flex-direction: column; overflow-y: auto; padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); }
.qs.open { display: flex; }
.qs h4 { margin: 4px 0 12px; color: var(--ink-faint); font-size: 12px; text-align: center; text-transform: uppercase; letter-spacing: .1em; }
.qs .suitrow { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.qs .suitrow .slabel { width: 22px; font-size: 20px; text-align: center; }
.qs .suits { flex: 1; display: grid; grid-template-columns: repeat(13, 1fr); gap: 5px; }
.qs .cellbtn { aspect-ratio: .72; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.qs .cellbtn.red { color: var(--danger); }
.qs .cellbtn:active { background: var(--brand); color: var(--on-brand); }
.qs .txtwrap { margin-top: 14px; }
.qs .txtwrap input { width: 100%; min-height: 50px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; padding: 0 14px; }
.qs .qsrow { display: flex; gap: 10px; margin-top: 14px; }
.qs .loaded { text-align: center; color: var(--brand); font-size: 14px; margin-top: 12px; min-height: 20px; }

/* Tutorial */
.tut section { margin: 20px 0; }
.tut section > h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 0 0 8px; font-weight: 600; }
.tut p, .tut li { color: var(--ink-soft); line-height: 1.65; font-size: 14.5px; }
.tut ol, .tut ul { padding-left: 20px; margin: 6px 0; }
.tut .eye { display: inline-block; font-size: 10.5px; border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.tut .eye.pub { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.tut .eye.sec { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); }
.tut code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 13px; color: var(--brand); }
.tut .script { border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); padding: 10px 14px; border-radius: 8px; font-style: italic; color: var(--ink); margin: 8px 0; }
.backstage-bar { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); color: var(--brand); font-size: 12px; font-weight: 600; margin-bottom: 16px; letter-spacing: .01em; }
.backstage-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* Ajustes */
.setrow { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px; margin-bottom: 9px; cursor: pointer; }
.setrow .si { color: var(--ink-soft); display: flex; }
.setrow .st { flex: 1; }
.setrow .st .t { font-weight: 600; font-size: 15px; }
.setrow .st .d { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.setrow .go { color: var(--ink-faint); display: flex; }

/* Splash + puerta */
.splash { min-height: 82vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.splash .logo { color: var(--brand); } .splash .logo .i { width: 52px; height: 52px; stroke-width: 1.4; }
.splash .wm { font-family: var(--display); font-size: 24px; font-weight: 600; }
.splash .spin { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; margin-top: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

.gate { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; }
.gate-hero { text-align: center; margin-bottom: 28px; }
.gate-hero .logo { color: var(--brand); } .gate-hero .logo .i { width: 56px; height: 56px; stroke-width: 1.3; }
.gate-hero h1 { font-family: var(--display); font-size: 30px; margin: 14px 0 8px; font-weight: 600; letter-spacing: -0.02em; }
.gate-hero p { color: var(--ink-faint); font-size: 15px; margin: 0; }
.gate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-lg); }
.gate-tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 18px; }
.gate-tabs button { flex: 1; border: none; background: transparent; color: var(--ink-faint); font-weight: 600; font-size: 14px; padding: 10px; border-radius: 8px; cursor: pointer; }
.gate-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.gate-foot { text-align: center; color: var(--ink-faint); font-size: 12.5px; margin-top: 18px; line-height: 1.5; }

/* Toast */
.toast { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100; font-weight: 600; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Ficha profesional (detalle) */
.specs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.specrow { display: flex; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.specrow:last-child { border-bottom: none; }
.specrow .k { color: var(--ink-faint); flex: 0 0 96px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; align-self: center; }
.specrow .v { color: var(--ink); flex: 1; }

/* Pantalla de bloqueo (PIN) */
.lock { min-height: 88vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lock .lk { color: var(--brand); margin-bottom: 8px; } .lock .lk .i { width: 40px; height: 40px; }
.lock h1 { font-family: var(--display); font-size: 22px; margin: 4px 0 2px; font-weight: 600; }
.lock p { color: var(--ink-faint); font-size: 13.5px; margin: 0 0 22px; min-height: 18px; }
.lock.shake { animation: shk .4s; }
@keyframes shk { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-8px)} 40%,80%{transform:translateX(8px)} }
.pindots { display: flex; gap: 14px; margin-bottom: 30px; }
.pindots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink-faint); }
.pindots i.on { background: var(--brand); border-color: var(--brand); }
.keypad { display: grid; grid-template-columns: repeat(3, 74px); gap: 16px; justify-content: center; }
.keypad button { width: 74px; height: 74px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 26px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.keypad button:active { background: var(--surface-2); transform: scale(.95); }
.keypad button.blank { border: none; background: transparent; cursor: default; }
.keypad button.act .i { width: 24px; height: 24px; color: var(--ink-soft); }

/* ---------- Rutinas ---------- */
.rlist { display: flex; flex-direction: column; gap: 10px; }
.rrow { display: flex; align-items: center; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; cursor: pointer; box-shadow: var(--shadow); }
.rrow:active { transform: scale(.99); }
.rrow .ri { color: var(--brand); display: flex; }
.rrow .rt { flex: 1; min-width: 0; }
.rrow .rt .n { font-family: var(--display); font-weight: 600; font-size: 16px; }
.rrow .rt .d { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.rrow .go { color: var(--ink-faint); display: flex; }

.ritems { display: flex; flex-direction: column; gap: 8px; }
.ritem { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 10px 10px 6px; }
.ritem .idx { width: 24px; text-align: center; color: var(--ink-faint); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.ritem .rc { flex: 1; min-width: 0; cursor: pointer; }
.ritem .rc .n { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ritem .rc .d { font-size: 12px; color: var(--ink-faint); }
.ritem .ract { display: flex; gap: 2px; }
.ritem .ract button { background: none; border: none; color: var(--ink-faint); padding: 7px 5px; cursor: pointer; display: flex; }
.ritem .ract button:active { color: var(--ink); }

/* ---------- Modo actuación ---------- */
.perform { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top)) 20px calc(16px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.perform .ptop { display: flex; align-items: center; justify-content: space-between; color: var(--ink-faint); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.perform .pexit { background: none; border: none; color: var(--ink-faint); cursor: pointer; display: flex; padding: 4px; }
.perform .pbody { flex: 1; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; padding: 10px 0; }
.perform .pcat { color: var(--brand); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 8px; }
.perform .ptitle { font-family: var(--display); font-size: 34px; line-height: 1.1; margin: 0 0 16px; font-weight: 600; letter-spacing: -0.02em; }
.perform .pchips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.perform .pchip { font-size: 12.5px; padding: 5px 11px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); }
.perform .pnotes { font-size: 20px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; }
.perform .pnav { display: flex; gap: 10px; }
.perform .pnav button { flex: 1; min-height: 56px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.perform .pnav button:active { background: var(--surface-2); }
.perform .pnav button:disabled { opacity: .35; }
.perform .pnav button .i { width: 20px; height: 20px; }

/* Contenido extraído del vídeo */
.chapters { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px; }
.chap { display: flex; gap: 12px; padding: 9px 13px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.chap:last-child { border-bottom: none; }
.chap .tm { color: var(--brand); font-variant-numeric: tabular-nums; font-weight: 600; flex: 0 0 auto; }
.transcript { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; }
.transcript summary { padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-soft); list-style: none; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before { content: "▸ "; color: var(--brand); }
.transcript[open] summary::before { content: "▾ "; }
.transcript .tr { padding: 0 14px 14px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); max-height: 320px; overflow-y: auto; white-space: pre-wrap; }

/* ==========================================================================
   Responsive: móvil (barra inferior) → escritorio (barra lateral)
   ========================================================================== */

/* Centrar el contenido del panel de carga en pantallas anchas */
.qs { align-items: center; }
.qs > * { width: 100%; max-width: 680px; }

/* Marca en la nav: solo visible como barra lateral (escritorio) */
.tbbrand { display: none; }

/* Tablet: un poco más de aire */
@media (min-width: 680px) {
  .cards { gap: 16px; }
}

/* Escritorio: barra lateral fija a la izquierda, contenido a lo ancho */
@media (min-width: 1000px) {
  .tabbar {
    top: 0; bottom: 0; right: auto; left: 0; width: 236px;
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    gap: 4px; padding: 26px 16px calc(26px + env(safe-area-inset-bottom));
    border-top: none; border-right: 1px solid var(--line);
    background: var(--surface); backdrop-filter: none;
  }
  .tbbrand {
    display: flex; align-items: center; gap: 10px; padding: 6px 12px 22px;
    font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
  }
  .tbbrand .i { width: 24px; height: 24px; color: var(--brand); }
  .tabbar a {
    flex: 0 0 auto; max-width: none; flex-direction: row; justify-content: flex-start;
    gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500;
  }
  .tabbar a.on { background: color-mix(in srgb, var(--brand) 13%, transparent); }
  .tabbar a .i { width: 21px; height: 21px; }

  .app {
    margin: 0 auto 0 236px; max-width: 1180px;
    padding: 30px 40px 56px;
  }
  .screen { max-width: 760px; }
  .screen.wide { max-width: 1100px; }

  .fab { left: auto; right: 40px; bottom: 40px; width: 58px; height: 58px; }

  /* En escritorio, el detalle usa dos columnas cuando hay espacio */
  .perform { max-width: 820px; }
  .screen.detail { max-width: 1000px; }
  .screen.detail .detail-grid {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: start;
  }
  .screen.detail .detail-grid .dcol > .sec-label:first-child { margin-top: 0; }
}

/* Pantallas muy anchas: centrar el área de contenido tras la barra lateral */
@media (min-width: 1500px) {
  .app { margin-left: max(236px, calc((100% - 1100px) / 2)); }
}

@media (min-width: 1000px) {
  .appbar .brandmark { display: none; }
  .pagetitle { display: block; font-size: 24px; letter-spacing: -0.02em; }
}

/* Indicador de sincronización */
.iconbtn.spinning .i { animation: spin .9s linear infinite; }

/* Fotos paso a paso */
.photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 8px; }
.photocell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.photocell .ph-img { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.photocell .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; border: none; cursor: pointer; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.mini-spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }

/* Bolos: selector de trucos actuados */
.tchips { display: flex; flex-wrap: wrap; gap: 7px; }
.tchip { border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer; }
.tchip.on { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.reptag { font-size: 10.5px; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); border-radius: 6px; padding: 1px 6px; vertical-align: middle; margin-left: 4px; }

/* Práctica */
.pracbanner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); color: var(--brand); font-weight: 600; font-size: 14px; cursor: pointer; }
.pracbanner span { flex: 1; }
.pracrow { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 9px; }
.pracrow .rc { cursor: pointer; }
.pracrow .rc .n { font-weight: 600; font-size: 15px; }
.pracrow .rc .d { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.pracrow .pracact { display: flex; gap: 8px; }
.pracrow .pracact .btn { flex: 1; }

/* Estadísticas */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 420px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 12px; text-align: center; }
.stat .num { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.stat .lbl { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.statbar { margin: 12px 0; }
.statbar .bl { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.statbar .track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.statbar .track i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.statbar .track i.b-ok { background: var(--ok); }
.statbar .track i.b-warn { background: var(--warn); }
.statbar .track i.b-slate { background: var(--ink-faint); }

/* Compartir: modal de enlace */
.modal-ov { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: color-mix(in srgb, #000 48%, transparent); backdrop-filter: blur(4px); }
.modal { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.34); }
.modal h3 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.modal .hint { margin: 0 0 14px; }
.linkbox { display: flex; margin-bottom: 14px; }
.linkbox input { flex: 1; width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 13px; font-size: 13.5px; color: var(--ink-soft); font-family: var(--ui); }
.modal-act { display: flex; flex-direction: column; gap: 9px; }
.modal-act .btn { margin: 0; }

/* Vista pública compartida */
.shared-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent); border-radius: 999px; padding: 6px 12px; margin-bottom: 12px; }
.shared-trick { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.shared-trick:first-of-type { border-top: none; }
.shared-trick .st-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.shared-trick .st-body { flex: 1; min-width: 0; }
.shared-cta { margin-top: 30px; padding: 22px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.shared-cta p { margin: 0 0 14px; color: var(--ink-soft); }
.shared-cta .btn { margin: 0; }

/* Lista de enlaces compartidos */
.sharelist { display: flex; flex-direction: column; gap: 9px; }
.shareitem { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.shareitem .si { width: 22px; height: 22px; color: var(--ink-faint); flex: 0 0 auto; }
.shareitem .stx { flex: 1; min-width: 0; }
.shareitem .stx .n { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shareitem .stx .d { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.shareitem .sact { display: flex; gap: 6px; flex: 0 0 auto; }
.iconbtn.dgr { color: var(--danger); }

/* Selector de hora del recordatorio */
.hoursel { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 10px; padding: 9px 11px; font-size: 15px; font-family: var(--ui); font-variant-numeric: tabular-nums; }

/* ======================= Comunidad + Mercado ======================= */
.switch { width: 48px; height: 28px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; flex: 0 0 auto; transition: background .2s; cursor: pointer; }
.switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch.on { background: var(--brand); border-color: transparent; }
.switch.on::before { transform: translateX(20px); }
.toggle-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin: 8px 0; cursor: pointer; }
.toggle-row > div { flex: 1; } .toggle-row b { font-size: 15px; } .toggle-row .hint { margin: 3px 0 0; }
.btn.small { padding: 9px 15px; font-size: 13.5px; width: auto; margin: 0; }

/* Onboarding */
.onb { max-width: 460px; }
.onb-hero { text-align: center; padding: 22px 0 6px; }
.onb-hero .mk { color: var(--brand); width: 76px; height: 76px; }
.onb-hero .wm { font-family: var(--display); font-size: 34px; font-weight: 600; margin: 12px 0 0; letter-spacing: -.02em; }
.onb-hero .tagline { font-family: var(--display); font-style: italic; color: var(--brand); margin: 2px 0 12px; }
.onb-hero p { color: var(--ink-soft); }
.onb-steps { display: flex; gap: 6px; margin: 0 0 20px; }
.onb-steps i { height: 4px; border-radius: 2px; background: var(--line); flex: 1; }
.onb-steps i.on { background: var(--brand); }
.onb-feat { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0; }
.onb-feat .i2 { color: var(--brand); flex: 0 0 auto; } .onb-feat .i2 .i { width: 26px; height: 26px; }
.onb-feat b { font-size: 15px; } .onb-feat p { margin: 3px 0 0; color: var(--ink-faint); font-size: 13.5px; line-height: 1.45; }
.avatar-pick { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 6px 0 16px; }

/* Avatares */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); background-size: cover; background-position: center; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.avatar.ini { background: color-mix(in srgb, var(--brand) 18%, var(--surface-2)); color: var(--brand); font-weight: 700; font-family: var(--display); }
.avatar.sm { width: 32px; height: 32px; font-size: 14px; }
.avatar.big { width: 86px; height: 86px; font-size: 34px; }
.avatar.xl { width: 96px; height: 96px; font-size: 38px; }

.seg.big button { padding: 11px; font-size: 15px; }

/* Feed */
.feed { display: flex; flex-direction: column; gap: 12px; }
.postcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.pc-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.pc-who .n { font-weight: 600; font-size: 14.5px; } .pc-who .h { font-size: 12px; color: var(--ink-faint); }
.pc-body { margin: 10px 0 0; white-space: pre-wrap; font-size: 15px; line-height: 1.5; }
.pc-media { margin-top: 10px; }
.post-img { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-sm); background: var(--surface-2) center/cover no-repeat; }
.pc-acts { display: flex; gap: 20px; margin-top: 12px; }
.pc-acts button { display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 13.5px; font-variant-numeric: tabular-nums; padding: 0; }
.pc-like.on { color: var(--danger); }
.trick-card, .listing-inline { display: flex; align-items: center; gap: 12px; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); cursor: pointer; }
.trick-card .tc-ic { color: var(--brand); flex: 0 0 auto; } .trick-card .tc-ic .mk { width: 26px; height: 26px; }
.trick-card .n, .listing-inline .n { font-weight: 600; font-size: 14.5px; } .trick-card .d { font-size: 12.5px; color: var(--ink-faint); }
.listing-inline .lc-cover { width: 52px; height: 52px; border-radius: 8px; flex: 0 0 auto; background: var(--surface) center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.listing-inline .lc-cover.ph .mk { width: 26px; height: 26px; color: var(--brand); }
.listing-inline .lc-info { flex: 1; min-width: 0; } .listing-inline .go { color: var(--ink-faint); }
.price { color: var(--brand); font-weight: 700; font-size: 14px; }
.price.big { font-size: 24px; font-family: var(--display); }
.owned { color: var(--ok); font-weight: 600; font-size: 12px; margin-left: 6px; }

/* Mercado */
.market { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.listcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.listcard .lc-cover { aspect-ratio: 4/3; background: var(--surface-2) center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.listcard .lc-cover.ph .mk { width: 42px; height: 42px; color: var(--brand); }
.listcard .lc-b { padding: 10px 12px; } .listcard .n { font-weight: 600; font-size: 14.5px; } .listcard .by { font-size: 12px; color: var(--ink-faint); margin: 2px 0 6px; }

.li-cover { aspect-ratio: 16/10; border-radius: var(--radius); background: var(--surface-2) center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.li-cover.ph .mk { width: 66px; height: 66px; color: var(--brand); }
.li-seller { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: var(--ink-soft); font-size: 14px; cursor: pointer; }
.li-buy { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.li-buy .btn { margin: 0; width: auto; padding: 13px 22px; }

/* Perfil */
.profile-head { text-align: center; padding: 8px 0 4px; } .profile-head .avatar { margin: 0 auto; }
.p-handle { color: var(--ink-faint); margin-top: 3px; font-size: 14px; } .p-bio { margin: 10px 0; color: var(--ink-soft); }
.p-stats { display: flex; justify-content: center; gap: 28px; margin: 16px 0; }
.p-stats b { display: block; font-family: var(--display); font-size: 20px; } .p-stats span { font-size: 12px; color: var(--ink-faint); }

/* Comentarios / componer */
.comments { display: flex; flex-direction: column; gap: 12px; }
.cmt { display: flex; gap: 10px; } .c-who { font-weight: 600; font-size: 13.5px; } .c-who span { color: var(--ink-faint); font-weight: 400; font-size: 12px; margin-left: 6px; } .c-b { font-size: 14.5px; margin-top: 1px; }
.cmt-add { display: flex; gap: 8px; margin-top: 14px; }
.cmt-add input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 15px; background: var(--surface); color: var(--ink); }
.cmt-add .btn { width: auto; margin: 0; padding: 0 16px; }
.pc-attach { display: flex; gap: 10px; margin-bottom: 12px; }
.pc-attach .btn { margin: 0; width: auto; flex: 1; }
