/* Fuentes autohospedadas - latin subset, fuentes variables (antes Google Fonts) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   Fútbol Libre — Premium White Design System
   ========================================================= */

:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f4faf6;
  --bg-card: #ffffff;

  --text: #0b1526;
  --text-soft: #334155;
  --text-muted: #64748b;

  --border: #e2e8f0;
  --border-soft: #eef2f7;

  --red-500: #ef4444;
  --amber-500: #f59e0b;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .14);
  --shadow-lg: 0 24px 60px -16px rgba(15, 23, 42, .20);
  --shadow-green: 0 12px 32px -12px rgba(22, 163, 74, .45);

  --ease: cubic-bezier(.22, .8, .28, 1);
  --t-fast: .16s;
  --t-med: .28s;

  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
}

:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--green-200); color: var(--green-800); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; border: 2px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: var(--green-400); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* =========================================================
   HEADER
   ========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.logo .logo-img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-green);
  flex-shrink: 0;
}
.logo em {
  font-style: normal;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo:hover { text-decoration: none; }

.navbar { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-start; gap: 3px; }
.navbar a {
  display: inline-block;
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.navbar a:hover { background: var(--green-50); color: var(--green-700); }
.navbar a.header-live,
.navbar a.header-live:hover {
  background: var(--green-600);
  color: #fff;
}
.navbar a.header-live:hover { background: var(--green-700); }
.navbar a.header-live { margin-left: auto; }

.header-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--green-600);
  color: #fff !important;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: var(--shadow-green);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.header-live:hover { background: var(--green-700); transform: translateY(-1px); }
.header-live[hidden] { display: none; }
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}

#menu-toggle {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}
#menu-toggle svg { width: 22px; height: 22px; }

#menu-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(3px);
}
#menu-modal .modal-content {
  background: #fff;
  margin: 0 auto;
  max-width: 340px;
  height: 100%;
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideIn .25s var(--ease);
}
@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
#menu-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  padding: 7px;
  color: var(--text);
  display: flex;
}
#menu-close svg { width: 18px; height: 18px; }
.modal-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 52px; }
.modal-nav a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid transparent;
}
.modal-nav a:hover { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 18px;
  text-align: center;
  background:
    radial-gradient(52rem 26rem at 12% -6%, rgba(34, 197, 94, .12), transparent 62%),
    radial-gradient(46rem 24rem at 92% 4%, rgba(74, 222, 128, .14), transparent 60%),
    linear-gradient(180deg, #f7fcf9 0%, #ffffff 88%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(21, 128, 61, .13) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero h1 {
  margin: 15px 0 12px;
  font-size: clamp(2.05rem, 5vw, 3.05rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
}
.grad {
  background: linear-gradient(92deg, var(--green-600) 10%, var(--green-400) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}
.hero-sub strong { color: var(--text-soft); font-weight: 600; }
.hero-sub + .hero-sub { margin-top: 10px; }

/* =========================================================
   SECCIONES
   ========================================================= */

.section { padding: 42px 0 8px; }

.section-head { text-align: center; margin-bottom: 30px; }
#agenda .section-head { margin-bottom: 20px; }
#agenda { padding-top: 14px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 10px;
}
.kicker::before, .kicker::after {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--green-300));
}
.kicker::after { background: linear-gradient(90deg, var(--green-300), transparent); }

.section-title {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
}
.section-sub {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: .95rem;
}

/* =========================================================
   LIVE STRIP — partidos en vivo (scroll horizontal)
   ========================================================= */

.live-strip { padding: 16px 0 0; }
.live-strip[hidden] { display: none; }
.live-strip + .section { padding-top: 24px; }

