/* ============================================================
   MUNDIAL 2026 · LLAVES WIDGET
   Prefijo: wc26-   (World Cup 2026)
   Scope:   #wc26-root
   Variables: scoped — no contamina :root del documento padre
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,900&family=Archivo:wght@400;500;700&display=swap');

#wc26-root {
  /* ── Variables scoped al widget ── */
  --wc26-red:    #C60018;
  --wc26-blk:    #000;
  --wc26-wht:    #fff;
  --wc26-ylw:    #FFE306;
  --wc26-bdr:    #E0E0E0;
  --wc26-bg:     #F5F3F3;
  --wc26-t1:     #1E1E1E;
  --wc26-t2:     #4D4D4D;
  --wc26-t3:     #808080;
  --wc26-t4:     #ADADAD;
  --wc26-grn:    #1a6b38;
  --wc26-grn-bg: rgba(26,107,56,.07);
  --wc26-fs:     'Source Serif 4', Georgia, serif;
  --wc26-fu:     'Archivo', Arial, sans-serif;

  font-family: var(--wc26-fu);
  background: #fff;
  color: var(--wc26-t1);
  width: 100%;
  box-sizing: border-box;
}
#wc26-root *, #wc26-root *::before, #wc26-root *::after {
  box-sizing: border-box;
}

/* ── HEADER ── */
#wc26-root .wc26-hd {
  background: var(--wc26-red);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#wc26-root .wc26-hd p {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(255,255,255,.65);
  margin-bottom: 1px;
}
#wc26-root .wc26-hd h2 {
  font-family: var(--wc26-fs);
  font-weight: 900;
  font-size: clamp(14px, 2.2vw, 20px);
  color: #fff;
  line-height: 1.1;
  margin: 0;
}
#wc26-root .wc26-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
}
#wc26-root .wc26-dot {
  width: 6px;
  height: 6px;
  background: var(--wc26-ylw);
  border-radius: 50%;
  animation: wc26-bl 1.3s ease-in-out infinite;
}
@keyframes wc26-bl {
  0%, 100% { opacity: 1; }
  50%       { opacity: .2; }
}

/* ── TABS ── */
#wc26-root .wc26-tabs {
  display: flex;
  border-bottom: 3px solid var(--wc26-red);
}
#wc26-root .wc26-tab {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--wc26-t3);
  padding: 8px 14px;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  font-family: var(--wc26-fu);
}
#wc26-root .wc26-tab:hover        { color: var(--wc26-t1); }
#wc26-root .wc26-tab.wc26-on      { color: var(--wc26-red); border-bottom-color: var(--wc26-red); }
#wc26-root .wc26-panel            { display: none; }
#wc26-root .wc26-panel.wc26-on    { display: block; }

/* ── LEGEND ── */
#wc26-root .wc26-leg {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 5px 12px;
  border-bottom: 1px solid var(--wc26-bdr);
}
#wc26-root .wc26-li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--wc26-t2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
#wc26-root .wc26-lb {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
#wc26-root .wc26-src {
  margin-left: auto;
  font-size: 9px;
  color: var(--wc26-t4);
  font-weight: 700;
}

/* ── CARD ── */
#wc26-root .wc26-card {
  background: #fff;
  border: 1px solid var(--wc26-bdr);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}
#wc26-root .wc26-card.wc26-cl { border-left: 3px solid var(--wc26-grn); }
#wc26-root .wc26-card.wc26-ch {
  border: 2px solid var(--wc26-ylw) !important;
  animation: wc26-gg 2s infinite alternate;
}
@keyframes wc26-gg {
  0%   { box-shadow: 0 0 4px rgba(255,215,0,.2); }
  100% { box-shadow: 0 0 12px rgba(255,215,0,.45); }
}

