/* =========================================================
   ONDA TV — Landing Page
   Hoja de estilos principal — tema claro, canal de TV regional
   Índice:
   1. Variables y reset
   2. Base / tipografía
   3. Utilidades (contenedor, tags, botones, links)
   4. Header (oscuro)
   5. Hero + noticias destacadas
   6. Barra de última hora
   7. Últimas noticias
   8. En vivo
   9. Programas
   10. Videos
   11. Publicidad
   12. Redes sociales
   13. Footer (oscuro)
   14. WhatsApp flotante + botón volver arriba
   15. Animaciones
   16. Responsive
   ========================================================= */

/* ================= 1. VARIABLES Y RESET ================= */
:root{
  /* Marca */
  --red: #E61D41;
  --red-dark: #E60F38;
  --brand-gradient: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);

  /* Tema claro (base del sitio) */
  --white: #FFFFFF;
  --gray-light: #F7F8FA;
  --card-bg: #FFFFFF;
  --border-light: #E7E8EC;
  --text-dark: #222222;
  --text-body: #4B4F58;
  --text-muted: #8A8E98;

  /* Header / footer (oscuros, por diseño) */
  --dark-0: #23262E;
  --dark-1: #2C2F38;
  --dark-2: #383C46;
  --dark-2-hover: #454955;
  --dark-text: #F4F5F7;
  --dark-text-muted: #A8ABB3;
  --dark-border: rgba(255,255,255,.08);
  --dark-border-2: rgba(255,255,255,.14);

  /* Sombras */
  --shadow-sm: 0 2px 10px rgba(20,20,30,.06);
  --shadow-md: 0 10px 28px rgba(20,20,30,.08);
  --shadow-lg: 0 20px 48px rgba(20,20,30,.12);
  --shadow-red: 0 10px 26px rgba(230,29,65,.28);

  /* Tipografía */
  --font-main: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container-w: 1320px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --header-h: 84px;
  --header-h-scrolled: 64px;
  --topbar-h: 34px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