.live-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.live-strip-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text);
}
.live-strip-head h2 .pulse-dot { background: var(--red-500); width: 9px; height: 9px; }
.live-strip-count {
  background: var(--green-100);
  color: var(--green-800);
  font-size: .72rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.live-strip-hint {
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-strip-hint svg { width: 14px; height: 14px; }

.live-strip-scroll {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 2px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}
.live-strip-scroll::-webkit-scrollbar { display: none; }

.live-card {
  position: relative;
  flex: 0 0 258px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 15px 16px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.live-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
}
.live-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-200);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.live-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-600);
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .09em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-green);
}
.live-tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}
.live-min {
  font-size: .76rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 3px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.live-comp {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-match {
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.live-watch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--green-700);
}
.live-watch svg { width: 13px; height: 13px; transition: transform var(--t-fast) var(--ease); }
.live-card:hover .live-watch svg { transform: translateX(3px); }

/* =========================================================
   AGENDA
   ========================================================= */

.agenda-bar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, var(--green-700) 0%, var(--green-600) 55%, var(--green-500) 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-green);
}
.agenda-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) 48%, transparent 62%);
  pointer-events: none;
}
.agenda-bar h2 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.agenda-bar h2 svg { width: 17px; height: 17px; opacity: .95; }
.agenda-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 600;
  flex-wrap: wrap;
  margin-left: auto;
}
.agenda-meta .meta-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .18);
  padding: 5px 12px;
  border-radius: 999px;
}
.agenda-meta .meta-next {
  background: rgba(255, 255, 255, .14);
  padding: 5px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.agenda-search {
  position: relative;
  flex: 1 1 200px;
  max-width: 360px;
  min-width: 0;
}
.agenda-search svg {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}
.agenda-search input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, .14);
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--text);
  transition: box-shadow var(--t-fast) var(--ease);
}
.agenda-search input::placeholder { color: #94a3b8; }
.agenda-search input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .4), var(--shadow-sm);
}

.agenda-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 2px 6px;
  align-items: center;
}
.chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chip:hover { border-color: var(--green-300); color: var(--green-700); transform: translateY(-1px); }
.chip.active {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(22, 163, 74, .7);
}
.chip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-500);
  display: none;
}
.chip-live .dot { display: inline-block; animation: pulse 1.4s infinite; }
.chip-count {
  margin-left: auto;
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 600;
}

#menu, .agenda-list { list-style: none; }

.agenda-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  margin-top: 9px;
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), opacity .3s;
}
.agenda-item:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.agenda-item.is-live {
  border-color: var(--green-300);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .25), 0 10px 26px -14px rgba(22, 163, 74, .4);
}
.agenda-item.is-past { opacity: .52; }

.agenda-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
}

.agenda-time {
  min-width: 54px;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xs);
  padding: 6px 0;
  flex-shrink: 0;
}
.agenda-item.is-live .agenda-time {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}

.agenda-flag {
  width: 27px; height: 27px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .1);
}

.agenda-text {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: .89rem;
  color: var(--text-soft);
  white-space: pre-line;
  line-height: 1.4;
}

.badge-live {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--green-600);
  color: #fff;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .09em;
  padding: 5px 11px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: var(--shadow-green);
}
.badge-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}
.agenda-item.is-live .badge-live { display: inline-flex; }

.badge-soon {
  display: none;
  align-items: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--amber-500);
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.agenda-item.is-soon .badge-soon { display: inline-flex; }

.agenda-caret {
  width: 17px; height: 17px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--t-med) var(--ease);
}
.agenda-item.open .agenda-caret { transform: rotate(180deg); color: var(--green-600); }

.agenda-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med) var(--ease);
  border-top: 0 solid transparent;
  margin: 0 16px;
  padding: 0;
  list-style: none;
}
.agenda-item.open .agenda-options {
  max-height: 480px;
  border-top: 1px dashed var(--border);
  padding: 6px 0 12px;
}

.agenda-options li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-xs);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.agenda-options li a:hover {
  background: var(--green-50);
  color: var(--green-700);
  transform: translateX(3px);
}
.agenda-options li a svg { width: 13px; height: 13px; color: var(--green-600); flex-shrink: 0; }
.agenda-options .empty { padding: 10px; color: var(--text-muted); font-size: .85rem; }

.agenda-status { padding: 34px 0; text-align: center; color: var(--text-muted); font-size: .92rem; }
.agenda-status.error { color: var(--red-500); }

/* Skeletons */
.sk-row {
  margin-top: 9px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  list-style: none;
}
.sk {
  display: block;
  border-radius: 7px;
  background: linear-gradient(90deg, #eef2f7 25%, #f7fafc 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}
.sk-time { width: 54px; height: 34px; flex-shrink: 0; }
.sk-flag { width: 27px; height: 27px; border-radius: 50%; flex-shrink: 0; }
.sk-line { height: 13px; flex: 1; }
.sk-line.short { flex: .45; }
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.82); }
  100% { opacity: 1; transform: scale(1); }
}

