/* =========================================================
   ORB Telecom — rediseño
   ========================================================= */

/* ---------- Colores: tema claro (por defecto) ---------- */
:root {
  --brand: #003e7b;
  --brand-600: #0a56a8;
  --accent: #22b8f0;
  --accent-soft: rgba(34, 184, 240, .14);
  --navy-950: #030f1f;
  --navy-900: #061c37;
  --navy-800: #0a2a50;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --surface-hover: #ffffff;
  --glass: rgba(255, 255, 255, .88);
  --ink: #0b1b2e;
  --body: #2c3e55;
  --muted: #55667c;
  --line: #dfe7f1;
  --link: #0a56a8;
  --kicker: #0a56a8;
  --heading-accent: #003e7b;
  --num: #eaf2fb;
  --ok: #12a150;
  --ok-bg: #ecf9f1;
  --bad: #d93a3a;
  --bad-bg: #fdf0f0;
  --mark: #fff1a6;
  --blob-1: #eaf2fb;
  --blob-2: #d7ecfb;
  --focus-ring: rgba(10, 86, 168, .14);

  /* Ilustración */
  --il-bldg: #0a2a50;
  --il-bldg-alt: #13427a;
  --il-win: rgba(155, 227, 255, .55);
  --il-ground: rgba(0, 62, 123, .10);
  --il-link: #0a56a8;

  --shadow-sm: 0 1px 2px rgba(6, 28, 55, .06), 0 2px 8px rgba(6, 28, 55, .05);
  --shadow: 0 10px 30px -10px rgba(6, 28, 55, .25);
  --shadow-lg: 0 30px 60px -20px rgba(6, 28, 55, .35);

  --radius: 18px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Colores: tema oscuro ---------- */
:root[data-theme="dark"] {
  --bg: #06111f;
  --surface: #0c1a2e;
  --surface-2: #0f2038;
  --surface-hover: #132845;
  --glass: rgba(6, 17, 31, .86);
  --ink: #e8f0fa;
  --body: #b9c7d8;
  --muted: #8a9bb2;
  --line: #1d3250;
  --link: #6cc6f5;
  --kicker: #22b8f0;
  --heading-accent: #8fd3ff;
  --num: rgba(255, 255, 255, .05);
  --ok: #3ddc84;
  --ok-bg: rgba(61, 220, 132, .10);
  --bad: #ff7272;
  --bad-bg: rgba(255, 114, 114, .10);
  --mark: rgba(255, 214, 10, .35);
  --blob-1: #0e2441;
  --blob-2: #133461;
  --focus-ring: rgba(34, 184, 240, .22);

  --il-bldg: #1b3f6c;
  --il-bldg-alt: #24548c;
  --il-win: rgba(155, 227, 255, .45);
  --il-ground: rgba(34, 184, 240, .10);
  --il-link: #22b8f0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 14px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* Transición suave solo al cambiar de tema */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .35s, border-color .35s, color .35s, fill .35s, stroke .35s !important;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--heading-accent); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 18px; height: 18px; }
.ico-lg { width: 30px; height: 30px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--navy-950); box-shadow: 0 10px 24px -10px rgba(34, 184, 240, .8); }
.btn-primary:hover { color: var(--navy-950); background: #4cc8f5; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 62, 123, .8); }
.btn-brand:hover { color: #fff; background: var(--brand-600); }
:root[data-theme="dark"] .btn-brand { background: var(--brand-600); }
:root[data-theme="dark"] .btn-brand:hover { background: #1569c4; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.btn-outline { background: transparent; color: var(--heading-accent); border-color: var(--line); }
.btn-outline:hover { border-color: var(--heading-accent); color: var(--heading-accent); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(3, 15, 31, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.site-header .container { display: flex; align-items: center; gap: 12px; }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(34, 184, 240, .35)); }

.nav { display: flex; align-items: center; gap: 6px; order: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; order: 2; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: rgba(255, 255, 255, .78); font-weight: 600; font-size: 15px;
  transition: color .2s, background .2s;
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-list a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }
.nav .btn { margin-left: 10px; }

.theme-toggle, .nav-toggle {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s var(--ease);
}
.theme-toggle:hover, .nav-toggle:hover { background: rgba(255, 255, 255, .16); }
.theme-toggle .ico { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.theme-toggle:hover .ico { transform: rotate(-20deg); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; color: #ffd166; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.site-header.is-open .nav-toggle .i-open { display: none; }
.site-header.is-open .nav-toggle .i-close { display: block; }

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100vh, 900px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 88px;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 30%, rgba(34, 184, 240, .20), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(10, 86, 168, .45), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--brand) 130%);
}
/* Cuadrícula sutil de fondo */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(3, 15, 31, .55));
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(90deg, #fff 10%, #9be3ff 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(18px, 2vw, 22px); color: rgba(255, 255, 255, .78); max-width: 34ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Logo con órbitas */
.orb-visual { position: relative; aspect-ratio: 1; width: min(100%, 460px); margin-left: auto; }
.orb-visual .glow { position: absolute; inset: 28%; border-radius: 50%; background: radial-gradient(circle, rgba(34, 184, 240, .55), transparent 70%); filter: blur(30px); animation: pulse 5s ease-in-out infinite; }
.orb-visual img { position: absolute; inset: 30%; width: 40%; height: 40%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); animation: float 6s ease-in-out infinite; }
.orb-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
  animation: float 7s ease-in-out infinite;
}
.orb-chip .ico { color: var(--accent); width: 18px; height: 18px; }
.orb-chip.c1 { top: 8%; left: -4%; }
.orb-chip.c2 { bottom: 14%; right: -2%; animation-delay: -3s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* Fondo interactivo: red de nodos conectados entre sí */
.net-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero::before, .hero::after { pointer-events: none; }
.net-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* El contenido del hero deja pasar el cursor a los nodos del fondo, salvo botones y enlaces */
.hero .hero-grid, .hero .hero-grid * { pointer-events: none; }
.hero .hero-grid a, .hero .hero-grid button { pointer-events: auto; }
.bg-node {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  display: grid; place-items: center; border-radius: 14px;
  color: rgba(155, 227, 255, .75);
  background: rgba(10, 42, 80, .55); border: 1px solid rgba(155, 227, 255, .16);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: var(--o, .5); cursor: grab; touch-action: none; user-select: none;
  transition: opacity .35s, color .35s, background .35s, border-color .35s, box-shadow .35s;
  will-change: transform;
}
.bg-node .ico { width: 21px; height: 21px; pointer-events: none; }
.bg-node.is-near, .bg-node.is-dragging {
  opacity: 1; color: #fff; background: rgba(34, 184, 240, .28); border-color: rgba(34, 184, 240, .8);
  box-shadow: 0 0 0 5px rgba(34, 184, 240, .12), 0 0 28px rgba(34, 184, 240, .45);
}
.bg-node.is-dragging { cursor: grabbing; }
.bg-node.ping { animation: ping .7s var(--ease); }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(34, 184, 240, .7); }
  100% { box-shadow: 0 0 0 16px rgba(34, 184, 240, 0); }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, .35);
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + 64px) 0 72px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(34, 184, 240, .25), transparent 60%),
    linear-gradient(150deg, var(--navy-950), var(--navy-900) 60%, var(--brand) 140%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to left, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero.has-overlap { padding-bottom: 136px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .35); }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Secciones ---------- */
