@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand:      #E8001A;
  --brand-dark: #B8001A;
  --white:      #ffffff;
  --bg:         #ffffff;
  --surface:    #f8f8f8;
  --border:     #e5e5e5;
  --text:       #1a1a1a;
  --muted:      #666666;
  --dark:       #111111;
  --radius:     10px;
  --shadow:     0 2px 10px rgba(0,0,0,0.08);
  --shadow-h:   0 6px 24px rgba(0,0,0,0.14);
  --header-h:   68px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
ul{list-style:none}

/* ── Header ──────────────────────────────────────────────────────────────── */

#header{
  position:fixed;top:0;left:0;right:0;
  height:var(--header-h);
  background:var(--white);
  border-bottom:3px solid var(--brand);
  box-shadow:0 1px 8px rgba(0,0,0,0.08);
  z-index:100;
  display:flex;align-items:center;
  padding:0 24px;gap:16px;
}

.header-logo img{height:44px;width:auto}

nav{display:flex;align-items:center;gap:6px;margin-left:auto}

nav a{
  font-size:14px;font-weight:600;
  padding:8px 13px;border-radius:6px;
  color:var(--text);
  transition:background .15s,color .15s;
  white-space:nowrap;
}
nav a:hover{background:var(--brand);color:var(--white)}

nav a.nav-live{
  background:var(--brand);color:var(--white);
  display:flex;align-items:center;gap:6px;
}
nav a.nav-live::before{
  content:'';width:8px;height:8px;border-radius:50%;
  background:var(--white);
  animation:pulse 1.4s infinite;
}

@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.3)}}

.nav-toggle{
  display:none;background:none;border:none;
  cursor:pointer;padding:8px;margin-left:auto;
}
.nav-toggle span{
  display:block;width:24px;height:2px;
  background:var(--text);margin:5px 0;
  border-radius:2px;transition:.3s;
}

main{padding-top:var(--header-h)}

/* ── Sections shared ─────────────────────────────────────────────────────── */

.section{padding:60px 24px}
.section-alt{background:var(--surface)}

.section-head{
  max-width:1200px;margin:0 auto 36px;
  display:flex;align-items:center;gap:16px;
}
.section-title{
  font-size:clamp(22px,3vw,30px);font-weight:800;
  padding-left:14px;border-left:4px solid var(--brand);
  line-height:1.2;
}

/* ── En Vivo ─────────────────────────────────────────────────────────────── */

#vivo{
  background:var(--brand);
  padding:52px 24px 60px;
}
.vivo-inner{max-width:960px;margin:0 auto}

.live-badge{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--white);color:var(--brand);
  font-weight:800;font-size:12px;letter-spacing:.1em;
  text-transform:uppercase;padding:5px 14px;
  border-radius:20px;margin-bottom:16px;
}
.live-badge::before{
  content:'';width:8px;height:8px;border-radius:50%;
  background:var(--brand);animation:pulse 1.4s infinite;
}

.vivo-title{
  color:var(--white);
  font-size:clamp(20px,3.5vw,32px);font-weight:800;
  margin-bottom:24px;line-height:1.2;
}

.stream-wrap{
  position:relative;width:100%;aspect-ratio:16/9;
  border-radius:var(--radius);overflow:hidden;
  box-shadow:0 8px 40px rgba(0,0,0,.35);
}
.stream-wrap iframe{
  position:absolute;inset:0;width:100%;height:100%;border:0;
}

/* ── Noticias ────────────────────────────────────────────────────────────── */

#noticias{padding:48px 24px 16px}

.news-section{max-width:1200px;margin:0 auto 48px}

.news-section-title{
  font-size:clamp(18px,2.5vw,24px);font-weight:800;
  text-transform:uppercase;letter-spacing:.04em;
  color:var(--text);padding-left:14px;
  border-left:4px solid var(--brand);
  margin-bottom:20px;line-height:1.2;
}

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

.news-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .2s,box-shadow .2s;
  display:flex;flex-direction:column;
}
.news-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-h)}

.news-thumb{
  aspect-ratio:16/9;overflow:hidden;
  background:var(--surface);flex-shrink:0;
  position:relative;
}
.news-thumb img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .4s;
}
.news-card:hover .news-thumb img{transform:scale(1.05)}

.news-thumb-ph{
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--brand) 0%,var(--brand-dark) 100%);
  color:var(--white);font-size:24px;font-weight:800;font-style:italic;
}

