/* Mundial 2026 — Panorama Diario. Scopeado en .wc-* (no pisa main.css). */
.wc-page { padding: 16px 0 40px; }

.wc-hero {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #5fa826 0%, #7b3f9e 100%);
  color: #fff; border-radius: 12px; padding: 20px 24px; margin-bottom: 22px;
}
.wc-hero__emblem { background: #fff; border-radius: 10px; padding: 4px; flex: 0 0 auto; }
.wc-hero__title { margin: 0; font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.1; }
.wc-hero__sub { margin: 4px 0 0; opacity: .92; font-size: .82rem; }

.wc-section { margin: 0 0 26px; }
.wc-h2 { font-size: 1.15rem; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 3px solid #5fa826; display: inline-flex; align-items: center; gap: 8px; }
.wc-h3 { font-size: .95rem; margin: 0 0 8px; color: #7b3f9e; }
.wc-muted, .wc-empty { color: #777; font-size: .9rem; }
.wc-empty { padding: 24px; text-align: center; background: #f6f6f4; border-radius: 8px; }
.wc-credit { color: #999; font-size: .72rem; text-align: right; margin-top: 18px; }

/* Lista de partidos */
.wc-list { display: flex; flex-direction: column; gap: 6px; }
.wc-match {
  display: grid; grid-template-columns: 64px 1fr 64px 1fr; align-items: center;
  gap: 8px; background: #fff; border: 1px solid #eceae6; border-radius: 8px;
  padding: 8px 10px; font-size: .86rem;
}
.wc-match--uy { border-color: #5fa826; box-shadow: inset 3px 0 0 #5fa826; }
.wc-match__time { font-size: .72rem; color: #666; text-align: center; line-height: 1.2; }
.wc-hour { font-weight: 600; color: #333; }
.wc-match__team { display: flex; align-items: center; gap: 7px; min-width: 0; }
.wc-match__team--home { justify-content: flex-end; text-align: right; }
.wc-match__team--away { justify-content: flex-start; }
.wc-tname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-crest { object-fit: contain; flex: 0 0 auto; }
.wc-crest--sm { vertical-align: middle; margin-right: 6px; }
.wc-match__score { text-align: center; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.wc-dash { margin: 0 4px; color: #aaa; }
.wc-vs { color: #aaa; font-weight: 500; font-size: .8rem; }

.wc-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: .62rem; font-weight: 700; letter-spacing: .03em; }
.wc-badge--live { background: #cb091b; color: #fff; animation: wc-blink 1.4s ease-in-out infinite; }
.wc-badge--done { background: #eceae6; color: #555; }
@keyframes wc-blink { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .wc-badge--live, .wc-live-dot { animation: none; } }

.wc-live-section .wc-h2 { border-color: #cb091b; }
.wc-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #cb091b; animation: wc-blink 1.4s ease-in-out infinite; }

/* Uruguay destacado */
.wc-uy { background: linear-gradient(135deg, rgba(95,168,38,.08), rgba(123,63,158,.10)); border: 1px solid rgba(95,168,38,.25); border-radius: 12px; padding: 18px; }
.wc-uy__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.wc-uy__label { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: #5fa826; font-weight: 700; margin-bottom: 6px; }
.wc-flag { font-size: 1.1rem; }

/* Columnas próximos / resultados */
.wc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* Grupos */
.wc-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.wc-group { background: #fff; border: 1px solid #eceae6; border-radius: 10px; padding: 14px; }
.wc-group__matches { margin-top: 10px; }
.wc-group__matches summary { cursor: pointer; font-size: .8rem; color: #7b3f9e; font-weight: 600; }
.wc-group__matches[open] summary { margin-bottom: 8px; }

/* Tabla de posiciones */
.wc-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.wc-table th { text-align: center; font-size: .68rem; color: #888; font-weight: 600; padding: 4px 3px; border-bottom: 2px solid #eee; }
.wc-table__teamh { text-align: left; }
.wc-table td { text-align: center; padding: 5px 3px; border-bottom: 1px solid #f1f1f1; }
.wc-table__team { text-align: left; display: flex; align-items: center; }
.wc-pos { color: #999; font-weight: 600; }
.wc-pts { font-weight: 700; color: #1a1a1a; }
.wc-row-uy { background: rgba(95,168,38,.10); }
.wc-row-uy .wc-pts { color: #5fa826; }

.wc-knockout { margin-bottom: 14px; }

/* ---- Widget para la home (sidebar) ---- */
.wc-widget { background: #fff; border: 1px solid #eceae6; border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.wc-widget__head { background: linear-gradient(135deg, #5fa826, #7b3f9e); color: #fff; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; }
.wc-widget__head b { font-size: .82rem; letter-spacing: .02em; }
.wc-widget__body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.wc-widget__label { font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; color: #888; font-weight: 700; margin: 4px 0 2px; }
.wc-widget .wc-match { grid-template-columns: 48px 1fr 48px 1fr; font-size: .76rem; padding: 6px 8px; }
.wc-widget__more { display: block; text-align: center; padding: 8px; font-size: .78rem; font-weight: 600; color: #7b3f9e; border-top: 1px solid #f1f1f1; text-decoration: none; }
.wc-widget__more:hover { background: #faf9f7; }

/* Responsive */
@media (max-width: 760px) {
  .wc-uy__grid, .wc-cols, .wc-groups { grid-template-columns: 1fr; }
  .wc-match { grid-template-columns: 52px 1fr 54px 1fr; font-size: .8rem; }
  .wc-tname { font-size: .78rem; }
}

/* Home: el layout pasa a 2 columnas (con sidebar lateral) recien a >=980px.
   Debajo de eso el sidebar se apila al final, asi que el widget del Mundial se
   muestra ARRIBA de la columna principal (destacado en movil/tablet). */
.wc-mobile-only { display: block; }
.wc-mobile-only .wc-widget { margin-bottom: 18px; }
.wc-desktop-only { display: none; }
@media (min-width: 980px) {
  .wc-mobile-only { display: none; }
  .wc-desktop-only { display: block; }
}
