/* Corrección real basada en index.php y videos.php actuales */

/* Contenedores reales */
.page-builder-public .container,
.enterprise-home-section .container,
.home-live-strip .container,
.home-banner .container,
.multimedia-hero .container,
main > .enterprise-home-section .container {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* INICIO */
.page-builder-public { width: 100%; overflow: hidden; }
.dynamic-hero {
  min-height: 600px !important;
  display: flex !important;
  align-items: center !important;
  position: relative;
  overflow: hidden;
  background-color: #080d15;
  background-position: center !important;
  background-size: cover !important;
  color: #fff;
}
.dynamic-hero .hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr) !important;
  align-items: center !important;
  gap: 70px !important;
  padding: 76px 0 !important;
}
.dynamic-hero .eyebrow,
.enterprise-home-section .eyebrow,
.page-builder-public .section .eyebrow {
  display: block;
  color: #ef2020;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.dynamic-hero h1 {
  max-width: 790px;
  margin: 14px 0 20px;
  font-size: clamp(48px,6vw,82px) !important;
  line-height: .96 !important;
  letter-spacing: -.035em;
}
.dynamic-hero p { max-width: 720px; margin: 0; color: #e5e7eb; font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex !important; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn,
.enterprise-home-section .btn,
.home-live-strip .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #8a94a3;
  font-weight: 900;
}
.hero-actions .btn.primary,
.enterprise-home-section .btn.primary,
.home-live-strip .btn.primary { background: #d40000; border-color: #d40000; color: #fff; }
.hero-actions .btn.outline { background: transparent; color: #fff; }
.hero-live-card { padding: 31px; border: 1px solid rgba(255,255,255,.18); background: rgba(65,10,25,.74); }
.live-chip { display: inline-block; padding: 8px 11px; background: #d40000; color: #fff; font-size: 11px; font-weight: 900; }
.hero-live-card h2 { margin: 19px 0 10px; font-size: 25px; }
.hero-live-card a { display: inline-block; margin-top: 16px; color: #ff6c6c; font-weight: 900; }

.page-builder-breaking { background: #d40000; color: #fff; }
.page-builder-breaking .container { min-height: 48px; display: flex !important; align-items: center; }
.page-builder-breaking strong { padding: 10px 14px; background: #fff; color: #d40000; font-size: 12px; }
.page-builder-breaking span { padding-left: 20px; }

.home-live-strip { background: #fff !important; color: #111827 !important; border-bottom: 1px solid #e0e4e9; padding: 0 !important; }
.home-live-strip .container { display: flex !important; align-items: center; justify-content: space-between; gap: 25px; padding: 24px 0; }

.page-builder-public .section,
.enterprise-home-section { padding: 68px 0 !important; }
.page-builder-public .section:nth-of-type(even),
.enterprise-home-section.soft { background: #f3f5f8; }
.enterprise-home-section.dark { background: #090d13; color: #fff; }
.section-head,
.enterprise-section-head { display: flex !important; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.section-head h2,
.enterprise-section-head h2 { margin: 7px 0 0; font-size: clamp(31px,4vw,48px); }

.news-grid,
.program-grid { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.news-card,
.program-card { overflow: hidden; border: 1px solid #e0e4e9; background: #fff; }
.news-image,
.program-image { min-height: 205px; background: linear-gradient(135deg,#16101c,#a1151c); background-position: center; background-size: cover; }
.news-body,
.program-card > div:last-child { padding: 20px; }

.home-schedule { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 12px; }
.home-schedule article { display: flex; gap: 15px; padding: 19px; border-top: 4px solid #d40000; background: #fff; }

.media-showcase { display: grid !important; grid-template-columns: 1.25fr .75fr .75fr; grid-template-rows: 220px 220px; gap: 18px; }
.media-tile { position: relative; min-height: 220px; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg,#111827,#7f1d1d); }
.media-tile:first-child { grid-row: 1/3; }
.media-tile img { width: 100%; height: 100%; object-fit: cover; }
.media-tile-overlay { position: absolute; inset: auto 0 0; padding: 52px 22px 20px; background: linear-gradient(transparent,rgba(0,0,0,.92)); color: #fff; }
.media-empty { grid-column: 1/-1; padding: 45px; border-radius: 8px; background: #111827; color: #fff; text-align: center; }

.channel-stats { display: grid !important; grid-template-columns: repeat(4,1fr); gap: 1px; border: 1px solid #d8dde5; background: #d8dde5; }
.channel-stats article { padding: 28px; background: #fff; text-align: center; }
.channel-stats strong { display: block; color: #d40000; font-size: 38px; }
.social-wall { display: grid !important; grid-template-columns: repeat(4,1fr); gap: 18px; }
.social-wall a { min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid #e1e5ea; border-radius: 8px; background: #fff; }
.sponsor-strip { display: grid !important; grid-template-columns: repeat(5,1fr); gap: 14px; }
.sponsor-strip div { min-height: 82px; display: grid; place-items: center; padding: 15px; border: 1px solid #e0e4e9; background: #fff; color: #8a929d; font-weight: 900; }

/* VIDEOS */
.multimedia-hero { padding: 58px 0 !important; background: linear-gradient(120deg,#090d13,#191f2a) !important; color: #fff !important; }
.multimedia-hero h1 { margin: 10px 0 14px; font-size: clamp(42px,6vw,70px) !important; line-height: 1; }
.multimedia-hero .lead { max-width: 850px; margin: 0; color: #d7dce4; font-size: 18px; line-height: 1.55; }
.multimedia-controls { display: grid !important; grid-template-columns: minmax(0,1fr) auto; gap: 15px; align-items: center; margin-top: 28px; }
.multimedia-search { display: flex !important; min-height: 50px; overflow: hidden; border-radius: 6px; background: #fff; }
.multimedia-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 14px 18px; font: inherit; }
.multimedia-search button { min-width: 100px; border: 0; background: #d40000; color: #fff; font-weight: 900; }
.media-filters { display: flex !important; flex-wrap: wrap; gap: 8px; }
.media-filters a { display: inline-flex; min-height: 46px; align-items: center; padding: 0 17px; border-radius: 5px; background: #202735; color: #fff; font-weight: 800; }
.media-filters a.active,
.media-filters a:hover { background: #d40000; }
.media-library-grid { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.library-card { overflow: hidden; border: 1px solid #e0e4e9; border-radius: 8px; background: #fff; }
.library-card-media { height: 210px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg,#111827,#7f1d1d); color: #fff; }
.library-card-media img,
.library-card-media video { width: 100%; height: 100%; object-fit: cover; }
.library-card-body { padding: 20px; }
.empty-library { grid-column: 1/-1; min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 45px; border: 1px dashed #cbd2dc; background: #fff; text-align: center; }

/* Footer compacto global: mismas clases reales */
.approved-footer-top-grid { padding: 20px 0 !important; gap: 24px !important; }
.approved-footer-logo img { width: 76px !important; height: 58px !important; }
.approved-footer-logo strong { font-size: 17px !important; }
.approved-footer-top h3,
.approved-footer-enterprise h3 { margin-bottom: 10px !important; font-size: 12px !important; }
.approved-footer-description { line-height: 1.35 !important; font-size: 12px; }
.approved-footer-navigation nav,
.approved-footer-contact { gap: 5px !important; }
.approved-footer-contact a,
.approved-footer-contact span,
.approved-footer-navigation a { font-size: 11px !important; }
.approved-social { width: 38px !important; height: 38px !important; font-size: 18px !important; }
.approved-newsletter-grid { min-height: 80px !important; gap: 30px !important; }
.approved-newsletter-copy > span { width: 50px !important; height: 50px !important; font-size: 22px !important; }
.approved-newsletter h2 { font-size: 19px !important; }
.approved-newsletter p { font-size: 12px !important; }
.approved-newsletter input { height: 40px !important; }
.approved-newsletter button { min-height: 40px !important; }
.approved-footer-enterprise-grid { padding: 20px 0 !important; gap: 22px !important; }
.approved-footer-enterprise a,
.approved-footer-enterprise span { margin: 4px 0 !important; font-size: 11px !important; }
.approved-footer-enterprise-grid > div { padding-right: 12px !important; }
.approved-footer-legal .approved-container { min-height: 42px !important; font-size: 10px !important; }

@media (max-width: 950px) {
  .dynamic-hero .hero-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .news-grid,.program-grid,.home-schedule,.channel-stats,.social-wall { grid-template-columns: 1fr 1fr !important; }
  .media-showcase { grid-template-columns: 1fr 1fr !important; }
  .media-tile:first-child { grid-column: 1/-1; grid-row: auto; }
  .sponsor-strip { grid-template-columns: repeat(3,1fr) !important; }
  .media-library-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 680px) {
  .page-builder-public .container,
  .enterprise-home-section .container,
  .home-live-strip .container,
  .home-banner .container,
  .multimedia-hero .container,
  main > .enterprise-home-section .container { width: min(100% - 28px,1180px) !important; }
  .dynamic-hero { min-height: auto !important; }
  .dynamic-hero .hero-grid { padding: 54px 0 !important; }
  .dynamic-hero h1 { font-size: 46px !important; }
  .home-live-strip .container,.section-head,.enterprise-section-head { align-items: flex-start !important; flex-direction: column !important; }
  .news-grid,.program-grid,.home-schedule,.channel-stats,.social-wall,.sponsor-strip,.media-library-grid,.media-showcase { grid-template-columns: 1fr !important; }
  .media-showcase { grid-template-rows: auto; }
  .multimedia-controls { grid-template-columns: 1fr !important; }
  .multimedia-search { flex-direction: column; }
  .multimedia-search button { min-height: 48px; }
}


/* Refuerzo de layout para las secciones inferiores del Inicio */
.enterprise-home-section{
  width:100% !important;
  display:block !important;
  position:relative;
}

.enterprise-home-section.dark{
  background:#090d13 !important;
  color:#fff !important;
}

.enterprise-home-section.soft{
  background:#f3f5f8 !important;
  color:#111827 !important;
}

.enterprise-home-section:not(.dark):not(.soft){
  background:#fff !important;
  color:#111827 !important;
}

.enterprise-home-section .enterprise-section-head{
  width:100%;
}

.enterprise-home-section .enterprise-section-head p{
  max-width:720px;
  margin:8px 0 0;
  line-height:1.5;
}

.enterprise-home-section.dark .enterprise-section-head p{
  color:#cbd5e1;
}

.enterprise-home-section .enterprise-section-head>a{
  color:#d40000;
  font-weight:900;
  white-space:nowrap;
}

.media-empty{
  min-height:230px;
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px dashed #475569;
}

.channel-stats article span{
  display:block;
  margin-top:6px;
  color:#64748b;
}

.social-wall a strong{
  display:block;
  margin:16px 0;
  color:#d40000;
  font-size:24px;
}

.social-wall a span{
  color:#64748b;
}

.sponsor-strip{
  width:100%;
}

/* RC8.8 */
.media-audio-tile{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#151a23,#7f1d1d);color:#fff;font-size:62px;font-weight:900}
.media-tile video{width:100%;height:100%;object-fit:cover}
