/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BODY ================= */
body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: #f5f6f8;
  color: #1f2937;
  line-height: 1.6;
}

/* ================= HEADER ================= */
header {
  background: linear-gradient(90deg, #9f0d0d, #c31414);
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logo {
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  margin-left: 18px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.navbar a:hover {
  opacity: 1;
  border-bottom: 2px solid #fff;
}

/* ================= MENU MÓVIL ================= */
#menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
}

.menu-icon {
  width: 26px;
  height: 26px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

#menu-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 999;
}

.modal-content {
  background: #ffffff;
  width: 260px;
  height: 100%;
  padding: 20px;
  box-shadow: 4px 0 20px rgba(0,0,0,0.2);
}

#menu-close {
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 16px;
  display: block;
}

.close-icon {
  width: 24px;
  height: 24px;
  stroke: #333;
  stroke-width: 2;
  fill: none;
}

.modal-nav a {
  display: block;
  padding: 12px 0;
  color: #c31414;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

/* ================= MAIN ================= */
main {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
}

/* ================= TÍTULOS ================= */
.title-main {
  color: #9f0d0d;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
}

.channels-title {
  color: #9f0d0d;
  font-size: 22px;
  margin: 40px 0 20px;
  font-weight: 700;
}

/* ================= DESCRIPCIÓN ================= */
.description {
  background: #ffffff;
  border-radius: 8px;
  padding: 18px;
  font-size: 14px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.description a {
  color: #9f0d0d;
  text-decoration: none;
}

/* ================= AGENDA ================= */
#wraper {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 35px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.agenda-header {
  background: linear-gradient(to right, #cc0000, #990000);
  color: #ffffff;
  text-align: center;
  border-radius: 0.6rem;
  padding: 0.7rem;
  margin-bottom: 10px;
  box-shadow: 0px 5px 15px rgba(204, 0, 0, 0.3);
}

#title-agenda {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
}

#menu {
  padding: 0;
  list-style: none;
}

#menu li {
  border-bottom: 1px solid #f0f0f0;
}

#menu li:last-child {
  border-bottom: none;
}

/* ================= TARJETAS ================= */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 18px;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 5px 18px rgba(0,0,0,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.card-image img {
  max-width: 100%;
  height: 55px;
  object-fit: contain;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 700;
  color: #111;
}

.card p {
  font-size: 12px;
  margin-bottom: 12px;
  color: #555;
}

/* ================= BOTÓN VER CANAL ================= */
.btn-watch {
  display: inline-block;
  background: linear-gradient(90deg, #b31212, #e52d27);
  color: #fff;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.btn-watch:hover {
  transform: scale(1.05);
}

/* ================= SEO CONTENT ================= */
.seo-content {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  margin-top: 50px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.06);
}

.seo-title {
  color: #9f0d0d;
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 700;
}

.seo-content h2,
.seo-content h3 {
  color: #9f0d0d;
  margin: 25px 0 12px;
  font-weight: 700;
}

.seo-content p {
  font-size: 14px;
  margin-bottom: 16px;
  color: #333;
}

.seo-content a {
  color: #9f0d0d;
  text-decoration: none;
}

.seo-content ul {
  padding-left: 22px;
  margin-bottom: 18px;
}

.seo-content li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* ================= FOOTER ================= */
.footer {
  background: #9f0d0d;
  color: #fff;
  text-align: center;
  padding: 24px 20px;
  margin-top: 60px;
}

.footer-title {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.redes {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.redes a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
  font-size: 14px;
}

.redes a:hover {
  opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .navbar {
    display: none;
  }

  #menu-toggle {
    display: block;
  }

  .title-main {
    font-size: 22px;
  }

  .channels-title {
    font-size: 18px;
  }

  .cards-container {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 12px;
  }

  .seo-content {
    padding: 20px;
  }

  main {
    padding: 20px 14px;
  }
}
