/* ═══════════════════════════════════════════════════════════════
   ZABECA — Streaming home (inspirado en layout Mi Telefe)
   Marca: púrpura profundo + amarillo del logo oficial.
   Tipografía: Outfit (UI) + Bebas Neue (display broadcast).
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0c0614;
  --bg-2: #160a22;
  --bg-3: #221233;
  --panel: #1c0f2c;
  --ink: #f7f2ff;
  --muted: rgba(247, 242, 255, 0.68);
  --faint: rgba(247, 242, 255, 0.42);
  --line: rgba(247, 242, 255, 0.12);
  --yellow: #f5d31a;
  --yellow-deep: #d4b20a;
  --purple: #4a1a6b;
  --purple-hot: #7b2bb0;
  --magenta: #c43d8a;
  --live: #ff3b4a;
  --display: "Bebas Neue", sans-serif;
  --ui: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--yellow); color: #1a0a28; }

.wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

/* ── Header (Telefe-like sticky dark) ── */
.topbar {
  background: #050308;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 8px 0;
}
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--yellow); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12, 6, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font: 400 28px/1 var(--display);
  letter-spacing: 0.06em;
}
.brand img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--yellow);
}
.brand span em { font-style: normal; color: var(--yellow); }

.nav-main {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font: 600 12px/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-main a { color: var(--muted); padding: 8px 0; }
.nav-main a:hover, .nav-main a.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--yellow);
}

.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ticker strip */
.ticker-strip {
  background: linear-gradient(90deg, var(--purple), #2a1040 40%, #1a0a28);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-strip .track {
  display: inline-block;
  padding: 10px 0;
  animation: slide 40s linear infinite;
}
.ticker-strip span {
  font: 600 12px/1 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 18px;
}
.ticker-strip span::after {
  content: "●";
  color: var(--yellow);
  margin-left: 18px;
  font-size: 7px;
  vertical-align: middle;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font: 700 12px/1 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 20px;
  border: 0;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn.primary { background: var(--yellow); color: #1a0a28; }
.btn.primary:hover { background: #ffe24a; transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(247,242,255,.35);
}
.btn.ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn.soft { background: var(--purple-hot); color: #fff; }
.btn.soft:hover { background: #8e35c8; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-2);
  transform: scale(1.02);
  animation: ken 18s ease-in-out infinite alternate;
}
@keyframes ken { to { transform: scale(1.08); } }
.hero-copy {
  position: relative; z-index: 2;
  padding: 72px 0 56px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}
.hero .live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--live);
  color: #fff;
  font: 800 11px/1 var(--ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 11px;
  margin-bottom: 14px;
}
.hero .live-pill i {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
.hero .brand-mark {
  font: 400 clamp(64px, 12vw, 120px)/0.9 var(--display);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.hero .brand-mark em { font-style: normal; color: var(--yellow); }
.hero h1 {
  font: 700 clamp(26px, 3.6vw, 40px)/1.15 var(--ui);
  margin: 0;
  max-width: 22ch;
}
.hero .lede {
  max-width: 46ch;
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 17px;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .18s; }
.reveal.d3 { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* sections */
.section { padding: 48px 0 8px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.section-head h2 {
  font: 400 clamp(28px, 4vw, 40px)/1 var(--display);
  letter-spacing: 0.04em;
  margin: 0;
}
.section-head a { color: var(--yellow); font: 700 12px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.rail-controls { display: flex; gap: 8px; }
.rail-controls button {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}
.rail-controls button:hover { border-color: var(--yellow); color: var(--yellow); }

.rail {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 99px; }

.video-card {
  flex: 0 0 min(280px, 72vw);
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .25s, border-color .25s;
}
.video-card:hover { transform: translateY(-4px); border-color: rgba(245,211,26,.45); }
.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-thumb .play {
  position: absolute; left: 50%; top: 50%;
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: rgba(245, 211, 26, .92);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.video-thumb .play::before {
  content: "";
  position: absolute; left: 19px; top: 15px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #1a0a28;
}
.video-thumb .chip {
  position: absolute; left: 10px; top: 10px;
  background: rgba(12,6,20,.82);
  border: 1px solid rgba(245,211,26,.5);
  color: var(--yellow);
  font: 700 10px/1 var(--ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 8px;
}
.video-meta { padding: 12px 12px 14px; }
.video-meta h3 {
  margin: 0;
  font: 600 14px/1.35 var(--ui);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chip {
  display: inline-block;
  font: 700 10px/1 var(--ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid rgba(245,211,26,.4);
  padding: 6px 9px;
}

.program-card {
  flex: 0 0 min(220px, 70vw);
  scroll-snap-align: start;
  background: linear-gradient(160deg, var(--bg-3), var(--panel));
  border: 1px solid var(--line);
  padding: 18px;
  min-height: 160px;
}
.program-card h3 {
  font: 400 28px/1 var(--display);
  letter-spacing: .03em;
  margin: 12px 0 8px;
}
.program-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* featured grid (telefe news-ish block) */
.feature-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.feature-main, .feature-side article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  min-height: 220px;
}
.feature-main { min-height: 360px; }
.feature-main img, .feature-side article img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  opacity: .55;
}
.feature-copy {
  position: relative; z-index: 1;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(12,6,20,.92) 55%);
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.headline-block {
  display: inline;
  background: #1e4fbf;
  color: #fff;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.12em 0.28em;
  font: 800 clamp(22px, 3vw, 34px)/1.25 var(--ui);
}
.feature-side { display: grid; gap: 16px; }
.feature-side .headline-block { font-size: 18px; }

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-grid .video-card { flex: none; }
.gallery-grid .video-card--wide { grid-column: span 2; }

/* solutions */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.sol-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
  min-height: 150px;
  transition: border-color .2s, transform .2s;
}
.sol-card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.sol-card h3 {
  font: 400 28px/1 var(--display);
  letter-spacing: .03em;
  margin: 0 0 10px;
  color: var(--yellow);
}
.sol-card p { margin: 0; color: var(--muted); }

/* pricing */
.pricing-disclaimer {
  color: var(--yellow);
  font: 700 12px/1.4 var(--ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pricing-tier {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.pricing-tier.hot {
  border-color: var(--yellow);
  background: linear-gradient(180deg, rgba(245,211,26,.08), var(--panel));
}
.pricing-tier .ribbon {
  position: absolute; top: 14px; right: 14px;
  background: var(--yellow); color: #1a0a28;
  font: 800 10px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 8px;
}
.pricing-tier h3 { font: 400 34px/1 var(--display); margin: 0; letter-spacing: .03em; }
.pricing-tier .price { font: 800 22px/1.2 var(--ui); margin: 0; color: var(--yellow); }
.pricing-tier .price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.price-note { margin: 0; color: var(--faint); font-size: 12px; }
.pricing-tier ul { margin: 8px 0 16px; padding-left: 18px; color: var(--muted); flex: 1; }
.pricing-tier li { margin: 6px 0; }
.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.addon-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 16px;
}
.addon-card h4 { margin: 0 0 6px; font: 700 15px/1.2 var(--ui); }
.pricing-addons { margin-top: 28px; }
.pricing-addons > h3 { font: 400 30px/1 var(--display); letter-spacing: .03em; }

/* programacion list */
.prog-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.prog-n { font: 400 32px/1 var(--display); color: var(--yellow); }
.prog-row h3 { margin: 0 0 4px; font: 700 18px/1.2 var(--ui); }
.prog-row p { margin: 0; color: var(--muted); font-size: 14px; }

/* page */
.page { padding: 40px 0 80px; }
.page .eyebrow {
  font: 700 11px/1 var(--ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 10px;
}
.page h1 {
  font: 400 clamp(40px, 6vw, 68px)/0.95 var(--display);
  letter-spacing: .03em;
  margin: 0 0 12px;
}
.page .lead { color: var(--muted); max-width: 60ch; font-size: 18px; }

.perfil-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
  margin: 28px 0;
}
.perfil-hero img {
  width: 96px; height: 96px; border-radius: 50%;
  box-shadow: 0 0 0 3px var(--yellow);
}
.claim-banner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center;
  border: 1px solid var(--yellow);
  background: rgba(245,211,26,.08);
  padding: 18px 20px;
  margin: 22px 0;
}
.claim-banner strong {
  display: block;
  color: var(--yellow);
  font: 800 11px/1 var(--ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.claim-banner p { margin: 0; color: var(--muted); max-width: 52ch; }
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  margin: 24px 0;
}
.facts dt { color: var(--faint); font: 700 11px/1.5 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.facts dd { margin: 0; }
.facts a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }

.band {
  margin: 56px 0 0;
  background: linear-gradient(120deg, var(--purple), #2a0f40 50%, #12081c);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.band-grid {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 24px;
  align-items: center;
}
.band h2 {
  font: 400 clamp(32px, 5vw, 52px)/1 var(--display);
  letter-spacing: .03em;
  margin: 0 0 10px;
}
.band p { margin: 0; color: var(--muted); max-width: 48ch; }

/* chat widget */
#zabeca-chat { position: fixed; right: 18px; bottom: 18px; z-index: 80; }
.chat-fab {
  width: 58px; height: 58px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--yellow);
  color: #1a0a28;
  font: 800 12px/1 var(--ui);
  letter-spacing: .06em;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.chat-panel {
  position: absolute; right: 0; bottom: 70px;
  width: min(360px, calc(100vw - 28px));
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  display: flex; flex-direction: column;
  max-height: min(70vh, 520px);
}
.chat-panel[hidden] { display: none !important; }
.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: var(--purple);
  font: 700 13px/1 var(--ui);
}
.chat-head button {
  border: 0; background: transparent; color: #fff; font-size: 20px; cursor: pointer;
}
.chat-log {
  flex: 1; overflow: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 160px;
}
.chat-bubble {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}
.chat-bubble--bot { background: var(--panel); align-self: flex-start; }
.chat-bubble--user { background: var(--yellow); color: #1a0a28; align-self: flex-end; }
.chat-faqs {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 12px 10px;
}
.chat-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 600 11px/1.2 var(--ui);
  padding: 7px 9px;
  cursor: pointer;
  border-radius: 999px;
}
.chat-chip:hover { border-color: var(--yellow); color: var(--yellow); }
.chat-form {
  display: flex; gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.chat-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 12px;
  font: 14px var(--ui);
}
.chat-result { padding: 0 12px 12px; }

.muted { color: var(--muted); }
.note { color: var(--faint); font-size: 13px; }

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--faint);
  font-size: 13px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.site-footer .brand { font-size: 24px; margin-bottom: 8px; }
.site-footer h4 {
  margin: 0 0 10px;
  font: 700 11px/1 var(--ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer a { color: var(--muted); display: block; margin: 6px 0; }
.site-footer a:hover { color: var(--yellow); }

@media (max-width: 960px) {
  .nav-main { display: none; }
  .feature-grid, .pricing-tiers, .sol-grid, .gallery-grid, .addon-grid, .foot-grid, .band-grid, .perfil-hero {
    grid-template-columns: 1fr;
  }
  .gallery-grid .video-card--wide { grid-column: span 1; }
  .prog-row { grid-template-columns: 48px 1fr; }
  .prog-row .chip { display: none; }
  .hero { min-height: auto; }
  .hero-copy { padding: 48px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-bg, .ticker-strip .track, .live-pill i { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
