
:root {
  --azul: #0072BC;
  --azul-osc: #005a93;
  --rojo: #CB0208;
  --gris-0: #ffffff;
  --gris-1: #f7f7f8;
  --gris-2: #eaecef;
  --gris-3: #c8cdd3;
  --gris-4: #6b7280;
  --gris-5: #1f2937;
  --verde: #10b981;
  --ambar: #f59e0b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", sans-serif;
  background: var(--gris-1);
  color: var(--gris-5);
  line-height: 1.45;
  font-size: 16px;
}
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── Header (logo CiberCuba + nav inline + hamburguesa en móvil) ── */
body { padding-top: 72px; }
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: var(--azul);
  z-index: 1000;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
  overflow: hidden; /* impide que hijos rompan la altura del header */
}
.logo-link {
  position: relative;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0; /* evita que el line-height del padre desplace al SVG */
}
.logo-link svg {
  display: block;
  height: 32px;
  width: auto;
  max-width: 160px;
  max-height: 32px;
}
.logo-brand {
  position: absolute;
  right: 0;
  bottom: -2px;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  opacity: 0.85;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.site-nav .nav-list {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { opacity: 1; }
.site-nav a.active {
  opacity: 1;
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
}
.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 6px 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  .site-header-inner { padding: 0 8px; }
  .menu-btn { display: flex; }
  .site-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--azul);
    padding: 20px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-top: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav .nav-list {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .site-nav a {
    font-size: 1.05rem;
    padding: 10px 4px;
    display: block;
  }
  .site-nav a.active {
    border-bottom: none;
    background: rgba(255,255,255,0.1);
    padding: 10px 14px;
    border-radius: 4px;
  }
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem;
}
@media (min-width: 720px) {
  main { padding: 1.25rem 1.5rem; }
}

h1, h2, h3 { color: var(--gris-5); margin: 0 0 0.75rem; line-height: 1.2; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; margin-top: 1.5rem; }
h3 { font-size: 1rem; }

.section { margin-bottom: 2rem; }
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0.75rem;
}
.section-title .badge-live {
  background: var(--rojo);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
}

