/* =====================================================================
   TRIBFAN · SISTEMA DE DISEÑO (se carga el último y unifica toda la web)
   1 Tokens · 2 Base · 3 Botones · 4 Formularios · 5 Superficies · 6 Tablas y etiquetas
   7 Cabecera y pie · 8 Panel (menú desplegable + móvil) · 9 Buscador dinámico · 10 Tarjetas y Trade
   11 Portada · 12 Acceso · 13 Socios · 14 Animaciones
   ===================================================================== */

/* ---------- 1 · TOKENS ---------- */
:root {
  --paper: #F5F6FB; --surface: #FFFFFF; --surface-2: #F0F2FA; --ink: #121528; --muted: #5C6280; --line: #E3E6F1;
  --action: #4F46E5; --action-2: #7C3AED; --on-action: #FFFFFF; --accent: #F59E0B; --cyan: #06B6D4; --rose: #F43F5E;
  --ok: #059669; --danger: #DC2626; --warn: #D97706; --gold: #F59E0B;
  --brand-grad: linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #DB2777 100%);
  --soft-grad: linear-gradient(135deg, rgba(79,70,229,.10), rgba(124,58,237,.10));
  --side: #0F1226; --side-2: #171B38; --side-ink: #C9CDEA; --side-line: rgba(255,255,255,.08);
  --font: "Inter", "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-field: 12px; --r-panel: 20px;
  --sh-1: 0 1px 2px rgba(18,21,40,.06), 0 1px 3px rgba(18,21,40,.05);
  --sh-2: 0 6px 18px rgba(18,21,40,.08), 0 2px 6px rgba(18,21,40,.05);
  --sh-3: 0 18px 44px rgba(18,21,40,.16), 0 6px 14px rgba(18,21,40,.08);
  --ease: cubic-bezier(.22, .8, .24, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0C0E1E; --surface: #14172E; --surface-2: #1B1F3C; --ink: #ECEEFF; --muted: #A2A8CC; --line: #262B52; --action: #8B86FF; --action-2: #A78BFA; --on-action: #0C0E1E; --ok: #34D399; --danger: #FB7185; --side: #090B1A; --side-2: #12152C; --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-2: 0 8px 22px rgba(0,0,0,.45); --sh-3: 0 20px 50px rgba(0,0,0,.55); }
}
/* Administración: tono sobrio (grises azulados, acento único) */
.panel-admin { --action: #3B5BDB; --action-2: #3B5BDB; --paper: #F3F4F8; --side: #111827; --side-2: #1B2333; --brand-grad: linear-gradient(135deg, #3B5BDB, #4C6EF5); --soft-grad: linear-gradient(135deg, rgba(59,91,219,.08), rgba(59,91,219,.05)); }
@media (prefers-color-scheme: dark) { .panel-admin { --action: #748FFC; --action-2: #748FFC; --paper: #0B0F19; --side: #070A12; --side-2: #101624; } }

/* ---------- 2 · BASE ---------- */
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--font); letter-spacing: -0.025em; line-height: 1.18; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin: 0 0 .4em; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 750; margin: 1.6em 0 .55em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--action); text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: color-mix(in srgb, var(--action) 28%, transparent); }
img { max-width: 100%; }
code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--surface-2); padding: .12em .45em; border-radius: 6px; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 70ch; }
.hint { color: var(--muted); font-size: .88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--action) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- 3 · BOTONES ---------- */
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: 650 .97rem var(--font); letter-spacing: -0.01em; text-decoration: none; color: var(--on-action); background: var(--brand-grad); box-shadow: 0 6px 16px color-mix(in srgb, var(--action) 32%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s; background-size: 140% 140%; background-position: 0 0;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--action) 42%, transparent), inset 0 1px 0 rgba(255,255,255,.25); filter: saturate(1.08); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.985); }
.btn.small { min-height: 34px; padding: 0 15px; font-size: .86rem; }
.btn.ghost { background: transparent; color: var(--action); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--action) 45%, transparent); }
.btn.ghost:hover { background: color-mix(in srgb, var(--action) 9%, transparent); box-shadow: inset 0 0 0 1.5px var(--action); }
.btn.danger { background: var(--danger); box-shadow: 0 6px 16px color-mix(in srgb, var(--danger) 30%, transparent); color: #fff; }
.btn.ghost.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 50%, transparent); }
.btn.ghost.danger:hover { background: color-mix(in srgb, var(--danger) 9%, transparent); }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.3); }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: tf-spin .7s linear infinite; }
button.link { background: none; border: 0; padding: 0; color: var(--action); font: inherit; cursor: pointer; text-decoration: underline; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; margin: 0; }
@keyframes tf-spin { to { transform: rotate(360deg); } }

