/* ==========================================================================
   IFLXI — Sistema de diseño
   ========================================================================== */

/* Por defecto: tema claro. Oscuro → html[data-theme="dark"] */
:root {
  /* Superficies */
  --bg: #f3f5f9;
  --bg-soft: #e9edf4;
  --surface: #ffffff;
  --surface-2: #f0f3f8;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.16);

  /* Texto */
  --text: #0f172a;
  --muted: #5b6577;
  --dim: #8b93a7;

  /* Marca — negro (logo). Oscuro: se invierte a blanco + tinta negra */
  --brand: #0a0a0a;
  --brand-ink: #ffffff;
  --accent: #0a0a0a;
  --accent-2: #171717;
  --accent-3: #3a3a3a;
  --ok: #0f9f6e;
  --warn: #d97706;
  --danger: #e11d48;

  --grad-brand: linear-gradient(115deg, #0a0a0a 0%, #1c1c1c 55%, #2e2e2e 100%);
  --grad-surface: linear-gradient(160deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.01));

  --header-bg: rgba(255, 255, 255, 0.84);
  --panel-glass: rgba(255, 255, 255, 0.92);
  --results-bg: #ffffff;
  --hover-fill: rgba(15, 23, 42, 0.045);
  --hover-fill-strong: rgba(15, 23, 42, 0.075);
  --grid-line: rgba(15, 23, 42, 0.055);
  --scrollbar-thumb: #c5ccd8;
  --aurora-opacity: 0.1;
  --btn-primary-ink: #ffffff;
  --select-option-bg: #ffffff;
  --theme-color: #f3f5f9;

  /* Métricas */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1220px;
  --header-h: 112px;
  --header-top-h: 64px;
  --header-bar-h: 48px;

  --shadow: 0 18px 48px -22px rgba(15, 23, 42, 0.22);
  --shadow-glow: 0 0 0 1px rgba(10, 10, 10, 0.18), 0 16px 40px -18px rgba(10, 10, 10, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

html[data-theme="dark"] {
  --bg: #06080d;
  --bg-soft: #0a0e16;
  --surface: #0e131d;
  --surface-2: #141a26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eaeff7;
  --muted: #8a94a8;
  --dim: #5d6678;
  /* Barras/marca blancas + letras negras */
  --brand: #ffffff;
  --brand-ink: #0a0a0a;
  --accent: #ffffff;
  --accent-2: #f2f2f2;
  --accent-3: #c8c8c8;
  --ok: #00e5a0;
  --warn: #ffb020;
  --danger: #ff5c72;
  --grad-brand: linear-gradient(115deg, #ffffff 0%, #ececec 55%, #dcdcdc 100%);
  --grad-surface: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  --header-bg: rgba(6, 8, 13, 0.72);
  --panel-glass: rgba(14, 19, 29, 0.85);
  --results-bg: rgba(11, 15, 23, 0.96);
  --hover-fill: rgba(255, 255, 255, 0.05);
  --hover-fill-strong: rgba(255, 255, 255, 0.07);
  --grid-line: rgba(255, 255, 255, 0.028);
  --scrollbar-thumb: #1c2432;
  --aurora-opacity: 0.14;
  --btn-primary-ink: #0a0a0a;
  --select-option-bg: #0e131d;
  --theme-color: #06080d;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 20px 60px -20px rgba(255, 255, 255, 0.18);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--brand-ink); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { filter: brightness(0.9); }

/* --------------------------------------------------------------------------
   Layout base
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 6px;
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   Fondo ambiental
   -------------------------------------------------------------------------- */

/* Fondo decorativo desactivado: superficie lisa de un solo color */
.aurora,
.grid-bg {
  display: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: auto;
  min-height: var(--header-h);
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s;
}

.header--lab {
  background: var(--bg, #f3f5f9);
}

html[data-theme="dark"] .header--lab {
  background: #0b1018;
}

.header.is-stuck {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.header__top {
  height: var(--header-top-h);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg, #f3f5f9) 92%, #fff);
}

html:not([data-theme="dark"]) .header__top {
  background: #eef1f6;
}

html[data-theme="dark"] .header__top {
  background: #0e1520;
}

.header__top-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.live-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.55);
  animation: live-pulse 1.4s ease infinite;
}

.header-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

html[data-theme="dark"] .header-search {
  background: #141c28;
}

.header-search__icon {
  position: absolute;
  left: 12px;
  color: var(--dim);
  pointer-events: none;
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.header-search input::placeholder { color: var(--dim); }

.header-search__kbd {
  flex: none;
  font-size: 0.7rem;
  font-family: inherit;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--dim);
  background: color-mix(in srgb, var(--text) 4%, transparent);
}

.header-search .results {
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
}

.header__bar {
  height: var(--header-bar-h);
  background: var(--brand);
  color: var(--brand-ink);
}

.header__bar-inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.header--lab .nav {
  margin-left: 0;
  gap: 2px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.header--lab .nav::-webkit-scrollbar { display: none; }

.header--lab .nav a {
  padding: 12px 14px;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand-ink) 72%, transparent);
  background: transparent;
  position: relative;
  white-space: nowrap;
}

.header--lab .nav a:hover {
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand-ink) 8%, transparent);
}

.header--lab .nav a.is-active,
.header--lab .nav a[aria-current="page"] {
  color: var(--brand-ink);
  background: transparent;
}

.header--lab .nav a.is-active::after,
.header--lab .nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand-ink);
}