#wc26-root .wc26-c-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 3px 7px 2px;
  border-bottom: 1px solid var(--wc26-bdr);
  background: var(--wc26-bg);
}
#wc26-root .wc26-c-city { font-size: clamp(9px, 1.1vw, 13px); font-weight: 700; color: var(--wc26-t1); }
#wc26-root .wc26-c-date { font-size: clamp(8px, 1vw, 12px); color: var(--wc26-t3); margin-left: 3px; }
#wc26-root .wc26-c-num  { font-size: clamp(8px, .9vw, 10px); color: var(--wc26-t4); font-weight: 700; flex-shrink: 0; }
#wc26-root .wc26-c-sub  { font-size: clamp(8px, .95vw, 11px); color: var(--wc26-t3); padding: 2px 7px 0; line-height: 1.2; }

#wc26-root .wc26-c-team {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-bottom: 1px solid var(--wc26-bg);
  min-height: 28px;
}
#wc26-root .wc26-c-team:last-of-type       { border-bottom: none; }
#wc26-root .wc26-c-team.wc26-win           { background: var(--wc26-grn-bg); }
#wc26-root .wc26-c-team.wc26-gold          { background: rgba(255,227,6,.1); }

#wc26-root .wc26-c-flag {
  width: clamp(16px, 1.8vw, 22px);
  height: clamp(11px, 1.3vw, 15px);
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
  background: var(--wc26-bdr);
}
#wc26-root .wc26-c-fph {
  width: clamp(16px, 1.8vw, 22px);
  height: clamp(11px, 1.3vw, 15px);
  background: var(--wc26-bg);
  border-radius: 1px;
  flex-shrink: 0;
}
#wc26-root .wc26-c-name {
  font-size: clamp(9px, 1.1vw, 13px);
  font-weight: 700;
  color: var(--wc26-t1);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#wc26-root .wc26-c-name.wc26-tbd { color: var(--wc26-t4); font-style: italic; font-weight: 400; }
#wc26-root .wc26-c-chk {
  font-size: clamp(9px, 1vw, 11px);
  color: var(--wc26-grn);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.2;
  text-align: right;
}
#wc26-root .wc26-c-vs    { font-size: 9px; color: var(--wc26-t4); text-align: center; padding: 1px 7px; }
#wc26-root .wc26-c-probs { padding: 3px 7px 4px; }
#wc26-root .wc26-c-pr    { display: flex; align-items: center; gap: 4px; margin-bottom: 2px; }
#wc26-root .wc26-c-pf2   { height: 100%; background: #C60018; border-radius: 1px; }
#wc26-root .wc26-c-pf    { width: clamp(12px, 1.4vw, 16px); height: clamp(8px, 1vw, 11px); object-fit: cover; border-radius: 1px; flex-shrink: 0; background: var(--wc26-bdr); }
#wc26-root .wc26-c-pfph  { width: clamp(12px, 1.4vw, 16px); height: clamp(8px, 1vw, 11px); background: var(--wc26-bg); border-radius: 1px; flex-shrink: 0; }
#wc26-root .wc26-c-pn    { font-size: clamp(8px, .95vw, 11px); color: var(--wc26-t2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wc26-root .wc26-c-pb    { flex: 0 0 clamp(36px, 5vw, 68px); height: 6px; background: var(--wc26-bdr); border-radius: 1px; overflow: hidden; }
#wc26-root .wc26-c-pp    { font-size: clamp(8px, .9vw, 10px); font-weight: 700; color: var(--wc26-t3); flex-shrink: 0; min-width: 20px; text-align: right; }

/* ── STATUS BAR ── */
#wc26-root .wc26-status {
  background: var(--wc26-bg);
  border-top: 1px solid var(--wc26-bdr);
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
#wc26-root .wc26-si {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--wc26-t3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
#wc26-root .wc26-sd { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }

/* ── LOADING / ERROR ── */
#wc26-root .wc26-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  gap: 12px;
}
#wc26-root .wc26-spin {
  width: 26px;
  height: 26px;
  border: 3px solid var(--wc26-bdr);
  border-top-color: var(--wc26-red);
  border-radius: 50%;
  animation: wc26-sp .8s linear infinite;
}
@keyframes wc26-sp { to { transform: rotate(360deg); } }
#wc26-root .wc26-ltxt  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--wc26-t3); }
#wc26-root .wc26-err-b { background: rgba(198,0,24,.06); border: 1px solid rgba(198,0,24,.2); border-radius: 4px; padding: 12px; font-size: 12px; color: var(--wc26-red); text-align: center; }

