/* ==========================================================================
   ROLAVI 2026 — Sistema de diseño
   --------------------------------------------------------------------------
   Capa visual única para todo el sitio (EN / ES / PT / IT).
   Se carga AL FINAL del <head> de cada página, después de las hojas antiguas
   y de los bloques <style> en línea, así que sus reglas mandan.

   Contenido
     1. Tokens (colores, tipografía, radios, sombras)
     2. Base (tipografía, selección, foco)
     3. Header, navegación y menú de idiomas
     4. Footer y botón de WhatsApp
     5. Componentes compartidos (eyebrows, títulos, botones, tarjetas)
     6. Familia "ntrip-page" (home, productos, software, apps, contacto…)
     7. Portada
     8. Familia editorial (blog y artículos)
     9. Cloud, Descargas y GEOStudio
    10. Animación de entrada
    11. Adaptable
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --rv-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rv-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rv-ink: #0a1222;
  --rv-ink-2: #3a475a;
  --rv-muted: #667386;
  --rv-line: #e4e9f0;
  --rv-line-2: #cfd8e3;
  --rv-bg: #f5f7fa;
  --rv-surface: #ffffff;

  --rv-night: #060b16;
  --rv-night-2: #0b1528;
  --rv-night-3: #111f3a;
  --rv-on-dark: #edf2fa;
  --rv-on-dark-2: #9aa9bf;
  --rv-line-dark: rgba(148, 170, 205, .18);

  --rv-blue: #1f5ef5;
  --rv-blue-600: #1749c9;
  --rv-blue-100: #d8e3ff;
  --rv-blue-50: #eef3ff;
  --rv-blue-lit: #86adff;

  --rv-green: #22c97a;
  --rv-green-lit: #3be08f;
  --rv-green-ink: #0b7a47;
  --rv-green-check: #16a864;

  --rv-radius-sm: 10px;
  --rv-radius: 14px;
  --rv-radius-lg: 18px;
  --rv-shadow-sm: 0 1px 2px rgba(10, 18, 34, .05);
  --rv-shadow: 0 1px 2px rgba(10, 18, 34, .04), 0 12px 32px -14px rgba(10, 18, 34, .22);
  --rv-shadow-lg: 0 30px 80px -30px rgba(3, 8, 20, .6);
  --rv-grid-dark: rgba(148, 170, 205, .07);
  --rv-grid-light: rgba(10, 18, 34, .045);

  /* fichas antiguas, redirigidas a la nueva paleta */
  --ink: var(--rv-ink);
  --muted: var(--rv-muted);
  --green: var(--rv-green);
  --blue: var(--rv-blue);
  --soft: var(--rv-bg);
  --container: 1200px;
  --header-height: 72px;
}

/* ---------- 2. Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--rv-font);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  color: var(--rv-ink);
  background: var(--rv-surface);
  line-height: 1.6;
  font-optical-sizing: auto;
}
::selection { background: var(--rv-blue-100); color: var(--rv-ink); }
:focus-visible { outline-color: var(--rv-blue); }
button, input, textarea, select { font-family: inherit; }
code, kbd, samp, pre { font-family: var(--rv-mono); }

/* ---------- 3. Header ---------- */
.site-header {
  height: var(--header-height);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--rv-line);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px -18px rgba(10, 18, 34, .28); }
