/* ============================================================
   MONLO® — Plataforma SaaS & Telemetría IoT Enterprise 2026
   Azul Corporativo: #13589B | Naranja: #F5874F (#F07F3C) | Blanco: #FEFEFE
   Raleway (Títulos & Gráficos) + Roboto (Cuerpo, UI & Tablas)
   ============================================================ */
:root {
  --blue: #13589B;
  --blue-dark: #0E4275;
  --blue-deep: #092E53;
  --blue-light: #1E6FBE;
  --blue-50: #EAF2FA;
  --blue-100: #D3E4F5;

  --orange: #F5874F;
  --orange-accent: #F07F3C;
  --orange-dark: #B25517;
  --orange-50: #FEF3EB;

  --ink: #14212E;
  --ink-2: #33455A;
  --muted: #64748B;
  --bg: #FFFFFF;
  --bg-alt: #F6F9FC;
  --border: #E3EAF2;
  --border-2: #CFDBE8;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 14px;
  --sp-4: 20px;
  --sp-5: 28px;
  --sp-6: 38px;
  --sp-7: 52px;
  --sp-8: 68px;

  --maxw: 1200px;
  --t: 180ms;
  --ease: cubic-bezier(.4, 0, .2, 1);

  --font-h: 'Raleway', system-ui, sans-serif;
  --font-b: 'Roboto', system-ui, sans-serif;

  --shadow: 0 1px 2px rgba(20, 33, 46, .05), 0 8px 24px -12px rgba(20, 33, 46, .14);
  --shadow-lg: 0 20px 50px -24px rgba(19, 88, 155, .35);
  --shadow-xl: 0 30px 70px -30px rgba(4, 16, 30, .7);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-h);
  line-height: 1.18;
  margin: 0;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip:focus {
  left: 0;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* Rejillas de dos columnas del contenido.
   Venían escritas en style="" dentro de page_sections, y un atributo inline
   gana a cualquier regla de esta hoja: a 390px las dos columnas no encogían
   —el min-content de sus hijos ronda los 200px— y la página desbordaba. Al
   vivir aquí, el ancho vuelve a ser decisión de la hoja de estilos y colapsa
   solo. El gap se queda en el contenido porque varía por sección. */
.grid-2      { grid-template-columns: 1fr 1fr; }
.grid-2-wide { grid-template-columns: 1.2fr .8fr; }

@media (max-width: 600px) {
  .grid-2,
  .grid-2-wide { grid-template-columns: 1fr; }
}

section {
  padding: clamp(60px, 8vh, 88px) 0;
  position: relative;
}

.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--font-h);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-3);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  flex: none;
}

.center-head {
  text-align: center;
  margin-inline: auto;
}

.center-head .eyebrow {
  justify-content: center;
}

.s-head {
  max-width: 800px;
  margin-bottom: var(--sp-5);
}

.s-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: var(--sp-3);
}

.s-head p {
  color: var(--ink-2);
  font-size: 16.5px;
  max-width: 68ch;
  line-height: 1.65;
}

/* ---------- Marca ---------- */
.logo-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: none;
}

.logo-svg {
  height: 34px;
  width: auto;
}

.logo-sub {
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: -.01em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 25px;
  border-radius: var(--radius);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
              color var(--t) var(--ease), transform var(--t) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13.5px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-accent {
  background: var(--orange);
  color: #1A0D04;
  box-shadow: 0 4px 14px rgba(245, 135, 79, 0.4);
}

.btn-accent:hover {
  background: #E2712E;
  color: #1A0D04;
}

.btn-ghost {
  background: #fff;
  color: var(--blue);
  border-color: var(--border-2);
}

.btn-ghost:hover {
  border-color: var(--blue);
  background: var(--blue-50);
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.btn-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

/* ---------- Barra Offline y Estado ---------- */
.offline-bar {
  display: none;
  background: #B25517;
  color: #fff;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.offline-bar.active {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Aviso de precios actualizados. Reutiliza la barra de sin-conexión porque es
   el mismo gesto —algo cambió, míralo— y sólo cambia el color: informa, no
   alarma. Aparece únicamente cuando no se puede recargar sola sin borrarle al
   visitante lo que estaba escribiendo. */
.price-bar {
  background: #13589B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.price-bar button {
  background: #fff;
  color: #13589B;
  border: 0;
  border-radius: var(--radius);
  padding: 5px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: 72px;
}

.nav-links {
  display: flex;
  gap: var(--sp-4);
  margin-left: auto;
  align-items: center;
}

.nav-links > a, .nav-drop-btn {
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 2px;
  position: relative;
  transition: color var(--t) var(--ease);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-links > a:hover, .nav-drop-btn:hover {
  color: var(--blue);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  width: 280px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 120;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  transition: background var(--t) var(--ease);
}

.nav-dropdown-menu a:hover {
  background: var(--blue-50);
}

.nav-dropdown-menu a b {
  font-size: 13.5px;
  color: var(--blue);
  font-family: var(--font-h);
}

.nav-dropdown-menu a span {
  font-size: 11.5px;
  color: var(--muted);
}

.nav-cta {
  margin-left: var(--sp-2);
  white-space: nowrap;
}

.burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--border-2);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}

.burger svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   BANDAS FOTOGRÁFICAS CON PARALLAX
   ============================================================ */
.ph {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #040C18;
  min-height: clamp(440px, 62vh, 660px);
  display: flex;
  align-items: center;
}

.ph-media {
  position: absolute;
  inset: -24% -6%;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.ph-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
}

/* Velos de contraste de alta fidelidad */
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 10, 20, 0.96) 0%, rgba(4, 14, 26, 0.90) 50%, rgba(6, 17, 30, 0.60) 80%, rgba(6, 17, 30, 0.40) 100%);
}

