/* EL ALTO TV — Gestor de Programas v1.0.5 | ajuste de bloques Elementor */
.eatv-gp,.eatv-gp *{box-sizing:border-box}
.eatv-gp{--eatv-red:#e2231a;position:relative;left:50%;width:100vw;max-width:none;margin:0 0 0 -50vw!important;padding:0!important;background:#000!important;color:#fff;font-family:Arial,Helvetica,sans-serif;border:0!important;box-shadow:none!important;overflow:hidden;clear:both}
.eatv-gp h1,.eatv-gp h2,.eatv-gp p{margin:0;padding:0}
.elementor-widget-shortcode:has(.eatv-gp),.elementor-widget-shortcode:has(.eatv-gp)>.elementor-widget-container,.elementor-widget-html:has(.eatv-gp),.elementor-widget-html:has(.eatv-gp)>.elementor-widget-container,.elementor-widget:has(.eatv-gp),.elementor-widget:has(.eatv-gp)>.elementor-widget-container{margin:0!important;padding:0!important;background:#000!important;border:0!important;box-shadow:none!important}
.e-con:has(.eatv-gp),.elementor-section:has(.eatv-gp){background-color:#000!important;border:0!important;box-shadow:none!important}

.eatv-gp-hero{position:relative;min-height:530px;background:#000 var(--eatv-gp-cover,none) center/cover no-repeat;overflow:hidden}
.eatv-gp-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.97),rgba(0,0,0,.85) 35%,rgba(0,0,0,.38) 75%,rgba(0,0,0,.12));pointer-events:none}
.eatv-gp-inner{width:min(calc(100% - 120px),1280px);margin:0 auto}
.eatv-gp-hero-inner{position:relative;z-index:1;min-height:530px;padding:clamp(90px,7vw,118px) 0 65px;display:flex;align-items:center}
.eatv-gp-intro{width:100%;max-width:760px}
.eatv-gp-tag{display:inline-block;margin-bottom:24px;padding:7px 18px;color:#fff;background:rgba(115,0,0,.45);border:1px solid #d72626;border-radius:24px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.eatv-gp .eatv-gp-title{color:#fff;font-size:clamp(34px,5vw,62px);font-weight:800;line-height:1.08;letter-spacing:-.035em}
.eatv-gp-subtitle{margin-top:15px!important;color:#ddd;font-size:clamp(16px,1.8vw,20px);line-height:1.6}
.eatv-gp button{font-family:inherit}
.eatv-gp-play{display:inline-flex;align-items:center;justify-content:center;gap:10px;margin-top:32px;padding:14px 25px;border:0;border-radius:28px;background:var(--eatv-red);color:#fff;font-size:15px;font-weight:700;cursor:pointer;transition:background .2s,transform .2s}
.eatv-gp-play:hover{background:#c51b14;transform:translateY(-2px)}
.eatv-gp button:focus-visible,.eatv-gp a:focus-visible{outline:2px solid #fff;outline-offset:3px}
.eatv-gp-meta{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:28px;color:#e6e6e6;font-size:14px;font-weight:600}
.eatv-gp-meta>span{display:inline-flex;align-items:center;gap:8px}.eatv-gp-red{color:var(--eatv-red);font-size:18px}
.eatv-gp-note{margin-top:12px!important;color:#b8b8b8;font-size:12px;line-height:1.6}
.eatv-gp-content{padding:28px 0 0;background:#000}
.eatv-gp-expanded[hidden]{display:none!important}
.eatv-gp-expanded{padding:5px 0 38px;scroll-margin-top:170px}
.eatv-gp-player-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;margin-bottom:18px}
.eatv-gp-player-top strong{flex:1 1 280px;min-width:0;overflow-wrap:anywhere;color:#fff;font-size:clamp(17px,2vw,23px);line-height:1.4}
.eatv-gp-close{flex-shrink:0;padding:10px 15px;border:1px solid #393939;border-radius:4px;background:#151515;color:#fff;font-size:13px;cursor:pointer}
.eatv-gp-close:hover{background:#272727}
.eatv-gp-player{position:relative;width:100%;max-width:1080px;aspect-ratio:16/9;margin:0 auto;background:#080808;overflow:hidden}
.eatv-gp-player iframe{display:block;width:100%;height:100%;border:0}
.eatv-gp .eatv-gp-heading{display:flex;align-items:center;gap:14px;margin:16px 0 24px;color:#fff;font-size:clamp(25px,3vw,36px);font-weight:800;letter-spacing:-.025em}
.eatv-gp-heading:before{content:"";display:block;width:4px;height:34px;flex:0 0 4px;background:var(--eatv-red)}
.eatv-gp-track{display:flex;gap:18px;width:100%;overflow-x:auto;overflow-y:hidden;scroll-behavior:auto;scroll-snap-type:none;scrollbar-width:none;padding:2px 0 12px;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.eatv-gp-track::-webkit-scrollbar{display:none}
.eatv-gp-episode{flex:0 0 calc((100% - 36px)/3);min-width:0;padding:0;border:0;background:transparent;color:#fff;text-align:left;cursor:pointer}
.eatv-gp-thumb{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#191919;border-radius:3px}
.eatv-gp-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.eatv-gp-episode:hover img{transform:scale(1.035)}
.eatv-gp-thumb:after{content:"▶";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:46px;height:33px;border-radius:8px;background:rgba(220,20,30,.94);color:#fff;font-size:17px;pointer-events:none}
.eatv-gp-episode-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:11px;color:#fff;font-size:15px;font-weight:700;line-height:1.45}
.eatv-gp-episode-date{display:block;margin-top:6px;color:#aaa;font-size:12px}
.eatv-gp-empty{flex:0 0 100%;display:flex;align-items:center;min-height:140px;padding:22px;background:#101010;color:#bdbdbd;font-size:14px;line-height:1.6}
.eatv-gp-bottom{margin:0!important;padding:18px 0 22px;background:#000}
.eatv-gp-bottom a{color:#eee;font-size:14px;font-weight:600;text-decoration:none}
.eatv-gp-bottom a:hover{color:var(--eatv-red)}
@media(max-width:850px){.eatv-gp-hero,.eatv-gp-hero-inner{min-height:490px}.eatv-gp-hero:before{background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.76) 58%,#000)}.eatv-gp-inner{width:calc(100% - 60px)}.eatv-gp-hero-inner{align-items:flex-end;padding:105px 0 50px}.eatv-gp-episode{flex-basis:calc((100% - 18px)/2)}}
@media(max-width:560px){.eatv-gp-hero,.eatv-gp-hero-inner{min-height:520px}.eatv-gp-inner{width:calc(100% - 32px)}.eatv-gp-hero-inner{padding:115px 0 38px}.eatv-gp .eatv-gp-title{font-size:clamp(30px,8vw,42px)}.eatv-gp-meta{gap:12px}.eatv-gp-content{padding-top:18px}.eatv-gp-episode{flex-basis:83%}.eatv-gp-player-top strong{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.eatv-gp-play,.eatv-gp-thumb img{transition:none}}


/* === SOLO LA PÁGINA QUE CONTIENE EL SHORTCODE: FONDO SIN FRANJAS === */
body:has(.eatv-gp) .site-main,
body:has(.eatv-gp) .site-content,
body:has(.eatv-gp) .content-area,
body:has(.eatv-gp) .entry-content,
body:has(.eatv-gp) .elementor-location-single,
body:has(.eatv-gp) .elementor:not(.elementor-location-header):not(.elementor-location-footer){background-color:#000!important;background-image:none!important}
/* Se afectan solo las envolturas del shortcode, no los márgenes de otras secciones. */
.elementor-widget-shortcode:has(> .elementor-widget-container > .eatv-gp),
.elementor-widget-shortcode:has(> .elementor-widget-container > .eatv-gp) > .elementor-widget-container,
.elementor-widget-wrap:has(.eatv-gp),
.elementor-column:has(.eatv-gp),
.elementor-section:has(.eatv-gp),
.e-con:has(.eatv-gp){background:#000!important;background-image:none!important;border:0!important;box-shadow:none!important}
.elementor-widget-shortcode:has(> .elementor-widget-container > .eatv-gp){margin-block:0!important}
.elementor-widget-shortcode:has(> .elementor-widget-container > .eatv-gp) > .elementor-widget-container{padding:0!important;margin:0!important}
/* No ocultamos secciones vacías: se retiran desde Estructura de Elementor. */
.eatv-gp .eatv-gp-episode,
.eatv-gp .eatv-gp-episode:hover,
.eatv-gp .eatv-gp-episode:focus,
.eatv-gp .eatv-gp-episode:active{
 background:transparent!important;background-color:transparent!important;
 background-image:none!important;border:0!important;box-shadow:none!important;
 color:#fff!important;transform:none!important;
}
.eatv-gp .eatv-gp-episode:before,.eatv-gp .eatv-gp-episode:after{content:none!important}
.eatv-gp .eatv-gp-episode-title{color:#fff!important}
.eatv-gp .eatv-gp-episode-date{color:#aaa!important}
.eatv-gp .eatv-gp-episode:hover .eatv-gp-thumb img{transform:scale(1.035)}
.eatv-gp .eatv-gp-episode:focus-visible{outline:2px solid #fff!important;outline-offset:3px!important}
/* Cuando Elementor añade márgenes entre widgets, el shortcode comienza sin relleno vertical. */
.elementor-element:has(> .elementor-widget-container > .eatv-gp){padding-top:0!important;padding-bottom:0!important}


/* =========================================================
 * v1.0.5 — CORRECCIÓN EXCLUSIVA DE LA VISTA PÚBLICA
 * No altera medidas internas ni el diseño del programa.
 * Elementor o el tema pueden recortar el ancho viewport
 * cuando un shortcode vive en un contenedor overflow:hidden.
 * ========================================================= */
@supports selector(body:has(.eatv-gp)) {
  body:not(.elementor-editor-active):has(.eatv-gp),
  body:not(.elementor-editor-active):has(.eatv-gp) #page,
  body:not(.elementor-editor-active):has(.eatv-gp) #content,
  body:not(.elementor-editor-active):has(.eatv-gp) .site-content,
  body:not(.elementor-editor-active):has(.eatv-gp) .content-area,
  body:not(.elementor-editor-active):has(.eatv-gp) .site-main,
  body:not(.elementor-editor-active):has(.eatv-gp) .entry-content {
    background-color:#000 !important;
  }
  /* El problema de los laterales no es el fondo del shortcode,
     sino el clipping de uno de sus padres. */
  body:not(.elementor-editor-active):has(.eatv-gp) .entry-content:has(.eatv-gp),
  body:not(.elementor-editor-active):has(.eatv-gp) .elementor:has(.eatv-gp):not(.elementor-location-header):not(.elementor-location-footer),
  body:not(.elementor-editor-active):has(.eatv-gp) .elementor-section:has(.eatv-gp),
  body:not(.elementor-editor-active):has(.eatv-gp) .elementor-container:has(.eatv-gp),
  body:not(.elementor-editor-active):has(.eatv-gp) .elementor-column:has(.eatv-gp),
  body:not(.elementor-editor-active):has(.eatv-gp) .elementor-widget-wrap:has(.eatv-gp),
  body:not(.elementor-editor-active):has(.eatv-gp) .elementor-element:has(.eatv-gp),
  body:not(.elementor-editor-active):has(.eatv-gp) .e-con:has(.eatv-gp),
  body:not(.elementor-editor-active):has(.eatv-gp) .e-con-inner:has(.eatv-gp) {
    overflow:visible !important;
    background-color:#000 !important;
    box-shadow:none !important;
  }
  /* El contenedor del shortcode no debe introducir una franja
     propia ni modificar la altura aprobada del hero. */
  body:not(.elementor-editor-active) .elementor-widget-shortcode:has(.eatv-gp),
  body:not(.elementor-editor-active) .elementor-widget-shortcode:has(.eatv-gp) > .elementor-widget-container {
    margin-block:0 !important;
    padding-block:0 !important;
  }
}
/* Evitar que el tema pinte color azul u otro estilo al hover. */
.eatv-gp .eatv-gp-episode:hover,
.eatv-gp .eatv-gp-episode:focus {
  background:#0000 !important;
  box-shadow:none !important;
}

/* =============================================================
 v1.0.6 — AJUSTE VERTICAL DE PORTADA, SIN CAMBIOS HORIZONTALES.
 El encabezado flotante tapaba la etiqueta superior en la vista
 pública. Se aporta espacio INTERNO, no margen externo.
 ============================================================= */
.eatv-gp .eatv-gp-hero,
.eatv-gp .eatv-gp-hero-inner { min-height: 585px; }
.eatv-gp .eatv-gp-hero-inner {
  padding-top: clamp(145px, 10vw, 170px);
  padding-bottom: 65px;
}
@media (max-width: 850px) {
  .eatv-gp .eatv-gp-hero,
  .eatv-gp .eatv-gp-hero-inner { min-height: 545px; }
  .eatv-gp .eatv-gp-hero-inner {
    padding-top: 150px;
    padding-bottom: 50px;
  }
}
@media (max-width: 560px) {
  .eatv-gp .eatv-gp-hero,
  .eatv-gp .eatv-gp-hero-inner { min-height: 575px; }
  .eatv-gp .eatv-gp-hero-inner {
    padding-top: 160px;
    padding-bottom: 38px;
  }
}

/* ============================================================
   v1.0.8 - Portada con UNA SOLA imagen adaptable.
   La foto se dibuja exclusivamente en el fondo del hero;
   ::before aplica SOLO el degradado oscuro (sin segunda foto).
   La posicion del contenido interior no cambia.
   ============================================================ */
.eatv-gp .eatv-gp-hero{
  background-color:#000;
  background-image:var(--eatv-gp-cover,none);
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
}
.eatv-gp .eatv-gp-hero::before{
  background:linear-gradient(90deg,
    rgba(0,0,0,.97) 0%,
    rgba(0,0,0,.85) 35%,
    rgba(0,0,0,.40) 75%,
    rgba(0,0,0,.12) 100%);
}
/* Se preservan los tamanos y la alineacion aprobados en 1.0.7. */
.eatv-gp .eatv-gp-hero,
.eatv-gp .eatv-gp-hero-inner{min-height:585px}
.eatv-gp .eatv-gp-hero-inner{
  padding-top:clamp(145px,10vw,170px);
  padding-bottom:65px;
}
@media(max-width:850px){
  .eatv-gp .eatv-gp-hero,
  .eatv-gp .eatv-gp-hero-inner{min-height:530px}
  .eatv-gp .eatv-gp-hero-inner{
    padding-top:78px;
    padding-bottom:42px;
    align-items:center;
  }
  .eatv-gp .eatv-gp-hero::before{
    background:linear-gradient(180deg,
      rgba(0,0,0,.28) 0%,
      rgba(0,0,0,.54) 35%,
      rgba(0,0,0,.82) 100%);
  }
}
@media(max-width:560px){
  .eatv-gp .eatv-gp-hero,
  .eatv-gp .eatv-gp-hero-inner{min-height:510px}
  .eatv-gp .eatv-gp-hero-inner{
    padding-top:54px;
    padding-bottom:30px;
    align-items:center;
  }
  .eatv-gp .eatv-gp-tag{margin-bottom:17px}
  .eatv-gp .eatv-gp-play{margin-top:24px}
  .eatv-gp .eatv-gp-meta{margin-top:23px}
  .eatv-gp .eatv-gp-hero::before{
    background:linear-gradient(180deg,
      rgba(0,0,0,.38) 0%,
      rgba(0,0,0,.50) 32%,
      rgba(0,0,0,.77) 100%);
  }
}

/* v1.0.10 — ÚNICAMENTE corrección del espacio móvil.
   Escritorio/tablet usan la maquetación anterior aprobada en v1.0.8. */
@media (max-width:560px) {
 .eatv-gp .eatv-gp-hero,
 .eatv-gp .eatv-gp-hero-inner {min-height:0!important;height:auto!important;}
 .eatv-gp .eatv-gp-hero-inner {display:block!important;padding:62px 0 30px!important;}
 .eatv-gp .eatv-gp-tag {margin-bottom:17px;}
 .eatv-gp .eatv-gp-play {margin-top:24px;}
 .eatv-gp .eatv-gp-meta {margin-top:23px;}
 .eatv-gp .eatv-gp-note {margin-bottom:0!important;}
 .eatv-gp .eatv-gp-content {padding-top:15px!important;}
 .eatv-gp .eatv-gp-heading {margin-top:12px!important;}
}


/* ============================================================
   v1.0.11 - Bajar un poco más el contenido de escritorio
   para mostrar mejor la imagen de fondo sin alterar móvil.
   ============================================================ */
@media (min-width: 851px){
  .eatv-gp .eatv-gp-hero,
  .eatv-gp .eatv-gp-hero-inner{min-height:610px;}
  .eatv-gp .eatv-gp-hero-inner{
    padding-top:clamp(165px,11vw,188px);
    padding-bottom:68px;
  }
}