.site-header .header-inner { gap: 28px; }
.site-header .brand img { width: clamp(124px, 10vw, 138px); }
.site-header .main-nav { gap: clamp(18px, 2vw, 30px); }
.site-header .main-nav > a,
.site-header .nav-group > summary {
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  text-transform: none;
  color: var(--rv-ink-2);
}
.site-header .main-nav > a:hover,
.site-header .nav-group > summary:hover,
.site-header .nav-group[open] > summary { color: var(--rv-ink); border-bottom-color: transparent; }
.site-header .main-nav > a[aria-current="page"],
.site-header .nav-group.is-current > summary { color: var(--rv-ink); font-weight: 600; border-bottom-color: var(--rv-blue); }
.nav-group > summary::after { width: 5px; height: 5px; border-width: 0 1.5px 1.5px 0; opacity: .55; }
.nav-dropdown {
  top: calc(100% - 6px);
  left: -14px;
  min-width: 240px;
  padding: 6px;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
  background: #fff;
  box-shadow: 0 24px 48px -18px rgba(10, 18, 34, .28), 0 2px 6px rgba(10, 18, 34, .05);
  animation: rv-pop .16s ease-out;
}
.site-header .nav-dropdown > a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rv-ink-2);
}
.site-header .nav-dropdown > a:hover { background: var(--rv-bg); color: var(--rv-ink); }
.site-header .nav-dropdown > a[aria-current="page"] { background: var(--rv-blue-50); color: var(--rv-blue-600); font-weight: 600; }
.nav-dropdown > a::after { content: "→"; font-size: 13px; color: var(--rv-line-2); transition: transform .18s ease, color .18s ease; }
.site-header .nav-dropdown > a:hover::after { color: var(--rv-blue); transform: translateX(2px); }

.site-header .header-actions { gap: 10px; }
.site-header .nav-shop {
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--rv-radius-sm);
  background: var(--rv-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color .2s ease;
}
.site-header .nav-shop:hover { background: var(--rv-blue); }

/* menú de idiomas */
.lang-menu { position: relative; }
.lang-menu > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius-sm);
  background: #fff;
  color: var(--rv-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover, .lang-menu[open] > summary { border-color: var(--rv-line-2); background: var(--rv-bg); }
.lang-menu > summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; opacity: .7; }
.lang-menu > summary::after { content: ""; width: 5px; height: 5px; margin: -3px 1px 0 1px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .5; }
.lang-menu > summary:focus-visible { outline: 3px solid var(--rv-blue); outline-offset: 3px; }
.site-header .lang-menu .language-switcher {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1010;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
  background: #fff;
  box-shadow: 0 24px 48px -18px rgba(10, 18, 34, .28), 0 2px 6px rgba(10, 18, 34, .05);
  animation: rv-pop .16s ease-out;
}
.lang-menu:not([open]) > .language-switcher { display: none; }
.site-header .lang-menu .lang-chip {
  justify-content: flex-start;
  gap: 11px;
  width: auto;
  height: auto;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--rv-ink-2);
  font-size: 14px;
  font-weight: 500;
  transform: none;
}
.site-header .lang-menu .lang-chip:hover { background: var(--rv-bg); color: var(--rv-ink); transform: none; }
.site-header .lang-menu .lang-chip[aria-current="true"] { background: var(--rv-blue-50); color: var(--rv-blue-600); font-weight: 600; }
.lang-chip img { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(10, 18, 34, .08); }
.lang-chip .lang-code { display: none; }
.site-header .lang-menu .lang-chip .lang-code { display: inline; margin-left: auto; font-family: var(--rv-mono); font-size: 11px; font-weight: 500; color: var(--rv-muted); }

