/* ============================================================
   MUNDIAL 2026 · LLAVES WIDGET — Diario Diez
   Prefijo: wc26-   (World Cup 2026)
   Scope:   #wc26-root
   Línea gráfica: Diario Diez (Poppins + Roboto Condensed)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;900&family=Roboto+Condensed:wght@400;500;700&display=swap');

#wc26-root {
  /* ── Variables Diario Diez ── */
  --wc26-red:    #DD0025;
  --wc26-red2:   #B50020;
  --wc26-blk:    #111111;
  --wc26-wht:    #ffffff;
  --wc26-ylw:    #FFC20E;
  --wc26-bdr:    #E2E2E2;
  --wc26-bg:     #F5F5F5;
  --wc26-t1:     #111111;
  --wc26-t2:     #303030;
  --wc26-t3:     #757575;
  --wc26-t4:     #AAAAAA;
  --wc26-grn:    #1a7a3c;
  --wc26-grn-bg: rgba(26,122,60,.07);
  --wc26-fs:     'Poppins', Arial, sans-serif;
  --wc26-fu:     'Roboto Condensed', 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-blk);
  border-top: 3px solid var(--wc26-red);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#wc26-root .wc26-hd p {
  font-family: var(--wc26-fu);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--wc26-ylw);
  margin-bottom: 2px;
}
#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;
  text-transform: uppercase;
  letter-spacing: .5px;
}
#wc26-root .wc26-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--wc26-red);
  border: none;
  border-radius: 2px;
  padding: 4px 10px;
  font-family: var(--wc26-fu);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .8px;
  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;
  background: var(--wc26-bg);
  border-bottom: 3px solid var(--wc26-blk);
}
#wc26-root .wc26-tab {
  font-family: var(--wc26-fu);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wc26-t3);
  padding: 9px 16px;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
#wc26-root .wc26-tab:hover        { color: var(--wc26-t1); background: var(--wc26-bdr); }
#wc26-root .wc26-tab.wc26-on      { color: var(--wc26-wht); background: 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: 6px 12px;
  border-bottom: 1px solid var(--wc26-bdr);
  background: var(--wc26-bg);
}
#wc26-root .wc26-li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--wc26-fu);
  font-size: 10px;
  color: var(--wc26-t2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}
#wc26-root .wc26-lb {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  flex-shrink: 0;
}
#wc26-root .wc26-src {
  margin-left: auto;
  font-family: var(--wc26-fu);
  font-size: 9px;
  color: var(--wc26-t4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── CARD ── */
#wc26-root .wc26-card {
  background: #fff;
  border: 1px solid var(--wc26-bdr);
  border-radius: 2px;
  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,194,14,.2); }
  100% { box-shadow: 0 0 14px rgba(255,194,14,.5); }
}