.section { padding: 112px 0; position: relative; }
.section-sm { padding: 72px 0; }
.section-alt { background: var(--surface-2); }
.section-dark {
  color: #fff;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(34, 184, 240, .16), transparent 60%),
    linear-gradient(170deg, var(--navy-900), var(--navy-950));
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--kicker);
}
.kicker .ico { width: 18px; height: 18px; }
.section-dark .kicker, .form-aside .kicker { color: var(--accent); }

/* ---------- Tarjetas "Por qué elegir" ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  position: relative; overflow: hidden;
  padding: 36px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 70%);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::before { opacity: 1; }
.feature > * { position: relative; }
.feature h3 { font-size: 20px; font-weight: 700; margin: 0; }
.feature .num { position: absolute; top: 18px; right: 24px; font-size: 64px; font-weight: 800; color: var(--num); line-height: 1; }

.icon-badge {
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 24px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-600) 60%, var(--accent));
  box-shadow: 0 12px 24px -12px rgba(0, 62, 123, .9);
}
.icon-badge .ico { width: 28px; height: 28px; }

/* ---------- Acerca de ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-grid h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.about-grid p { color: var(--muted); font-size: 18px; }
.about-visual { position: relative; }
.about-visual .blob {
  position: absolute; inset: 6% 4% 4% 8%; border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  background: linear-gradient(135deg, var(--blob-1), var(--blob-2));
  animation: morph 14s ease-in-out infinite;
}
.year-badge {
  position: absolute; left: 0; bottom: 6%;
  padding: 18px 22px; border-radius: 18px;
  background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .08);
}
.year-badge small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.year-badge strong { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
@keyframes morph {
  0%, 100% { border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; }
  50% { border-radius: 55% 45% 40% 60% / 45% 60% 40% 55%; }
}

/* Ilustración (torre y edificios) */
.illus { position: relative; width: 100%; height: auto; display: block; overflow: visible; }
.illus .ground { fill: var(--il-ground); }
.illus .bldg rect { fill: var(--il-bldg); }
.illus .bldg rect.alt { fill: var(--il-bldg-alt); }
.illus .bldg rect[fill] { fill: url(#win); }
.illus .win { fill: var(--il-win); }
.illus .dish path { stroke: var(--il-bldg-alt); stroke-width: 3; stroke-linecap: round; fill: none; }
.illus .dish circle { fill: var(--accent); }
.illus .links path { fill: none; stroke: var(--il-link); stroke-width: 2; stroke-dasharray: 5 7; opacity: .7; animation: dash 1.2s linear infinite; }
.illus .packets circle { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(34, 184, 240, .9)); }
.illus .tower path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.illus .tower path + path, .illus .tower path + path + path { stroke-width: 3; }
.illus .waves circle { fill: none; stroke: var(--accent); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: wave 3s ease-out infinite; opacity: 0; }
.illus .waves circle:nth-child(2) { animation-delay: 1s; }
.illus .waves circle:nth-child(3) { animation-delay: 2s; }
.illus .beacon { fill: var(--accent); filter: drop-shadow(0 0 10px rgba(34, 184, 240, .9)); }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes wave { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(5.5); opacity: 0; } }

