/* ponytail: un solo stylesheet, sin preprocesador ni build */
* { font-family: arial, Arial, Helvetica, sans-serif; box-sizing: border-box; }

html { margin-top: 0 !important; }

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

/* ---------- Header ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.logo {
  color: #16a34a;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.navbar { display: flex; gap: 1rem; }

.navbar > a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar > a:hover { color: #16a34a; }

#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #4b5563;
}

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

/* ---------- Modal del menú ---------- */
#menu-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(31, 41, 55, 0.75);
  z-index: 50;
  justify-content: center;
  align-items: center;
}

#menu-modal.abierto { display: flex; }

.modal-content {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 83.333333%;
  max-width: 50%;
  position: relative;
}

#menu-close {
  color: #4b5563;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  margin-top: 1rem;
}

.modal-nav a {
  font-size: 1.125rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.3s;
}

.modal-nav a:hover { color: #16a34a; }

/* ---------- Contenido ---------- */
main {
  margin: 0.6rem auto;
  width: 91.666667%;
  max-width: 66.666667%;
}

h1 {
  text-align: center;
  font-size: 2.25rem;
  font-weight: bold;
  margin-top: 0.6rem;
  margin-bottom: 1.25rem;
  color: #065f46;
}

.description {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: #4b5563;
}

.description a { color: #16a34a; text-decoration: underline; }

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

.agenda-header {
  background: linear-gradient(to right, #16a34a, #15803d);
  color: white;
  text-align: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  flex-grow: 1;
  padding: 0.5rem;
}

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

#menu {
  margin: 0;
  padding: 0;
  background-color: #fff;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1);
}

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

#menu > li.dia-separador {
  background-color: #f3f4f6;
  color: #065f46;
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.6rem;
  cursor: default;
}

.toggle-submenu {
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: block;
}

.evento-fila { display: flex; align-items: center; width: 100%; }

.evento-fila time {
  width: 3.5rem;
  min-width: 3.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.bandera {
  margin-left: 0.5rem;
  height: 1.5rem;
  width: 1.5rem;
  font-size: 1.15rem;
  line-height: 1.5rem;
  text-align: center;
}

.evento-nombre {
  flex: 1;
  margin-left: 1rem;
  text-align: left;
  font-weight: 700;
  color: #2d3748;
  font-size: 15px;
}

.vivo-tag {
  margin-left: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  color: #c53030;
  text-transform: uppercase;
  white-space: nowrap;
}

.vivo-tag::before { content: "● "; }

.chevron { color: #9ca3af; font-size: 11px; margin-left: 0.5rem; }

.opciones {
  margin-left: 1rem;
  border-radius: 0.5rem;
  display: none;
  padding: 0;
}

.opciones.abierto { display: block; }

.submenu { padding-top: 8px; }

.submenu-item {
  font-size: 0.875rem;
  color: #4a5568;
  text-decoration: none;
  display: block;
}

.submenu-item li {
  padding: 0.5rem 0;
  width: 100%;
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 15px;
}

.submenu-item:hover li { color: #05b548; }

.punto {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.5rem;
  border-radius: 50%;
  border: 2px solid #16a34a;
}

/* ---------- Filtro ---------- */
.container__filter {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 10px;
  gap: 10px;
}

#search, #filter_category {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  flex: 1;
  font-size: 0.875rem;
}

#filter_category { background-color: #fff; }

/* ---------- Tarjetas de canales ---------- */
.channels-title {
  text-align: center;
  font-size: 1.875rem;
  margin-bottom: 1.75rem;
  margin-top: 2.5rem;
  font-weight: 600;
  color: #065f46;
}

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

.card {
  background-color: white;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover { transform: scale(1.05); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }

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

.card-image .marca {
  height: 6rem;
  width: 6rem;
  border-radius: 0.75rem;
  background-color: #fff;
  border: 2px solid #16a34a;
  color: #065f46;
  font-weight: bold;
  font-size: 0.8rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
}

.card-content {
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  color: #1f2937;
  font-weight: bold;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.card-content p { color: #4b5563; margin: 0 0 1.5rem; flex: 1; }

.btn-watch {
  align-self: center;
  background-color: #15803d;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-block;
}

.btn-watch:hover { background-color: #16a34a; }

/* ---------- Texto informativo ---------- */
.content-text { font-size: 1rem; color: #4b5563; line-height: 1.6; }
h2 { color: #065f46; font-size: 1.5rem; margin-top: 2rem; }
.faq details {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.faq summary { cursor: pointer; font-weight: bold; color: #1f2937; }
.faq p { margin: 0.6rem 0 0; color: #4b5563; }

/* ---------- Reproductor ---------- */
.title { font-size: 1.5rem; }
.centerfull { text-align: center; }
.margin-top-2 { margin-top: 2rem; }

.preframe {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #010101;
  border-radius: 0.5rem;
  overflow: hidden;
}

.capa-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  background: radial-gradient(circle at center, #1f2937 0%, #010101 100%);
}

.capa-play .play {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  background-color: #16a34a;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.capa-play .play:hover { background-color: #15803d; }
.capa-play p { color: #d1d5db; font-size: 0.875rem; margin: 0; }

.spinner {
  width: 3.5rem;
  height: 3.5rem;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: girar 0.9s linear infinite;
}

@keyframes girar { to { transform: rotate(360deg); } }

#btnIframe {
  margin-top: 1rem;
  background-color: #15803d;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  font-size: 0.875rem;
}

#btnIframe:hover { background-color: #16a34a; }

.opciones-senal { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

.opciones-senal a {
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
}

.opciones-senal a:hover, .opciones-senal a.activo {
  background-color: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

/* ---------- Footer ---------- */
footer {
  height: 2.5rem;
  background-color: #1f2937;
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.footer-title { text-align: center; font-size: 0.875rem; }

.redes { display: flex; justify-content: center; gap: 1rem; margin: 0; padding: 0; }
.redes > li { list-style-type: none; }

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

.red-item:hover { color: #16a34a; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .cards-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  main { max-width: 90%; width: 100%; }
  h1 { font-size: 1.6rem; }
  #title-agenda { font-size: 18px; }
  .navbar { display: none; }
  #menu-toggle { display: flex; }
  .modal-content { width: 90%; max-width: 300px; padding: 1.25rem; }
  .modal-nav { align-items: center; }
  .modal-nav a { width: 100%; padding: 0.75rem 0; }
  .container__filter { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .cards-container { grid-template-columns: 1fr; }
  .evento-nombre { font-size: 14px; margin-left: 0.5rem; }
}