.header .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--brand) 55%, transparent);
  flex: none;
}

.logo__mark svg { width: 20px; height: 20px; }

.logo__text b { font-weight: 800; }
.logo__text span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.logo__img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo__img--for-dark { display: none; }

html[data-theme="dark"] .logo__img--for-light { display: none; }
html[data-theme="dark"] .logo__img--for-dark { display: block; }

.logo .logo__mark,
.logo .logo__text { display: none; } /* sustituido por PNG de marca */

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover { color: var(--text); background: var(--hover-fill); }
.nav a.is-active { color: var(--text); background: var(--hover-fill-strong); }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }

.header .logo__img { height: 34px; }

.header--lab .header__cta {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.nav a.nav__more { color: var(--muted); }

@media (max-width: 1100px) {
  .header__login { display: none; }
  .live-pill { display: none; }
}

@media (max-width: 980px) {
  .nav a.nav__more { display: none; }
  .header-search { max-width: none; }
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  place-items: center;
  background: var(--surface);
}

.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.3s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 12px 34px -14px color-mix(in srgb, var(--brand) 55%, transparent);
}
.btn--primary:hover { box-shadow: 0 18px 46px -14px color-mix(in srgb, var(--brand) 70%, transparent); }

.btn--ghost { background: transparent; }
.btn--sm { padding: 9px 15px; font-size: 0.83rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(20px, 3vw, 36px) 0 40px;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Noticias — estilo wire / Transfermarkt */
.hero__news {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.tm-news {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
}

.tm-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--brand);
  color: var(--brand-ink);
}

.tm-news__head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
}

.tm-news__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff5c72;
}

.tm-news__live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5c72;
}

.tm-news__ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  white-space: nowrap;
}

.tm-news__ticker-track {
  display: inline-flex;
  gap: 0;
  padding: 10px 0;
  animation: tmTicker 38s linear infinite;
}

.tm-news__ticker-track:hover { animation-play-state: paused; }

@keyframes tmTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tm-news__tick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  font-size: 0.86rem;
  color: var(--text);
  border-right: 1px solid var(--line);
}

.tm-news__tick b {
  color: var(--danger);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tm-news__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .tm-news__grid { grid-template-columns: 1.35fr 1fr; }
}

.tm-news__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.tm-news__item:hover { background: var(--hover-fill); }

.tm-news__item--lead {
  grid-column: 1 / -1;
  grid-template-columns: minmax(160px, 280px) 1fr;
  border-bottom: 2px solid var(--line);
}

@media (max-width: 640px) {
  .tm-news__item,
  .tm-news__item--lead { grid-template-columns: 72px 1fr; }
}

.tm-news__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--c, #2a2a2a) 70%, #111), #111);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-news__body { min-width: 0; }

.tm-news__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.tm-news__cat { color: var(--accent-2); }

.tm-news__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.tm-news__item--lead .tm-news__title {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-family: var(--font-display);
}

.tm-news__excerpt {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.stats-grid--compact {
  margin-top: 36px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 9px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--hover-fill);
  font-size: 0.8rem;
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.badge-pill b { color: var(--text); font-weight: 600; }

.badge-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 0%, transparent); }
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin: 36px 0 0;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.hero h1 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  max-width: 62ch;
  margin: 20px auto 0;
}

/* --------------------------------------------------------------------------
   Buscador gigante
   -------------------------------------------------------------------------- */

.searchbox {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
  z-index: 40;
  width: 100%;
}

.searchbox--wide {
  max-width: 1100px;
}

.searchbox__field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--panel-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  transition: border-color 0.25s, box-shadow 0.35s, transform 0.25s var(--ease);
}

.searchbox:focus-within .searchbox__field {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.searchbox__icon { color: var(--dim); flex: none; transition: color 0.25s; }
.searchbox:focus-within .searchbox__icon { color: var(--accent); }

.searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  padding: 18px 0;
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  font-weight: 500;
}

.searchbox input::placeholder { color: var(--dim); }

.searchbox__kbd {
  display: flex;
  gap: 4px;
  margin-right: 6px;
}

.searchbox__kbd kbd {
  font-family: var(--font);
  font-size: 0.7rem;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  background: var(--hover-fill);
}

/* Resultados */
.results {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  max-height: 62vh;
  overflow-y: auto;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--results-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.985);
  transition: opacity 0.22s, transform 0.28s var(--ease), visibility 0.22s;
}

.results.is-open { opacity: 1; visibility: visible; transform: none; }

.results__group {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 12px 12px 8px;
}

.result {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.result:hover,
.result.is-highlighted { background: var(--hover-fill-strong); }

.result__main { min-width: 0; flex: 1; }
.result__name { font-weight: 600; font-size: 0.95rem; }
.result__meta { font-size: 0.8rem; color: var(--muted); }
.result__value { font-size: 0.85rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

.results__empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero__hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.83rem;
  color: var(--dim);
}

.chip {
  padding: 6px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--hover-fill);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
  font-size: 0.82rem;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--hover-fill-strong);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Estadísticas globales
   -------------------------------------------------------------------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 64px;
}

.stat-card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--grad-surface);
  text-align: left;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 120px at 50% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.stat-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.stat-card:hover::after { opacity: 1; }

