/* ==========================================================================
   KELSOFT C.A. — Landing 2026
   Sistema de diseño "Señal que llega" · prototipo de alta fidelidad
   Fuentes: Archivo (display), Instrument Sans (texto), IBM Plex Mono (datos)
   ========================================================================== */

/* ---------- Fuentes autoalojadas ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #04081f;
  --navy: #000055;
  --navy-soft: #0a1240;
  --teal: #00adad;
  --teal-deep: #0e7585;
  --teal-dark: #066b6b;
  --mint: #dff4f2;
  --paper: #fffdf8;
  --bone: #f7f3e9;
  --sand: #e8e1d2;
  --graphite: #1b2233;
  --muted: #5c6579;
  --live: #23c08e;
  --on-dark: #e8eef9;
  --on-dark-muted: #a9b6d1;

  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --shell: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(64px, 8vw, 108px);
  --header-h: 64px;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --shadow-card: 0 24px 50px -34px rgba(4, 8, 31, 0.35);
  --shadow-deep: 0 44px 80px -44px rgba(4, 8, 31, 0.6);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
}

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

html {
  /* WordPress/Astra puede usar 17px de raíz; la landing se diseñó a 16px. */
  font-size: 16px !important;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.no-scroll { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
strong, b { font-weight: 600; }

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

::selection { background: var(--teal); color: var(--ink); }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Utilidades ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }
.icon--lg { width: 1.45em; height: 1.45em; }

.section { padding-block: var(--section-pad); position: relative; }
.section--bone { background: var(--bone); }
.section--paper { background: var(--paper); }
.section--mint { background: var(--mint); }
.section--ink { background: var(--ink); color: var(--paper); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.hero .eyebrow,
.section--ink .eyebrow,
.coverage .eyebrow,
.cta .eyebrow { color: var(--teal); }

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: var(--ink);
  text-wrap: balance;
}
.section--ink .h2,
.coverage .h2,
.cta .h2 { color: var(--paper); }

.section-lead {
  margin-top: 16px;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}
.section--ink .section-lead,
.coverage .section-lead { color: var(--on-dark-muted); }

.micro {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0.82rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--teal {
  background: var(--teal);
  color: #03262a;
  box-shadow: 0 12px 26px -14px rgba(0, 173, 173, 0.85);
}
.btn--teal:hover { background: #14c3c3; transform: translateY(-1px); }
.btn--teal:active { transform: translateY(0); }
.btn--ink { background: var(--navy); color: var(--paper); }
.btn--ink:hover { background: #0a0a6e; transform: translateY(-1px); }
.btn--ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}
.btn--outline {
  color: var(--navy);
  border-color: rgba(0, 0, 85, 0.2);
  background: transparent;
}
.btn--outline:hover { border-color: var(--teal-deep); color: var(--teal-dark); }
.btn--sm { min-height: 40px; padding: 0.6rem 0.95rem; font-size: 0.82rem; }
.btn--block { width: 100%; }
.btn--teal:focus-visible,
.btn--ink:focus-visible { outline-color: var(--paper); }
.btn--ghost:focus-visible { outline-color: var(--teal); }
/* Blindaje frente a los estados de botón del tema Astra */
.btn.btn--teal:hover,
.btn.btn--teal:focus,
.btn.btn--teal:active { background: #14c3c3; color: #03262a; }
.btn.btn--ink:hover,
.btn.btn--ink:focus,
.btn.btn--ink:active { background: var(--navy); color: var(--paper); }
.btn.btn--ink:hover { background: #0a0a6e; }
.btn.btn--ghost:hover,
.btn.btn--ghost:focus,
.btn.btn--ghost:active { background: rgba(255, 255, 255, 0.08); color: var(--paper); }
.btn.btn--outline:hover,
.btn.btn--outline:focus,
.btn.btn--outline:active { background: transparent; color: var(--navy); }
.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:active,
.drawer__close:hover,
.drawer__close:focus,
.drawer__close:active { background: transparent; color: var(--paper); }
.tab:not([aria-selected="true"]):hover,
.tab:not([aria-selected="true"]):focus,
.tab:not([aria-selected="true"]):active { background: transparent; color: var(--navy); }

/* ---------- Imágenes y stacks ---------- */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-soft);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.media--duo { background: linear-gradient(150deg, #06102b 0%, #0d4f63 55%, #18958f 100%); }
.media--duo img {
  filter: grayscale(1) contrast(1.1) brightness(1.12);
  mix-blend-mode: luminosity;
  opacity: 0.94;
}
.media--duo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(4, 8, 31, 0.04) 40%, rgba(4, 8, 31, 0.42));
  pointer-events: none;
}
.media--warm img { filter: saturate(0.82) contrast(1.04); }
.media--warm::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(4, 8, 31, 0) 45%, rgba(4, 8, 31, 0.5));
  pointer-events: none;
}

.hero-stack { position: relative; z-index: 2; }
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  z-index: 1;
  background: var(--navy-soft);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.hero-photo img { filter: saturate(0.92) contrast(1.04); }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 31, 0.62) 0%, rgba(4, 8, 31, 0.16) 34%, rgba(4, 8, 31, 0.12) 56%, rgba(4, 8, 31, 0.6) 100%);
  pointer-events: none;
}
.hero-frame { display: none; }
.hero-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(4, 8, 31, 0.55);
  backdrop-filter: blur(10px);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 173, 173, 0.2);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(4, 8, 31, 0.72), rgba(4, 8, 31, 0));
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(4, 8, 31, 0.93);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { height: 28px; width: auto; }
.main-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--paper);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.header-portal span { display: none; }
.header-portal:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}
.header-cta { display: none; }
.menu-toggle {
  display: inline-grid;
  place-items: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--paper);
  text-transform: none;
  box-shadow: none;
}
.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.site-header.is-stuck .header-progress { opacity: 1; }