.news-cat-badge{
  position:absolute;top:8px;left:8px;
  font-size:10px;font-weight:700;letter-spacing:.07em;
  text-transform:uppercase;padding:3px 8px;border-radius:4px;
  color:var(--white);
}
/* Category colors */
.cat-policiales  {background:#1565c0}
.cat-politica    {background:#6a1b9a}
.cat-sociedad    {background:#00695c}
.cat-economia    {background:#e65100}
.cat-deportes    {background:#2e7d32}
.cat-espectaculos{background:#ad1457}
.cat-mundo       {background:#0277bd}
.cat-other       {background:#37474f}

.news-body{
  padding:12px 14px 14px;
  display:flex;flex-direction:column;flex:1;
}
.news-date{
  font-size:11px;color:var(--muted);
  text-transform:uppercase;letter-spacing:.05em;
  margin-bottom:6px;
}
.news-title{
  font-size:14px;font-weight:700;line-height:1.35;
  margin-bottom:6px;color:var(--text);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.news-desc{
  font-size:12px;color:var(--muted);line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  margin-bottom:10px;flex:1;
}
.news-link{
  display:inline-flex;align-items:center;gap:4px;
  font-size:12px;font-weight:700;color:var(--brand);
  margin-top:auto;text-transform:uppercase;letter-spacing:.04em;
  transition:gap .15s;
}
.news-link:hover{gap:8px}
.news-link::after{content:'→'}

.grid-status{
  text-align:center;
  padding:48px 20px;color:var(--muted);font-size:15px;
}

/* ── Programacion ────────────────────────────────────────────────────────── */

#programacion{padding:60px 24px;background:var(--surface)}

.shows-grid{
  max-width:1200px;margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:24px;
}

.show-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .2s,box-shadow .2s;
}
.show-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-h)}

.show-thumb{
  aspect-ratio:16/9;overflow:hidden;background:var(--surface);
}
.show-thumb img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .4s;
}
.show-card:hover .show-thumb img{transform:scale(1.04)}

.show-ph{
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--brand) 0%,var(--brand-dark) 100%);
  color:var(--white);font-size:30px;font-weight:800;font-style:italic;
}

.show-body{padding:16px}

.show-badge{
  display:inline-flex;align-items:center;
  background:var(--brand);color:var(--white);
  font-size:11px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;padding:3px 10px;
  border-radius:20px;margin-bottom:10px;
}

.show-title{
  font-size:17px;font-weight:700;line-height:1.3;
  color:var(--text);margin-bottom:6px;
}
.show-desc{
  font-size:13px;color:var(--muted);line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer{background:#111;color:#ccc;padding:48px 24px 20px}

.footer-grid{
  max-width:1200px;margin:0 auto;
  display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px;
  padding-bottom:36px;
  border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:20px;
}

.footer-logo img{
  height:42px;width:auto;
  margin-bottom:12px;
}
.footer-tagline{font-size:14px;color:#888;line-height:1.6}

.footer-col h4{
  font-size:12px;font-weight:700;color:var(--white);
  text-transform:uppercase;letter-spacing:.1em;margin-bottom:14px;
}
.footer-col ul li{margin-bottom:8px}
.footer-col ul li a{font-size:14px;color:#888;transition:color .15s}
.footer-col ul li a:hover{color:var(--brand)}

.social-row{display:flex;gap:8px;flex-wrap:wrap}
.soc{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:8px;
  background:rgba(255,255,255,.08);color:#bbb;
  transition:background .15s,color .15s;
}
.soc:hover{background:var(--brand);color:var(--white)}
.soc svg{width:17px;height:17px;fill:currentColor}

.footer-bottom{
  max-width:1200px;margin:0 auto;
  display:flex;justify-content:space-between;align-items:center;
  font-size:12px;color:#555;flex-wrap:wrap;gap:8px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media(max-width:768px){
  nav{
    display:none;position:absolute;
    top:var(--header-h);left:0;right:0;
    background:var(--white);flex-direction:column;
    padding:12px 16px;gap:4px;
    border-bottom:2px solid var(--brand);
    box-shadow:0 4px 12px rgba(0,0,0,.1);
  }
  nav.open{display:flex}
  nav a{width:100%;text-align:center}
  .nav-toggle{display:block}
  .footer-grid{grid-template-columns:1fr;gap:24px}
  .section{padding:44px 16px}
  #vivo{padding:40px 16px 48px}
}

@media(max-width:1024px){
  .news-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:768px){
  .news-grid{grid-template-columns:repeat(2,1fr)}
  .shows-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:480px){
  .news-grid,.shows-grid{grid-template-columns:1fr}
}