.stat-card__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-card__label { color: var(--muted); font-size: 0.88rem; margin-top: 10px; }

.stat-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  padding: 3px 9px;
  border-radius: 99px;
}

/* --------------------------------------------------------------------------
   Tarjeta de jugador
   -------------------------------------------------------------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.player-card {
  position: relative;
  display: block;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--grad-surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}

.player-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.player-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.player-card:hover::before { opacity: 0.75; }

.player-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 38px;
}

.player-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.03rem;
  letter-spacing: -0.02em;
}

.player-card__club {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.player-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mini-stat { text-align: center; }
.mini-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.mini-stat span {
  font-size: 0.68rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.player-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.value-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Avatar */
.avatar {
  position: relative;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.02em;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(150deg, var(--c1, #1d2636), var(--c2, #0d1119));
}

.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.avatar--photo {
  background: #e8edf3;
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .avatar--photo {
  background: #1a2230;
  border-color: rgba(255, 255, 255, 0.1);
}

.avatar--xl { width: 132px; height: 132px; border-radius: 26px; font-size: 2.2rem; }
.avatar--sm { width: 40px; height: 40px; border-radius: 12px; font-size: 0.78rem; }

.badge-club {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 0;
  display: inline-grid;
  place-items: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  border: 0;
  overflow: visible;
  box-sizing: border-box;
  background: transparent;
  box-shadow: none;
}

.badge-club--img {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
}

.badge-club img,
.tm-subnav__logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  image-rendering: auto;
}

.tm-subnav__logo-wrap {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

.club-only .badge-club {
  width: 30px;
  height: 30px;
  border-radius: 0;
  padding: 0;
  background: transparent !important;
}

.pos-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Rating IA */
.ai-score {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  color: var(--brand);
}

.ai-score svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   Scroller horizontal (jóvenes talentos)
   -------------------------------------------------------------------------- */

.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 260px);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 20px 20px;
  margin-inline: -20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }

.talent-card {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(180, 92, 255, 0.09), rgba(255, 255, 255, 0.015));
  transition: transform 0.4s var(--ease), border-color 0.3s;
  display: block;
}

.talent-card:hover { transform: translateY(-6px); border-color: rgba(180, 92, 255, 0.45); }

.talent-card__age {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.14);
}

.progress {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-top: 6px;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-brand);
  width: 0;
  transition: width 1.1s var(--ease);
}

.label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 14px;
}

.label-row b { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   Tabla de fichajes
   -------------------------------------------------------------------------- */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--grad-surface);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.panel__head h3 { font-size: 1.02rem; }
.panel__body { padding: 22px; }

.table-wrap { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

table.data th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 0.9rem;
  vertical-align: middle;
}

table.data tbody tr { transition: background 0.18s; cursor: pointer; }
table.data tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
table.data tbody tr:last-child td { border-bottom: 0; }

.cell-player { display: flex; align-items: center; gap: 12px; }
.cell-player b { font-weight: 600; }
.cell-player small { display: block; color: var(--dim); font-size: 0.75rem; }

.transfer-route {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.transfer-route svg { color: var(--brand); flex: none; }

.fee { font-weight: 700; font-family: var(--font-display); }
.fee--free { color: var(--ok); }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.tag--warn {
  color: #f0b429;
  border-color: rgba(240, 180, 41, 0.35);
  background: rgba(240, 180, 41, 0.1);
}

/* --------------------------------------------------------------------------
   Mercado: fichajes + rumores · Directo · Partidos
   -------------------------------------------------------------------------- */

.market-split {
  display: grid;
  gap: 18px;
}

.section-head--tm {
  margin-bottom: 12px;
  width: 100%;
}

.section-head--tm h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.tm-subnav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 6px;
  margin: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--text) 2.5%, transparent);
}

.tm-subnav::-webkit-scrollbar { display: none; }

.tm-subnav-spacer { display: none; }

html:not([data-theme="dark"]) .tm-subnav {
  background: #f3f5f8;
  border-color: #e2e7ef;
}

.tm-subnav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.tm-subnav__item:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 5%, transparent);
}

.tm-subnav__item.is-active,
.tm-subnav__item[aria-current="page"] {
  color: var(--brand-ink);
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: none;
}

.tm-subnav__logo-wrap {
  flex: none;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  box-shadow: none;
}

.tm-subnav__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
}

.market-split--tm {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px 20px;
}

.market-split--tm > .tm-subnav { grid-column: 1; }
.market-split--tm > .tm-panel { grid-column: 1; }