input{ font-family: inherit; }
::selection{ background: var(--red); color: #fff; }

.skip-link{
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* ================= 2. BASE / TIPOGRAFÍA ================= */
h1,h2,h3{ font-weight: 800; letter-spacing: -.02em; }

/* ================= 3. UTILIDADES ================= */
.section-inner{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}
.section{ padding: 84px 0; }
.section--alt{ background: var(--gray-light); }
.section--tight{ padding: 40px 0; }

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.section-eyebrow{
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title{
  font-size: clamp(26px, 3vw, 36px);
  color: var(--text-dark);
}

.link-arrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--red);
  white-space: nowrap;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.link-arrow:hover{ color: var(--red-dark); gap: 12px; }
.link-arrow--sm{ font-size: 13.5px; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  cursor: pointer;
}
.btn svg{ transition: transform .3s var(--ease); }
.btn:hover svg{ transform: translateX(4px); }
.btn--primary{
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn--primary:hover{ transform: translateY(-3px); box-shadow: 0 14px 32px rgba(230,29,65,.38); }
.btn--live{
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn--live:hover{ transform: translateY(-3px); background: var(--red-dark); }
.btn--outline{
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-light);
  justify-content: center;
}
.btn--outline:hover{ border-color: var(--red); color: var(--red); background: rgba(230,29,65,.05); }
.btn--block{ width: 100%; }

.tag{
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
}

/* ================= 4. HEADER (oscuro) ================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-light);
}

.header-topbar{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  max-width: var(--container-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--topbar-h);
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: height .35s var(--ease), opacity .3s var(--ease), border-color .35s var(--ease);
}
.header-topbar__text{ font-size: 12px; margin-right: 2px; }
.header-topbar a{
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.header-topbar a:hover{ color: var(--red); transform: translateY(-1px); }
.site-header.is-scrolled .header-topbar{
  height: 0;
  opacity: 0;
  border-color: transparent;
}

.header-inner{ height: var(--header-h); transition: height .35s var(--ease); }
.site-header::before{
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.site-header.is-scrolled{
  box-shadow: var(--shadow-md);
}
.site-header.is-scrolled .header-inner{
  height: var(--header-h-scrolled);
}
.header-inner{
  max-width: var(--container-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}
.brand{ display: flex; align-items: center; flex-shrink: 0; }
.brand-mark{ display: flex; align-items: center; }
.brand-mark img{ height: 56px; width: auto; transition: height .35s var(--ease); }
.is-scrolled .brand-mark img{ height: 44px; }

.main-nav ul{ display: flex; align-items: center; gap: 6px; }
.main-nav a{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-body);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.main-nav a:hover{ color: var(--text-dark); background: var(--gray-light); }
.main-nav a.active{ color: var(--red); background: rgba(230,29,65,.08); }

.header-actions{ display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-btn{
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gray-light);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover{ background: #eef0f3; border-color: #d8dae0; transform: translateY(-2px); }

.live-btn{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 11px 20px;
  border-radius: 100px;
  box-shadow: var(--shadow-red);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.live-btn:hover{ transform: translateY(-2px); background: var(--red-dark); }
.live-dot{
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: pulseDot 1.6s infinite;
}
.live-dot--sm{ width: 7px; height: 7px; background: var(--red); }

.menu-toggle{
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--gray-light);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span{
  width: 20px; height: 2px; background: var(--text-dark); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2){ opacity: 0; }
.menu-toggle.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.search-panel{
  position: absolute;
  top: 100%; right: 32px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 10px 16px;
  width: 340px;
  max-width: calc(100vw - 64px);
  box-shadow: var(--shadow-lg);
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.search-panel.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.search-panel input{
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text-dark); font-size: 14px;
}
.search-panel input::placeholder{ color: var(--text-muted); }
.search-close{ background: none; border: none; color: var(--text-muted); font-size: 20px; line-height: 1; }

/* ================= 5. HERO + NOTICIAS DESTACADAS ================= */
.hero{ padding: calc(var(--topbar-h) + var(--header-h) + 40px) 0 56px; background: var(--white); }
.hero-inner{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.hero-main{
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero-main__link{ display: block; height: 100%; }
.hero-main__media{
  position: relative;
  height: 520px;
  overflow: hidden;
}
.hero-main__media img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.hero-main:hover .hero-main__media img{ transform: scale(1.05); }
.hero-main__overlay{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,10,14,.92) 8%, rgba(10,10,14,.5) 45%, rgba(10,10,14,.05) 75%);
}
.hero-main__content{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px;
  max-width: 680px;
}
.hero-main__title{
  font-size: clamp(26px, 3vw, 40px);
  color: #fff;
  margin: 16px 0 12px;
  line-height: 1.14;
}
.hero-main__excerpt{
  color: rgba(255,255,255,.82);
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 580px;
}
.hero-main__meta{
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  margin-bottom: 20px;
}
.meta-dot{ opacity: .5; }

.hero-side{ display: flex; flex-direction: column; gap: 18px; }
.hero-side__item{
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex: 1;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.hero-side__item:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #ddd; }
.hero-side__item a{ display: flex; height: 100%; }
.hero-side__media{ position: relative; width: 140px; flex-shrink: 0; overflow: hidden; }
.hero-side__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hero-side__item:hover .hero-side__media img{ transform: scale(1.08); }
.hero-side__media .tag{ position: absolute; left: 10px; top: 10px; padding: 4px 10px; font-size: 10px; }
.hero-side__content{ padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.hero-side__date{ font-size: 12px; color: var(--text-muted); font-weight: 600; }
.hero-side__content h3{ font-size: 15px; line-height: 1.35; color: var(--text-dark); font-weight: 700; }

/* ================= 6. BREAKING BAR ================= */
.breaking-bar{
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  height: 46px;
  overflow: hidden;
}
.breaking-bar__label{
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.2);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0 22px;
  height: 100%;
}
.breaking-bar__track-wrap{ overflow: hidden; flex: 1; height: 100%; }
.breaking-bar__track{
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.breaking-bar__track li{
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0 4px;
}

/* ================= 7. ÚLTIMAS NOTICIAS ================= */
.news-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card{
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.news-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card__media{ position: relative; height: 200px; overflow: hidden; }
.news-card__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__media img{ transform: scale(1.08); }
.news-card__media .tag{ position: absolute; left: 16px; top: 16px; }
.news-card__body{ padding: 22px; }
.news-card__date{ font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.news-card__body h3{ font-size: 18px; line-height: 1.32; margin: 10px 0 10px; color: var(--text-dark); }
.news-card__body p{ font-size: 14px; color: var(--text-body); line-height: 1.6; margin-bottom: 16px; }

/* ================= 8. EN VIVO ================= */
.live{ position: relative; padding: 84px 0; background: var(--white); overflow: hidden; }
.live__inner{ position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.live-badge{
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(230,29,65,.08);
  border: 1px solid rgba(230,29,65,.3);
  color: var(--red);
  font-weight: 800; font-size: 12.5px; letter-spacing: .08em;
  padding: 8px 16px; border-radius: 100px;
  margin-bottom: 22px;
}
.live__title{ font-size: clamp(28px, 3.2vw, 42px); color: var(--text-dark); margin-bottom: 16px; }
.live__desc{ color: var(--text-body); font-size: 16px; line-height: 1.7; max-width: 440px; margin-bottom: 26px; }
.live__stats{ margin-bottom: 28px; }
.live__viewers{ display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-body); }
.live__viewers strong{ color: var(--text-dark); font-size: 17px; }
.pulse-dot{
  width: 10px; height: 10px; border-radius: 50%; background: #3ecf7e;
  box-shadow: 0 0 0 0 rgba(62,207,126,.6);
  animation: pulseDot 1.8s infinite;
}

.player-frame{
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(230,29,65,.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(230,29,65,.18), transparent 55%),
    var(--dark-0);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.player-frame::before{
  content:''; position:absolute; inset:0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 6px);
}
.player-frame__badge{
  position: absolute; top: 20px; left: 20px;
  display: flex; align-items: center; gap: 8px;
  background: var(--red); color:#fff; font-weight: 800; font-size: 12px; letter-spacing: .05em;
  padding: 7px 14px; border-radius: 100px;
}
.player-frame__play{
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.player-frame__play:hover{ transform: scale(1.08); background: rgba(230,29,65,.85); }
.player-frame__bottom{
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,.7); font-size: 12.5px; font-weight: 600;
}
.player-frame__viewers{ color: #fff; }

/* ================= 9. PROGRAMAS ================= */
.program-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.program-card{
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.program-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card__media{ position: relative; overflow: hidden; aspect-ratio: 4/3; }
.program-card__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.program-card:hover .program-card__media img{ transform: scale(1.08); }
.program-card__body{ padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.program-card__time{
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--red);
}
.program-card__body h3{ font-size: 18px; color: var(--text-dark); }
.program-card__body p{ font-size: 13.5px; color: var(--text-muted); margin-bottom: 4px; }

/* ================= 10. VIDEOS ================= */
.video-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card{ display: block; position: relative; }
.video-card img{ width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-md); transition: transform .5s var(--ease); box-shadow: var(--shadow-sm); }
.video-card:hover img{ transform: scale(1.03); }
.video-card__duration{
  position: absolute; right: 12px; bottom: 66px;
  background: rgba(0,0,0,.7); color:#fff; font-size: 12px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px;
}
.video-card__play{
  position: absolute; top: 0; left: 0; right: 0; bottom: 56px;
  margin: auto; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(230,29,65,.92); color:#fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.video-card:hover .video-card__play{ opacity: 1; transform: scale(1); }
.video-card__info{ padding-top: 12px; }
.video-card__info h3{ font-size: 15px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; color: var(--text-dark); }
.video-card__info span{ font-size: 12.5px; color: var(--text-muted); }

/* ================= 11. PUBLICIDAD ================= */
.ad{
  border: 1.5px dashed #D6D8DD;
  border-radius: var(--radius-md);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.ad--leaderboard{ height: 100px; }

/* ================= 12. REDES SOCIALES ================= */
.social-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.social-card{
  display: flex; align-items: center; gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.social-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.social-card__icon{
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.social-card__icon--facebook{ background: #1877F2; }
.social-card__icon--instagram{ background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4); }
.social-card__icon--tiktok{ background: #111214; }
.social-card__icon--youtube{ background: #FF0000; }
.social-card div strong{ display: block; font-size: 15.5px; margin-bottom: 3px; color: var(--text-dark); }
.social-card div span{ font-size: 13px; color: var(--text-muted); }

/* ================= 13. FOOTER (claro) ================= */
.site-footer{ background: var(--gray-light); border-top: 1px solid var(--border-light); padding: 76px 0 0; color: var(--text-dark); }
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 52px;
}
.footer-brand img{ width: 156px; height: auto; margin-bottom: 20px; }
.footer-brand p{ color: var(--text-muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 22px; max-width: 340px; }
.footer-social{ display: flex; gap: 10px; }
.footer-social a{
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dark);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.footer-social a:hover{ background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }

.footer-col h4{ color: var(--text-dark); font-size: 15.5px; margin-bottom: 22px; }
.footer-col ul{ display: flex; flex-direction: column; gap: 13px; }
.footer-col ul a{ color: var(--text-muted); font-size: 14.5px; transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer-col ul a:hover{ color: var(--red); padding-left: 4px; }

.footer-freq li{ display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-muted); }
.footer-freq strong{ color: var(--text-dark); }

.footer-contact ul li{ display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-muted); }
.footer-map{
  margin-top: 22px; padding: 18px;
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 10px;
}
.footer-map span{ font-size: 13px; color: var(--text-muted); }
.footer-map a{ color: var(--red); font-size: 13.5px; font-weight: 700; }

.footer-bottom{
  border-top: 1px solid var(--border-light);
  padding: 22px 32px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  max-width: var(--container-w); margin: 0 auto;
  color: var(--text-muted); font-size: 13px;
}

/* ================= 14. WHATSAPP FLOTANTE + BOTÓN VOLVER ARRIBA ================= */
.whatsapp-float{
  position: fixed; left: 26px; bottom: 26px; z-index: 400;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.whatsapp-float::before{
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55);
  animation: pulseDot 2.2s infinite;
}
.whatsapp-float:hover{ transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 34px rgba(37,211,102,.5); }

.back-to-top{
  position: fixed; right: 26px; bottom: 26px; z-index: 400;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border-light);
  color: var(--text-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease), visibility .3s;
}
.back-to-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ background: var(--red); border-color: var(--red); color: #fff; }

/* ================= 15. ANIMACIONES ================= */
@keyframes pulseDot{
  0%{ box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70%{ box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .breaking-bar__track{ animation: none; }
  .live-dot, .pulse-dot{ animation: none; }
}

/* ================= 16. RESPONSIVE ================= */
@media (max-width: 1180px){
  .news-grid{ grid-template-columns: repeat(2, 1fr); }
  .program-grid{ grid-template-columns: repeat(2, 1fr); }
  .video-grid{ grid-template-columns: repeat(2, 1fr); }
  .social-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1020px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-main__media{ height: 420px; }
  .live__inner{ grid-template-columns: 1fr; }
}

@media (max-width: 900px){
  .main-nav{
    position: fixed; top: calc(var(--topbar-h) + var(--header-h)); left: 0; right: 0; bottom: 0;
    background: var(--white);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 40px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 400;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; width: 100%; padding: 0 32px; gap: 4px; }
  .main-nav a{ display: block; padding: 16px 18px; font-size: 17px; border-bottom: 1px solid var(--border-light); border-radius: 0; color: var(--text-dark); }
  .menu-toggle{ display: flex; }
  .header-inner{ gap: 16px; }
  .search-panel{ right: 16px; }
}

@media (max-width: 780px){
  .section{ padding: 60px 0; }
  .section--tight{ padding: 32px 0; }
  .section-inner{ padding: 0 20px; }
  .hero{ padding-top: calc(var(--topbar-h) + var(--header-h) + 24px); }
  .hero-inner{ padding: 0 20px; gap: 20px; }
  .hero-main__content{ padding: 26px; }
  .hero-side__item a{ flex-direction: row; }
  .news-grid{ grid-template-columns: 1fr; }
  .program-grid{ grid-template-columns: 1fr 1fr; }
  .video-grid{ grid-template-columns: 1fr; }
  .social-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom{ padding: 22px 20px; flex-direction: column; text-align: center; }
  .section-head{ flex-direction: column; align-items: flex-start; gap: 14px; }
  .header-topbar{ padding: 0 20px; gap: 12px; }
  .header-topbar__text{ display: none; }
  .whatsapp-float{ width: 48px; height: 48px; left: 16px; bottom: 16px; }
  .back-to-top{ right: 16px; bottom: 16px; }
}

@media (max-width: 480px){
  .program-grid{ grid-template-columns: 1fr; }
  .header-actions{ gap: 8px; }
  .live-btn span{ display: none; }
  .live-btn{ padding: 11px 14px; }
  .brand-mark img{ height: 38px; }
}