#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-blk);
}
#wc26-root .wc26-c-city {
  font-family: var(--wc26-fu);
  font-size: clamp(9px, 1.1vw, 13px);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
}
#wc26-root .wc26-c-date { font-family: var(--wc26-fu); font-size: clamp(8px, 1vw, 12px); color: var(--wc26-ylw); margin-left: 3px; font-weight: 500; }
#wc26-root .wc26-c-num  { font-family: var(--wc26-fu); font-size: clamp(8px, .9vw, 10px); color: rgba(255,255,255,.45); font-weight: 700; flex-shrink: 0; }
#wc26-root .wc26-c-sub  { font-family: var(--wc26-fu); 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,194,14,.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-family: var(--wc26-fu);
  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;
  text-transform: uppercase;
  letter-spacing: .3px;
}
#wc26-root .wc26-c-name.wc26-tbd { color: var(--wc26-t4); font-style: normal; font-weight: 400; text-transform: none; }
#wc26-root .wc26-c-chk {
  font-family: var(--wc26-fu);
  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-family: var(--wc26-fu); 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: var(--wc26-red); 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-family: var(--wc26-fu); font-size: clamp(8px, .95vw, 11px); color: var(--wc26-t2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
#wc26-root .wc26-c-pb    { flex: 0 0 clamp(36px, 5vw, 68px); height: 5px; background: var(--wc26-bdr); border-radius: 1px; overflow: hidden; }
#wc26-root .wc26-c-pp    { font-family: var(--wc26-fu); 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-blk);
  border-top: 1px solid #2a2a2a;
  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-family: var(--wc26-fu);
  font-size: 10px;
  color: rgba(255,255,255,.5);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
#wc26-root .wc26-sd { width: 7px; height: 7px; border-radius: 1px; 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-family: var(--wc26-fu); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--wc26-t3); }
#wc26-root .wc26-err-b { background: rgba(221,0,37,.06); border: 1px solid rgba(221,0,37,.2); border-radius: 2px; padding: 12px; font-size: 12px; color: var(--wc26-red); text-align: center; font-family: var(--wc26-fu); }

/* ── 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: 2px solid var(--wc26-blk);
  background: var(--wc26-bg);
}
#wc26-root .wc26-rl {
  font-family: var(--wc26-fu);
  font-size: clamp(7px, .85vw, 10px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wc26-t3);
  text-align: center;
  padding: 7px 1px 6px;
  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); font-weight: 900; }

#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: .8px;
  text-align: center;
}

/* ── MOBILE ── */
#wc26-root .wc26-mob-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--wc26-blk);
  border-bottom: 1px solid #2a2a2a;
}
#wc26-root .wc26-mnav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 2px;
  font-size: 20px;
  cursor: pointer;
  color: #fff;
  transition: background .15s, border-color .15s;
  font-family: inherit;
}
#wc26-root .wc26-mnav-btn:hover    { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
#wc26-root .wc26-mnav-btn:disabled { opacity: .25; cursor: not-allowed; }
#wc26-root .wc26-mnav-c   { text-align: center; flex: 1; }
#wc26-root .wc26-mnav-lbl { font-family: var(--wc26-fu); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; display: block; }
#wc26-root .wc26-mnav-sub { font-family: var(--wc26-fu); font-size: 10px; color: var(--wc26-ylw); display: block; margin-top: 2px; font-weight: 500; letter-spacing: .5px; }
#wc26-root .wc26-rdots    { display: flex; gap: 5px; justify-content: center; margin-top: 6px; }
#wc26-root .wc26-rdot     { width: 5px; height: 5px; border-radius: 1px; background: rgba(255,255,255,.2); 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-family: var(--wc26-fu);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wc26-t3);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--wc26-blk);
}
#wc26-root .wc26-mob-fin-lbl {
  font-family: var(--wc26-fs);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
  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-family: var(--wc26-fu); 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-family: var(--wc26-fu);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fff;
  background: var(--wc26-blk);
  padding: 6px 8px;
  text-align: left;
  white-space: nowrap;
}
#wc26-root .wc26-tc-t th.wc26-n { text-align: center; }
#wc26-root .wc26-tc-t td   { font-family: var(--wc26-fu); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--wc26-bg); color: var(--wc26-t1); vertical-align: middle; font-weight: 500; }
#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: 2px;
  font-family: var(--wc26-fu);
  font-size: 11px;
  font-weight: 700;
}
#wc26-root .wc26-pb.wc26-cl { background: rgba(26,122,60,.1);  color: var(--wc26-grn); border: 1px solid rgba(26,122,60,.25); }
#wc26-root .wc26-pb.wc26-el { background: rgba(221,0,37,.07);  color: var(--wc26-red); border: 1px solid rgba(221,0,37,.18); }
#wc26-root .wc26-scl { background: rgba(26,122,60,.09);  color: var(--wc26-grn); border: 1px solid rgba(26,122,60,.22); border-radius: 2px; padding: 2px 7px; font-family: var(--wc26-fu); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
#wc26-root .wc26-sel { background: rgba(221,0,37,.07);   color: var(--wc26-red); border: 1px solid rgba(221,0,37,.18); border-radius: 2px; padding: 2px 7px; font-family: var(--wc26-fu); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
#wc26-root .wc26-gbdg { background: var(--wc26-bg); border: 1px solid var(--wc26-bdr); border-radius: 2px; padding: 1px 6px; font-family: var(--wc26-fu); font-size: 10px; font-weight: 700; color: var(--wc26-t2); text-transform: uppercase; letter-spacing: .4px; }
#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 #2a2a2a;
  background: var(--wc26-blk);
  font-family: var(--wc26-fu);
  font-size: 10px;
  color: rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
#wc26-root .wc26-fuente a {
  color: var(--wc26-ylw);
  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,122,60,.055);
}
#wc26-root .wc26-tc-t tbody tr.wc26-third-out td {
  background: rgba(221,0,37,.045);
  opacity: .62;
}
#wc26-root .wc26-tc-t tbody tr.wc26-third-ok:hover td {
  background: rgba(26,122,60,.09);
}
#wc26-root .wc26-tc-t tbody tr.wc26-third-out:hover td {
  background: rgba(221,0,37,.075);
}