@media (min-width: 960px) {
  .market-split--tm {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .market-split--tm > .tm-subnav {
    grid-column: 1;
    grid-row: 1;
    gap: 3px;
    padding: 3px;
  }
  .market-split--tm > .tm-subnav .tm-subnav__item {
    flex: 1 1 0;
    padding: 5px 4px;
    font-size: 0.62rem;
    gap: 4px;
  }
  .market-split--tm > .tm-subnav .tm-subnav__logo-wrap {
    width: 13px;
    height: 13px;
  }
  .market-split--tm > .tm-subnav-spacer {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }
  .market-split--tm > .tm-panel:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .market-split--tm > .tm-panel:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 1100px) and (min-width: 960px) {
  .market-split--tm > .tm-subnav .tm-subnav__item {
    font-size: 0.56rem;
    padding: 4px 2px;
    gap: 2px;
  }
  .market-split--tm > .tm-subnav .tm-subnav__logo-wrap {
    width: 11px;
    height: 11px;
  }
}

.tm-panel {
  border-radius: 4px;
  overflow: hidden;
}

.tm-panel__head {
  background: var(--brand);
  border-bottom: 0;
  padding: 10px 14px;
}

.tm-panel__head h3 {
  color: var(--brand-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

html[data-theme="dark"] .tm-panel__head {
  background: var(--brand);
}

.tm-panel__foot {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  text-align: right;
  background: var(--surface-2, transparent);
}

.tm-panel__foot a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-2, var(--accent));
  text-decoration: none;
}

.tm-panel__foot a:hover { text-decoration: underline; }

table.data--tm {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

table.data--tm thead th {
  background: #e8ecf0;
  color: #333;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  border-bottom: 1px solid #d5dbe3;
  padding: 8px 12px;
}

html[data-theme="dark"] table.data--tm thead th {
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--muted);
  border-bottom-color: var(--line);
}

table.data--tm tbody tr:nth-child(odd) {
  background: color-mix(in srgb, var(--text) 3.5%, transparent);
}

html:not([data-theme="dark"]) table.data--tm tbody tr:nth-child(odd) {
  background: #f4f6f8;
}

table.data--tm th,
table.data--tm td {
  padding: 9px 12px;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  overflow: visible;
}

table.data--tm td:first-child {
  overflow: hidden; /* nombres largos con ellipsis */
}

table.data--tm tbody tr:last-child td { border-bottom: 0; }

/* Columna ancha jugador · ruta de clubes · coste */
table.data--tm th:nth-child(1),
table.data--tm td:nth-child(1) { width: 52%; }
table.data--tm th:nth-child(2),
table.data--tm td:nth-child(2) { width: 26%; }
table.data--tm th:nth-child(3),
table.data--tm td:nth-child(3) { width: 22%; }

table.data--tm .th-center,
table.data--tm .td-club,
table.data--tm .td-route {
  text-align: center;
}

.transfer-route--badges {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.transfer-route--badges .transfer-route__arrow {
  display: inline-flex;
  color: var(--brand);
  opacity: 0.85;
}

.transfer-route--badges .transfer-route__arrow svg {
  width: 16px;
  height: 16px;
}

.transfer-route--badges .club-only .badge-club {
  width: 30px;
  height: 30px;
  background: transparent !important;
  border: 0 !important;
  padding: 0;
  border-radius: 0;
  overflow: visible;
}

table.data--tm .cell-player { gap: 10px; min-width: 0; }
table.data--tm .cell-player > div { min-width: 0; }
table.data--tm .cell-player b,
table.data--tm .cell-player small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
table.data--tm .cell-player small { color: var(--dim); font-size: 0.75rem; }

table.data--tm .tm-link {
  color: var(--brand);
  font-weight: 600;
}

html[data-theme="dark"] table.data--tm .tm-link {
  color: var(--brand);
}

table.data--tm .fee {
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
  color: var(--text);
  font-family: inherit;
}

table.data--tm th:last-child,
table.data--tm td:last-child,
table.data--tm .th-pct {
  text-align: right;
}

table.data--tm .th-pct {
  padding-right: 14px;
}

.fee--loan,
.fee--free {
  color: var(--text);
  font-weight: 700;
}

.club-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cell-club-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.rumor-pct {
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
  color: var(--text);
}

.rumor-pct--unk {
  color: var(--dim);
  font-size: 1.05rem;
  font-weight: 600;
}

.rumor-arrow { font-size: 0.65rem; margin-left: 2px; }
.rumor-arrow--up { color: #2f9e5f; }
.rumor-arrow--down { color: #d64545; }

.live-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .live-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .live-grid,
  .live-grid--day { grid-template-columns: repeat(3, 1fr); }
}

.match-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--grad-surface);
  padding: 16px 18px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.match-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.match-card--live {
  border-color: rgba(255, 80, 80, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.08) inset;
}

.match-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.match-card__league {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.match-card__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff5a5a;
}

.match-card__live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5a5a;
  box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.55);
  animation: live-pulse 1.4s ease infinite;
}

@keyframes live-pulse {
  70% { box-shadow: 0 0 0 8px rgba(255, 90, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0); }
}

.match-card__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.match-card__team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 0;
}

.match-card__team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card__team--away { justify-content: flex-end; text-align: right; }

.match-card__score {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.match-card__kick {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.cards-grid--top {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.empty-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-matches { padding-top: 48px; }

.page-matches h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 6px;
}

.matches-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Bloque CTA / features
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.feature {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--grad-surface);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}

.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  color: var(--brand);
  margin-bottom: 16px;
}

.feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.9rem; }

.cta {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: clamp(34px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
    var(--surface);
}

.cta h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta p { color: var(--muted); max-width: 54ch; margin: 14px auto 26px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 52px 0 32px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand) 4%, transparent));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
}

.footer h4 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
  font-family: var(--font);
  font-weight: 700;
}

.footer li + li { margin-top: 9px; }
.footer li a { color: var(--muted); font-size: 0.88rem; transition: color 0.2s; }
.footer li a:hover { color: var(--accent); }

.footer__about { color: var(--muted); font-size: 0.88rem; margin-top: 14px; max-width: 38ch; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Página de jugador
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--dim);
  padding: 22px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent); }