/* ── DESKTOP BRACKET ── */
#wc26-root .wc26-bk-outer { width: 100%; overflow: hidden; }

#wc26-root .wc26-rl-bar {
  display: grid;
  grid-template-columns: 14fr 1fr 9fr 1fr 7fr 1fr 6fr 1fr 8fr 1fr 6fr 1fr 7fr 1fr 9fr 1fr 14fr;
  width: 100%;
  border-bottom: 1.5px solid var(--wc26-blk);
}
#wc26-root .wc26-rl {
  font-size: clamp(7px, .85vw, 10px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--wc26-t3);
  text-align: center;
  padding: 6px 1px 5px;
  border-right: 1px solid var(--wc26-bdr);
}
#wc26-root .wc26-rl:last-child,
#wc26-root .wc26-rl.wc26-cn  { border-right: none; }
#wc26-root .wc26-rl.wc26-red { color: var(--wc26-red); }

#wc26-root .wc26-bk-grid {
  display: grid;
  grid-template-columns: 14fr 1fr 9fr 1fr 7fr 1fr 6fr 1fr 8fr 1fr 6fr 1fr 7fr 1fr 9fr 1fr 14fr;
  width: 100%;
  padding: 10px 8px 14px;
  align-items: stretch;
}
#wc26-root .wc26-gc {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-self: stretch;
  gap: 5px;
  min-width: 0;
}
#wc26-root .wc26-gconn {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  min-width: 0;
}
#wc26-root .wc26-gconn svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
#wc26-root .wc26-gfin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 0 3px;
}
#wc26-root .wc26-fin-lbl {
  font-family: var(--wc26-fs);
  font-weight: 900;
  font-size: clamp(9px, 1vw, 12px);
  color: var(--wc26-red);
  text-transform: uppercase;
  letter-spacing: .4px;
  text-align: center;
}

/* ── MOBILE ── */
#wc26-root .wc26-mob-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--wc26-bg);
  border-bottom: 1px solid var(--wc26-bdr);
}
#wc26-root .wc26-mnav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1.5px solid var(--wc26-bdr);
  border-radius: 4px;
  font-size: 20px;
  cursor: pointer;
  color: var(--wc26-t1);
  transition: background .15s, border-color .15s;
  font-family: inherit;
}
#wc26-root .wc26-mnav-btn:hover    { background: var(--wc26-bdr); border-color: var(--wc26-t3); }
#wc26-root .wc26-mnav-btn:disabled { opacity: .3; cursor: not-allowed; }
#wc26-root .wc26-mnav-c   { text-align: center; flex: 1; }
#wc26-root .wc26-mnav-lbl { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--wc26-t1); display: block; }
#wc26-root .wc26-mnav-sub { font-size: 10px; color: var(--wc26-t3); display: block; margin-top: 1px; }
#wc26-root .wc26-rdots    { display: flex; gap: 5px; justify-content: center; margin-top: 5px; }
#wc26-root .wc26-rdot     { width: 6px; height: 6px; border-radius: 50%; background: var(--wc26-bdr); transition: background .2s; }
#wc26-root .wc26-rdot.wc26-on { background: var(--wc26-red); }
#wc26-root .wc26-mob-body  { display: none; padding: 12px 14px; }
#wc26-root .wc26-mob-round { display: none; }
#wc26-root .wc26-mob-round.wc26-on { display: block; }
#wc26-root .wc26-mob-round .wc26-card { margin-bottom: 8px; }
#wc26-root .wc26-mob-slbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--wc26-t3);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--wc26-bdr);
}
#wc26-root .wc26-mob-fin-lbl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wc26-red);
  text-align: center;
  margin: 12px 0 6px;
}