/* =========================================================
   CHANNELS
   ========================================================= */

.cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}
.card:hover::before { opacity: 1; }

.card-image {
  position: relative;
  background:
    radial-gradient(14rem 7rem at 50% 0%, rgba(34, 197, 94, .08), transparent 70%),
    linear-gradient(180deg, #fcfefd, #f4f8f5);
  border-bottom: 1px solid var(--border-soft);
  padding: 30px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 122px;
}
.card-image img { width: 112px; height: 112px; object-fit: contain; }
.card-hd {
  position: absolute;
  top: 10px; right: 10px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 3px 8px;
  border-radius: 999px;
}

.card-content {
  padding: 17px 17px 19px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-content h3 { font-size: 1rem; font-weight: 800; color: var(--text); }
.card-content p {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 6px 0 16px;
  flex: 1;
  line-height: 1.5;
}

.btn-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff !important;
  font-size: .82rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(22, 163, 74, .6);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  align-self: flex-start;
}
.btn-watch svg { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.btn-watch:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}
.btn-watch:hover svg { transform: translateX(2px); }
.btn-watch:active { transform: translateY(0); }

.btn-secondary {
  background: #fff;
  color: var(--green-700) !important;
  border: 1px solid var(--green-200);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--green-50); box-shadow: 0 6px 18px -10px rgba(22, 163, 74, .4); }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   SEO CONTENT
   ========================================================= */

.seo-content { padding: 52px 0 24px; max-width: 860px; margin: 0 auto; }
.seo-content h2 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text);
  margin: 30px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.seo-content h2::before {
  content: "";
  width: 4px; height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--green-400), var(--green-600));
  flex-shrink: 0;
}
.seo-content h2:first-child { margin-top: 0; }

.seo-content h3 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text-soft);
  margin: 20px 0 6px;
}

.seo-content ul {
  list-style: none;
  margin: 0 0 6px;
  display: grid;
  gap: 7px;
}
.seo-content ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: .96rem;
}
.seo-content ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
}
.seo-content ul li strong {
  color: var(--text-soft);
  font-weight: 600;
}
.seo-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--green-200);
}
.seo-content a:hover { text-decoration-color: var(--green-500); }

.seo-content .description { margin: 0 0 6px; }
.description { color: var(--text-muted); font-size: .96rem; }
.description strong { color: var(--text-soft); font-weight: 600; }

/* =========================================================
   DEPORTES — hub de categorías
   ========================================================= */

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-actions .btn-watch { align-self: center; }

.sports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.sport-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.sport-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.sport-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}
.sport-card:hover::before { opacity: 1; }

.sport-card h3 {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text);
}
.sport-card p {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 7px 0 16px;
  flex: 1;
}

.sport-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sport-links a {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 5px 12px;
  border-radius: 999px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.sport-links a:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}

/* =========================================================
   PLAYER PAGES
   ========================================================= */

.player-main { padding: 36px 0 24px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.back-link:hover { color: var(--green-700); transform: translateX(-3px); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--green-700); font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.crumbs-sep { opacity: .55; }
.hero .breadcrumbs { margin-bottom: 4px; }
.player-main .breadcrumbs { margin: 0 0 18px; }
.back-link svg { width: 15px; height: 15px; }

.player-heading { text-align: center; margin-bottom: 24px; }
.channel-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.channel-brand img { width: 56px; height: 56px; }
.player-heading h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
  font-weight: 800;
  color: var(--text);
}
.player-heading .sub {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.player-heading .sub .pulse-dot { background: var(--red-500); }

.player-frame-wrap { max-width: 940px; margin: 0 auto; }

.player-shell {
  padding: 2px;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(34, 197, 94, .55), rgba(226, 232, 240, .9) 38%, rgba(34, 197, 94, .3) 78%, rgba(226, 232, 240, .8));
  box-shadow: var(--shadow-lg);
}
.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1220;
  border-radius: 20px;
  overflow: hidden;
}
.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.player-actions .btn-watch { font-size: .88rem; padding: 11px 24px; }