/* ---------- Drawer móvil ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(90% 60% at 90% 0%, rgba(0, 173, 173, 0.16), transparent 60%),
    var(--ink);
  color: var(--paper);
  transform: translateY(-102%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer__head img { height: 28px; width: auto; }
.drawer__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--paper);
  text-transform: none;
  box-shadow: none;
}
.drawer__nav { display: grid; margin-top: 26px; }
.drawer__link {
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.drawer__num {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--teal);
}
.drawer__contact { margin-top: 20px; display: grid; gap: 8px; font-size: 0.88rem; color: var(--on-dark-muted); }
.drawer__contact a { color: var(--paper); }
.drawer__actions { display: grid; gap: 8px; margin-top: 18px; }
@media (min-width: 1024px) { .drawer, .menu-toggle { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 34px);
  padding-bottom: 40px;
  color: var(--paper);
  background:
    radial-gradient(95% 70% at 86% -6%, rgba(0, 173, 173, 0.17), transparent 58%),
    radial-gradient(70% 60% at 6% 100%, rgba(14, 117, 133, 0.16), transparent 62%),
    linear-gradient(180deg, #04081f 0%, #07102c 52%, #04081f 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--grain);
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-topo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.topo-line {
  fill: none;
  stroke: #00adad;
  stroke-width: 1;
  opacity: 0.13;
  vector-effect: non-scaling-stroke;
}
.topo-line--2 { opacity: 0.08; }
.fiber-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.4;
  stroke-dasharray: 3 12;
  opacity: 0.5;
  animation: dashMove 28s linear infinite;
}
.fiber-node { fill: var(--teal); }
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 38px;
}
.hero-copy { max-width: 660px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.45rem, 10.2vw, 3.05rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  text-wrap: balance;
  color: var(--paper);
}
.hero h1 .hl {
  color: var(--teal);
  background: linear-gradient(transparent 86%, rgba(0, 173, 173, 0.5) 86%, rgba(0, 173, 173, 0.5) 94%, transparent 94%);
}
.hero .lead {
  margin-top: 20px;
  max-width: 52ch;
  color: #c9d3e8;
  font-size: clamp(1rem, 2.5vw, 1.13rem);
  line-height: 1.62;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-ctas .btn { flex: 1 1 auto; }
.hero-direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.86rem;
  color: var(--on-dark-muted);
}
.hero-direct .icon { color: var(--teal); }
.hero-direct a {
  color: var(--paper);
  border-bottom: 1px solid rgba(0, 173, 173, 0.45);
  padding-bottom: 1px;
}
.hero-stack { margin-top: 4px; }
.hero-copy > * { animation: rise 0.85s var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.11s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

/* Tarjeta de cobertura sobre el stack */
.coverage-card {
  position: relative;
  z-index: 3;
  margin: -34px 14px 0;
  padding: 18px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--graphite);
  border: 1px solid rgba(4, 8, 31, 0.06);
  box-shadow: var(--shadow-deep);
}
.coverage-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(35, 192, 142, 0.16);
}
.coverage-card__place {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 173, 173, 0.18);
  background: linear-gradient(160deg, #06102b, #0a1a33);
}
.map svg { width: 100%; height: auto; }
.map__grid { stroke: #7fa7c9; stroke-width: 1; opacity: 0.14; }
.map__contour { fill: none; stroke: #00adad; stroke-width: 1.1; opacity: 0.24; }
.map__zone {
  fill: rgba(0, 173, 173, 0.05);
  stroke: #00adad;
  stroke-width: 1.1;
  stroke-dasharray: 6 7;
  opacity: 0.7;
}
.map__road { fill: none; stroke: #e8e1d2; stroke-width: 1; opacity: 0.13; }
.map__link {
  fill: none;
  stroke: #00adad;
  stroke-width: 1;
  stroke-dasharray: 2 6;
  opacity: 0.55;
  animation: dashMove 24s linear infinite;
}
.map__node { fill: #dff4f2; }
.map__node-halo { fill: #00adad; opacity: 0.2; }
.map__pulse {
  fill: none;
  stroke: #00adad;
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: mapPulse 4s ease-out infinite;
}
.map__pulse--2 { animation-delay: 1.4s; }
.map__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  fill: #dff4f2;
  opacity: 0.9;
}
.map__label--sm { font-size: 8.5px; letter-spacing: 0.18em; opacity: 0.45; }
.coverage-card .map__label,
.step__visual .map__label { display: none; }
.map-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.map-caption i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 173, 173, 0.14);
}
.coverage-card__form { margin-top: 12px; }
.coverage-card__form > label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.coverage-field { display: grid; gap: 8px; }
.input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--sand);
  border-radius: 12px;
  background: #fff;
  color: var(--graphite);
  font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input::placeholder { color: #99a2b1; }
.input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 173, 173, 0.14);
}
.input[aria-invalid="true"] { border-color: #b3402c; }
.form-error {
  margin-top: 7px;
  font-size: 0.76rem;
  color: #a3210b;
}
.form-note {
  display: flex;
  gap: 6px;
  margin-top: 9px;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--muted);
}
.form-note .icon { width: 13px; height: 13px; margin-top: 2px; color: var(--teal-deep); }
.form-status {
  margin-top: 7px;
  font-size: 0.76rem;
  color: var(--teal-dark);
}