/* botón de menú móvil */
.site-header .menu-toggle { width: 42px; height: 42px; border: 1px solid var(--rv-line); border-radius: var(--rv-radius-sm); background: #fff; }
.site-header .menu-toggle span { width: 18px; height: 1.75px; margin: 4.5px auto; }

@keyframes rv-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- 4. Footer ---------- */
.site-footer {
  position: relative;
  padding: 80px 0 32px;
  background: var(--rv-night);
  color: var(--rv-on-dark);
  border-top: 1px solid var(--rv-line-dark);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(134, 173, 255, .45), transparent);
}
.footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; }
.footer-logo { width: 140px; margin-bottom: 20px; }
.site-footer p { max-width: 340px; font-size: 14.5px; line-height: 1.7; color: var(--rv-on-dark-2); }
.footer-col h3 {
  margin: 0 0 18px;
  font-family: var(--rv-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  color: rgba(237, 242, 250, .5);
}
.footer-links { gap: 12px; }
.footer-links a, .footer-links span { font-size: 14.5px; color: rgba(237, 242, 250, .78); overflow-wrap: break-word; transition: color .18s ease; }
.footer-links a:hover { color: #fff; }
.social-row { gap: 8px; margin-top: 26px; }
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--rv-line-dark);
  color: var(--rv-on-dark-2);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.social-icon:hover { transform: none; background: rgba(255, 255, 255, .1); border-color: rgba(148, 170, 205, .35); color: #fff; }
.social-icon svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rv-line-dark);
  font-size: 13px;
  color: rgba(237, 242, 250, .5);
}

.whatsapp-float {
  width: 54px;
  height: 54px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px -6px rgba(10, 18, 34, .35), 0 0 0 4px rgba(37, 211, 102, .14);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 34px -6px rgba(10, 18, 34, .4), 0 0 0 6px rgba(37, 211, 102, .16); }
.whatsapp-float svg { width: 27px; height: 27px; }

/* ---------- 5. Componentes compartidos ---------- */

/* eyebrows: etiqueta técnica en mono con marcador */
.nt-eyebrow,
.ed-eyebrow,
.cloud-page .cloud-eyebrow,
.dl-eyebrow,
.gs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rv-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rv-blue);
}
.nt-eyebrow::before,
.ed-eyebrow::before,
.cloud-page .cloud-eyebrow::before,
.dl-eyebrow::before,
.gs-eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}
.nt-dark .nt-eyebrow, .nt-hero .nt-eyebrow { color: var(--rv-green-lit); }