.ph.tone-bright::after {
  background: linear-gradient(90deg, rgba(3, 10, 20, 0.97) 0%, rgba(4, 14, 26, 0.93) 50%, rgba(6, 17, 30, 0.62) 80%, rgba(6, 17, 30, 0.42) 100%);
}

.ph.center::after {
  background: linear-gradient(180deg, rgba(3, 10, 20, 0.93) 0%, rgba(4, 14, 26, 0.85) 50%, rgba(3, 10, 20, 0.95) 100%);
}

.ph-in {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(56px, 8vh, 80px);
  padding-bottom: clamp(56px, 8vh, 80px);
}

.ph.center .ph-in {
  text-align: center;
}

.ph.center .s-head {
  margin-inline: auto;
}

.ph.center .eyebrow {
  justify-content: center;
}

.ph h1, .ph h2, .ph h3 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ph p {
  color: #D6E8FA;
  line-height: 1.68;
}

.ph .eyebrow {
  color: #FFD8BF;
}

.ph .eyebrow::before {
  background: var(--orange);
}

/* ============================================================
   HERO CON VIDEO RESILIENTE & HUD TELEMÁTICO (OSCURECIDO 25%)
   ============================================================ */
.hero {
  min-height: clamp(560px, 85vh, 800px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #02070E;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 6, 14, 0.98) 0%, rgba(3, 8, 18, 0.94) 45%, rgba(4, 10, 22, 0.82) 75%, rgba(4, 10, 22, 0.65) 100%);
}

.hero .ph-media {
  filter: brightness(0.75);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  filter: brightness(0.75);
  transition: opacity 1s ease-in-out;
}

.hero-video.loaded {
  opacity: 1;
}

.hero-in {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--sp-6);
  align-items: center;
  padding-top: clamp(60px, 9vh, 96px);
  padding-bottom: clamp(60px, 9vh, 96px);
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-content h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.15;
  color: #FFFFFF !important;
  margin-bottom: var(--sp-4);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hero-content h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-content .lede {
  font-size: 18px;
  line-height: 1.6;
  color: #FFFFFF;
  font-weight: 500;
  margin-bottom: var(--sp-3);
  max-width: 64ch;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-geo {
  margin-bottom: var(--sp-4);
}

.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #EAF2FA;
  backdrop-filter: blur(8px);
}

.hero-cta {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.hero-microcopy-sub {
  font-size: 13px;
  color: #FFD8BF;
  margin-bottom: var(--sp-4);
}

.hero-microcopy-sub a {
  text-decoration: underline;
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat b {
  display: block;
  font-family: var(--font-h);
  font-size: 19px;
  font-weight: 900;
  color: #FFFFFF;
}

.stat span {
  font-size: 11.8px;
  color: #CBDDEF;
  line-height: 1.35;
  display: block;
}

/* Panel HUD de Monitoreo Dinámico */
.panel {
  position: relative;
  z-index: 3;
  background: rgba(3, 14, 30, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.pb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27AE60;
  box-shadow: 0 0 8px #27AE60;
}

.pb-live {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #A5C8E8;
  text-transform: uppercase;
}

.map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #09192C;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prow-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.prow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #fff;
}

.prow .id {
  font-weight: 600;
  color: #D6E8FA;
}

.prow .v {
  font-family: monospace;
  font-weight: 700;
  color: #FFD8BF;
}

.tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 4px;
}

.tag-ok {
  background: rgba(39, 174, 96, 0.2);
  color: #2ECC71;
  border: 1px solid rgba(39, 174, 96, 0.4);
}

.tag-warn {
  background: rgba(240, 127, 60, 0.2);
  color: #F5874F;
  border: 1px solid rgba(240, 127, 60, 0.4);
}

.tag-idle {
  background: rgba(149, 165, 166, 0.2);
  color: #BDC3C7;
  border: 1px solid rgba(149, 165, 166, 0.4);
}

.panel-note {
  font-size: 11px;
  color: #8CAAC8;
  text-align: center;
}

/* ============================================================
   CALCULADORA DE PRECIOS & TABLAS SAAS
   ============================================================ */
.pricing-hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 60%, var(--blue) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.pricing-controls {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.calc-slider-group {
  flex: 1;
  min-width: 280px;
}

.calc-slider-group label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--blue-100);
  outline: none;
  accent-color: var(--orange);
}

.currency-toggle {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px;
}

.curr-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: none;
  background: transparent;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--t) var(--ease);
}