/* ---------- 4 · FORMULARIOS ---------- */
label { display: block; margin: 16px 0 6px; font-weight: 650; font-size: .92rem; color: var(--ink); }
label .muted, label .hint { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local], input[type=number], input[type=tel], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-field); background: var(--surface); color: var(--ink); font: 400 1rem var(--font);
  transition: border-color .15s, box-shadow .15s, background .15s; box-shadow: var(--sh-1);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--action) 40%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 4px color-mix(in srgb, var(--action) 18%, transparent); }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7f9c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--action); box-shadow: none; flex: none; }
input[type=color] { width: 64px; min-height: 44px; padding: 3px; border-radius: 12px; }
input[type=range] { padding: 0; min-height: 0; box-shadow: none; accent-color: var(--action); }
.check, label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 450; }
.error { color: var(--danger); font-size: .88rem; margin: 6px 0 0; font-weight: 550; }
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--danger); }
.form-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.form-panel, form.card, .card.form-panel { max-width: 760px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } }
/* Subida de archivos con zona de arrastre (la activa tf.js) */
input[type=file] { padding: 0; border: 0; background: transparent; box-shadow: none; min-height: 0; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 22px 16px; border: 2px dashed color-mix(in srgb, var(--action) 35%, var(--line)); border-radius: var(--r-md); background: var(--soft-grad); color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--action); background: color-mix(in srgb, var(--action) 9%, transparent); }
.dropzone strong { color: var(--ink); }
.dropzone img.pv { max-height: 110px; border-radius: 10px; box-shadow: var(--sh-2); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ---------- 5 · SUPERFICIES ---------- */
.card, .panel, .stat, .mod, .opt, .chart-card, .sp-panel, .sp-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.card, .panel { padding: 22px 24px; }
.card + .card { margin-top: 16px; }
.card h2, .panel h2 { margin-top: 0; font-size: 1.2rem; }
.head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 8px; }
.head-row h1 { margin-bottom: .15em; }
.notice, .flash { padding: 14px 18px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--action) 28%, var(--line)); background: color-mix(in srgb, var(--action) 8%, var(--surface)); color: var(--ink); margin: 0 0 18px; box-shadow: var(--sh-1); }
.flash { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: color-mix(in srgb, var(--ok) 9%, var(--surface)); animation: tf-in .35s var(--ease); }
.flash.bad { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }
.notice strong { color: var(--ink); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; } .kv dd { margin: 0; font-weight: 550; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 14px 0 6px; }
.stat { padding: 18px 20px; position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; text-decoration: none; color: inherit; display: block; }
a.stat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--action) 40%, var(--line)); }
.stat::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand-grad); opacity: .85; }
.stat .k { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-size: 2rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; margin-top: 4px; }
.stat .v.sm { font-size: 1.45rem; }
.stat.alert { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.stat.alert::after { background: linear-gradient(90deg, var(--accent), #F97316); }
.stat.wait::after { background: linear-gradient(90deg, var(--cyan), var(--action)); }
.wallet-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; color: #fff; background: radial-gradient(circle at 90% 0%, rgba(236,72,153,.55), transparent 45%), radial-gradient(circle at 0% 100%, rgba(6,182,212,.4), transparent 40%), linear-gradient(135deg, #1E1B4B, #4F46E5 70%); box-shadow: var(--sh-3); margin: 6px 0 22px; }
.wallet-hero > div { padding: 26px 30px; }
.wallet-hero > div + div { background: rgba(255,255,255,.07); backdrop-filter: blur(6px); border-left: 1px solid rgba(255,255,255,.14); }
.wallet-hero .label { opacity: .8; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.wallet-hero .amount { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.wallet-hero .amount.sm { font-size: 1.9rem; }
.wallet-hero .sub { opacity: .82; font-size: .92rem; }
.wallet-hero .actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.wallet-hero .btn { background: #fff; color: #1E1B4B; box-shadow: none; } .wallet-hero .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
@media (max-width: 700px) { .wallet-hero { grid-template-columns: 1fr; } .wallet-hero > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); } }
.mod-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mod { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; transition: transform .2s var(--ease), box-shadow .2s; }
.mod.live:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.mod h3 { margin: 0; font-size: 1rem; } .mod p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.opt { padding: 18px 20px; }

/* ---------- 6 · TABLAS Y ETIQUETAS ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); margin: 10px 0 16px; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.t th { text-align: left; padding: 13px 16px; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .12s; } table.t tbody tr:hover td { background: color-mix(in srgb, var(--action) 4%, transparent); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill, .badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok, .badge.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.pill.bad, .badge.bad { background: color-mix(in srgb, var(--danger) 11%, var(--surface)); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.pill.wait { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--warn); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; margin: 6px 0 16px; }
.tabs a { padding: 8px 18px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--ink); } .tabs a.on { background: var(--surface); color: var(--action); box-shadow: var(--sh-1); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 8px 0 14px; }
.filters > div { min-width: 180px; flex: 1 1 200px; } .filters label { margin-top: 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.pager a, .pager span { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pager .active span, .pager span[aria-current] { background: var(--brand-grad); color: #fff; border-color: transparent; }

/* ---------- 14 · ANIMACIONES ---------- */
@keyframes tf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tf-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tf-float { 50% { transform: translateY(-8px); } }
@keyframes tf-shimmer { to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.skeleton { background: linear-gradient(100deg, var(--surface-2) 30%, var(--line) 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: tf-shimmer 1.3s linear infinite; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- 7 · CABECERA Y PIE DE LA WEB ---------- */
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 999; background: var(--surface); padding: 10px 16px; border-radius: 10px; box-shadow: var(--sh-3); }
.site-header { position: sticky; top: 0; z-index: 70; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.brand::before { content: none !important; display: none !important; }
.brand img { height: 34px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; gap: 2px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; padding: 9px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.site-nav a:not(.btn):hover { background: var(--surface-2); color: var(--action); }
.menu { position: relative; } .menu > summary { list-style: none; cursor: pointer; } .menu > summary::-webkit-details-marker { display: none; }
.usermenu > summary { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: box-shadow .15s; }
.usermenu > summary:hover { box-shadow: var(--sh-2); }
.usermenu .nm { font-weight: 650; font-size: .9rem; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 8px; z-index: 80; animation: tf-pop .16s var(--ease); }
.menu-panel a, .menu-panel button.link { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .93rem; }
.menu-panel a:hover, .menu-panel button.link:hover { background: var(--surface-2); color: var(--action); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-who { display: flex; gap: 12px; align-items: center; padding: 10px 12px 6px; } .menu-who strong { display: block; } .menu-who span { color: var(--muted); font-size: .82rem; }
.menu-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 8px 10px; }
.menu-stats div { background: var(--surface-2); border-radius: 12px; padding: 8px 12px; } .menu-stats small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; } .menu-stats strong { font-size: 1.05rem; }
.burger { display: none; }
@media (max-width: 860px) { .nav-links { display: none; } .burger { display: block; } .hide-xs { display: none; } .burger > summary { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); } .usermenu .nm { display: none; } }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--brand-grad); color: #fff; font-weight: 800; flex: none; } .avatar img { width: 100%; height: 100%; object-fit: cover; }

/* (el pie de página está en el bloque «TF-FOOT» al final de este archivo) */

/* ---------- 8 · PANEL (usuario y administración): menú claro por plataformas + navegación móvil ---------- */
.panel-body { background: var(--paper); }
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); color: var(--ink); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 0 12px 12px; scrollbar-width: thin; }
.sheet-head, .top-brand, .tabbar { display: none; }
.side .brand { padding: 20px 10px 14px; } .side .brand img { height: 32px; width: auto; display: block; }
.side-tag { align-self: flex-start; margin: -4px 10px 12px; padding: 3px 11px; border-radius: 999px; background: color-mix(in srgb, var(--action) 12%, transparent); color: var(--action); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.side nav { flex: 1; display: grid; gap: 2px; align-content: start; padding-bottom: 8px; }
.side-group { border-radius: 12px; }
.side-title { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 12px; color: var(--ink); font-weight: 650; font-size: .93rem; letter-spacing: -0.01em; user-select: none; transition: background .15s, color .15s; }
.side-title::-webkit-details-marker { display: none; }
.side-title:hover { background: var(--surface-2); }
.side-title .gi { display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted); flex: none; background: none; }
.side-title .gi .ico { width: 20px; height: 20px; }
.side-title > .ico { margin-left: auto; width: 15px; height: 15px; color: var(--muted); transition: transform .2s var(--ease); flex: none; }
.side-group[open] > .side-title > .ico { transform: rotate(90deg); }
.side-group.has-active > .side-title, .side-group.has-active > .side-title .gi { color: var(--action); }
.side-items { display: grid; gap: 1px; padding: 2px 0 8px 34px; animation: tf-in .2s var(--ease); }
.side-link { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 550; transition: background .15s, color .15s; }
.side-link .ico { width: 16px; height: 16px; flex: none; opacity: .8; }
.side-link:hover { background: var(--surface-2); color: var(--ink); transform: none; }
.side-link.on { background: color-mix(in srgb, var(--action) 11%, transparent); color: var(--action); font-weight: 700; box-shadow: none; }
.side-link.on .ico { opacity: 1; }
.side-foot { margin-top: 10px; padding: 14px 8px 4px; border-top: 1px solid var(--line); }
.side-foot .who-row { display: flex; gap: 11px; align-items: center; } .side-foot .who { min-width: 0; line-height: 1.3; }
.side-foot .who strong { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.side-foot .who span { display: block; color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot button.link { color: var(--muted); font-size: .85rem; margin-top: 10px; text-decoration: none; } .side-foot button.link:hover { color: var(--danger); }
.stage { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px clamp(16px, 3vw, 40px); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); }
.topbar .crumb { font-weight: 700; letter-spacing: -0.015em; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; } .topbar .live { width: min(360px, 38vw); }
.nav-toggle { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 650; font-size: .86rem; text-decoration: none; box-shadow: var(--sh-1); white-space: nowrap; }
.chip small { color: var(--muted); font-weight: 500; font-size: .76rem; } a.chip:hover { border-color: var(--action); color: var(--action); }
.main { padding: 26px clamp(16px, 3vw, 40px) 70px; max-width: 1280px; width: 100%; }
.main > h1:first-child, .main > .head-row:first-child { margin-top: 4px; } .main h2 { margin-top: 1.8em; }
.scrim { display: none; }

/* Móvil y tableta: barra inferior + menú que sube desde abajo */
@media (max-width: 960px) {
  .shell { display: block; }
  .topbar { min-height: 58px; padding: 8px 16px; gap: 10px; }
  .top-brand { display: block; } .top-brand img { height: 28px; width: auto; display: block; }
  .topbar .crumb, .topbar .live { display: none; }
  .topbar .chip { padding: 6px 12px; font-size: .84rem; } .topbar .chip small { display: none; }
  .main { padding: 18px 16px calc(92px + env(safe-area-inset-bottom, 0px)); }

  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 24px rgba(18,21,40,.08); }
  .tabbar .tab { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; border: 0; background: none; border-radius: 14px; color: var(--muted); font: 650 .68rem var(--font); text-decoration: none; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
  .tabbar .tab .ico { width: 23px; height: 23px; }
  .tabbar .tab.on { color: var(--action); }
  .tabbar .tab.on::before { content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand-grad); }
  .tabbar .tab:active { background: var(--surface-2); }

  .side { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: min(88dvh, 760px); border: 0; border-radius: 26px 26px 0 0; padding: 0 14px calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateY(104%); transition: transform .32s var(--ease); box-shadow: 0 -18px 50px rgba(8,10,25,.28); }
  body.nav-open .side { transform: none; }
  .side > .brand, .side > .side-tag { display: none; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 16px 6px 12px; margin: 0 -2px; }
  .sheet-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--line); }
  .sheet-head strong { font-size: 1.2rem; letter-spacing: -0.03em; }
  .sheet-close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font-size: 1rem; cursor: pointer; }
  .side nav { gap: 8px; }
  .side-group { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; }
  .side-group[open] { background: var(--surface); box-shadow: var(--sh-1); }
  .side-title { min-height: 54px; padding: 0 16px; font-size: 1rem; }
  .side-title .gi { width: 34px; height: 34px; border-radius: 11px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .side-group.has-active > .side-title .gi { background: var(--brand-grad); color: #fff; box-shadow: none; }
  .side-items { padding: 0 8px 10px; }
  .side-link { min-height: 48px; padding: 0 14px; font-size: .97rem; border-radius: 12px; }
  .side-link .ico { width: 18px; height: 18px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(8,10,25,.5); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; } body.nav-open { overflow: hidden; }
}
@media (min-width: 961px) and (max-width: 1180px) { .shell { grid-template-columns: 240px minmax(0, 1fr); } .topbar .live { width: min(260px, 30vw); } }

/* ---------- 9 · BUSCADOR DINÁMICO (resultados mientras escribes) ---------- */
.live { position: relative; }
.live-box { position: relative; display: flex; align-items: center; }
.live-box > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.live input[type=search], .live input[type=text] { padding-left: 42px; padding-right: 40px; border-radius: 999px; }
.live-spin { position: absolute; right: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--action); animation: tf-spin .7s linear infinite; display: none; }
.live.is-busy .live-spin { display: block; }
.live-results { position: absolute; z-index: 90; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 8px; max-height: min(70vh, 520px); overflow-y: auto; animation: tf-pop .14s var(--ease); }
.live-results[hidden] { display: none; }
.live-group { padding: 8px 10px 4px; font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.live-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; cursor: pointer; }
.live-item:hover, .live-item.on { background: color-mix(in srgb, var(--action) 9%, var(--surface)); text-decoration: none; }
.live-item img { width: 40px; height: 52px; object-fit: cover; border-radius: 7px; background: var(--surface-2); flex: none; }
.live-item .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--soft-grad); color: var(--action); display: grid; place-items: center; flex: none; font-size: 1.1rem; }
.live-item .tx { min-width: 0; flex: 1; line-height: 1.3; } .live-item .tx strong { display: block; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-item .tx span { color: var(--muted); font-size: .8rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-item .bd { font-size: .74rem; font-weight: 750; color: var(--action); background: color-mix(in srgb, var(--action) 10%, transparent); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.live-empty { padding: 22px 12px; text-align: center; color: var(--muted); font-size: .92rem; }
.live-foot { display: block; margin-top: 4px; padding: 10px; text-align: center; border-top: 1px solid var(--line); font-weight: 650; font-size: .88rem; }
.live.hero-search input { min-height: 56px; font-size: 1.05rem; box-shadow: var(--sh-3); border-color: transparent; }

/* ---------- 10 · TARJETAS (Trade, FanDrop, Duel…) con etiquetas flotantes ---------- */
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 20px; margin: 14px 0 6px; }
.tr-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--sh-1); transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s; }
.tr-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: color-mix(in srgb, var(--action) 38%, var(--line)); text-decoration: none; }
.tr-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(circle at 30% 20%, var(--surface-2), var(--line)); }
.tr-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); display: block; }
.tr-card:hover .tr-img img { transform: scale(1.07); }
.tr-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(10,12,30,.28)); pointer-events: none; }
.tr-badges { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; pointer-events: none; }
.tbadge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: rgba(20,22,46,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(0,0,0,.2); animation: tf-in .5s var(--ease) both; }
.tbadge.new { background: linear-gradient(135deg, #10B981, #059669); } .tbadge.hot { background: linear-gradient(135deg, #F59E0B, #EF4444); } .tbadge.feat { background: var(--brand-grad); }
.tbadge.views { margin-left: auto; background: rgba(20,22,46,.72); font-weight: 650; text-transform: none; letter-spacing: 0; }
.tr-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tr-title { font-weight: 700; font-size: .98rem; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tr-meta { color: var(--muted); font-size: .8rem; } .tr-seller { color: var(--muted); font-size: .8rem; margin-top: auto; padding-top: 6px; }
.tr-price { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; color: var(--ink); }
.tr-section { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 34px 0 6px; } .tr-section h2 { margin: 0; }
.tr-brands { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.tr-chip { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .88rem; text-decoration: none; transition: all .18s var(--ease); box-shadow: var(--sh-1); }
.tr-chip:hover, .tr-chip.on { background: var(--brand-grad); color: #fff; border-color: transparent; transform: translateY(-1px); text-decoration: none; }
.tr-thumb-sm { width: 46px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; }
.live-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; } .live-rail .tr-card { flex: 0 0 214px; scroll-snap-align: start; }
.rail-btn { position: absolute; top: 40%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-2); cursor: pointer; font-size: 1.4rem; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.rail-btn:hover { transform: scale(1.08); box-shadow: var(--sh-3); } .rail-btn[data-dir="-1"] { left: -16px; } .rail-btn[data-dir="1"] { right: -16px; }
.live-rail-wrap { position: relative; }

/* ---------- Gráficas ---------- */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin: 12px 0 6px; }
.chart-card { padding: 20px 22px 16px; }
.chart-card h3 { margin: 0; font-size: 1.02rem; } .chart-card .sub { margin: 2px 0 14px; color: var(--muted); font-size: .85rem; }
.ch { width: 100%; height: auto; display: block; overflow: visible; }
.ch-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; } .ch-x, .ch-y { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.ch-bar { transition: opacity .15s, transform .2s; transform-origin: bottom; transform-box: fill-box; } .ch-bar:hover { opacity: .85; transform: scaleY(1.02); }
.ch-dot { transition: r .15s; } .ch-dot:hover { r: 7.5; } .ch-line { filter: drop-shadow(0 4px 6px rgba(79,70,229,.22)); }
.ch-slice { transition: stroke-width .2s; } .ch-slice:hover { stroke-width: 7.8; } .ch-total { font-size: 5.4px; font-weight: 800; fill: var(--ink); font-family: var(--font); }
.ch-empty { padding: 38px 8px; text-align: center; color: var(--muted); font-size: .92rem; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 12px 0 0; padding: 0; font-size: .84rem; color: var(--muted); } .ch-legend li { display: flex; align-items: center; gap: 7px; } .ch-legend span { width: 10px; height: 10px; border-radius: 4px; display: inline-block; }
.ch-donut { max-width: 200px; margin: 4px auto; }
.live-stats { display: flex; flex-wrap: wrap; gap: 14px 38px; list-style: none; margin: 22px 0 0; padding: 0; color: var(--muted); } .live-stats strong { display: block; font-size: 1.9rem; letter-spacing: -0.03em; color: var(--ink); }

/* ---------- 12 · ACCESO ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--paper); }
.auth-aside { position: relative; overflow: hidden; padding: 44px clamp(26px, 5vw, 72px); color: #fff; background: radial-gradient(circle at 85% 8%, rgba(236,72,153,.5), transparent 42%), radial-gradient(circle at 5% 95%, rgba(6,182,212,.42), transparent 40%), linear-gradient(150deg, #1E1B4B, #4338CA 80%); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.auth-aside .brand { color: #fff; } .auth-aside h2 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.auth-main { display: grid; place-items: center; padding: 40px 22px; }
.auth-form { width: min(440px, 100%); } .auth-form h1 { font-size: 1.9rem; } .auth-form .sub { color: var(--muted); } .auth-form .alt { margin-top: 18px; color: var(--muted); }
.mobile-brand { display: none; padding: 20px 22px 0; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-aside { display: none; } .mobile-brand { display: block; } }

/* ---------- 13 · ÁREA DE SOCIOS (tono sobrio) ---------- */
.soc-body { --action: #1F3A8A; --action-2: #1E40AF; --brand-grad: linear-gradient(135deg, #1E3A8A, #2B4FB8); --paper: #F4F5F9; }
.soc-top { background: #0F172A; color: #fff; } .soc-top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.soc-top .brand { color: #fff; } .soc-top .tag { padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #CBD5E1; }
.soc-top .sp { flex: 1; } .soc-top a { color: #CBD5E1; text-decoration: none; font-weight: 600; font-size: .9rem; } .soc-top a:hover { color: #fff; }
.soc-main { padding: 34px 0 80px; }
.page-head { margin: 8px 0 6px; } .page-head h1 { margin: 0; }
main.inner { width: min(1200px, 100% - 40px); margin: 0 auto; padding: 30px 0 60px; }

/* ---------- Barra de progreso, accesos rápidos y varios ---------- */
.pbar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 5px; box-shadow: inset 0 0 0 1px var(--line); }
.pbar i { display: block; height: 100%; border-radius: 999px; background: var(--brand-grad); transition: width .8s var(--ease); }
.qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin: 10px 0 4px; }
.qa { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-weight: 650; font-size: .92rem; box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.qa:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--action); color: var(--action); text-decoration: none; }
.qa .ico { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--soft-grad); color: var(--action); flex: none; box-sizing: border-box; }
.pf-compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pf-compact .hx-plat { padding: 20px 20px 16px; } .pf-compact .hx-plat h3 { font-size: 1.12rem; margin-bottom: 10px; }
.avatar-card { padding: 22px 24px; }
.stat-grid .stat .k { margin-bottom: 2px; }
.tr-tile { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s; text-align: center; } .tr-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2); text-decoration: none; }
.tr-tile img { height: 42px; width: auto; object-fit: contain; } .home-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.soc-top .who { color: #94A3B8; font-size: .86rem; } .soc-foot { border-top: 1px solid var(--line); padding: 22px 0 34px; color: var(--muted); font-size: .8rem; }
.soc-body .btn { box-shadow: 0 4px 12px rgba(30,58,138,.25); } .soc-body .table-wrap { border-radius: 14px; } .soc-body h1 { letter-spacing: -0.03em; }


/* ---------- TF-FOOT · pie de página (claro, legible y adaptado al modo oscuro) ---------- */
.tf-foot { margin-top: 80px; background: var(--surface); border-top: 1px solid var(--line); color: var(--ink); font-size: .95rem; position: relative; }
.tf-foot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand-grad); }
.tf-foot a { color: var(--muted); text-decoration: none; transition: color .15s; }
.tf-foot a:hover { color: var(--action); text-decoration: none; }
.tf-foot-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding: 56px 0 40px; }
.tf-foot-brand .logo-d { display: none; } .tf-foot-brand .logo-l { display: block; height: 36px; width: auto; }
@media (prefers-color-scheme: dark) { .tf-foot-brand .logo-l { display: none; } .tf-foot-brand .logo-d { display: block; height: 36px; width: auto; } }
.tf-foot-brand .name { font-weight: 850; font-size: 1.5rem; letter-spacing: -0.04em; color: var(--ink); }
.tf-foot-brand p { margin: 16px 0; max-width: 36ch; color: var(--muted); }
.tf-foot address { font-style: normal; color: var(--muted); line-height: 1.75; font-size: .9rem; }
.tf-foot address strong { color: var(--ink); font-weight: 700; }
.tf-foot-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tf-foot-social a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 650; color: var(--ink); background: var(--surface-2); }
.tf-foot-social a:hover { border-color: var(--action); color: var(--action); background: color-mix(in srgb, var(--action) 8%, transparent); }
.tf-foot h3 { margin: 0 0 16px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.tf-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.tf-foot li a { display: inline-block; }
.tf-foot li a:hover { transform: translateX(3px); }
.tf-foot-legal { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding: 26px 30px; margin-bottom: 30px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--r-xl); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface-2)); }
.tf-foot-age { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 3px solid var(--accent); color: var(--warn); font-weight: 900; font-size: 1.15rem; letter-spacing: -0.03em; box-shadow: var(--sh-1); }
.tf-foot-legal h3 { margin-bottom: 12px; }
.tf-foot-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tf-foot-notes p { margin: 0; font-size: .84rem; line-height: 1.6; color: var(--muted); }
.tf-foot-notes strong { display: block; color: var(--ink); font-size: .88rem; margin-bottom: 3px; }
.tf-foot-law { margin: 16px 0 0 !important; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .78rem !important; }
.tf-foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding: 22px 0 32px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.tf-foot-bar nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 980px) { .tf-foot-main { grid-template-columns: 1fr 1fr; } .tf-foot-brand { grid-column: 1 / -1; } .tf-foot-notes { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 560px) { .tf-foot-main { grid-template-columns: 1fr 1fr; padding-top: 40px; gap: 28px 20px; } .tf-foot-legal { grid-template-columns: 1fr; padding: 22px 20px; } .tf-foot-age { width: 50px; height: 50px; } }
.tf-foot li a span { display: block; font-size: .8rem; opacity: .75 !important; margin-top: 1px; }
.tf-foot-law { color: var(--muted); }
.hx-closing + .tf-foot, .hx-closing + footer { margin-top: 0; }
.tf-foot-notes a { color: var(--action); font-weight: 650; }

/* Anula restos del menú antiguo (panel.css) */
.side .side-title { text-transform: none; letter-spacing: -0.01em; font-size: .93rem; font-weight: 650; padding-top: 0; padding-bottom: 0; margin: 0; }
.side nav .side-group + .side-group { margin-top: 0; padding-top: 0; border-top: 0; }
.side .side-group { padding: 0; margin: 0; }
.side-link { line-height: 1.25; }
@media (max-width: 960px) {
  .side nav { display: grid; overflow: visible; margin-top: 0; padding-bottom: 6px; }
  .side-group { display: block; } .side-title { display: flex; } .side-foot .who { display: block; }
  .side-link { white-space: normal; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 14px 15px; } .stat .v { font-size: 1.55rem; } .stat .v.sm { font-size: 1.2rem; } .stat .k { font-size: .72rem; }
  .head-row .btn { width: 100%; }
}
.brand .logo-d { display: none; } .brand .logo-l, .brand .logo-d { height: 32px; width: auto; max-width: 200px; }
.top-brand .logo-l, .top-brand .logo-d { height: 28px; }
.brand-name { font-weight: 850; font-size: 1.35rem; letter-spacing: -0.04em; color: var(--ink); }
@media (prefers-color-scheme: dark) { .brand .logo-l:not(:only-child) { display: none; } .brand .logo-d { display: block; } }
@media (max-width: 960px) { .tabbar .tab.on::before { left: 50%; margin-left: -14px; } }
.top-brand .logo-d { display: none; }
@media (prefers-color-scheme: dark) { .top-brand .logo-l:not(:only-child) { display: none; } .top-brand .logo-d { display: block; } }