.profile {
  position: relative;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 12% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 68%),
    radial-gradient(600px 300px at 88% 10%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 66%),
    var(--surface);
}

.profile__top {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.profile__id { flex: 1; min-width: 260px; }

.profile__name {
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: -0.04em;
  margin-top: 8px;
}

.profile__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.profile__aside {
  text-align: right;
  min-width: 200px;
}

.profile__value-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.profile__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  margin-top: 6px;
}
.delta--up { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent); }
.delta--down { color: var(--danger); background: rgba(255, 92, 114, 0.1); border: 1px solid rgba(255, 92, 114, 0.24); }

.datagrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 30px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.datagrid > div {
  background: var(--surface);
  padding: 16px 18px;
}

.datagrid dt {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 5px;
}

.datagrid dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.layout-2 {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: start;
}

.stat-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}

.stat-block {
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.stat-block:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.stat-block b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-block span {
  font-size: 0.74rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Gráfico */
.chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 6px;
  background: var(--accent);
}

.chart-tip {
  position: absolute;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(6, 8, 13, 0.95);
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  white-space: nowrap;
  transform: translate(-50%, -130%);
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 5;
  box-shadow: var(--shadow);
}
.chart-tip.is-visible { opacity: 1; }
.chart-tip b { color: var(--accent); }

/* Atributos */
.attr-row {
  display: grid;
  grid-template-columns: 92px 1fr 34px;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
}

.attr-row + .attr-row { margin-top: 13px; }
.attr-row span:first-child { color: var(--muted); }
.attr-row b { text-align: right; font-family: var(--font-display); }

.bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-brand);
  transition: width 1s var(--ease);
}

/* Timeline de clubes */
.timeline { position: relative; padding-left: 30px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 255, 255, 0.08));
}

.timeline li { position: relative; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline li.is-past::before { border-color: var(--dim); }

.tl-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.tl-club { font-weight: 600; display: flex; align-items: center; gap: 9px; }
.tl-dates { font-size: 0.78rem; color: var(--dim); white-space: nowrap; }
.tl-meta { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* Similares IA */
.similar-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}

.similar-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  transform: translateX(3px);
}

.affinity {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  margin-left: auto;
  white-space: nowrap;
}

.ai-note {
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.ai-note svg { flex: none; width: 16px; height: 16px; color: var(--brand); margin-top: 3px; }

/* --------------------------------------------------------------------------
   Comparador
   -------------------------------------------------------------------------- */

.compare-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}

.pick {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--grad-surface);
  text-align: center;
  transition: border-color 0.3s;
}

.pick--a { box-shadow: inset 0 0 60px -30px rgba(0, 229, 160, 0.6); }
.pick--b { box-shadow: inset 0 0 60px -30px rgba(180, 92, 255, 0.6); }

.pick .avatar { margin: 0 auto 14px; }

.pick__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pick__meta { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

.select-wrap { position: relative; margin-top: 18px; }

.select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 38px 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.select-wrap select:focus { border-color: var(--accent); }
.select-wrap select option { background: var(--select-option-bg); color: var(--text); }

.select-wrap::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.vs {
  align-self: center;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  position: relative;
}

.vs::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  animation: spin 22s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.duel {
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
}

.duel + .duel { border-top: 1px solid rgba(255, 255, 255, 0.05); }

.duel__label {
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim);
}

.duel__side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.duel__side--a { flex-direction: row-reverse; }

.duel__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  min-width: 62px;
  white-space: nowrap;
}

.duel__side--a .duel__num { text-align: left; }
.duel__side--b .duel__num { text-align: right; }

.duel__bar {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
}

.duel__side--a .duel__bar { justify-content: flex-end; }

.duel__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width 0.9s var(--ease);
}