.curr-btn.active {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}

.p-plan-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: all var(--t) var(--ease);
  position: relative;
}

.p-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.p-plan-card.popular {
  border-color: var(--orange);
  border-width: 2px;
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #1a0800;
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

.plan-head h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
  min-height: 40px;
}

.plan-price {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.plan-price .amount {
  font-family: var(--font-h);
  font-size: 36px;
  font-weight: 900;
  color: var(--blue-dark);
}

.plan-price .period {
  font-size: 13px;
  color: var(--muted);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.plan-features li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.plan-features li svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex: none;
  margin-top: 2px;
}

/* ============================================================
   COMPATIBILIDAD & BUSCADOR
   ============================================================ */
.compat-search-box {
  max-width: 600px;
  margin: 0 auto var(--sp-6);
  position: relative;
}

.compat-input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  border: 2px solid var(--border-2);
  border-radius: 30px;
  font-size: 15px;
  font-family: var(--font-b);
  outline: none;
  transition: border-color var(--t) var(--ease);
}

.compat-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-50);
}

.compat-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.brand-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.brand-card strong {
  display: block;
  font-family: var(--font-h);
  font-size: 17px;
  color: var(--blue);
  margin-bottom: 6px;
}

.brand-card p {
  font-size: 13px;
  color: var(--ink-2);
}

/* ============================================================
   MAPA SVG LATINOAMÉRICA
   ============================================================ */
.latam-map-wrap {
  background: #09192C;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}

.svg-map {
  width: 100%;
  max-height: 480px;
}

.map-country {
  fill: #13589B;
  stroke: #09192C;
  stroke-width: 1.5;
  transition: fill var(--t) var(--ease), transform var(--t) var(--ease);
  cursor: pointer;
}

.map-country:hover, .map-country.active {
  fill: var(--orange);
}

/* ============================================================
   BREADCRUMBS & PÁGINAS LEGALES / SLA
   ============================================================ */
.breadcrumb {
  padding: 16px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.breadcrumb-list {
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb-list li+li::before {
  content: "/";
  color: var(--muted);
  margin-right: 8px;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--sp-6) 0;
}

.legal-content h2 {
  font-size: 22px;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-content p, .legal-content li {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 18px;
}

.sla-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.sla-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.sla-table th, .sla-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
}

.sla-table th {
  background: var(--blue-50);
  font-family: var(--font-h);
  font-weight: 700;
  color: var(--blue-dark);
}

/* ============================================================
   MODAL & COOKIE BANNER
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  visibility: hidden;
  opacity: 0;
  transition: visibility var(--t), opacity var(--t) var(--ease);
}

.modal.open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 22, 0.85);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--t) var(--ease);
}

.modal.open .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 12.5px;
  font-weight: 700;
}

.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  font-family: var(--font-b);
  font-size: 14px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(4, 12, 24, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 0;
  z-index: 250;
  backdrop-filter: blur(12px);
  color: #fff;
}

.cb-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cb-text strong {
  display: block;
  font-family: var(--font-h);
  font-size: 14px;
  margin-bottom: 2px;
}

.cb-text p {
  font-size: 12.5px;
  color: #CBDDEF;
  /* 65ch es la medida de lectura; el min() evita que la imponga cuando la
     pantalla es más estrecha. (No era la causa del scroll horizontal en móvil:
     el aviso es position:fixed y en móvil se estira hasta el ancho desbordado
     de la página, así que aparecía en las medidas como síntoma, no como causa.) */
  max-width: min(65ch, 100%);
}

.cb-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  /* Tres botones en fila no caben en un móvil estrecho. Apilados siguen
     siendo tres opciones igual de visibles, que es lo que exige el consentimiento. */
  .cb-actions {
    width: 100%;
  }
  .cb-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ============================================================
   PIE DE PÁGINA
   ============================================================ */
footer {
  background: #040C18;
  color: #fff;
  padding: var(--sp-8) 0 var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.f-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.f-brand p {
  color: #CBDDEF;
  font-size: 13.5px;
  line-height: 1.6;
  margin: var(--sp-3) 0;
}

.f-legal-note {
  font-size: 12px !important;
  color: #8CAAC8 !important;
  border-left: 2px solid var(--orange);
  padding-left: 10px;
}

.f-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.f-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.8px;
  color: #CBDDEF;
}

.f-contact li svg {
  color: var(--orange);
  flex: none;
  margin-top: 2px;
}

footer h4 {
  font-size: 14px;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.f-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f-links a {
  font-size: 13.5px;
  color: #CBDDEF;
  transition: color var(--t) var(--ease);
}

.f-links a:hover {
  color: var(--orange);
}

.f-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #8CAAC8;
  flex-wrap: wrap;
  gap: 12px;
}

.f-bot-links {
  display: flex;
  gap: 16px;
}

.f-bot-links a {
  color: #CBDDEF;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-in {
    grid-template-columns: 1fr;
  }
  .pricing-grid, .brands-grid, .f-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .latam-map-wrap {
    grid-template-columns: 1fr;
  }

  /* El menú horizontal completo no cabe por debajo de 1024px. Colapsaba a
     hamburguesa sólo a partir de 768px, así que en la franja intermedia —un
     iPad en vertical mide 834px— la barra empujaba la página 182px a la
     derecha y aparecía scroll horizontal en TODAS las páginas.
     Se sube el punto de corte al mismo 1024px donde ya se reorganiza el resto
     del layout; el aspecto en escritorio y en móvil no cambia. */
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-3) var(--sp-4);
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0 0 0 12px;
  }
  .burger {
    display: grid;
  }
}