/* Franja de hechos */
.factbar-wrap { position: relative; z-index: 5; margin-top: -28px; }
.factbar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 18px;
  box-shadow: 0 40px 70px -50px rgba(4, 8, 31, 0.55);
}
.fact {
  padding: 15px 16px;
  border-top: 1px solid var(--sand);
  border-left: 1px solid var(--sand);
}
.fact:nth-child(odd) { border-left: 0; }
.fact:nth-child(-n + 2) { border-top: 0; }
.fact__value {
  font-family: var(--mono);
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}
.fact__value small { font-size: 0.62rem; letter-spacing: 0; color: var(--muted); }
.fact__label {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Planes ---------- */
.plans { padding-top: calc(var(--section-pad) + 18px); border-top: 1px solid rgba(4, 8, 31, 0.05); }
.section-head { display: grid; gap: 26px; margin-bottom: 34px; }
.section-head__main { min-width: 0; }
.plans-visual {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.tech-figure {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}
.plans-visual[data-tech="fibra"] .tech-figure--fibra,
.plans-visual[data-tech="inalambrico"] .tech-figure--inalambrico { opacity: 1; }
.tech-figure figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(4, 8, 31, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plans-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.tabs {
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  width: 100%;
  max-width: 420px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--sand);
}
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  text-transform: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.tab .icon { width: 15px; height: 15px; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--paper); }
.tab:hover:not([aria-selected="true"]) { color: var(--navy); }
.plans-hint {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.plans-panel[hidden] { display: none; }
html.js .plans-panel[data-panel="inalambrico"]:not(.is-active) { display: none; }
.plans-grid { display: grid; gap: 14px; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--sand);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.plan:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 173, 173, 0.55);
  box-shadow: var(--shadow-card);
}
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.plan__badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--teal);
  color: #03262a;
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan__for { margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.plan__speed {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 16px;
  font-family: var(--mono);
}
.plan__num {
  font-size: 3.1rem;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--navy);
}
.plan__unit {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--sand);
}
.plan__amount {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.plan__per { font-size: 0.76rem; color: var(--muted); }
.plan__vat {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan__features {
  display: grid;
  gap: 8px;
  margin: 15px 0 18px;
  font-size: 0.84rem;
  color: var(--graphite);
}
.plan__features li { display: flex; align-items: center; gap: 8px; }
.plan__features .icon { width: 14px; height: 14px; color: var(--teal-deep); }
.plan__cta { margin-top: auto; width: 100%; min-height: 44px; font-size: 0.82rem; }
.plan--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 85, 0.7);
  overflow: hidden;
}
.plan--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(0, 173, 173, 0.22), transparent 62%);
  pointer-events: none;
}
.plan--featured > * { position: relative; z-index: 1; }
.plan--featured .plan__name,
.plan--featured .plan__num,
.plan--featured .plan__amount { color: var(--paper); }
.plan--featured .plan__for,
.plan--featured .plan__per,
.plan--featured .plan__vat,
.plan--featured .plan__unit { color: #a9b6d1; }
.plan--featured .plan__price,
.plan--featured .plan__features { border-color: rgba(255, 255, 255, 0.14); }
.plan--featured .plan__features { color: #d7e0f0; }
.plan--featured .plan__features .icon { color: var(--teal); }
.plan--featured .plan__cta { color: #03262a; }
.plan--featured::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--teal);
}
.plans-foot {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--sand);
}
.plans-note { max-width: 74ch; font-size: 0.72rem; line-height: 1.65; color: var(--muted); }
.plans-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.8rem; font-weight: 600; }
.plans-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
}
.plans-links a:hover { color: var(--teal-dark); border-color: var(--teal); }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 26px; margin-top: 6px; }
.step { min-width: 0; }
.step__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--sand);
  background: var(--navy-soft);
}
.step__visual img { width: 100%; height: 100%; object-fit: cover; }
.step__visual--map { background: linear-gradient(160deg, #06102b, #0a1a33); }
.step__num {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 29px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}
.step h3 {
  margin-top: 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.step p { margin-top: 7px; max-width: 42ch; font-size: 0.91rem; color: var(--muted); }
.steps-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.steps-cta p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Servicios ---------- */
.services-grid { display: grid; gap: 16px; }
.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--sand);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.service:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 173, 173, 0.5);
  box-shadow: var(--shadow-card);
}
.service__media { aspect-ratio: 3 / 2; border-radius: 0; }
.service:hover .service__media img { transform: scale(1.045); }
.service__body { position: relative; padding: 18px; }
.service__num {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--teal-deep);
}
.service h3 {
  margin: 6px 0 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.service p { font-size: 0.88rem; line-height: 1.6; color: var(--muted); }

/* ---------- Cobertura ---------- */
.coverage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-pad);
  background: var(--ink);
  color: var(--paper);
}
.coverage__bg { position: absolute; inset: 0; z-index: 0; }
.coverage__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: grayscale(0.55) contrast(1.08) brightness(0.9);
}
.coverage__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(4, 8, 31, 0.93) 0%, rgba(4, 8, 31, 0.5) 45%, rgba(4, 8, 31, 0.9) 100%);
}
.coverage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.coverage .shell { position: relative; z-index: 2; }
.coverage-grid { display: grid; gap: 40px; align-items: center; }
.coverage-visual { position: relative; min-width: 0; }
.map-panel {
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 253, 248, 0.035);
  backdrop-filter: blur(6px);
}
.map-panel .map { border-color: rgba(255, 255, 255, 0.08); background: transparent; }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 13px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.map-legend i.legend-wireless { background: var(--mint); }
.map-legend i.legend-check { background: var(--live); }
.map-inset {
  position: absolute;
  right: 6px;
  bottom: 34px;
  width: 128px;
  border-radius: 14px;
  overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-deep);
}
.map-inset img { aspect-ratio: 1; width: 100%; object-fit: cover; filter: saturate(0.65) brightness(0.85); }
.coverage-copy h2 { max-width: 16ch; }
.coverage-copy .section-lead { max-width: 46ch; }
.checklist { display: grid; gap: 11px; margin-top: 24px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--on-dark);
}
.checklist .icon {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: var(--teal);
  flex: none;
}
.coverage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.coverage-note { margin-top: 16px; font-size: 0.7rem; line-height: 1.55; color: var(--on-dark-muted); max-width: 46ch; }