/* ---------- Servicios (inicio) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 30px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  color: #fff; overflow: hidden;
  transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.service-card::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 184, 240, .35), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.service-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .07); border-color: rgba(34, 184, 240, .45); color: #fff; }
.service-card:hover::after { opacity: 1; }
.service-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(34, 184, 240, .14); color: var(--accent);
}
.service-card h3 { font-size: 20px; font-weight: 700; margin: 0; flex: 1; }
.service-card .more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 15px; }
.service-card .more .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.service-card:hover .more .ico { transform: translateX(4px); }

/* ---------- Cobertura ---------- */
.coverage {
  display: grid; grid-template-columns: 420px 1fr; gap: 0;
  margin-top: 96px; border-radius: 24px; overflow: hidden;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.coverage-panel { padding: 40px 36px; display: flex; flex-direction: column; }
.coverage-panel h2 { font-size: 28px; font-weight: 800; }
.coverage-panel .kicker { color: var(--kicker); }
.search-box { position: relative; display: block; margin: 8px 0 12px; }
.search-box .ico { position: absolute; left: 16px; top: 27px; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.search-box input {
  width: 100%; height: 54px; padding: 0 116px 0 46px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface-2);
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { outline: none; border-color: var(--brand-600); background: var(--surface); box-shadow: 0 0 0 4px var(--focus-ring); }
.search-box .btn { position: absolute; right: 6px; top: 6px; height: 42px; padding: 0 18px; border-radius: 10px; }
.coverage-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.suggestions { list-style: none; margin: 8px 0 0; padding: 6px; border: 1px solid var(--line); border-radius: 14px; max-height: 240px; overflow: auto; }
.suggestions:empty { display: none; }
.suggestions button {
  width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none;
  color: var(--ink); font-size: 14px; line-height: 1.4; cursor: pointer;
}
.suggestions button:hover, .suggestions button:focus-visible { background: var(--surface-2); }
.coverage-result {
  margin-top: 18px; padding: 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface-2); animation: pop .4s var(--ease);
}
.coverage-result[hidden] { display: none; }
.coverage-result .label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; }
.coverage-result .addr { font-weight: 600; margin: 0 0 12px; }
.coverage-result .verdict { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin: 0; }
.coverage-result.is-yes { border-color: rgba(18, 161, 80, .35); background: var(--ok-bg); }
.coverage-result.is-yes .verdict { color: var(--ok); }
.coverage-result.is-no { border-color: rgba(217, 58, 58, .3); background: var(--bad-bg); }
.coverage-result.is-no .verdict { color: var(--bad); }
.coverage-status { min-height: 22px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.coverage-note { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); font-style: italic; }
.coverage-map { position: relative; min-height: 520px; background: var(--surface-2); }
.coverage-map #map { position: absolute; inset: 0; background: var(--surface-2); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }
:root[data-theme="dark"] .leaflet-bar a { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .leaflet-control-attribution { background: rgba(12, 26, 46, .8); color: var(--muted); }
:root[data-theme="dark"] .leaflet-control-attribution a { color: var(--link); }
.map-legend {
  position: absolute; z-index: 500; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 700;
}
.map-legend i { width: 14px; height: 14px; border-radius: 4px; background: rgba(34, 184, 240, .45); border: 2px solid var(--brand); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Leaflet: marcador propio */
.orb-marker { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(34, 184, 240, .35), 0 6px 14px rgba(0, 0, 0, .3); }
.leaflet-container { font-family: var(--font); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  padding: 56px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(34, 184, 240, .45), transparent 60%),
    linear-gradient(120deg, var(--brand) 0%, var(--brand-600) 100%);
  box-shadow: var(--shadow-lg);
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, .06);
}
.cta h3 { font-size: 20px; font-weight: 700; color: rgba(255, 255, 255, .8); margin: 0 0 4px; }
.cta .phone { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.cta .phone:hover { color: #fff; }
.cta .phone .ico { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .15); }
.cta .btn { position: relative; z-index: 1; }

/* ---------- Nosotros ---------- */
.prose { font-size: 18px; color: var(--body); }
.prose p { margin-bottom: 1.2em; }
.lead-text { font-size: 22px; line-height: 1.55; color: var(--ink); font-weight: 500; }
.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: start; }
.sticky-visual { position: sticky; top: calc(var(--header-h) + 32px); }
.check-list { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 16px; color: var(--ink);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.check-list li:hover { transform: translateX(6px); border-color: rgba(34, 184, 240, .4); background: var(--surface-hover); }
.check-list .ico { color: var(--link); margin-top: 1px; }
.timeline { position: relative; margin: 0; padding: 0 0 0 32px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--brand)); border-radius: 2px; }
.timeline li { position: relative; margin-bottom: 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -29px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--brand-600);
}
.timeline p { margin: 0; }
.h-block { font-size: 28px; font-weight: 800; margin: 48px 0 24px; color: var(--ink); }

