/* ATV Los Ríos — estilos de lo que viene de plugins y de las páginas del canal: Contacto, Inicio ("Ahora al aire"), Programación y fichas de programa (Radio Station), clima y formulario Alerta ATV (MailerLite). */

/* ===== Contacto: bloque de informacion comercial y razon social, bajo el formulario ===== */
.atv-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 0 28px;
  padding: 20px 24px;
  background: #f6f6f6;
  border-left: 4px solid #E93921;
  font-size: 14px;
  line-height: 1.6;
  color: #252626;
}
.atv-info h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.atv-info p { margin: 0 0 6px; }
.atv-prensa { margin: 0 0 16px; font-size: 15px; color: #252626; }
.atv-info__prensa { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid #ddd; }
.atv-pendiente { background: none; }   /* datos confirmados: sin marca amarilla */
@media (max-width: 767px) { .atv-info { grid-template-columns: 1fr; } }

/* ===== Bloque de marca de la portada: "El canal de la región de Los Ríos" ===== */
.atv-marca {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 24px 0 0;
  padding: 28px 24px;
  background: #E93921;
  color: #fff;
}
.atv-marca__logo { height: 90px; width: auto; }
.atv-marca__texto { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.2; color: #fff; }
@media (max-width: 767px) {
  .atv-marca { gap: 10px; padding: 20px 12px; }   /* logo y texto en una sola linea, como en escritorio */
  .atv-marca__logo { height: 36px; }
  .atv-marca__texto { font-size: clamp(11px, 3.1vw, 22px); white-space: nowrap; }   /* se achica con la pantalla para no partirse */
}

/* ===== Inicio: "Ahora al aire" y "A continuación" (shortcodes de Radio Station) ===== */
.atv-ahora { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 8px 4px 4px; }
.atv-ahora h3 {   /* etiqueta roja con letras blancas, como "Destacados" */
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  background: #E93921;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}
.atv-ahora a { color: #252626 !important; font-weight: 600; }   /* el rojo sobre el gris de fondo se lee mal */
.atv-ahora a:hover { color: #E93921 !important; }
.atv-ahora .show-user-time { display: none !important; }   /* hora convertida a la zona del visitante */
.atv-ahora-enlace { grid-column: 1 / -1; margin: 0; }
.atv-ahora .atv-ahora-enlace a {
  display: inline-block;
  padding: 8px 16px;
  background: #E93921;
  color: #fff !important;
  font-weight: 700;
}
.atv-ahora .atv-ahora-enlace a:hover { background: #252626; color: #fff !important; }
@media (max-width: 767px) { .atv-ahora { grid-template-columns: 1fr; } }

/* ===== Programación (plugin Radio Station) ===== */
.master-schedule-controls-wrapper,
.master-schedule > br { display: none; }                       /* huecos que dejan el reloj y el selector ocultos */
#master-schedule .master-schedule-tabs .master-schedule-tabs-day { min-width: 0; margin-left: 4px; }   /* caben los 7 dias */
#master-schedule .master-schedule-tabs .master-schedule-tabs-day.start-tab { margin-left: 0; }
/* pestañas repartidas a todo el ancho y todas del mismo tamaño (el script del plugin mide su ancho, por eso es un % y no un flex) */
#master-schedule { container-type: inline-size; }
#master-schedule .master-schedule-tabs .master-schedule-tabs-day { width: calc((100% - 30px) / 7); }   /* 7 dias */
#master-schedule .master-schedule-tabs .master-schedule-tabs-headings { display: block; padding: 5px 2px; text-align: center; }
@container (max-width: 600px) {   /* columna angosta (celular): 4 dias a la vez, con flechas para el resto */
  #master-schedule .master-schedule-tabs .master-schedule-tabs-day { width: calc((100% - 16px) / 4); }
  #master-schedule .master-schedule-tabs .master-schedule-tabs-day-name { font-size: 12px; white-space: nowrap; }
  #master-schedule .master-schedule-tabs .master-schedule-tabs-headings { padding: 5px 10px; }
}
/* las flechas para pasar de dia van sobre la pestaña, sin agrandarla */
#master-schedule .master-schedule-tabs .shift-left-arrow,
#master-schedule .master-schedule-tabs .shift-right-arrow {
  position: absolute;
  top: 50%;
  float: none;
  transform: translateY(-50%);
  padding: 0 !important;
  font-size: 22px !important;
  line-height: 1 !important;
}
#master-schedule .master-schedule-tabs .shift-left-arrow { left: 3px; }
#master-schedule .master-schedule-tabs .shift-right-arrow { right: 3px; }
#master-schedule .master-schedule-tabs-show .show-desc a { display: none; }   /* el "[…]" de leer mas: el nombre del programa ya enlaza a su ficha */

/* en celular el contenido va antes que el sidebar (parrilla y paginas de programa) */
@media (max-width: 767px) {
  .layout__main:has(#master-schedule),
  .layout__main:has(#show-content) { order: -1; }
}
#master-schedule .master-schedule-tabs .master-schedule-tabs-headings { padding: 5px 8px; }
/* pestañas de los dias: rojo con letras blancas; el dia seleccionado va en gris oscuro */
#master-schedule .master-schedule-tabs .master-schedule-tabs-day {
  background: #E93921;
  border-color: #E93921;
  color: #fff;
}
#master-schedule .master-schedule-tabs .master-schedule-tabs-day.active-day-tab {
  background: #252626;
  border-color: #252626;
  color: #fff;
}
#master-schedule .master-schedule-tabs .master-schedule-tabs-day a { color: #fff; }   /* flechas cuando no caben todos los dias */
#master-schedule .master-schedule-tabs .master-schedule-tab-bottom { display: none !important; }
#master-schedule .show-user-time { display: none !important; } /* hora convertida a la zona del visitante */
#master-schedule .show-title a { color: #252626 !important; font-weight: 600; }   /* igual que en la portada */
#master-schedule .show-title a:hover { color: #E93921 !important; }
.atv-horario-nota { margin: 0 0 12px; font-size: 13px; color: #555; }

/* Programación: cada programa en su placa, con la hora en un bloque rojo a la izquierda */
.caja:has(#master-schedule) { background: transparent; box-shadow: none; padding: 0; }   /* sin el fondo blanco unico */
#master-schedule .master-schedule-tabs-panel { margin: 12px 0 0; padding: 0; border: 0; background: transparent; }
#master-schedule .master-schedule-tabs-show {
  display: grid;
  grid-template-columns: 110px 1fr;
  grid-template-rows: auto 1fr;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
  list-style: none;
  overflow: hidden;
}
#master-schedule .master-schedule-tabs-show .show-image,
#master-schedule .master-schedule-tabs-show .show-genres { display: none; }
#master-schedule .master-schedule-tabs-show .show-info { display: contents; }
#master-schedule .master-schedule-tabs-show .show-time {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: #E93921;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}
#master-schedule .master-schedule-tabs-show .show-time .rs-start-time { font-size: 20px; }
#master-schedule .master-schedule-tabs-show .show-time .rs-sep { font-size: 12px; font-weight: 400; }
#master-schedule .master-schedule-tabs-show .show-time .rs-end-time { font-size: 14px; font-weight: 400; }
#master-schedule .master-schedule-tabs-show .show-title { grid-column: 2; padding: 14px 18px 2px; font-size: 18px; }
#master-schedule .master-schedule-tabs-show .show-desc { grid-column: 2; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 18px 14px !important; font-size: 14px; color: #555; }
/* el programa que esta al aire */
#master-schedule .master-schedule-tabs-show.nowplaying { box-shadow: 0 0 0 2px #E93921; }
#master-schedule .master-schedule-tabs-show.nowplaying .show-time { background: #252626; }
#master-schedule .master-schedule-tabs-show.nowplaying .show-time::after {
  content: "AL AIRE";
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  background: #E93921;
  padding: 2px 6px;
}
@media (max-width: 480px) { #master-schedule .master-schedule-tabs-show { grid-template-columns: 84px 1fr; } }

/* ===== Pagina de un programa (Radio Station) ===== */
#show-content { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
#show-content .show-info,
#show-content .show-sections { float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; }
#show-content .show-info { grid-column: 1; }
#show-content .show-sections { grid-column: 2; }
#show-content .station-timezone,
#show-content .div-timezone,
#show-content .show-user-time { display: none !important; }           /* zona horaria y hora convertida del visitante */
#show-content .show-block { margin: 0 0 22px; }
#show-content .show-block h4,
#show-content #show-section-about {                                      /* etiquetas rojas como en el resto del sitio */
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  background: #E93921;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
#show-content table.show-times { width: 100%; border: 0; border-collapse: collapse; }
#show-content table.show-times td { border: 0; padding: 5px 10px 5px 0; vertical-align: top; }
#show-content .show-description {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  -webkit-mask-image: none !important;   /* sin el desvanecido del final */
  mask-image: none !important;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}
#show-content #show-more-overlay,
#show-content #show-desc-buttons { display: none !important; }          /* sin el desvanecido ni "Mostrar más" */
#show-content #show-about > br { display: none; }
.caja:has(#show-content) .post-thumbnail { margin: 0 0 22px; }
.caja:has(#show-content) .post-thumbnail img { width: 100%; height: 320px; object-fit: cover; }   /* imagen de cabecera, mas baja */
@media (max-width: 767px) {
  #show-content { grid-template-columns: 1fr; }
  #show-content .show-info, #show-content .show-sections { grid-column: 1; }
}

/* ===== Widget "Clima por comunas" (ver inc/clima-comunas.php) ===== */
.atv-clima { position: relative; padding: 4px 34px 0; text-align: center; }
.atv-clima__slide { display: none; }
.atv-clima__slide.is-active {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "name name" "icon temp" "desc desc";
  justify-content: center;
  align-items: center;
  column-gap: 14px;
  animation: atv-clima-in .4s ease;
}
@keyframes atv-clima-in { from { opacity: 0; } to { opacity: 1; } }
.atv-clima__name { grid-area: name; font-size: 20px; font-weight: 700; line-height: 1.3; color: #252626; }
.atv-clima__slide .fa-solid { grid-area: icon; justify-self: end; font-size: 38px; color: #E93921; }
.atv-clima__temp { grid-area: temp; justify-self: start; font-size: 44px; font-weight: 700; line-height: 1.1; color: #252626; }
.atv-clima__desc { grid-area: desc; font-size: 14px; color: #555; }
.atv-clima__credito { display: block; margin-top: 4px; font-size: 9px; line-height: 1.2; color: #888; }
/* flechas: solo el simbolo, se anula el estilo que Newses da a todos los button */
.atv-clima .atv-clima__nav,
.atv-clima .atv-clima__nav:hover,
.atv-clima .atv-clima__nav:focus {
  position: absolute;
  top: 38%;
  width: 30px;
  height: 40px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  color: #252626;
  font-size: 30px;
  font-weight: normal;
  line-height: 1;
  cursor: pointer;
}
.atv-clima .atv-clima__prev { left: 0; }
.atv-clima .atv-clima__next { right: 0; }
.atv-clima .atv-clima__nav:hover { color: #E93921; }
.atv-clima .atv-clima__nav:focus-visible { outline: 2px solid #E93921; }
@media (prefers-reduced-motion: reduce) { .atv-clima__slide.is-active { animation: none; } }

/* Weather widget: show "Los Ríos" instead of "Valdivia" */
.wp_forecast_widget div.wp-forecast-curr-head > div:first-child a {
  font-size: 0 !important;
}
.wp_forecast_widget div.wp-forecast-curr-head > div:first-child a::after {
  content: "Los Ríos";
  font-size: 22px;
  line-height: 1.3;
}

/* ===== Widget WP-Forescast ===== */

.wp-forecast-fc .wp-forecast-fc-oneday:nth-child(n+1) { display: none; }
.wp_forecast_widget div.wp-forecast-curr,
.wp_forecast_widget div.wp-forecast-curr-head,
.wp_forecast_widget div.wp-forecast-curr-right,
.wp_forecast_widget div.wp-forecast-wind-right,
.wp_forecast_widget div.wp-forecast-curr-details,
.wp_forecast_widget div.wp-forecast-fc,
.wp_forecast_widget div.wp-forecast-fc-head,
.wp_forecast_widget div.wp-forecast-fc-left,
.wp_forecast_widget div.wp-forecast-fc-right {
  font-size: 16px;
  line-height: 1.78;
}
.wp_forecast_widget div.wp-forecast-copyright,
.wp_forecast_widget div.wp-forecast-copyright a {
  font-size: 11px;
  line-height: 1.4;
}
.wp_forecast_widget div.wp-forecast-curr-head > div:first-child,
.wp_forecast_widget div.wp-forecast-curr-head > div:first-child a {
  font-family: var(--headFont);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

/* =====================================================
   FORMULARIO "ALERTA ATV" (MailerLite)
   ===================================================== */
html body #mlb2-5794792.ml-form-embedContainer .ml-form-embedWrapper {
  background-color: #E93921 !important;
}
html body #mlb2-5794792.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button,
html body #mlb2-5794792.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow button {
  background-color: #252626 !important;
  border-color: #252626 !important;
  color: #fff !important;
}
html body #mlb2-5794792.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover,
html body #mlb2-5794792.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow button:hover {
  background-color: #000 !important;
  border-color: #000 !important;
}
html body #mlb2-5794792.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-checkboxRow input[type=checkbox]:checked ~ .label-description::before,
html body #mlb2-5794792.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsOptionsCheckbox input[type=checkbox]:checked ~ .label-description::before {
  background-color: #252626 !important;
  border-color: #252626 !important;
}