/* ---------- Ya eres cliente ---------- */
.client {
  position: relative;
  overflow: hidden;
  background: var(--mint);
  padding-block: var(--section-pad);
}
.client::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 88% 10%, rgba(0, 173, 173, 0.14), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(0, 0, 85, 0.05), transparent 55%);
  pointer-events: none;
}
.client .shell { position: relative; z-index: 1; }
.client-grid { display: grid; gap: 28px; }
.client h2 { color: var(--navy); }
.client-copy .section-lead { color: #3f4a5f; }
.client-actions { display: grid; gap: 9px; margin-top: 24px; }
.client-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 85, 0.08);
  background: rgba(255, 253, 248, 0.62);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.87rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.client-action .icon { color: var(--teal-deep); width: 19px; height: 19px; }
.client-action small {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
}
.client-action:hover { background: var(--paper); border-color: rgba(0, 173, 173, 0.55); }
.portal-mock {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 85, 0.09);
  box-shadow: var(--shadow-deep);
  font-size: 0.78rem;
  transform: rotate(-0.6deg);
}
.pm-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  background: var(--ink);
  color: #b7c3da;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
}
.pm-dots { display: flex; gap: 4px; margin-right: 2px; }
.pm-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.pm-body { padding: 16px; }
.pm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pm-hello { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.pm-tag {
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--mint);
  padding: 4px 7px;
  border-radius: 999px;
}
.pm-invoice {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.pm-invoice::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 120% at 100% 0%, rgba(0, 173, 173, 0.25), transparent 60%);
}
.pm-invoice > * { position: relative; z-index: 1; }
.pm-label {
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a9b6d1;
}
.pm-amount {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.pm-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; font-size: 0.66rem; color: #c9d3e8; }
.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 36px;
  margin-top: 11px;
  border-radius: 999px;
  background: var(--teal);
  color: #03262a;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.7rem;
}
.pm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pm-stat { padding: 9px; border: 1px solid var(--sand); border-radius: 10px; }
.pm-stat b { display: block; font-size: 0.78rem; color: var(--ink); }
.pm-usage { margin-top: 11px; }
.pm-usage span { font-size: 0.63rem; color: var(--muted); }
.pm-bar-track { height: 5px; border-radius: 9px; background: var(--sand); margin-top: 5px; overflow: hidden; }
.pm-bar-track i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--teal-deep), var(--teal)); }
.pm-note {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.client-photo { position: relative; }
.client-photo .media { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.photo-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(4, 8, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ---------- Nosotros ---------- */
.about-grid { display: grid; gap: 34px; }
.about-copy { order: 1; min-width: 0; }
.about-stack { order: 2; position: relative; padding-bottom: 34px; }
.about-stack__base { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; }
.about-stack__inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-card);
}
.about-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--navy);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.about-copy .section-lead { max-width: 48ch; }
.about-copy p + p { margin-top: 12px; }
.values { display: grid; gap: 12px; margin-top: 26px; }
.value { display: flex; align-items: flex-start; gap: 12px; }
.value__icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--mint);
  color: var(--teal-deep);
  border: 1px solid rgba(0, 173, 173, 0.2);
}
.value__icon .icon { width: 18px; height: 18px; }
.value b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.value span { display: block; margin-top: 1px; font-size: 0.8rem; color: var(--muted); }
.pullquote {
  margin-top: 25px;
  padding-left: 16px;
  border-left: 2px solid var(--teal);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 26px; align-items: start; }