/* ---------- Servicios (página) ---------- */
.chip-nav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.chip-nav ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
.chip-nav ul::-webkit-scrollbar { display: none; }
.chip-nav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: 14px; font-weight: 700; background: var(--surface);
  transition: all .2s;
}
.chip-nav a .ico { width: 16px; height: 16px; }
.chip-nav a:hover, .chip-nav a.is-active { color: #fff; background: var(--brand-600); border-color: var(--brand-600); }

.service-list { display: grid; gap: 24px; }
.service-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 32px; align-items: start;
  padding: 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 80px);
  transition: box-shadow .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.service-row:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-row:target { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.service-row .icon-badge { width: 96px; height: 96px; border-radius: 24px; margin: 0; }
.service-row .icon-badge .ico { width: 42px; height: 42px; }
.service-row .idx { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--kicker); text-transform: uppercase; }
.service-row h2 { font-size: 26px; font-weight: 800; margin: 6px 0 12px; }
.service-row p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- Contacto ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -64px; position: relative; z-index: 2; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card .icon-badge { margin-bottom: 14px; width: 52px; height: 52px; border-radius: 14px; }
.contact-card .icon-badge .ico { width: 24px; height: 24px; }
.contact-card h3 { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.contact-card p { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.contact-card a { color: var(--ink); }
.contact-card a:hover { color: var(--link); }

.form-wrap {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 0; border-radius: 24px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form-aside {
  padding: 48px; color: #fff;
  background:
    radial-gradient(400px 300px at 0% 100%, rgba(34, 184, 240, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--brand));
}
.form-aside h2 { font-size: 32px; font-weight: 800; }
.form-aside img { width: 96px; margin-top: 32px; opacity: .95; }
.form { padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 26px 16px 10px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface-2);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 180px; resize: vertical; }
.field label {
  position: absolute; left: 17px; top: 18px; pointer-events: none;
  color: var(--muted); font-size: 16px; transition: all .18s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); background: var(--surface); box-shadow: 0 0 0 4px var(--focus-ring); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 8px; font-size: 12px; font-weight: 700; color: var(--link); }
.field .error { display: none; margin: 6px 4px 0; font-size: 13px; font-weight: 600; color: var(--bad); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--bad); background: var(--surface); }
.field.is-invalid .error { display: block; }
.form .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- Acordeón (IFETEL / Legales) ---------- */
.docs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 20px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line);
}
.toc h2 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 4px 8px 12px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3;
  transition: background .2s, color .2s;
}
.toc a .ico { width: 18px; height: 18px; color: var(--link); }
.toc a:hover, .toc a.is-active { background: var(--surface); color: var(--heading-accent); box-shadow: var(--shadow-sm); }

