/* ==========================================================================
   Cable Visión Aguaray — hoja de estilos principal
   ========================================================================== */

:root {
  --green: #1f9d3a;
  --green-ink: #177c2d;
  --blue: #155fd1;
  --blue-ink: #0f47a3;
  --red: #c81326;

  --ink: #14161c;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --bg-dark: #0e0f13;
  --bg-dark-alt: #16181f;
  --border: #e2e4e9;
  --border-dark: #262832;

  --text-muted: #52566a;
  --text-faint: #83879a;
  --text-on-dark: #d7d9e2;
  --text-on-dark-muted: #90939f;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 22, 28, 0.06), 0 8px 20px rgba(20, 22, 28, 0.06);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Franja de marca — tres colores sólidos, como una firma, sin degradé */
.brand-stripe {
  height: 4px;
  display: flex;
}
.brand-stripe span { flex: 1; }
.brand-stripe .s1 { background: var(--green); }
.brand-stripe .s2 { background: var(--blue); }
.brand-stripe .s3 { background: var(--red); }

.section {
  padding: 84px 0;
}
.section--alt { background: var(--bg-soft); }
.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--blue);
  color: var(--blue-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .section-tag { justify-content: center; border-left: none; padding-left: 0; }
.section-head .section-tag::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--blue);
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
}
.section-head p { font-size: 16px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 4px; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(20,22,28,.03);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.logo img { height: 34px; width: 34px; }
.logo span { color: var(--text-faint); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 148px 0 90px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero-copy {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-ink);
  margin-bottom: 20px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 46px);
}
.hero h1 .accent { color: var(--blue-ink); }

.hero p.lead {
  font-size: 17px;
  max-width: 500px;
  margin-bottom: 0;
}

/* ---------- Trust bar ---------- */
.trust {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-faint);
  font-size: 13px;
}
.trust-row b { color: var(--text-muted); font-weight: 700; }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: #fff;
  padding: 30px;
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon--green { background: rgba(31,157,58,.1); color: var(--green-ink); }
.service-icon--blue { background: rgba(21,95,209,.1); color: var(--blue-ink); }
.service-icon--red { background: rgba(200,19,38,.1); color: var(--red); }

.service-card h3 { font-size: 18px; }
.service-card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Planes ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.plan-name { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: 8px; }
.plan-speed { font-size: 34px; font-weight: 700; margin-bottom: 12px; }
.plan-speed span { font-size: 15px; color: var(--text-faint); font-weight: 500; }
.plan-combo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-ink);
  background: rgba(21, 95, 209, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.plan-note { font-size: 13px; color: var(--text-faint); margin: 0; }
.plans-foot-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 32px;
}

/* ---------- Cobertura ---------- */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.coverage-map {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.coverage-map__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.coverage-map__header h4 { margin: 0; font-size: 14.5px; }
.zone-list { display: flex; flex-direction: column; gap: 8px; }
.zone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 13.5px;
}
.zone-status {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}
.zone-status--ok { background: rgba(31,157,58,.12); color: var(--green-ink); }
.zone-status--soon { background: rgba(200,19,38,.1); color: var(--red); }

/* ---------- Nosotros ---------- */
.about-copy { max-width: 720px; }
.about-list { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-muted);
}
.about-list li b { color: var(--ink); }
.about-list .num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-ink);
}

/* ---------- Contacto ---------- */
.contact-info-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 28px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-office {
  padding-top: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.contact-office h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blue-ink);
  font-weight: 700;
  margin: 6px 0 2px;
}
.contact-info-item .ico {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--blue-ink);
}
.contact-info-item strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.contact-info-item span { font-size: 13.5px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand .logo { margin-bottom: 14px; color: #fff; }
.footer-brand .logo span { color: var(--text-on-dark-muted); }
.footer-brand p { font-size: 13.5px; max-width: 280px; color: var(--text-on-dark-muted); }

.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-on-dark-muted);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a, .footer-links span { font-size: 14px; color: var(--text-on-dark-muted); transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.footer-h4-spaced { margin-top: 18px; }
.footer-links-spaced { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-dark); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--text-on-dark-muted); }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .coverage { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 18px 24px 24px;
    gap: 16px;
  }
  .section { padding: 56px 0; }
  .hero { padding-top: 118px; }
  .services-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