/* Selector de opciones de transmisión */
.src-options {
  max-width: 720px;
  margin: 22px auto 0;
  text-align: center;
}
.src-options[hidden] { display: none; }
.src-options-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 11px;
}
.src-options-label svg { width: 14px; height: 14px; }
.src-options-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.src-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.src-option svg { width: 12px; height: 12px; opacity: .7; }
.src-option:hover {
  border-color: var(--green-300);
  color: var(--green-700);
  background: var(--green-50);
}
.src-option.active {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.src-option.active svg { opacity: 1; }

.player-note {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--text-muted);
  font-size: .9rem;
  text-align: center;
}
.player-note strong { color: var(--text-soft); }

.player-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 14px auto 0;
  padding: 11px 16px;
  border: 1px solid rgba(34, 158, 217, .35);
  border-radius: 12px;
  background: rgba(34, 158, 217, .07);
  color: var(--text-soft);
  font-size: .86rem;
  text-align: center;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.player-telegram:hover {
  border-color: rgba(34, 158, 217, .6);
  background: rgba(34, 158, 217, .12);
  text-decoration: none;
}
.player-telegram .tg-icon { width: 19px; height: 19px; flex-shrink: 0; color: #229ED9; }
.player-telegram strong { color: var(--text); font-weight: 700; }

.channel-info {
  max-width: 860px;
  margin: 38px auto 0;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.channel-info h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.channel-info p {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.channel-info p:last-child { margin-bottom: 0; }
.channel-info a { color: var(--green-700); font-weight: 600; }

.player-alt { max-width: 940px; margin: 34px auto 0; }
.player-alt h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  text-align: center;
}
.alt-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.alt-chips a {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-soft);
  font-size: .8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
}
.alt-chips a:hover {
  border-color: var(--green-300);
  background: var(--green-50);
  color: var(--green-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  margin-top: 70px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfdfc, var(--bg-soft));
  padding: 44px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: .84rem; color: var(--text-muted); max-width: 300px; }
.footer-col .footer-col-title {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: .85rem; font-weight: 500; color: var(--text-muted); }
.footer-col a:hover { color: var(--green-700); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--text-muted);
}
.footer-bottom .redes { list-style: none; display: flex; gap: 16px; }
.footer-bottom .redes a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-muted); }
.footer-bottom .redes svg { width: 14px; height: 14px; color: #229ED9; }
.footer-bottom .redes a:hover { color: var(--green-700); }

.footer-telegram {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 12px;
  max-width: 280px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.footer-telegram:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-green);
  text-decoration: none;
}
.footer-telegram img { width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0; }
.footer-telegram span { display: flex; flex-direction: column; gap: 3px; }
.footer-telegram strong { font-size: .88rem; font-weight: 700; color: var(--text); }
.footer-telegram small { font-size: .74rem; line-height: 1.4; color: var(--text-muted); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1020px) {
  .cards-container { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1120px) {
  .navbar { display: none; }
  #menu-toggle { display: inline-flex; }
}

@media (max-width: 860px) {
  .cards-container { grid-template-columns: repeat(2, 1fr); }
  .sports-grid { grid-template-columns: repeat(2, 1fr); }
  .seo-content { padding-left: 22px; padding-right: 22px; }
  .hero { padding: 32px 0 18px; }
  .live-strip { padding: 12px 0 0; }
  .live-card { flex: 0 0 224px; padding: 13px 14px 14px; }
  .live-strip-head h2 { font-size: .95rem; }
}

@media (max-width: 520px) {
  .cards-container { grid-template-columns: 1fr; }
  .sports-grid { grid-template-columns: 1fr; }
  .agenda-time { min-width: 48px; font-size: .84rem; }
  .agenda-text { font-size: .83rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .badge-soon { display: none !important; }
  .live-strip-hint { display: none; }
  .live-strip + .section { padding-top: 18px; }
  .agenda-search { flex: 1 1 100%; max-width: none; }
  .hero h1 { font-size: clamp(1.7rem, 6.8vw, 2.05rem); }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   PÁGINA 404
   ========================================================= */

.error-page { padding-top: 56px; padding-bottom: 48px; }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 13vw, 6.2rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.error-page h1 { font-size: clamp(1.35rem, 3.6vw, 1.9rem); margin: 0 0 12px; }
.error-page p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}
.error-page p a { color: var(--green-700); font-weight: 600; }
