/* ================= THEME ================= */
:root {
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-400: #22c55e;
  --green-500: #16a34a;
  --green-600: #15803d;
  --green-700: #065f46;
  --green-800: #064e3b;
  --accent: #facc15;
  --accent-2: #fb923c;
  --dark-900: #0b1220;
  --dark-800: #111827;
  --dark-700: #1f2937;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(2,44,34,.10);
  --shadow-lg: 0 18px 40px rgba(2,44,34,.18);
  --radius: 14px;
  --grad-green: linear-gradient(135deg, #16a34a 0%, #065f46 100%);
  --grad-dark: linear-gradient(135deg, #0b1220 0%, #064e3b 100%);
  --grad-accent: linear-gradient(135deg, #facc15 0%, #fb923c 100%);
}

* { box-sizing: border-box; }
html { margin-top: 0 !important; scroll-behavior: smooth; }
* { font-family: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(22,163,74,.10), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(250,204,21,.08), transparent 60%),
    #f6fbf8;
  color: var(--gray-700);
}

/* ================= HEADER ================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1.4rem;
  background: var(--grad-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  border-bottom: 2px solid rgba(34,197,94,.35);
  backdrop-filter: blur(8px);
}

.logo {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .3px;
  text-decoration: none;
  position: relative;
  padding-left: 38px;
}

.logo::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-green);
  box-shadow: 0 0 0 3px rgba(34,197,94,.25), 0 6px 14px rgba(22,163,74,.55);
}

.logo::after {
  content: "⚽";
  position: absolute;
  left: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.3));
}

.navbar {
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
}

.navbar > a {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: .45rem .75rem;
  border-radius: 8px;
  position: relative;
  transition: color .25s, background .25s, transform .25s;
}

.navbar > a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .3s ease;
}

.navbar > a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.navbar > a:hover::after { transform: scaleX(1); }

/* ================= MENU TOGGLE ================= */
#menu-toggle {
  display: none;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: .4rem;
  cursor: pointer;
  color: #fff;
  transition: background .2s;
}

#menu-toggle:hover { background: rgba(255,255,255,.2); }

.menu-icon, .close-icon {
  height: 1.5rem;
  width: 1.5rem;
}

/* ================= MODAL ================= */
#menu-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,.72);
  backdrop-filter: blur(6px);
  z-index: 50;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(0,0,0,.35);
  padding: 1.75rem;
  width: 83%;
  max-width: 50%;
  position: relative;
  border-top: 4px solid var(--green-500);
}

#menu-close {
  color: var(--gray-700);
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

#menu-close:hover { background: var(--green-500); color: #fff; }

.modal-nav {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.25rem;
}

.modal-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  padding: .75rem 1rem;
  border-radius: 10px;
  border-left: 3px solid transparent;
  transition: all .2s;
}

.modal-nav a:hover {
  color: var(--green-700);
  background: var(--green-50);
  border-left-color: var(--green-500);
  transform: translateX(4px);
}

/* ================= MAIN ================= */
main {
  margin: 1.5rem auto 2.5rem;
  width: 92%;
  max-width: 1200px;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0 1.25rem;
  background: var(--grad-green);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.5px;
}

h1::after {
  content: "";
  display: block;
  width: 80px; height: 4px;
  margin: .6rem auto 0;
  background: var(--grad-accent);
  border-radius: 4px;
}

.description {
  text-align: left;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green-500);
  margin-bottom: 1.5rem;
}

.description a { color: var(--green-600); text-decoration: underline; font-weight: 600; }
.description strong { color: var(--green-700); }

/* ================= FILTRO ================= */
.container__filter {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0;
  padding: .75rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

#search, #filter_category {
  padding: .7rem .9rem;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  flex: 1;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

#search:focus, #filter_category:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(22,163,74,.15);
}

/* ================= AGENDA ================= */
#wraper {
  width: 100%;
  margin: 0 auto 1.5rem;
  font-size: .875rem;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
}