.faq-list { border-top: 1px solid var(--sand); }
.faq-item { border-bottom: 1px solid var(--sand); }
.faq-item summary {
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.35;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--sand);
  color: var(--navy);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.faq-icon .icon { width: 13px; height: 13px; }
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}
.faq-item p {
  padding: 0 34px 18px 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}
.support-card {
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--sand);
}
.support-card__media { aspect-ratio: 16 / 10; }
.support-card__body { padding: 18px; }
.support-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.support-card p { margin-top: 5px; font-size: 0.84rem; color: var(--muted); }
.support-card .btn { margin-top: 14px; width: 100%; }
.support-hours {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- CTA / contacto ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-pad);
  background: var(--ink);
  color: var(--paper);
}
.cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(1) contrast(1.1);
}
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(4, 8, 31, 0.97) 10%, rgba(4, 8, 31, 0.7) 55%, rgba(4, 8, 31, 0.92));
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cta .shell { position: relative; z-index: 2; }
.cta-grid { display: grid; gap: 34px; align-items: center; }
.cta-copy h2 { max-width: 14ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cta .section-lead { color: var(--on-dark-muted); }
.cta-note { margin-top: 16px; font-size: 0.75rem; color: var(--on-dark-muted); max-width: 44ch; }
.contact-card {
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--graphite);
  box-shadow: var(--shadow-deep);
}
.contact-card__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.contact-list { margin-top: 6px; }
.contact-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--sand);
  align-items: start;
}
.contact-row dt {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--teal-deep);
}
.contact-row dt .icon { width: 16px; height: 16px; }
.contact-row dd { font-size: 0.83rem; line-height: 1.5; }
.contact-row dd b {
  display: block;
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-row dd a { color: inherit; border-bottom: 1px solid var(--sand); }
.contact-row dd a:hover { border-color: var(--teal); }
.contact-card .btn { margin-top: 14px; width: 100%; }
.contact-card__note {
  margin-top: 10px;
  font-size: 0.66rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 48px calc(26px + 76px);
  background: #03061a;
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid { display: grid; gap: 30px; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; font-size: 0.82rem; line-height: 1.6; }
.footer-brand .footer-slogan {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.footer-col h3 {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fa0be;
}
.footer-links { display: grid; gap: 8px; font-size: 0.84rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  color: #7f8fac;
}
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.footer-bottom a:hover { color: var(--teal); }

/* ---------- Fijos ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 58;
  display: flex;
  gap: 8px;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.97);
  border-top: 1px solid var(--sand);
  backdrop-filter: blur(14px);
  transform: translateY(115%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
}
.mobile-bar.is-visible { transform: none; visibility: visible; }
.mobile-bar .btn { flex: 1; min-height: 44px; font-size: 0.82rem; }

/* ---------- Movimiento ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes dashMove { to { stroke-dashoffset: -240; } }
@keyframes mapPulse {
  0% { transform: scale(0.45); opacity: 0.6; }
  75%, 100% { transform: scale(2.7); opacity: 0; }
}
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Modo captura: sin animaciones y todo visible */
html.render-mode *,
html.render-mode *::before,
html.render-mode *::after {
  animation: none !important;
  transition: none !important;
}
html.render-mode [data-reveal],
html.render-mode .hero-copy > * {
  opacity: 1 !important;
  transform: none !important;
}
html.render-mode .hero-photo img { transform: none !important; }
html.render-mode .skip-link { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Adaptaciones por ancho (mobile-first)
   ========================================================================== */
@media (min-width: 480px) {
  .hero-ctas .btn { flex: 0 0 auto; }
  .fact__value { font-size: 1.45rem; }
}

@media (min-width: 640px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
  .map-inset { width: 150px; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .plans-visual { max-width: none; aspect-ratio: 16 / 9; }
}

@media (min-width: 768px) {
  .factbar { grid-template-columns: repeat(4, 1fr); }
  .fact { border-top: 0; border-left: 1px solid var(--sand); }
  .fact:first-child { border-left: 0; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-grid { gap: 44px; }
  .plans-toolbar { flex-wrap: nowrap; }
  .tabs { width: auto; }
  .tab { min-width: 132px; }
  .plans-foot { grid-template-columns: 1fr auto; align-items: center; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .client-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .client-photo { grid-column: 1 / -1; max-width: 380px; justify-self: center; }
  .about-stack { max-width: 460px; }
  .faq-grid { grid-template-columns: 1fr 1fr; }
  .support-card { align-self: start; }
  .cta-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-card { max-width: 100%; }
}

@media (min-width: 1024px) {
  .brand img { height: 34px; }
  .main-nav { display: block; }
  .nav-list { display: flex; align-items: center; gap: 4px; }
  .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border-radius: 8px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
  }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 2px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.25s var(--ease);
  }
  .nav-link:hover { color: var(--paper); background: rgba(255, 255, 255, 0.05); }
  .nav-link:hover::after,
  .nav-link[aria-current="true"]::after { transform: scaleX(1); }
  .nav-link[aria-current="true"] { color: var(--paper); }
  .header-portal { width: auto; height: 40px; padding: 0 14px; gap: 8px; font-size: 0.76rem; }
  .header-portal span { display: inline; }
  .header-cta { display: inline-flex; min-height: 40px; padding: 0 17px; font-size: 0.8rem; }
  .menu-toggle { display: none; }

  /* Hero en dos columnas: la tarjeta se apila bajo la foto hasta 1279 px */
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
  .hero h1 { font-size: clamp(2.9rem, 5vw, 4.4rem); }
  .hero .lead { margin-top: 22px; }
  .hero-ctas { margin-top: 32px; }
  .hero-stack { margin-top: 0; }
  .hero-photo { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
  .hero-photo img { object-position: 62% 30%; }
  .hero-frame { display: none; }
  .coverage-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin: 14px 0 0;
    padding: 18px;
  }
  .hero-chip {
    top: 14px;
    left: 14px;
    right: auto;
    background: rgba(4, 8, 31, 0.55);
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.22);
  }
  .hero-chip i { background: var(--teal); }
  .hero { padding-bottom: 54px; }
  .factbar-wrap { margin-top: -32px; }
  .fact { padding: 18px 20px; }

  .section-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: end; }
  .section-head__aside { display: flex; justify-content: flex-end; }
  .plans-visual { margin-left: auto; }
  .plans-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .plan { padding: 22px; }
  .plan__num { font-size: 3.4rem; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .steps .step:last-child { grid-column: auto; max-width: none; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }

  .coverage-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; }
  .map-panel { padding: 18px; }
  .map-inset { right: -14px; bottom: -26px; width: 164px; border-width: 5px; }

  .client-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.9fr) minmax(0, 0.65fr); gap: 30px; align-items: center; }
  .client-photo { grid-column: auto; max-width: none; justify-self: auto; margin-top: 18px; }
  .client-photo .media { aspect-ratio: 4 / 5; }
  .portal-mock { transform: rotate(-0.8deg); }
  .client-actions { margin-top: 26px; }

  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .about-stack { order: 0; max-width: none; padding-bottom: 44px; grid-column: 1; grid-row: 1; }
  .about-copy { order: 0; grid-column: 2; grid-row: 1; }
  .about-copy .section-lead { max-width: 46ch; }
  .faq-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; }
  .faq-item summary { padding: 19px 0; font-size: 1rem; }
  .support-card { position: sticky; top: calc(var(--header-h) + 24px); }

  .cta-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
  .contact-card { padding: 24px; }
  .contact-card .btn { min-height: 46px; }

  .footer-grid { grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
  .site-footer { padding-block: 58px 26px; }
  .footer-bottom { margin-top: 40px; }

  .mobile-bar { display: none; }
}

@media (min-width: 1280px) {
  .hero-grid { gap: 64px; }
  .hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 64px; }
  .hero h1 { font-size: clamp(3.1rem, 5.2vw, 4.6rem); }
  .hero-photo { aspect-ratio: 4 / 5; }
  .hero-photo img { object-position: 62% 45%; }
  .hero-frame {
    display: block;
    position: absolute;
    inset: 18px -18px -18px 18px;
    z-index: 0;
    border: 1px solid rgba(232, 225, 210, 0.28);
    border-radius: var(--r-lg);
    pointer-events: none;
  }
  .coverage-card {
    position: absolute;
    left: -52px;
    bottom: -20px;
    width: min(84%, 348px);
    margin: 0;
    padding: 20px;
    z-index: 5;
  }
  .hero-chip { top: -16px; left: auto; right: -14px; background: rgba(255, 253, 248, 0.94); color: var(--navy); border-color: rgba(0, 0, 85, 0.08); }
  .hero-chip i { background: var(--live); }
  .plan { padding: 24px; }
  .plan__num { font-size: 3.6rem; }
  .coverage-grid { gap: 72px; }
  .about-grid { gap: 72px; }
}