.duel__side--a .duel__bar i { background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #666)); }
.duel__side--b .duel__bar i { background: linear-gradient(90deg, #6b7280, #9ca3af); }

.duel.is-win-a .duel__side--a .duel__num { color: var(--brand); }
.duel.is-win-b .duel__side--b .duel__num { color: var(--muted); }

.verdict {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.verdict__card {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.verdict__card h4 { font-size: 0.8rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; font-family: var(--font); }
.verdict__card p { font-size: 0.9rem; color: var(--muted); }
.verdict__card strong { color: var(--text); }

.radar-wrap {
  display: grid;
  place-items: center;
  padding: 8px 0;
}

/* --------------------------------------------------------------------------
   Animaciones de entrada
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 37%, rgba(255, 255, 255, 0.04) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  min-height: 120px;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .layout-2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; --header-bar-h: 0px; }

  .header__bar {
    height: 0;
    overflow: visible;
  }

  .header__top-inner {
    gap: 8px;
  }

  .header .logo__img {
    height: 28px;
  }

  .header-search {
    min-width: 0;
    height: 36px;
    padding: 0 10px 0 32px;
    border-radius: 9px;
  }

  .header-search__icon {
    left: 10px;
  }

  .header-search input {
    font-size: 0.84rem;
  }

  .header--lab .nav {
    position: fixed;
    inset: var(--header-top-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding: 14px 20px 22px;
    background: var(--brand);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-ink) 12%, transparent);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
    z-index: 95;
  }

  .header--lab .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .header--lab .nav a { padding: 13px 14px; font-size: 0.9rem; }
  .header--lab .nav a.is-active::after,
  .header--lab .nav a[aria-current="page"]::after { display: none; }

  .burger { display: grid; }
  .header__actions .btn { display: none; }
  .header-search__kbd { display: none; }
  .social-links--header { display: none; }

  .compare-head { grid-template-columns: 1fr; }
  .vs { margin: 0 auto; }

  .duel { grid-template-columns: 1fr; gap: 8px; }
  .duel__label { order: -1; text-align: left; }
  .duel__side--a { flex-direction: row; }
  .duel__side--a .duel__bar { justify-content: flex-start; }
  .duel__side--a .duel__bar i { background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #666)); }
  .duel__num { min-width: 54px; }
  .duel__side--a .duel__num,
  .duel__side--b .duel__num { text-align: left; }

  .profile__aside { text-align: left; }
  .profile__aside > div:last-child { justify-content: flex-start !important; }
  .datagrid { grid-template-columns: repeat(2, 1fr); }

  /* Fichajes / recomendaciones: aire en móvil */
  #fichajes.section {
    padding: 40px 0;
  }

  #fichajes .section-head--tm {
    margin-bottom: 14px;
  }

  #fichajes .section-head--tm h2 {
    font-size: 1.45rem;
  }

  .market-split--tm {
    gap: 14px;
  }

  #fichajes .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table.data--tm th,
  table.data--tm td {
    padding: 8px 7px;
    font-size: 0.74rem;
  }

  table.data--tm thead th {
    font-size: 0.62rem;
    padding: 7px;
  }

  table.data--tm th:nth-child(1),
  table.data--tm td:nth-child(1) { width: 48%; }
  table.data--tm th:nth-child(2),
  table.data--tm td:nth-child(2) { width: 28%; }
  table.data--tm th:nth-child(3),
  table.data--tm td:nth-child(3) { width: 24%; }

  table.data--tm .cell-player {
    gap: 7px;
  }

  table.data--tm .avatar--sm {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.65rem;
  }

  table.data--tm .cell-player small {
    font-size: 0.66rem;
  }

  .transfer-route--badges {
    gap: 4px;
  }

  .transfer-route--badges .club-only .badge-club {
    width: 22px;
    height: 22px;
  }

  .transfer-route--badges .transfer-route__arrow svg {
    width: 12px;
    height: 12px;
  }

  table.data--tm .fee,
  .rumor-pct {
    font-size: 0.72rem;
  }

  .cell-club-inline {
    gap: 4px;
    max-width: 100%;
  }

  .cell-club-inline .badge-club {
    width: 14px;
    height: 14px;
  }

  .tm-panel__foot {
    padding: 10px 12px;
  }

  .tm-panel__foot a {
    font-size: 0.78rem;
  }
}

@media (max-width: 620px) {
  .container { padding-inline: 14px; }
  .section { padding: 52px 0; }
  .searchbox__kbd { display: none; }
  .searchbox__field { padding-left: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .player-card { padding: 16px; }
  .avatar { width: 46px; height: 46px; border-radius: 14px; font-size: 0.85rem; }
  .avatar--xl { width: 96px; height: 96px; border-radius: 22px; font-size: 1.6rem; }
  .stats-grid { margin-top: 44px; }

  /* En pantallas muy estrechas: menos texto en rumores */
  table.data--tm .cell-club-inline {
    font-size: 0;
  }
  table.data--tm .cell-club-inline .badge-club {
    font-size: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Toggle tema claro / oscuro
   -------------------------------------------------------------------------- */

/* Redes sociales */
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  color: var(--text);
}

.social-links a svg {
  width: 17px;
  height: 17px;
  display: block;
}

.social-links--header {
  margin-right: 2px;
  gap: 4px;
}

.social-links--header a {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
}

html[data-theme="dark"] .social-links--header a {
  background: #141c28;
}

@media (max-width: 1100px) {
  .social-links--header a:nth-child(n + 3) { display: none; }
}

@media (max-width: 900px) {
  .social-links--header { display: none; }
}

.social-links--footer {
  margin-top: 18px;
  gap: 8px;
}

.social-links--footer a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.social-links--footer a svg {
  width: 18px;
  height: 18px;
}

.footer__social-label {
  margin: 18px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
  flex: none;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.theme-toggle svg { width: 18px; height: 18px; }

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* --------------------------------------------------------------------------
   Radiografía Lab — club intelligence
   -------------------------------------------------------------------------- */

.lab-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 900px) {
  .lab-showcase { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.lab-club-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 55%),
    var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s;
  min-height: 108px;
}

.lab-club-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.lab-club-card__badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(145deg, var(--c1), var(--c2));
}

.lab-club-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lab-club-card__body strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lab-club-card__body span,
.lab-club-card__body em {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: normal;
}

.lab-club-card__body em { color: var(--accent); font-weight: 600; }

.lab-club-card__arrow {
  color: var(--dim);
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease), color 0.2s;
}

.lab-club-card:hover .lab-club-card__arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.lab-hero {
  position: relative;
  margin: 18px 0 22px;
  padding: 28px 24px 22px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--c1) 42%, var(--bg)) 0%, var(--surface) 55%, color-mix(in srgb, var(--c2) 35%, var(--bg)) 100%);
  isolation: isolate;
}

.lab-hero__glow {
  position: absolute;
  inset: -20% auto auto 40%;
  width: 55%;
  height: 80%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: labPulse 5.5s ease-in-out infinite;
}