@media (max-width: 767px) {
  #wc26-root .wc26-mob-nav  { display: flex !important; }
  #wc26-root .wc26-mob-body { display: block !important; }
  #wc26-root .wc26-bk-outer { display: none !important; }
  #wc26-root .wc26-rl-bar   { display: none !important; }
  #wc26-root .wc26-c-city,
  #wc26-root .wc26-c-name   { font-size: 13px !important; }
  #wc26-root .wc26-c-date   { font-size: 12px !important; }
  #wc26-root .wc26-c-sub,
  #wc26-root .wc26-c-pn     { font-size: 11px !important; }
  #wc26-root .wc26-c-num,
  #wc26-root .wc26-c-pp     { font-size: 10px !important; }
  #wc26-root .wc26-c-flag,
  #wc26-root .wc26-c-fph    { width: 22px !important; height: 15px !important; }
  #wc26-root .wc26-c-pf,
  #wc26-root .wc26-c-pfph   { width: 16px !important; height: 11px !important; }
  #wc26-root .wc26-c-pb     { flex: 1 !important; }
  #wc26-root .wc26-hd h2    { font-size: 16px !important; }
}

/* ── MEJORES TERCEROS ── */
#wc26-root .wc26-tc-wrap  { padding: 14px 16px; }
#wc26-root .wc26-tc-intro { font-size: 12px; color: var(--wc26-t3); line-height: 1.6; margin-bottom: 12px; }
#wc26-root .wc26-tc-tw    { overflow-x: auto; }
#wc26-root .wc26-tc-t     { width: 100%; border-collapse: collapse; min-width: 460px; }
#wc26-root .wc26-tc-t th  {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wc26-t3);
  padding: 5px 8px;
  text-align: left;
  border-bottom: 2px solid var(--wc26-blk);
  white-space: nowrap;
}
#wc26-root .wc26-tc-t th.wc26-n { text-align: center; }
#wc26-root .wc26-tc-t td   { font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--wc26-bg); color: var(--wc26-t1); vertical-align: middle; }
#wc26-root .wc26-tc-t td.wc26-n { text-align: center; font-weight: 700; }
#wc26-root .wc26-tc-t tbody tr:hover td { background: var(--wc26-bg); }

#wc26-root .wc26-pb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}
#wc26-root .wc26-pb.wc26-cl { background: rgba(26,107,56,.1);  color: var(--wc26-grn); border: 1px solid rgba(26,107,56,.25); }
#wc26-root .wc26-pb.wc26-el { background: rgba(198,0,24,.07);  color: var(--wc26-red); border: 1px solid rgba(198,0,24,.18); }
#wc26-root .wc26-scl { background: rgba(26,107,56,.09);  color: var(--wc26-grn); border: 1px solid rgba(26,107,56,.22); border-radius: 3px; padding: 2px 7px; font-size: 10px; font-weight: 700; }
#wc26-root .wc26-sel { background: rgba(198,0,24,.07);   color: var(--wc26-red); border: 1px solid rgba(198,0,24,.18); border-radius: 3px; padding: 2px 7px; font-size: 10px; font-weight: 700; }
#wc26-root .wc26-gbdg { background: var(--wc26-bg); border: 1px solid var(--wc26-bdr); border-radius: 3px; padding: 1px 6px; font-size: 10px; font-weight: 700; color: var(--wc26-t2); }
#wc26-root .wc26-tcc  { display: flex; align-items: center; gap: 6px; }

/* ── Fuente NYT ── */
#wc26-root .wc26-fuente {
  padding: 6px 12px 7px;
  border-top: 1px solid var(--wc26-bdr);
  font-family: var(--wc26-fu);
  font-size: 10px;
  color: var(--wc26-t4);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
#wc26-root .wc26-fuente a {
  color: var(--wc26-red);
  font-weight: 700;
  text-decoration: none;
}
#wc26-root .wc26-fuente a:hover {
  text-decoration: underline;
}

/* ── Estados visuales para ranking de mejores terceros ── */
#wc26-root .wc26-tc-t tbody tr.wc26-third-ok td {
  background: rgba(26,107,56,.055);
}
#wc26-root .wc26-tc-t tbody tr.wc26-third-out td {
  background: rgba(198,0,24,.045);
  opacity: .62;
}
#wc26-root .wc26-tc-t tbody tr.wc26-third-ok:hover td {
  background: rgba(26,107,56,.09);
}
#wc26-root .wc26-tc-t tbody tr.wc26-third-out:hover td {
  background: rgba(198,0,24,.075);
}