.card {
  background: var(--gris-0);
  border: 1px solid var(--gris-2);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.match:hover { background: var(--gris-1); }
.match .team { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.match .team.home { justify-content: flex-end; text-align: right; }
.match .team.away { justify-content: flex-start; text-align: left; }
.match .team .name { font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .team img { width: 22px; height: 22px; flex-shrink: 0; }
.match .score {
  font-weight: 800;
  font-size: 1.15rem;
  min-width: 64px;
  text-align: center;
  color: var(--gris-5);
}
.match .score .vs { color: var(--gris-4); font-weight: 600; font-size: 0.9rem; }

.match-meta {
  padding: 0.25rem 0.75rem 0.75rem;
  font-size: 0.78rem;
  color: var(--gris-4);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.match-meta .sep { opacity: 0.4; }

.status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}
.status.live { background: var(--rojo); color: #fff; }
.status.ht { background: var(--ambar); color: #fff; }
.status.finished { background: var(--gris-3); color: var(--gris-5); }
.status.scheduled { background: var(--azul); color: #fff; }
.status.postponed { background: var(--gris-4); color: #fff; }

table.standings {
  width: 100%;
  border-collapse: collapse;
  background: var(--gris-0);
  border: 1px solid var(--gris-2);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.9rem;
}
table.standings thead { background: var(--gris-2); }
table.standings th, table.standings td {
  padding: 0.5rem 0.4rem;
  text-align: center;
  border-bottom: 1px solid var(--gris-2);
}
table.standings tbody tr:last-child td { border-bottom: 0; }
table.standings th { font-size: 0.7rem; text-transform: uppercase; color: var(--gris-4); font-weight: 700; }
table.standings td.team-cell { text-align: left; display: flex; align-items: center; gap: 0.4rem; font-weight: 600; }
table.standings td.team-cell img { width: 18px; height: 18px; }
table.standings td.points { font-weight: 800; }
table.standings tr.q-winner { background: rgba(16,185,129,0.08); }
table.standings tr.q-runner { background: rgba(16,185,129,0.04); }
table.standings tr.q-best-third { background: rgba(245,158,11,0.06); }
table.standings .q-tag {
  font-size: 0.65rem;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  margin-left: 0.3rem;
  vertical-align: middle;
  font-weight: 700;
}
.q-tag.winner { background: var(--verde); color: #fff; }
.q-tag.runner { background: var(--verde); color: #fff; opacity: 0.7; }
.q-tag.best-third { background: var(--ambar); color: #fff; }

.bracket-empty, .empty {
  background: var(--gris-0);
  border: 1px dashed var(--gris-3);
  padding: 1rem;
  text-align: center;
  color: var(--gris-4);
  border-radius: 6px;
}

.grid-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid-groups { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .grid-groups { grid-template-columns: 1fr 1fr 1fr; }
}

.group-mini h3 {
  background: var(--azul);
  color: #fff;
  padding: 0.4rem 0.6rem;
  margin: 0;
  font-size: 0.85rem;
  border-radius: 6px 6px 0 0;
}

footer.brand-footer {
  margin-top: 2rem;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gris-4);
}
footer.brand-footer .sep { opacity: 0.5; padding: 0 0.4rem; }

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gris-2);
  font-size: 0.9rem;
}
.timeline .minute { font-weight: 700; color: var(--gris-4); }
.timeline .ev-goal::before { content: '⚽ '; }
.timeline .ev-yellow::before { content: '🟨 '; }
.timeline .ev-red::before { content: '🟥 '; }
.timeline .ev-subst::before { content: '🔁 '; }
.timeline .ev-var::before { content: '📺 '; }

.stat-pair {
  display: grid;
  grid-template-columns: 1fr 4rem 1fr;
  gap: 0.5rem;
  padding: 0.4rem 0;
  align-items: center;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gris-2);
}
.stat-pair .label { color: var(--gris-4); text-align: center; font-size: 0.75rem; text-transform: uppercase; }
.stat-pair .home { text-align: right; font-weight: 600; }
.stat-pair .away { text-align: left; font-weight: 600; }

.summary {
  background: var(--gris-0);
  border: 1px solid var(--gris-2);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}
.summary h2 { margin-top: 0; }

.kickoff-times {
  font-size: 0.8rem;
  color: var(--gris-4);
}
.kickoff-times strong { color: var(--gris-5); }

.squad {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .squad { grid-template-columns: 1fr 1fr; }
}
.squad-section {
  background: var(--gris-0);
  border: 1px solid var(--gris-2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
}
.squad-section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--azul);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.squad-count {
  display: inline-block;
  background: var(--gris-2);
  color: var(--gris-5);
  font-size: 0.7rem;
  padding: 0.05rem 0.4rem;
  border-radius: 10px;
  font-weight: 700;
}
.squad-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 1rem;
}
.squad-list li {
  font-size: 0.88rem;
  padding: 0.15rem 0;
  break-inside: avoid;
}

/* ── Tarjetas de jugador (grid en /equipo/:id) ─────────────────
   Layout: barra superior con badges (pos izq, dorsal der) — la foto
   queda en círculo CENTRADO, sin overlap con los badges. */
.player-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) {
  .player-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.player-card {
  background: var(--gris-0);
  border: 1px solid var(--gris-2);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}
.player-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,114,188,0.12);
  border-color: var(--azul);
  text-decoration: none;
}
.player-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 0;
  min-height: 22px;
}
.player-card-pos {
  background: var(--azul);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.player-card-dorsal {
  background: var(--rojo);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 9px;
  border-radius: 6px;
  min-width: 24px;
  text-align: center;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(203,2,8,0.2);
}
.player-card-photo-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--gris-2);
  overflow: hidden;
  margin: 8px auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.player-card-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.player-card-noimg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-osc) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.02em;
}
.player-card-body {
  padding: 6px 10px 12px;
  text-align: center;
  min-width: 0;
}
.player-card-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gris-5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-card-sub {
  font-size: 11px;
  color: var(--gris-4);
  margin-top: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 13px;
}
.player-card-sub .dot { color: var(--gris-3); }
.player-card-sub > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Página individual /jugador/:id ────────────────────────────── */
.player-hero {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-osc) 100%);
  border-radius: 12px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.player-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.player-hero-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 4px solid #fff;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1;
}
.player-hero-photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  border: 4px solid #fff;
  z-index: 1;
}
.player-hero-info {
  min-width: 0;
  z-index: 1;
}
.player-hero-info h1 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.15;
}
.player-hero-team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}
.player-hero-team a {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.player-hero-team a:hover { text-decoration: none; border-bottom-color: #fff; }
.player-hero-team img { width: 18px; height: 18px; }
.player-hero-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.player-hero-badges .badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.player-hero-badges .badge.dorsal { background: var(--rojo); border-color: var(--rojo); font-weight: 800; }
.player-hero-badges .badge.injured { background: var(--rojo); border-color: var(--rojo); }

.player-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 720px) {
  .player-stats { grid-template-columns: repeat(3, 1fr); }
}
.stat-card {
  background: var(--gris-0);
  border: 1px solid var(--gris-2);
  border-radius: 8px;
  padding: 0.75rem;
}
.stat-card .stat-label {
  font-size: 0.7rem;
  color: var(--gris-4);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.stat-card .stat-value {
  font-size: 1rem;
  color: var(--gris-5);
  font-weight: 600;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.25;
}
.stat-card .stat-value img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.stat-card .stat-sub {
  font-size: 0.75rem;
  color: var(--gris-4);
  margin-top: 0.15rem;
}
.player-bio {
  background: var(--gris-0);
  border: 1px solid var(--gris-2);
  border-left: 3px solid var(--azul);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.player-bio p { margin: 0 0 0.7rem; }
.player-bio p:last-child { margin-bottom: 0; }

/* ── /equipos (grid de selecciones) ─────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 540px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--gris-0);
  border: 1px solid var(--gris-2);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
  min-width: 0;
}
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,114,188,0.1);
  border-color: var(--azul);
  text-decoration: none;
}
.team-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.team-card-body { min-width: 0; flex: 1; }
.team-card-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--gris-5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-card-meta {
  font-size: 11px;
  color: var(--gris-4);
  margin-top: 2px;
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-card-meta .dot { color: var(--gris-3); }

/* ── /sedes (grid de estadios) ─────────────────────────── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
}
@media (min-width: 540px) { .venue-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .venue-grid { grid-template-columns: repeat(3, 1fr); } }
.venue-card {
  background: var(--gris-0);
  border: 1px solid var(--gris-2);
  border-radius: 8px;
  padding: 12px 14px;
  border-left: 3px solid var(--azul);
  position: relative;
  overflow: hidden;
  min-height: 96px;
}
.venue-card.venue-has-image {
  background-size: cover;
  background-position: center;
  color: #fff;
  border-color: transparent;
  padding: 0;
  min-height: 150px;
}
.venue-card.venue-has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}
.venue-card-body {
  position: relative;
  z-index: 1;
}
.venue-card.venue-has-image .venue-card-body {
  padding: 14px 16px;
  position: absolute;
  inset: auto 0 0 0;
}
.venue-card.venue-has-image .venue-name { color: #fff; font-size: 17px; }
.venue-card.venue-has-image .venue-city { color: rgba(255,255,255,0.85); }
.venue-card.venue-has-image .venue-meta { color: rgba(255,255,255,0.95); font-weight: 600; }
.venue-card.venue-pending {
  border-left-color: var(--gris-3);
  background: var(--gris-1);
}
.venue-card.venue-pending.venue-has-image::before {
  background: linear-gradient(180deg, rgba(80,60,0,0.15) 0%, rgba(80,60,0,0.85) 100%);
}
.venue-card.venue-pending .venue-meta {
  color: var(--ambar);
  font-style: italic;
}
.venue-card.venue-pending.venue-has-image .venue-meta {
  color: #fbbf24;
  font-style: italic;
}
.venue-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--gris-5);
  line-height: 1.25;
}
.venue-city {
  font-size: 13px;
  color: var(--gris-4);
  margin-top: 2px;
}
.venue-meta {
  font-size: 12px;
  color: var(--gris-4);
  margin-top: 6px;
  font-weight: 600;
}
.lead {
  font-size: 1rem;
  color: var(--gris-4);
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

/* ── Noticias del Mundial (home, desde ccmasterd1) ───────────── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 540px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .news-grid { grid-template-columns: 1fr 1fr 1fr; } }
.news-card {
  background: var(--gris-0);
  border: 1px solid var(--gris-2);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,114,188,0.1);
  border-color: var(--azul);
  text-decoration: none;
}
.news-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gris-2);
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-thumb-empty {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-osc) 100%);
}
.news-body { padding: 10px 12px 12px; }
.news-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gris-5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-date {
  font-size: 0.75rem;
  color: var(--gris-4);
  margin-top: 6px;
  font-weight: 600;
}
.news-more {
  margin-top: 0.75rem;
  text-align: right;
  font-size: 0.9rem;
}
.news-more a { color: var(--azul); font-weight: 600; }

.news-loader {
  display: flex;
  justify-content: center;
  padding: 1.25rem 0 0.5rem;
}
.news-loader-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gris-2);
  border-top-color: var(--azul);
  border-radius: 50%;
  animation: news-spin 0.8s linear infinite;
}
@keyframes news-spin { to { transform: rotate(360deg); } }

/* ── HERO en la home ─────────────────────────────────────────── */
.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 2rem;
  isolation: isolate;
  background: linear-gradient(135deg, #003e6b 0%, #0072BC 55%, #00528a 100%);
  color: #fff;
}
/* Patrón de hexágonos sutil (gradiente CSS, sin imágenes) */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06) 0, transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(203,2,8,0.18) 0, transparent 40%),
    radial-gradient(circle at 50% 0%, rgba(250,204,21,0.10) 0, transparent 50%);
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(60deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 32px);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.hero-emblem {
  width: 140px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
  animation: hero-float 4.5s ease-in-out infinite;
}
.hero-emblem img { display: block; width: 100%; height: auto; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-text { width: 100%; }
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}
.hero-title {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.18);
  letter-spacing: -0.01em;
}
.hero-title span {
  display: block;
  font-size: 3.5rem;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #facc15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-top: 2px;
}
.hero-subtitle {
  margin: 6px 0 12px;
  font-size: 0.9rem;
  opacity: 0.92;
  line-height: 1.4;
}
.hero-hosts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 10px;
}
.hero-hosts .host {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.hero-hosts .flag { font-size: 1rem; line-height: 1; }
.hero-countdown {
  font-size: 0.85rem;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.hero-countdown strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #facc15;
  margin-right: 4px;
}
.hero-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.cta-primary {
  background: var(--rojo);
  color: #fff;
  box-shadow: 0 4px 10px rgba(203,2,8,0.35);
}
.cta-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(203,2,8,0.45);
}
.cta-ghost {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
}
.cta-ghost:hover {
  background: rgba(255,255,255,0.22);
  text-decoration: none;
}

/* Desktop: layout horizontal emblema izq + texto der */
@media (min-width: 720px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
    padding: 38px 36px;
    gap: 32px;
  }
  .hero-emblem { width: 200px; }
  .hero-title { font-size: 2.2rem; }
  .hero-title span { font-size: 5rem; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 14px; }
  .hero-hosts { justify-content: flex-start; }
  .hero-cta { justify-content: flex-start; }
}