@keyframes labPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.lab-hero__crumb,
.lab-hero__grid,
.lab-kpis { position: relative; z-index: 1; }

.lab-hero__crumb { margin-bottom: 18px; }

.lab-hero__grid {
  display: grid;
  gap: 22px;
  align-items: center;
}

@media (min-width: 860px) {
  .lab-hero__grid { grid-template-columns: 1fr auto; }
}

.lab-hero__id {
  display: flex;
  gap: 18px;
  align-items: center;
}

.lab-hero__name {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.lab-hero__meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.lab-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag--accent {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.lab-hero__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.lab-hero__score-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 220px;
  line-height: 1.35;
}

.lab-hero__score-note small { color: var(--dim); }

.lab-score {
  position: relative;
  width: 132px;
  height: 132px;
}

.lab-score svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.lab-score__track {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 8;
}

.lab-score__value {
  fill: none;
  stroke: url(#none);
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 45%, transparent));
}

.lab-score__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--font-display);
}

.lab-score__num b {
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.lab-score__num span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lab-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

@media (min-width: 800px) {
  .lab-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.lab-kpi {
  padding: 12px 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--line);
  text-align: center;
}

.lab-kpi b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.lab-kpi span {
  font-size: 0.72rem;
  color: var(--muted);
}

.lab-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 8px;
}

@media (min-width: 960px) {
  .lab-grid {
    grid-template-columns: 1.35fr 1fr;
    grid-template-areas:
      "pitch ages"
      "pitch nations"
      "insights insights";
  }
  .lab-panel--pitch { grid-area: pitch; }
  .lab-panel--insights { grid-area: insights; }
}

.lab-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-glass);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.lab-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.lab-panel__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.lab-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.lab-bars,
.lab-nations { display: flex; flex-direction: column; gap: 10px; }

.lab-bars__row,
.lab-nations__row {
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  gap: 10px;
  align-items: center;
  animation: labRowIn 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes labRowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

.lab-bars__label,
.lab-nations__name {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lab-bars__track,
.lab-nations__track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.lab-bars__fill,
.lab-nations__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-brand);
  transition: width 0.9s var(--ease);
}

.lab-nations__fill {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.lab-bars__n,
.lab-nations__n {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lab-insights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 800px) {
  .lab-insights { grid-template-columns: 1fr 1fr; }
}

.lab-insights li {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  padding-left: 34px;
}

.lab-insights li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.lab-pitch {
  --pitch: #147a4a;
  --pitch-line: rgba(255, 255, 255, 0.28);
}

.lab-pitch__field {
  position: relative;
  border-radius: 18px;
  padding: 16px 12px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 30%),
    repeating-linear-gradient(
      0deg,
      color-mix(in srgb, var(--pitch) 92%, #0a3d24),
      color-mix(in srgb, var(--pitch) 92%, #0a3d24) 14%,
      color-mix(in srgb, var(--pitch) 100%, #0f5a33) 14%,
      color-mix(in srgb, var(--pitch) 100%, #0f5a33) 28%
    );
  border: 2px solid var(--pitch-line);
  overflow: hidden;
}

.lab-pitch__mark--mid {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: var(--pitch-line);
}

.lab-pitch__mark--mid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  border: 1px solid var(--pitch-line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.lab-pitch__mark--box {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 8px;
  height: 18%;
  border: 1px solid var(--pitch-line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

.lab-pitch__line { position: relative; z-index: 1; }

.lab-pitch__line-label {
  display: inline-block;
  margin: 0 0 6px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.lab-pitch__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.lab-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  min-width: 92px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c1) 80%, #000), color-mix(in srgb, var(--c2) 85%, #000));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  animation: labChipIn 0.55s var(--ease) both;
}

.lab-chip:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.85);
}

@keyframes labChipIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.lab-chip__pos {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.75;
}

.lab-chip__name {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 88px;
}

.lab-chip__age {
  font-size: 0.7rem;
  opacity: 0.7;
}

.lab-pitch__empty {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

body[data-page="club"] .container:has(#club-root) {
  max-width: 1180px;
}

@media (max-width: 640px) {
  .lab-hero { padding: 20px 16px; border-radius: 22px; }
  .lab-hero__id { flex-direction: column; align-items: flex-start; }
  .lab-pitch__field { min-height: 380px; }
}

/* --------------------------------------------------------------------------
   Arena — duelo cinematic
   -------------------------------------------------------------------------- */

.arena {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #070a10;
  color: #eaeff7;
}

.arena__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 12% 40%, rgba(0, 229, 160, 0.16), transparent 60%),
    radial-gradient(55% 70% at 88% 50%, rgba(180, 92, 255, 0.18), transparent 62%),
    linear-gradient(180deg, #0a0e16, #06080d 55%, #0b1020);
  pointer-events: none;
}

.arena__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 75%);
  animation: arenaGrid 18s linear infinite;
}

@keyframes arenaGrid {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

.arena .container { position: relative; z-index: 1; }

.arena__head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}

.arena__head h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff;
}

.arena__head p { color: #8a94a8; max-width: 46ch; }

.arena__eyebrow { color: var(--brand) !important; }

.arena__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.arena__btn-light,
.arena .btn:not(.btn--primary) {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  font-weight: 700;
}

.arena .btn--primary {
  color: #04140f !important;
}

.arena__pickers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .arena__pickers { grid-template-columns: 1fr; }
  .arena__picker-vs { display: none; }
}

.arena-search {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.arena-search__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a94a8;
}

.arena-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #101722;
  color: #fff;
}