.docs-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.docs-toolbar .search-box { flex: 1; min-width: 240px; margin: 0; }
.docs-toolbar .search-box input { padding-right: 16px; }
.no-results { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.acc { display: grid; gap: 14px; }
.acc-item {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 24px);
  transition: box-shadow .3s, border-color .3s;
}
.acc-item[open] { box-shadow: var(--shadow); border-color: rgba(34, 184, 240, .35); }
.acc-item > summary {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 700; color: var(--ink);
}
.acc-item > summary::-webkit-details-marker { display: none; }
.acc-item > summary .icon-badge { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.acc-item > summary .icon-badge .ico { width: 22px; height: 22px; }
.acc-item > summary .title { flex: 1; }
.acc-item > summary .chev { color: var(--muted); transition: transform .3s var(--ease); }
.acc-item[open] > summary .chev { transform: rotate(180deg); color: var(--link); }
.acc-body { padding: 0 24px 26px 84px; color: var(--body); font-size: 16px; line-height: 1.75; animation: pop .35s var(--ease); }
.acc-body b { color: var(--ink); }
.acc-body a { font-weight: 600; }
.pdf-frame { width: 100%; height: 750px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: block; }
.pdf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.toggle-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.toggle-group .btn[aria-expanded="true"] { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.collapse-panel[hidden] { display: none; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }

.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.glossary div { padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.glossary dt { font-weight: 800; color: var(--heading-accent); margin-bottom: 4px; }
.glossary dd { margin: 0; font-size: 15px; line-height: 1.6; }

/* ---------- Gracias ---------- */
.thanks { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.thanks .check {
  width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 50%;
  display: grid; place-items: center; color: var(--navy-950); background: var(--accent);
  box-shadow: 0 0 0 14px rgba(34, 184, 240, .18), 0 0 0 28px rgba(34, 184, 240, .08);
  animation: pop .6s var(--ease);
}
.thanks .check .ico { width: 48px; height: 48px; stroke-width: 2.4; }
.thanks h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; color: #fff; max-width: 18ch; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.site-footer { color: rgba(255, 255, 255, .75); background: var(--navy-950); padding: 88px 0 0; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 80%; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(34, 184, 240, .6), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 48px; }
.site-footer h3 { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact a, .footer-contact address { display: flex; gap: 12px; align-items: flex-start; font-style: normal; color: rgba(255, 255, 255, .8); line-height: 1.6; }
.footer-contact a:hover { color: #fff; }
.footer-contact .ico { color: var(--accent); margin-top: 2px; }
.footer-links { display: grid; gap: 12px; align-content: start; }
.ifetel-link {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font-weight: 700;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.ifetel-link:hover { color: #fff; background: rgba(255, 255, 255, .09); border-color: rgba(34, 184, 240, .5); transform: translateX(4px); }
.ifetel-link .logo-box { width: 92px; height: 52px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; padding: 4px 8px; }
.ifetel-link .logo-box img { max-height: 44px; width: auto; }
.ifetel-link .ico-box { width: 92px; height: 52px; border-radius: 10px; background: rgba(34, 184, 240, .14); color: var(--accent); display: grid; place-items: center; flex: none; }
.ifetel-link .arrow { margin-left: auto; width: 18px; height: 18px; color: var(--accent); }
.footer-logo { display: inline-flex; padding: 14px 18px; border-radius: 14px; background: #fff; margin-bottom: 18px; }
.footer-logo img { height: 44px; width: auto; }
.footer-map { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); height: 200px; background: var(--navy-800); }
.footer-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.footer-bottom { margin-top: 64px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; color: rgba(255, 255, 255, .5); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Botón flotante ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--navy-950); background: var(--accent);
  box-shadow: 0 12px 24px -8px rgba(34, 184, 240, .7);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Animaciones al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .illus .waves circle { opacity: .4; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .coverage { grid-template-columns: 1fr; }
  .coverage-map { min-height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .docs-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px; padding: 16px 20px 24px;
    background: rgba(3, 15, 31, .97); border-top: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .site-header.is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
  .nav .btn { margin: 8px 0 0; }
  .hero-grid, .about-grid, .split, .form-wrap { grid-template-columns: 1fr; }
  .orb-visual { width: min(80%, 340px); margin: 8px auto 0; }
  .feature-grid, .service-grid, .contact-cards { grid-template-columns: 1fr 1fr; }
  .sticky-visual { position: static; max-width: 420px; }
  .about-visual { max-width: 460px; }
  .cta { grid-template-columns: 1fr; padding: 40px 32px; }
  .section { padding: 88px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .brand { font-size: 18px; }
  .brand img { width: 38px; height: 38px; }
  .theme-toggle, .nav-toggle { width: 42px; height: 42px; }
  .hero { padding-bottom: 56px; min-height: auto; }
  .scroll-cue { display: none; }
  .orb-chip { font-size: 12px; padding: 8px 12px; }
  .orb-chip.c1 { left: -6%; }
  .orb-chip.c2 { right: -6%; }
  .bg-node { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 12px; }
  .bg-node .ico { width: 18px; height: 18px; }
  .feature-grid, .service-grid, .contact-cards, .glossary, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .coverage { margin-top: 64px; border-radius: 20px; }
  .coverage-panel { padding: 28px 20px; }
  .coverage-map { min-height: 360px; }
  .search-box input { padding-right: 16px; }
  .search-box .btn { position: static; width: 100%; margin-top: 10px; height: 48px; }
  .cta { padding: 32px 22px; border-radius: 22px; }
  .service-row { grid-template-columns: 1fr; padding: 28px 22px; gap: 18px; }
  .service-row .icon-badge { width: 64px; height: 64px; border-radius: 18px; }
  .service-row .icon-badge .ico { width: 30px; height: 30px; }
  .form-aside, .form { padding: 28px 20px; }
  .form { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .contact-cards { margin-top: -40px; }
  .toc ul { grid-template-columns: 1fr; }
  .acc-item > summary { padding: 16px; font-size: 16px; gap: 12px; }
  .acc-item > summary .icon-badge { width: 38px; height: 38px; }
  .acc-body { padding: 0 16px 20px; font-size: 15px; }
  .pdf-frame { height: 520px; }
  .lead-text { font-size: 19px; }
  .prose { font-size: 16px; }
  .footer-bottom { margin-top: 48px; }
}
