/* ================= BASE ================= */
html {
  margin-top: 0 !important;
}

* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #111827;
  color: #ffffff;
}

/* ================= LINKS ================= */
a {
  text-decoration: none;
}

/* ================= HEADER LIGA 1 MAX ================= */
.header {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 8px 24px;
  background: linear-gradient(180deg, #ef233c 0%, #111827 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(239, 35, 60, 0.45);
}

.header-title {
  margin: 0;
  padding: 8px;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-title a {
  color: #ffffff;
  text-decoration: none;
}

.header-img {
  padding-right: 16px;
  display: flex;
  align-items: center;
}

.header-img img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #111827;
  padding: 3px;
}

/* ================= MAIN ================= */
main {
  width: 91.666667%;
  max-width: 66.666667%;
  margin: 2.2rem auto 1.5rem;
  flex: 1;
}

h1 {
  text-align: center;
  font-size: 2.45rem;
  font-weight: 800;
  margin: 0.8rem 0 1.25rem;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.description {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2.2rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #ffffff;
}

.description a {
  color: #ffffff;
  font-weight: 700;
}

.description strong {
  color: #ffffff;
}

/* ================= AGENDA ================= */
#wraper {
  width: 100%;
  margin: 0 auto 2rem;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
}

.agenda-header {
  background: linear-gradient(90deg, #ef233c 0%, #7f1d1d 55%, #111827 100%);
  color: #ffffff;
  text-align: center;
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 0.8rem;
  box-shadow: 0 6px 15px rgba(239, 35, 60, 0.22);
}

#title-agenda {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

/* ================= LISTA AGENDA ================= */
#menu {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #061126;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

#menu > li {
  border-bottom: 1px solid #e5e7eb;
  list-style: none;
}

#menu > li:hover {
  background: #fff1f2;
}

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

.menu-item a {
  display: block;
  padding: 7px 14px;
  color: #061126;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease-in-out;
}

.menu-item a:hover {
  background: #ef233c;
  color: #ffffff;
}

/* ================= CANALES ================= */
.channels-title {
  text-align: center;
  font-size: 1.875rem;
  margin: 2.5rem 0 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

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

.card {
  background: #ffffff;
  color: #111827;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(239, 35, 60, 0.35);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(239, 35, 60, 0.25);
}

.card-image {
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}

.card-image img {
  height: 6rem;
  width: 6rem;
  object-fit: contain;
}

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

.card-content h3 {
  color: #111827;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.card-content p {
  color: #4b5563;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
}

.btn-watch {
  background: #ef233c;
  color: #ffffff;
  font-weight: 800;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-block;
}

.btn-watch:hover {
  background: #ff304f;
}

/* ================= FOOTER ================= */
footer {
  width: 100%;
  background: linear-gradient(180deg, #111827 0%, #ef233c 100%);
  color: #ffffff;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
}

.redes {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

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

.red-item {
  color: #ffffff;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity 0.15s ease-in-out;
}

.red-item:hover {
  opacity: 0.8;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  main {
    max-width: 90%;
    width: 100%;
  }

  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .header {
    min-height: 54px;
    padding: 10px 14px 8px 16px;
  }

  .header-title {
    font-size: 22px;
    padding: 6px 0;
  }

  .header-img {
    padding-right: 4px;
  }

  .header-img img {
    width: 36px;
    height: 36px;
    padding: 3px;
  }

  main {
    width: 94%;
    max-width: 100%;
    margin-top: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .description {
    font-size: 1rem;
    margin-bottom: 1.8rem;
  }

  #title-agenda {
    font-size: 0.95rem;
  }

  .menu-item a {
    padding: 9px 12px;
    font-size: 0.95rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
}