@media (max-width: 768px) {
  .pricing-grid, .brands-grid, .f-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-cols {
    grid-template-columns: 1fr;
  }
  .f-bot {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   PROMOCIONES (Compas V2) — PromotionCard + lightbox
   Additive. Reuses the site's tokens; no existing rule changes.
   ============================================================ */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 8px 0 24px; }
.promo-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.promo-card.promo-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px, 420px) 1fr; }
.promo-card.promo-compact .promo-thumb img { aspect-ratio: 1 / 1; }
.promo-thumb { display: block; width: 100%; padding: 0; border: 0; background: var(--blue-50); cursor: zoom-in; position: relative; }
.promo-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.promo-thumb::after { content: 'Ampliar'; position: absolute; right: 12px; bottom: 12px; background: rgba(9,46,83,.85); color: #fff; font-family: var(--font-h); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; opacity: 0; transition: opacity var(--t) var(--ease); }
.promo-thumb:hover::after, .promo-thumb:focus-visible::after { opacity: 1; }
.promo-thumb:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.promo-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.promo-eyebrow { font-family: var(--font-h); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); }
.promo-title { font-family: var(--font-h); font-size: 20px; line-height: 1.25; color: var(--blue-deep); margin: 0; }
.promo-featured .promo-title { font-size: 26px; }
.promo-sub, .promo-desc { margin: 0; color: var(--ink-2, #475569); font-size: 15px; line-height: 1.55; }
.promo-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-top: 4px; }
.promo-price-ref { text-decoration: line-through; color: #64748B; font-size: 15px; }
.promo-price-main { font-family: var(--font-h); font-weight: 800; font-size: 28px; color: var(--blue); letter-spacing: -0.01em; }
.promo-featured .promo-price-main { font-size: 34px; }
.promo-badge { background: var(--orange); color: #1A0D04; font-family: var(--font-h); font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.promo-price-tax, .promo-price-note { flex-basis: 100%; font-size: 13px; color: #475569; }
.promo-price-breakdown { flex-basis: 100%; font-size: 12px; color: #64748B; }
.promo-validity { font-size: 13px; color: #475569; }
.promo-cta { align-self: flex-start; background: var(--blue); color: #fff; }
.promo-cta:hover { background: var(--blue-dark); }
.promo-disclaimer { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: #64748B; border-top: 1px solid var(--border); padding-top: 10px; }
.promo-empty { text-align: center; color: #475569; padding: 40px 20px; border: 1px dashed var(--border); border-radius: var(--radius); }
@media (max-width: 720px) { .promo-card.promo-featured { grid-template-columns: 1fr; } }

.promo-lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(9,46,83,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.promo-lightbox[data-open="1"] { display: flex; }
.promo-lightbox-figure { margin: 0; max-width: min(96vw, 900px); max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.promo-lightbox img { max-width: 100%; max-height: 80vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; }
.promo-lightbox figcaption { color: #fff; font-size: 14px; text-align: center; }
.promo-lightbox-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.promo-lightbox-close:focus-visible { outline: 3px solid var(--orange); }
@media (prefers-reduced-motion: no-preference) { .promo-lightbox img { animation: promo-in .18s ease-out; } @keyframes promo-in { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } } }
