/* Servi Cable — hoja de estilos
   Colores tomados del logo: azul marino del texto y los cuatro colores del ícono. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  --navy: #08183F;
  --navy-soft: #102A5C;
  --blue: #1E6FB0;
  --blue-dark: #17588C;
  --red: #D00010;
  --red-dark: #B8000E;
  --orange: #F09000;
  --green: #6E8F2F;
  --paper: #FFFFFF;
  --mist: #F1F5F8;
  --ink: #0E1B2A;
  --muted: #4E5E70;
  --line: #DCE5EC;

  --display: "Manrope", "Segoe UI", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(60px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Barra de cuatro colores, como el ícono del logo */
.bar { height: 6px; background: linear-gradient(to right, var(--red) 0 25%, var(--orange) 25% 50%, var(--green) 50% 75%, var(--blue) 75% 100%); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 8px;
  font-family: var(--display); font-size: 1.03rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; line-height: 1.2;
}
.btn-solid { background: var(--blue-dark); color: #fff; }
.btn-solid:hover { background: var(--navy); color: #fff; }
.btn-live { background: var(--red); color: #fff; }
.btn-live:hover { background: var(--red-dark); color: #fff; }
.btn-line { border: 2px solid var(--blue-dark); color: var(--blue-dark); }
.btn-line:hover { background: var(--blue-dark); color: #fff; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.28); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 78px; }
.brand { margin-right: auto; display: flex; }
.brand img { width: 190px; height: auto; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 6px 0; }
.nav a:hover { color: var(--blue); }
.menu-toggle { display: none; }
.header-cta { min-height: 46px; padding: 0 18px; }

@media (max-width: 960px) {
  .header-inner { gap: 10px; min-height: 66px; }
  .brand img { width: 140px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--navy);
    font: 600 0.95rem var(--body); cursor: pointer;
  }
  .header-cta { min-height: 44px; padding: 0 14px; font-size: 0.95rem; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 14px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 400px) { .menu-toggle span { display: none; } }

/* ---------- Portada ---------- */
.hero { padding: clamp(36px, 6vw, 76px) 0 clamp(32px, 5vw, 64px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.kicker { font-family: var(--display); font-weight: 700; color: var(--blue); letter-spacing: 0.01em; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 40ch; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero-photo { order: -1; } }

/* ---------- Datos ---------- */
.facts { background: var(--navy); color: #fff; }
.facts-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.facts-list > div { padding: 26px 0; }
.facts-list dfn { display: block; font-style: normal; font-size: 0.9rem; color: #9DB2CE; }
.facts-list b { font-family: var(--display); font-size: 1.12rem; font-weight: 700; }
.facts-list a { color: #fff; text-decoration: none; }
.facts-list a:hover { text-decoration: underline; }
@media (max-width: 900px) { .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts-list > div { padding: 18px 0; } }
@media (max-width: 520px) { .facts-list { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Secciones ---------- */
.section { padding: var(--section) 0; }
.section-tint { background: var(--mist); }
.section-dark { background: var(--navy-soft); color: #fff; }
.section-dark h2, .section-dark .kicker { color: #fff; }
.section-dark .kicker { color: #8FC0E8; }
.section-intro { margin-top: 14px; font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.section-dark .section-intro { color: #C6D6E8; }
.note { margin-top: 18px; color: var(--muted); font-size: 0.98rem; }

/* ---------- Servicios ---------- */
.offer { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.offer-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.offer-card img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: var(--navy); }
.offer-card > div { padding: 22px 24px 26px; }
.offer-card h3 { margin-bottom: 6px; }
.offer-card p { color: var(--muted); }
.offer-dark { background: var(--navy); border-color: var(--navy); }
.offer-dark h3 { color: #fff; }
.offer-dark p { color: #C6D6E8; }
.offer-dark img { object-fit: contain; background: #000; }
.blend { mix-blend-mode: screen; }
@media (max-width: 800px) { .offer { grid-template-columns: 1fr; } }

.cards { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 12px; border-top: 5px solid var(--blue); }
.card:nth-child(2) { border-top-color: var(--orange); }
.card:nth-child(3) { border-top-color: var(--green); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Canal 9 ---------- */
.canal { display: flex; flex-direction: column; gap: 18px; }
.canal .actions { margin-top: 8px; }

/* ---------- Misión, visión, objetivo ---------- */
.mv { margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.mv > div { padding-top: 18px; border-top: 4px solid var(--blue); }
.mv > div:nth-child(2) { border-top-color: var(--orange); }
.mv > div:nth-child(3) { border-top-color: var(--green); }
.mv dt { font-family: var(--display); font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.mv dd { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 900px) { .mv { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 56px); }
.contact-list { margin: 24px 0; display: grid; gap: 18px; }
.contact-list dt { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.contact-list dd { margin: 3px 0 0; font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }
.map { min-height: 380px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Transmisión en vivo ---------- */
.live { padding: var(--section) 0; }
.player { margin-top: 30px; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.live .actions { margin-top: 26px; }
@media (max-width: 700px) { .player { aspect-ratio: 4 / 3; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: #AFC2D8; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 36px; padding-bottom: 36px; font-size: 0.96rem; }
.footer-inner img { background: #fff; padding: 8px 12px; border-radius: 8px; }
.footer-inner p { margin-top: 12px; max-width: 34ch; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

/* ---------- 404 ---------- */
.notfound { padding: var(--section) 0; }
.notfound .actions { margin-top: 26px; }