/* botones */
.nt-btn, .pg-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--rv-radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pg-btn { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.nt-btn:hover, .pg-btn:hover { transform: translateY(-1px); }
.nt-btn-fix {
  background: var(--rv-green);
  color: #03140b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 28px -10px rgba(34, 201, 122, .7);
}
.nt-btn-fix:hover { background: var(--rv-green-lit); filter: none; }
.nt-btn-ghost { border-color: rgba(237, 242, 250, .2); background: rgba(255, 255, 255, .04); color: var(--rv-on-dark); }
.nt-btn-ghost:hover { border-color: rgba(237, 242, 250, .38); background: rgba(255, 255, 255, .08); }
.nt-btn-wa, .pg-btn-wa { background: #128c4a; color: #fff; }
.nt-btn-wa:hover, .pg-btn-wa:hover { background: #0f7a40; filter: none; }
.pg-btn-dark { background: var(--rv-ink); }
.pg-btn-dark:hover { background: var(--rv-blue); }
.pg-btn-line { border-color: var(--rv-line-2); }
.pg-btn-line:hover { border-color: var(--rv-ink); color: var(--rv-ink); }
.btn { border-radius: var(--rv-radius-sm); font-weight: 600; letter-spacing: 0; text-transform: none; }

/* insignias de tiendas: mismo alto que los botones */
.rs-store img { height: 46px; width: auto; }
/* google-play-badge.png ya viene recortado (sin margen transparente):
   se anula la compensación antigua para que mida igual que el de App Store */
.rs-store-play img, .pg-store img[src*="google-play"] { margin: 0; }
.pg-store img[src*="google-play"] { height: 44px; }

/* formularios */
.contact-form label { font-size: 13.5px; font-weight: 600; color: var(--rv-ink); }
.contact-form input, .contact-form textarea, .contact-form select {
  border: 1px solid var(--rv-line-2);
  border-radius: var(--rv-radius-sm);
  padding: 12px 14px;
  background: #fff;
  color: var(--rv-ink);
}
.contact-form input:hover, .contact-form textarea:hover, .contact-form select:hover { border-color: #b6c2d1; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--rv-blue); box-shadow: 0 0 0 4px rgba(31, 94, 245, .14); }
.form-status { border-radius: var(--rv-radius-sm); font-weight: 600; }

/* ---------- 6. Familia ntrip-page ---------- */
.ntrip-page {
  --nt-bg: var(--rv-bg);
  --nt-surface: var(--rv-surface);
  --nt-surface-2: #f9fafc;
  --nt-line: var(--rv-line);
  --nt-line-strong: var(--rv-line-2);
  --nt-ink: var(--rv-ink);
  --nt-ink-2: var(--rv-ink-2);
  --nt-muted: var(--rv-muted);
  --nt-brand: var(--rv-blue);
  --nt-brand-600: var(--rv-blue-600);
  --nt-brand-100: var(--rv-blue-100);
  --nt-brand-50: var(--rv-blue-50);
  --nt-fix: var(--rv-green-check);
  --nt-fix-lit: var(--rv-green-lit);
  --nt-fix-deep: var(--rv-green-check);
  --nt-dark-1: var(--rv-night);
  --nt-dark-2: var(--rv-night-2);
  --nt-on-dark: var(--rv-on-dark);
  --nt-on-dark-2: var(--rv-on-dark-2);
  --nt-line-dark: var(--rv-line-dark);
}
.ntrip-page a:focus-visible, .ntrip-page button:focus-visible { outline-color: var(--rv-blue); }

/* ritmo de secciones */
.nt-sec { padding: clamp(64px, 9vw, 120px) 0; }
.nt-light { background: var(--rv-bg); }
.nt-white { background: var(--rv-surface); }
.nt-light + .nt-light, .nt-white + .nt-white { border-top: 1px solid var(--rv-line); }

/* secciones oscuras y hero con cuadrícula de plano */
.nt-dark {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(900px 480px at 82% -12%, rgba(31, 94, 245, .22), transparent 62%),
    linear-gradient(180deg, var(--rv-night-2), var(--rv-night));
}
.nt-sec.nt-dark::before,
.nt-plan-card.nt-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    linear-gradient(var(--rv-grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--rv-grid-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
}
.nt-hero {
  background:
    radial-gradient(1100px 560px at 80% -18%, rgba(31, 94, 245, .32), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(34, 201, 122, .08), transparent 60%),
    linear-gradient(180deg, var(--rv-night-2) 0%, var(--rv-night) 100%);
  border-bottom: 1px solid var(--rv-line-dark);
}
.nt-hero::before {
  background-image:
    linear-gradient(var(--rv-grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--rv-grid-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}

/* títulos */
.ntrip-page .nt-h2 {
  margin-top: 16px;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 650;
  letter-spacing: -.032em;
  line-height: 1.08;
}
.ntrip-page .nt-h3 { font-weight: 650; letter-spacing: -.025em; }
.nt-lead { margin-top: 18px; font-size: 17.5px; line-height: 1.65; color: var(--rv-ink-2); text-wrap: pretty; }
.nt-dark .nt-lead { color: var(--rv-on-dark-2); }
:is(.ntrip-page, .editorial-page, .cloud-page, .downloads-page, .gs-page) :is(h3, h4) { font-weight: 650; letter-spacing: -.015em; }

.viewer-page .nt-hero h1 .vw-title,
.nt-hero h1 .nt-sub {
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.03;
}
.viewer-page .nt-hero h1 .vw-title em,
.nt-hero h1 em {
  font-style: normal;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--rv-blue-lit);
}
.nt-hero h1 .nt-fixword {
  font-weight: 750;
  letter-spacing: -.05em;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--rv-green-lit);
  filter: none;
}
.nt-hero-text { font-size: 17.5px; line-height: 1.65; color: var(--rv-on-dark-2); }
.pg-hero .nt-hero-text { font-size: 18px; }
.nt-hero .nt-actions { margin-top: 34px; }

/* píldora de estado y chips del hero */
.nt-state,
.viewer-page .nt-state {
  gap: 9px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--rv-line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--rv-on-dark);
  font-family: var(--rv-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .06em;
}
.nt-state i, .viewer-page .nt-state i { width: 7px; height: 7px; background: var(--rv-green-lit); animation: nt-pulse 2.2s infinite; }
.vw-chips { gap: 6px; margin-top: 30px; }
.vw-chips li {
  padding: 5px 10px;
  border: 1px solid var(--rv-line-dark);
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  color: var(--rv-on-dark-2);
  font-family: var(--rv-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
}
.nt-tag { font-family: var(--rv-mono); font-weight: 500; letter-spacing: .08em; }
.pg-bc { font-size: 13px; font-weight: 500; }

/* tarjetas */
.nt-net, .nt-row, .nt-points li, .hm-pillar, .hm-rx, .hm-use, .hm-flow li, .p3-steps li {
  border-color: var(--rv-line);
  box-shadow: var(--rv-shadow-sm);
}
.nt-net, .hm-pillar, .hm-rx, .hm-use, .hm-flow li, .p3-steps li { border-radius: var(--rv-radius-lg); }
.nt-row { border-radius: 22px; }
.nt-points li { border-radius: var(--rv-radius); font-weight: 550; }
.nt-net svg { border-radius: var(--rv-radius-sm); }
.nt-card, .vw-steps li { border-radius: var(--rv-radius-lg); border-color: var(--rv-line-dark); background: rgba(255, 255, 255, .03); }
.nt-flow-card, .vw-art { border-radius: 22px; box-shadow: var(--rv-shadow-lg); }
.nt-plan-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; box-shadow: var(--rv-shadow-lg); }
.nt-note { border-radius: var(--rv-radius); }
.vw-tag, .nt-fmt span, .hm-tags span {
  font-family: var(--rv-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  border-radius: 6px;
}
.vw-steps b { font-family: var(--rv-mono); font-weight: 500; color: var(--rv-green-lit); }
.nt-steps li::before, .p3-num { background: var(--rv-ink); font-family: var(--rv-mono); font-weight: 500; box-shadow: none; }
.nt-shot img, .p3-shot img { border-radius: var(--rv-radius); box-shadow: var(--rv-shadow); }
.nt-laptop-screen { box-shadow: var(--rv-shadow-lg); }

/* páginas generales (productos, software, contacto, nosotros…) y apps */
.pg-tags span, .pg-has-chips li {
  border-radius: 6px;
  font-family: var(--rv-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .02em;
}
.pg-product h3 { font-weight: 700; letter-spacing: -.032em; }
.pg-price, .pg-sw-price strong { font-weight: 650; color: var(--rv-ink); font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.pg-sw h3, .pg-doc h3, .pg-help h3, .pg-steps-box h3, .pg-value h3, .pg-form-card h2 { font-weight: 650; letter-spacing: -.02em; }
.pg-mv h3, .rs-io-col h3, .rs-vio-tag, .pg-has-sub {
  font-family: var(--rv-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
}
.pg-has-title { font-weight: 750; letter-spacing: -.03em; }
.pg-has-title span { color: var(--rv-blue-lit); }
.rs-points li { border-radius: var(--rv-radius-sm); }

/* selector Cloud */
.cloud-switch { border-bottom-color: var(--rv-line); }
.cloud-switch-track { border-color: var(--rv-line); background: var(--rv-bg); }
.cloud-switch-track a { font-weight: 550; color: var(--rv-ink-2); }
.cloud-switch-track a[aria-current="page"] { background: var(--rv-ink); box-shadow: 0 6px 16px -6px rgba(10, 18, 34, .45); }

/* ---------- 7. Portada ---------- */
.hm-hero .nt-wordmark { display: none; }               /* el logo ya está en el header */
.hm-page .nt-hero { padding-top: clamp(56px, 7vw, 104px); }
.hm-page .nt-hero h1 { margin-top: 26px; }
.hm-page .nt-hero h1 .vw-title { font-size: clamp(42px, 5vw, 72px); }
.hm-page .nt-hero-text { max-width: 540px; margin-top: 22px; }
.hm-devices::before { background: radial-gradient(ellipse at 50% 45%, rgba(31, 94, 245, .3), transparent 64%); }
.hm-fix { border-color: rgba(59, 224, 143, .3); background: rgba(6, 11, 22, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hm-fix strong { font-family: var(--rv-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--rv-green-lit); }

.hm-stats { margin-top: clamp(48px, 6vw, 80px); padding: 32px 0 40px; }
.hm-stats div { padding: 0 24px; }
.hm-stats dt {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 650;
  letter-spacing: -.03em;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hm-stats dd { margin-top: 10px; font-size: 13.5px; color: var(--rv-on-dark-2); }

/* pilares del ecosistema */
.hm-pillars { gap: 16px; margin-top: 48px; }
.hm-pillar { padding: 28px 26px 26px; }
.hm-pillar:hover { transform: translateY(-3px); border-color: var(--rv-line-2); box-shadow: var(--rv-shadow); }
.hm-pillar-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--rv-blue-50); border: 1px solid var(--rv-blue-100); box-shadow: none; }
.hm-pillar-icon svg { stroke: var(--rv-blue); }
.hm-pillar h3 { margin-top: 22px; font-size: 19px; }
.hm-pillar-names, .hm-use-tools { font-family: var(--rv-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .02em; color: var(--rv-blue-600); }
.hm-pillar-link { margin-top: 22px; font-weight: 600; }

/* receptores */
.hm-receivers { gap: 20px; margin-top: 48px; }
.hm-rx { transition: border-color .25s ease, box-shadow .25s ease; }
.hm-rx:hover { border-color: var(--rv-line-2); box-shadow: var(--rv-shadow); }
.hm-rx-media { background: var(--rv-night-2); }
.hm-rx-body { padding: 28px 30px 28px; }
.hm-rx h3 { font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.hm-rx li { font-weight: 500; color: var(--rv-ink-2); }
.hm-rx-foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rv-line); }
.hm-price { font-size: 26px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hm-rx-links a { font-weight: 600; }
.hm-rx-links a.hm-link-strong { border-radius: var(--rv-radius-sm); background: var(--rv-ink); transition: background-color .2s ease; }
.hm-rx-links a.hm-link-strong:hover { background: var(--rv-blue); color: #fff; }

/* apps */
.hm-app { margin-top: 72px; }
.hm-app-head h3 { font-weight: 700; letter-spacing: -.03em; }
.hm-app-head span { font-family: var(--rv-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--rv-blue-lit); }
.nt-dark .rs-shots-dots button.is-active { background: var(--rv-green-lit); }

/* flujo de trabajo */
.hm-flow { gap: 16px; margin-top: 52px; }
.hm-flow li { padding: 26px 24px 24px; background: var(--rv-surface); }
.hm-flow li::after { top: 36px; width: 8px; height: 8px; border-color: var(--rv-line-2); border-width: 1.5px 1.5px 0 0; }
.hm-flow b {
  display: inline-block;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--rv-blue);
  font-family: var(--rv-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
}
.hm-flow b::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 10px; border-radius: 2px; background: var(--rv-blue); }
.hm-flow h3 { margin-top: 18px; font-size: 19px; }

/* galería */
.hm-gallery { gap: 12px; margin-top: 48px; }
.hm-shot button { border-radius: var(--rv-radius-lg); background: var(--rv-night-2); }
.hm-shot-tag { border-radius: 6px; background: rgba(6, 11, 22, .55); color: #d9f9e8; font-family: var(--rv-mono); font-size: 11px; font-weight: 500; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hm-shot-title { font-weight: 600; }
.hm-lightbox { border-radius: var(--rv-radius-lg); background: var(--rv-night); }

/* aplicaciones */
.hm-uses { gap: 16px; margin-top: 48px; }
.hm-use { padding: 28px 26px; border-top: 1px solid var(--rv-line); border-radius: var(--rv-radius-lg); }
.hm-use h3 { font-size: 18.5px; }
.hm-use h3::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 18px; border-radius: 2px; background: var(--rv-blue); }
.hm-use li::marker { color: var(--rv-line-2); }

/* llamada final */
.nt-plan-sec { background: var(--rv-surface); }
.nt-plan-card { padding: clamp(44px, 6vw, 80px) clamp(22px, 4vw, 64px); }
.nt-plan-card .nt-h2 { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- 8. Familia editorial ---------- */
.editorial-page { --ed-blue: var(--rv-blue); --ed-ink: var(--rv-ink); --ed-muted: var(--rv-muted); }
.ed-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 6vw, 80px) 0 clamp(52px, 6vw, 80px);
  background: linear-gradient(180deg, #fff, var(--rv-bg));
  border-bottom: 1px solid var(--rv-line);
}
.ed-hero::before,
.cloud-hero::before,
.dl-hero::before,
.gs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--rv-grid-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--rv-grid-light) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 15%, transparent 72%);
}
.ed-hero h1 { font-weight: 650; letter-spacing: -.038em; line-height: 1.05; }
.ed-section h2 { font-weight: 650; letter-spacing: -.03em; }
.ed-hero .ed-lead { font-size: 18px; line-height: 1.7; }
.ed-breadcrumb, .gs-breadcrumb { font-size: 13px; color: var(--rv-muted); }
.ed-meta { font-family: var(--rv-mono); font-size: 12px; color: var(--rv-muted); }
.ed-button { border-color: var(--rv-blue); border-radius: var(--rv-radius-sm); background: var(--rv-blue); font-size: 14.5px; font-weight: 600; transition: background-color .2s ease, transform .2s ease; }
.ed-button:hover { border-color: var(--rv-blue-600); background: var(--rv-blue-600); transform: translateY(-1px); }
.ed-link { font-size: 14.5px; font-weight: 600; color: var(--rv-blue-600); }
.blog-feature { border-color: var(--rv-line); border-radius: 20px; box-shadow: var(--rv-shadow-sm); transition: box-shadow .25s ease, border-color .25s ease; }
.blog-feature:hover { border-color: var(--rv-line-2); box-shadow: var(--rv-shadow); }
.blog-feature-media { background: var(--rv-night-2); }
.blog-feature h2 { font-weight: 650; letter-spacing: -.03em; }
.article-body { font-size: 17px; }
.article-body :is(h2, h3) { letter-spacing: -.025em; }

/* ---------- 9. Cloud, Descargas y GEOStudio ---------- */
.cloud-page { --cloud-blue: var(--rv-blue); --cloud-ink: var(--rv-ink); --cloud-muted: var(--rv-muted); }
.downloads-page { --dl-blue: var(--rv-blue); --dl-ink: var(--rv-ink); --dl-muted: var(--rv-muted); }
.gs-page { --gs-ink: var(--rv-ink); --gs-muted: var(--rv-muted); --gs-blue: var(--rv-blue); --gs-line: var(--rv-line); }

.cloud-hero, .dl-hero, .gs-hero { position: relative; isolation: isolate; background: linear-gradient(180deg, #fff, var(--rv-bg)); }
.cloud-hero h1, .dl-hero h1 { font-weight: 650; letter-spacing: -.04em; line-height: 1.03; }
.gs-page h1 { font-weight: 700; letter-spacing: -.04em; }
.gs-page h2, .dl-feature h2 { font-weight: 650; letter-spacing: -.03em; }
.gs-headline { font-weight: 550; letter-spacing: -.028em; }
.cloud-hero .cloud-lead, .dl-hero .dl-lead { font-size: 18px; }

.cloud-btn { border-color: var(--rv-ink); border-radius: var(--rv-radius-sm); background: var(--rv-ink); font-size: 14.5px; font-weight: 600; }
.cloud-btn:hover { border-color: var(--rv-blue); background: var(--rv-blue); }
.cloud-btn-secondary { border-color: var(--rv-line-2); background: #fff; color: var(--rv-ink); }
.cloud-btn-secondary:hover { border-color: var(--rv-ink); background: #fff; }

.dl-jump-nav a { border-color: var(--rv-line); border-radius: var(--rv-radius-sm); font-weight: 550; box-shadow: var(--rv-shadow-sm); }
.dl-jump-nav a:hover { border-color: var(--rv-blue); background: var(--rv-blue-50); }
.dl-feature-section { background: var(--rv-bg); }
.dl-feature {
  position: relative;
  isolation: isolate;
  border-radius: 24px;
  background:
    radial-gradient(900px 420px at 90% -20%, rgba(31, 94, 245, .3), transparent 60%),
    linear-gradient(180deg, var(--rv-night-2), var(--rv-night));
  box-shadow: var(--rv-shadow-lg);
}

.gs-os-link { border-color: var(--rv-blue); border-radius: var(--rv-radius-sm); background: var(--rv-blue); }
.gs-os-link:hover { background: var(--rv-blue-600); }
.gs-os-link.gs-mac { border-color: var(--rv-line-2); color: var(--rv-ink); }
.gs-os-link.gs-mac:hover { border-color: var(--rv-ink); background: #fff; }

/* ---------- 10. Animación de entrada ---------- */
.rv-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv-reveal { opacity: 1; transform: none; transition: none; }
  .nav-dropdown, .site-header .lang-menu .language-switcher { animation: none; }
}
@media print {
  .rv-reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .whatsapp-float { position: static; }
}

/* ---------- 11. Adaptable ---------- */
@media (max-width: 1100px) {
  .site-header .lang-menu { display: none; }
  .site-header .main-nav { padding: 8px 20px 24px; border-bottom: 1px solid var(--rv-line); box-shadow: 0 24px 40px -20px rgba(10, 18, 34, .3); }
  .site-header .main-nav > a,
  .site-header .nav-group > summary {
    height: auto;
    min-height: 52px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--rv-line);
    font-size: 16px;
    font-weight: 500;
  }
  .site-header .main-nav > a[aria-current="page"],
  .site-header .nav-group.is-current > summary { border-bottom-color: var(--rv-line); color: var(--rv-blue-600); }
  .nav-dropdown { animation: none; border-left: 2px solid var(--rv-line); }
  .site-header .nav-dropdown > a { font-size: 15px; }
  .site-header .main-nav .mobile-language-switcher { gap: 8px; padding: 20px 0 0; }
  .site-header .mobile-language-switcher .lang-chip {
    gap: 8px;
    width: auto;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--rv-line);
    border-radius: var(--rv-radius-sm);
    background: #fff;
    box-shadow: none;
    font-family: var(--rv-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--rv-ink-2);
  }
  .site-header .mobile-language-switcher .lang-chip[aria-current="true"] { border-color: var(--rv-blue); background: var(--rv-blue-50); color: var(--rv-blue-600); }
  .mobile-language-switcher .lang-chip .lang-name { display: none; }
  .mobile-language-switcher .lang-chip .lang-code { display: inline; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-height: 64px; }
}
@media (max-width: 640px) {
  .site-header .brand img { width: 118px; }
  .nt-sec { padding: 64px 0; }
  .nt-lead, .nt-hero-text { font-size: 16.5px; }
  .hm-stats div { padding: 0 16px; }
  .hm-rx-body { padding: 24px 22px; }
  .site-footer { padding-top: 64px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { margin-top: 44px; }
}