.arena-search__field svg { color: #8a94a8; flex: none; }

.arena-search__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.arena-search__field input::placeholder { color: #6b7385; }

.arena-search__results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  max-height: 260px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d121c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.arena-search__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  color: #eaeff7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.arena-search__option:hover,
.arena-search__option:focus {
  background: rgba(0, 229, 160, 0.1);
}

.arena-search__option .avatar {
  width: 34px !important;
  height: 34px !important;
  font-size: 0.7rem !important;
  border-radius: 10px !important;
}

.arena-search__option b { display: block; font-size: 0.9rem; }
.arena-search__option span { display: block; font-size: 0.75rem; color: #8a94a8; }

.arena-search__picked {
  min-height: 28px;
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 600;
}

.arena-search__picked:empty { display: none; }

.arena__picker-vs {
  width: 48px;
  height: 48px;
  margin-bottom: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Cuenta / registro */
.section--cuenta {
  background:
    radial-gradient(70% 80% at 10% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    var(--bg);
}

.cuenta {
  display: grid;
  gap: 22px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .cuenta { grid-template-columns: 1.1fr 0.9fr; gap: 36px; padding: 36px; }
}

.cuenta__copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}

.cuenta__copy > p { color: var(--muted); max-width: 42ch; }

.cuenta__perks {
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
}

.cuenta__perks li {
  padding-left: 22px;
  position: relative;
  font-weight: 600;
}

.cuenta__perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.cuenta__note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  min-height: 1.2em;
}

.cuenta__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.cuenta__form h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.cuenta__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.cuenta__form input[type="text"],
.cuenta__form input[type="email"],
.cuenta__form input[type="password"] {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.cuenta__form input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
}

.cuenta__check {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  font-weight: 500 !important;
}

.cuenta__switch {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.cuenta__switch button {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: underline;
}

.cuenta__feedback {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.cuenta__feedback.is-error { color: var(--danger); }

.arena__stage {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(12px);
  padding: 22px;
  min-height: 420px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.arena__loading {
  display: grid;
  place-items: center;
  min-height: 360px;
  color: #8a94a8;
}

.arena__duel {
  display: grid;
  gap: 18px;
  align-items: center;
}

@media (min-width: 960px) {
  .arena__duel {
    grid-template-columns: 1fr minmax(240px, 320px) 1fr;
  }
}

.arena__fighter {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  min-height: 220px;
  animation: arenaFighterIn 0.7s var(--ease) both;
}

.arena__fighter--a { --accent-local: var(--brand); }
.arena__fighter--b { --accent-local: #9ca3af; animation-delay: 0.08s; }

@keyframes arenaFighterIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.arena__fighter-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.arena__fighter .avatar {
  width: 72px !important;
  height: 72px !important;
  font-size: 1.2rem !important;
  border-radius: 18px !important;
}

.arena__fighter-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.arena__fighter-meta {
  margin: 4px 0 0;
  color: #8a94a8;
  font-size: 0.9rem;
}

.arena__rating {
  margin-top: 16px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-local) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-local) 40%, transparent);
  color: var(--accent-local);
  font-family: var(--font-display);
}

.arena__rating b { font-size: 1.6rem; letter-spacing: -0.04em; }
.arena__rating span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }

.arena__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.arena__vs {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, #1a2233, #06080d);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.03), 0 0 40px rgba(0, 229, 160, 0.2);
  animation: arenaVsPulse 2.2s ease-in-out infinite;
}

@keyframes arenaVsPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.arena__radar {
  width: min(100%, 320px);
}

.arena__radar svg text { fill: #8a94a8 !important; }
.arena__radar svg polygon[stroke-width="2"] {
  transition: all 0.8s var(--ease);
}

.arena__meters {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.arena__meter {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  gap: 10px;
  align-items: center;
}

.arena__meter-label {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a94a8;
  text-align: center;
}

.arena__meter-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.92rem;
}

.arena__meter-val--a { color: var(--brand); text-align: left; }
.arena__meter-val--b { color: var(--muted); text-align: right; }

.arena__meter-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.arena__meter-fill {
  height: 100%;
  width: 0;
  transition: width 0.9s var(--ease);
}

.arena__meter-fill--a {
  justify-self: end;
  background: linear-gradient(90deg, transparent, var(--brand));
  border-radius: 999px 0 0 999px;
}

.arena__meter-fill--b {
  justify-self: start;
  background: linear-gradient(90deg, var(--muted), transparent);
  border-radius: 0 999px 999px 0;
}

.arena__verdict {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.arena__verdict strong { color: var(--brand); }
.arena__verdict em { color: var(--muted); font-style: normal; }

.arena__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.arena__preset {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #c9d2e2;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.arena__preset:hover,
.arena__preset.is-active {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--text);
  transform: translateY(-1px);
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 800px) {
  .signal-grid { grid-template-columns: repeat(3, 1fr); }
}

.signal-card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s var(--ease), border-color 0.2s;
}

.signal-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.signal-card__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.signal-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.signal-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}

.signal-card a {
  font-weight: 700;
  color: var(--accent-2);
  font-size: 0.9rem;
}
