/* tu-club.css — página "Tu club" (CLUB-02) y acceso del Panel. Editorial: Newsreader en títulos, Geist en texto, Geist Mono en cifras, verde #1B6746 como único acento,
   papel #F4F7F4. Sin degradados, sin neón, sin fotos de jugadores. Los renglones de "jugadores que vienen mejorando" usan alab-premium-panel.css (FOR-03). */
.tc { max-width: 1120px; margin: 0 auto; padding-top: 8px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }

/* Cabecera */
.tc-head { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 8px 0 24px; border-bottom: 1px solid var(--line); }
.tc-head__id { display: flex; align-items: center; gap: 22px; min-width: 0; }
.tc-head__crest { width: 92px; height: 92px; object-fit: contain; flex: none; }
.tc-head__tx { min-width: 0; }
.tc-head__name { margin: 4px 0 8px; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.04; }
.tc-head__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: var(--fs-md); color: var(--ink-2); }
.tc-head__meta b { font-family: var(--font-data); font-weight: 500; color: var(--ink); }
.tc-head__der { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.tc-forma { display: flex; align-items: center; gap: 6px; }
.tc-forma small { margin-left: 8px; color: var(--ink-3); font-size: var(--fs-xs); }
.tc-res { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; font: 500 var(--fs-sm) var(--font-data); border: 1px solid var(--line-strong); color: var(--ink-3); background: var(--surface); }
.tc-res--V { background: var(--brand-tint); border-color: var(--brand-tint-2); color: var(--brand-ink); }
.tc-res--E { background: var(--surface-2); color: var(--ink-2); }
.tc-res--D { background: var(--surface); color: var(--ink-3); border-style: dashed; }
.tc-head__acc { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Tarjetas */
.tc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.tc-card { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.tc-card__t { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--ink); }
.tc-card__c { flex: 1; display: flex; align-items: center; }
.tc-card__c > * { width: 100%; }
.tc-vacio-c { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px 0; }
.tc-vacio-c b { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--ink); }
.tc-vacio-c span { color: var(--ink-2); font-size: var(--fs-sm); max-width: 52ch; }
.tc-sub { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.tc-nota { margin: 0; color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.5; }
.tc-aviso { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--brand-tint); color: var(--ink-2); font-size: var(--fs-sm); }

/* Cómo viene el equipo */
.tc-rend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: end; }
.tc-rend__n { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; }
.tc-rend__n div { display: flex; flex-direction: column; gap: 4px; }
.tc-rend__n strong { font: 500 2.4rem/1 var(--font-data); color: var(--ink); letter-spacing: -0.02em; }
.tc-rend__n strong.is-b { color: var(--ink-3); }
.tc-rend__n div span { font-size: var(--fs-xs); color: var(--ink-3); max-width: 18ch; }
.tc-tag { align-self: center; padding: 4px 12px; border-radius: 999px; font: 600 var(--fs-sm) var(--font-ui); background: var(--surface-2); color: var(--ink-2); }
.tc-tag--alza { background: var(--brand-tint); color: var(--brand-ink); }
.tc-tag--baja { background: var(--surface); border: 1px dashed var(--line-strong); color: var(--danger-ink, #9B2C2C); }
.tc-rend__g small { display: block; margin-top: 8px; color: var(--ink-3); font-size: var(--fs-xs); }
.tc-bars { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 72px; border-bottom: 1px solid var(--line-strong); }
.tc-bar { flex: 1; min-width: 0; max-width: 28px; border-radius: 3px 3px 0 0; background: var(--brand); }
.tc-bar--E { background: var(--ink-3); }
.tc-bar--D { background: transparent; border: 1px dashed var(--line-strong); border-bottom: 0; }
.tc-bar.is-ant { opacity: .4; }
.tc-avg { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--ink-3); pointer-events: none; }

/* Quiénes jugaron: tabla editorial */
.tc-tabla { display: flex; flex-direction: column; }
.tc-tabla__cab, .tc-fila { display: grid; grid-template-columns: 38px minmax(0, 1fr) 72px 84px; column-gap: 16px; align-items: center; padding: 0 12px; }
.tc-tabla__cab { padding-bottom: 8px; font: 600 11px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.tc-tabla__cab span:nth-child(n+2), .tc-fila__m, .tc-fila__s { text-align: right; }
.tc-tabla__cab span:first-child { grid-column: 1 / 3; }
.tc-fila__f { width: 38px; height: 46px; margin: 6px 0; border-radius: 10px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.tc-fila { min-height: 52px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.tc-fila:hover { background: var(--brand-tint); }
.tc-fila:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.tc-fila.is-figura { background: var(--brand-tint); border-top-color: var(--brand-tint-2); }
.tc-fila__n { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 0; }
.tc-fila__n b { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-fila__n small { color: var(--ink-3); font-size: var(--fs-xs); }
.tc-fila__n em { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--brand); color: var(--brand-ink); font: 600 11px/1.5 var(--font-ui); font-style: normal; }
.tc-fila__m { font: 400 var(--fs-md) var(--font-data); color: var(--ink-3); }
.tc-fila__s { font: 500 1.05rem var(--font-data); color: var(--ink); }
.tc-mas { align-self: flex-start; appearance: none; background: none; border: 0; padding: 4px 0; color: var(--brand); font: 500 var(--fs-sm) var(--font-ui); cursor: pointer; text-decoration: underline; }

/* Jugadores que vienen mejorando dentro de la página */
.tc-mejora { margin: 0; border-radius: 16px; }
.tc-mejora .pn-forma__head { padding: 22px 24px 16px; }

/* Sin club / selector */
.tc-vacio { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 760px; padding: 32px 0; }
.tc-vacio--in { padding: 8px 0 0; max-width: none; }
.tc-vacio__t { margin: 0; font-size: clamp(2rem, 4.5vw, 3rem); }
.tc-vacio > p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.tc-sug { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--brand-tint); font-size: var(--fs-md); color: var(--ink-2); }
.tc-sel { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; width: 100%; }
.tc-sel .input { width: min(380px, 100%); }
.tc-sel__lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 10px; width: 100%; max-height: 300px; overflow: auto; padding: 2px; }
.tc-sel__op { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 var(--fs-md) var(--font-ui); text-align: left; cursor: pointer; }
.tc-sel__op[hidden] { display: none; }
.tc-sel__op:hover { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.tc-sel__op:focus-visible { outline: 2px solid var(--brand); }
.tc-sel__c { width: 26px; height: 26px; object-fit: contain; flex: none; }
.tc-cargando { padding: 48px 0; }

@media (max-width: 820px) {
  .tc { gap: 18px; padding-bottom: 40px; }
  .tc-head { padding-bottom: 18px; }
  .tc-head__crest { width: 64px; height: 64px; }
  .tc-head__id { gap: 14px; }
  .tc-head__der { align-items: flex-start; width: 100%; }
  .tc-head__acc { justify-content: flex-start; }
  .tc-grid, .tc-rend { grid-template-columns: 1fr; gap: 18px; }
  .tc-card { padding: 18px 16px 20px; border-radius: 14px; }
  .tc-tabla__cab, .tc-fila { grid-template-columns: 38px minmax(0, 1fr) 52px 64px; column-gap: 10px; padding: 0 6px; }
  .tc-rend__n strong { font-size: 2rem; }
}

/* Acceso discreto en el Panel */
.pn-clubchip { margin: 0 0 var(--sp-4, 16px); }
.pn-clubchip[hidden] { display: none; }
.pn-clubchip__a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: inherit; text-decoration: none; }
.pn-clubchip__a:hover { border-color: var(--brand); background: var(--brand-tint); }
.pn-clubchip__a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pn-clubchip__c { width: 30px; height: 30px; object-fit: contain; flex: none; }
.pn-clubchip__t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.pn-clubchip__t small { color: var(--ink-3); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.pn-clubchip__t b { font-weight: 500; font-size: var(--fs-md); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-clubchip__go { color: var(--brand); font: 500 var(--fs-sm) var(--font-ui); white-space: nowrap; }
.pn-clubchip--invita .pn-clubchip__a { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.pn-clubchip { max-width: 560px; }

.tc-baja { margin-top: 0; }

/* Cartel "En pleno desarrollo" (se apaga con EN_DESARROLLO en tuclub-pagina.js): pastilla verde y una línea corta, discreto, arriba de todo */
.tc-dev { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 -8px; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-2); }
.tc-dev__p { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--brand-tint-2); background: var(--brand-tint); color: var(--brand-ink); font: 600 12px/1 var(--font-ui); white-space: nowrap; }
.tc-dev__p::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.tc-dev__t { min-width: 0; }

/* CLUB-02: pestañas de liga del selector (solo con más de una liga visible) e iniciales de respaldo de los escudos de otras ligas */
.tc-ligas { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); max-width: 100%; overflow-x: auto; }
.tc-ligas__b { appearance: none; border: 0; background: none; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); font: 500 var(--fs-sm) var(--font-ui); cursor: pointer; white-space: nowrap; }
.tc-ligas__b:hover { color: var(--ink); background: var(--brand-tint); }
.tc-ligas__b.is-on { background: var(--brand); color: #fff; }
.tc-ligas__b:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tc-head__crest.al-ini { font-size: 26px; }
.tc-sel__c.al-ini, .pn-clubchip__c.al-ini { font-size: 9px; }
@media (max-width: 820px) { .tc-head__crest.al-ini { font-size: 20px; } }