/* Fin del sistema */

/* ---------- Integración WordPress (solo landing) ---------- */
body.kelsoft-landing { background-color: var(--paper); }
body.admin-bar .site-header { top: 32px; }
body.kelsoft-landing .ast-scroll-top { display: none !important; }
body.kelsoft-landing #ast-scroll-top,
body.kelsoft-landing .ast-scroll-top-icon { display: none !important; }

@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* ---------- Chatwoot: launcher integrado a la paleta de Kelsoft ---------- */
body.kelsoft-landing .woot-widget-bubble {
  right: 22px !important;
  bottom: 22px !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--teal) !important;
  box-shadow:
    0 18px 36px -14px rgba(0, 173, 173, 0.9),
    0 0 0 1px rgba(3, 38, 42, 0.08) !important;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease) !important;
}
body.kelsoft-landing .woot-widget-bubble:hover {
  background: #14c3c3 !important;
  transform: translateY(-3px) !important;
}
body.kelsoft-landing .woot-widget-bubble:focus-visible {
  outline: 2px solid var(--paper) !important;
  outline-offset: 3px !important;
}
body.kelsoft-landing .woot-widget-bubble svg {
  width: 26px !important;
  height: 26px !important;
}
body.kelsoft-landing .woot-widget-bubble svg path {
  fill: #03262a !important;
}
body.kelsoft-landing .woot-widget-bubble.woot--close svg path {
  fill: #03262a !important;
}
body.kelsoft-landing .woot-widget-bubble.woot--close::before,
body.kelsoft-landing .woot-widget-bubble.woot--close::after {
  background-color: #03262a !important;
  color: #03262a !important;
}
body.kelsoft-landing #cw-widget-holder {
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 34px 80px -30px rgba(4, 8, 31, 0.65) !important;
}
body.kelsoft-landing #cw-widget-holder iframe {
  border-radius: 18px !important;
}
body.kelsoft-landing.no-scroll #cw-bubble-holder,
body.kelsoft-landing.no-scroll #cw-widget-holder,
body.kelsoft-landing.no-scroll .woot-widget-bubble {
  display: none !important;
}
@media (max-width: 1023px) {
  body.kelsoft-landing .woot-widget-bubble {
    right: 18px !important;
    bottom: 22px !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
  }
  body.kelsoft-landing.has-mobile-bar .woot-widget-bubble {
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }
  body.kelsoft-landing .woot-widget-bubble svg {
    width: 24px !important;
    height: 24px !important;
  }
}