.agenda-header {
  background: var(--grad-green);
  color: #fff;
  text-align: center;
  padding: .9rem;
  position: relative;
  overflow: hidden;
}

.agenda-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
  animation: shine 3.5s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

#title-agenda {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 1;
  letter-spacing: .3px;
}

/* ================= MENU AGENDA ================= */
#menu { margin: 0; padding: 0; background: #fff; }

#menu > li {
  border-bottom: 1px solid #eef2ef;
  list-style: none;
  transition: background .2s;
}

#menu > li:hover { background: var(--green-50); }

.menu-item { list-style: none; background: none; }

.menu-item a {
  display: block;
  padding: .6rem 1rem;
  color: #111;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: all .25s;
  border-left: 3px solid transparent;
}

.menu-item a:hover {
  background: var(--grad-green);
  color: #fff;
  border-left-color: var(--accent);
  padding-left: 1.3rem;
}

/* ================= CHANNELS ================= */
.channels-title {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 800;
  margin: 2.5rem 0 1.75rem;
  color: var(--green-700);
  position: relative;
  display: block;
}

.channels-title::after {
  content: "";
  display: block;
  width: 60px; height: 3px;
  margin: .6rem auto 0;
  background: var(--grad-accent);
  border-radius: 3px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
  border: 1px solid #eef2ef;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
  z-index: 2;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22,163,74,.3);
}

.card:hover::before { transform: scaleX(1); }

.card-image {
  height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 50%, #fff 0%, #ecfdf5 100%);
  position: relative;
  overflow: hidden;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(22,163,74,.08));
  pointer-events: none;
}

.card-image img {
  height: 6rem;
  width: 6rem;
  object-fit: contain;
  transition: transform .4s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.12));
}

.card:hover .card-image img { transform: scale(1.1) rotate(-2deg); }

.card-content {
  padding: 1.25rem;
  text-align: center;
}

.card-content h3 {
  color: var(--dark-800);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 .5rem;
}

.card-content p {
  color: var(--gray-500);
  font-size: .9rem;
  margin-bottom: 1.1rem;
  min-height: 2.5em;
}

.btn-watch {
  background: var(--grad-green);
  color: #fff;
  font-weight: 700;
  padding: .6rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  font-size: .88rem;
  letter-spacing: .3px;
  box-shadow: 0 6px 14px rgba(22,163,74,.35);
  transition: transform .2s, box-shadow .2s, background .3s;
  position: relative;
  overflow: hidden;
}

.btn-watch::before {
  content: "▶ ";
  font-size: .75rem;
  margin-right: .2rem;
}

.btn-watch:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 20px rgba(22,163,74,.5);
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* ================= FOOTER ================= */
footer {
  background: var(--grad-dark);
  color: #fff;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 3px solid var(--green-500);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-title {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .3px;
}

.redes {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.redes > li { list-style: none; }

.red-item, footer a {
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  padding: .35rem .9rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  transition: all .25s;
}

.red-item:hover, footer a:hover {
  background: var(--green-500);
  border-color: var(--green-500);
  transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .cards-container { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .cards-container { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2rem; }
  .channels-title { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  main { width: 94%; }
  .navbar { display: none; }
  #menu-toggle { display: inline-flex; }
  #title-agenda { font-size: 1rem; }
  #iframeVideo { width: 100% !important; height: 100% !important; }

  .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 320px;
  }
  .modal-nav a { width: 100%; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .cards-container { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
  .logo { font-size: 1.15rem; padding-left: 34px; }
  .container__filter { flex-direction: column; }
}

/* ================= UTILS ================= */
.transition-all { transition: all .3s ease-in-out; }
.submenu > a > li:hover { color: var(--green-400); }
.submenu:not(:first-child) { border-top: 1px solid #e5e7eb; }
.socialicon { display: flex !important; justify-content: center !important; align-items: center !important; }

@media (max-width: 640px) {
  .hide-on-mobile { display: none !important; }
}
