/* ===== Vision Global · tokens ===== */
/* Paleta oficial del logo: azules corporativos + dorado de acento + blanco/negro.
   --primary es el azul de marca, --accent el dorado. Mantiene identidad Vision Global. */
:root {
  --bg: #F2F2F2;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #636284;
  --primary: #0820A6;
  --primary-deep: #020873;
  --primary-mid: #0420BF;
  --accent: #F2B807;
  --success: #16a34a;
  --warn: #d97706;
  --border: #e2e3e7;
  --shadow: 0 8px 24px rgba(2, 8, 115, 0.08);
  --shadow-lg: 0 24px 60px rgba(2, 8, 115, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --grad: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  --maxw: 1380px;
  --font-ui: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --btn-solid-bg: var(--ink);
  --btn-solid-fg: #fff;
}

[data-theme="dark"] {
  --bg: #050d3a;
  --bg-soft: #020873;
  --bg-card: #0a1660;
  --ink: #F2F2F2;
  --ink-soft: #8889ac;
  --primary: #F2B807;
  --primary-deep: #F2F2F2;
  --primary-mid: #F2B807;
  --accent: #ffffff;
  --border: #1a2470;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7);
  --btn-solid-bg: var(--ink);
  --btn-solid-fg: var(--bg);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

:hover { transition: all .25s ease; }

/* ===== Tipografía base ===== */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 44px); }
.section-sub { color: var(--ink-soft); max-width: 56ch; }

/* ===== Layout ===== */
.main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head .section-title { margin-bottom: 14px; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px) saturate(140%);
  background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 8px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.35);
}
.brand-logo svg { width: 22px; height: 22px; fill: #fff; }
.brand-logo--img { background: none; box-shadow: none; width: auto; height: auto; display: flex; align-items: center; }
.brand-logo--img img { height: 75px; width: auto; }
.brand-logo-light { display: block; }
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }
.brand-name span { color: var(--primary); }

.nav { display: flex; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--primary); transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: all .25s ease;
}
.theme-toggle:hover, .menu-btn:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .svg, .theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

.menu-btn { display: none; }

/* ===== Hero · cartel de ruta ===== */
.hero-bg-section {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  margin: 24px 0 42px;
  padding: 56px 64px 64px;
  min-height: 650px;
  background-color: #020873;
  background-image: url('../imagenes/hero_banner.png');
  background-size: cover;
  background-position: center 20%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 8, 115, 0.58) 0%,
    rgba(2, 8, 115, 0.25) 50%,
    rgba(2, 8, 115, 0.62) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 20px 36px;
  align-items: start;
}

/* El bloque de texto ocupa la celda superior izquierda */
.hero-text { grid-column: 1; grid-row: 1; }

/* El badge ocupa la celda superior derecha, centrado verticalmente */
.hero-badge-standalone { grid-column: 2; grid-row: 1 / 3; align-self: center; }

/* Los botones van bajo el texto, en la segunda fila izquierda */
.hero-cta { grid-column: 1; grid-row: 2; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-text {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  max-width: 380px;
}

.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.1; letter-spacing: -0.02em;
  margin: 6px 0 12px;
}
.eyebrow-light {
  color: #F2B807;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: 8px;
  display: block;
}
.hero-title-light { color: #ffffff; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(2, 8, 115, 0.9); }
.hero-title-light em { color: #F2B807; font-style: italic; font-weight: 500; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.hero-lede-light { color: #ffffff; font-size: 15px; line-height: 1.45; max-width: 360px; margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.8); }


.btn-hero-primary,
.btn-hero-outline,
.hero-cta .btn-hero-primary,
.hero-cta .btn-hero-outline {
  background: rgba(8, 32, 166, 0.7);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  opacity: 0.7;
  transition: all .25s ease;
}

.btn-hero-primary:hover,
.btn-hero-outline:hover,
.hero-cta .btn-hero-primary:hover,
.hero-cta .btn-hero-outline:hover {
  background: #0820A6;
  border-color: #ffffff;
  color: #ffffff;
  opacity: 1;
  box-shadow: 0 8px 25px rgba(8, 32, 166, 0.65);
  transform: translateY(-2px);
}

.hero-badge-standalone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0;
  align-self: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-right: 80px;
}
.badge-seal {
  width: clamp(100px, 9vw, 130px); aspect-ratio: 1;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
  animation: sealSpin 40s linear infinite;
}
.badge-seal svg { width: 100%; height: 100%; }
.seal-ring { fill: none; stroke: #F2B807; stroke-width: 2.5; }
.seal-inner { fill: #020873; }
.seal-top { font-family: var(--font-ui); font-size: 9px; font-weight: 600; letter-spacing: 0.12em; fill: #ffffff; }
.seal-num { font-family: var(--font-display); font-size: 32px; font-weight: 700; fill: #ffffff; }
.seal-unit { font-size: 10px; font-weight: 600; letter-spacing: 0.15em; fill: #F2B807; }
.seal-sub { font-size: 8px; letter-spacing: 0.1em; fill: rgba(255,255,255,0.85); }
.badge-caption-light { font-size: 10px; color: rgba(255, 255, 255, 0.9); letter-spacing: 0.05em; font-weight: 600; text-transform: uppercase; text-align: center; }

.hero-strip-glass {
  list-style: none; margin-top: 12px; padding: 22px 28px;
  background: rgba(2, 8, 115, 0.70); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.hero-strip-glass li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.hero-strip-glass strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #ffffff; }

@keyframes sealSpin { to { transform: rotate(360deg); } }

/* ===== Botones ===== */
.btn-solid, .btn-outline {
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .25s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-solid {
  background: var(--btn-solid-bg); color: var(--btn-solid-fg); border-color: var(--btn-solid-bg);
}
.btn-solid:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-outline {
  background: transparent; color: var(--ink); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--ink); background: var(--bg-soft); }
.btn-block { width: 100%; }
.btn-start {
  font-family: var(--font-ui); font-weight: 700; font-size: 16px;
  padding: 15px 44px; border-radius: 999px; cursor: pointer;
  background: #F2B807; color: #020873; border: none;
  box-shadow: 0 6px 24px rgba(242, 184, 7, 0.4);
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  position: relative; overflow: hidden;
}
.btn-start::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .5s ease;
}
.btn-start:hover:not(:disabled)::after { transform: translateX(100%); }
.btn-start:hover:not(:disabled) {
  background: #ffffff;
  color: #020873;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 255, 255, 0.45);
}
.btn-start:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-start .spinner { margin-right: 6px; }

/* ===== Speedtest ===== */
.speedtest-card {
  max-width: 680px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 48px 40px 40px; border-radius: 28px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.st-header {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.st-logo { height: 64px; width: auto; object-fit: contain; }
.st-logo-dark { display: none; }
[data-theme="dark"] .st-logo-light { display: none; }
[data-theme="dark"] .st-logo-dark { display: block; }
.st-header-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
  margin-left: auto;
}
.st-header-title svg {
  width: 20px; height: 20px; fill: #fff;
  background: var(--primary); border-radius: 50%;
  padding: 6px; box-sizing: content-box;
}
.speedtest-card::before {
  content: ''; position: absolute; top: -60%; left: -20%; width: 140%; height: 100%;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--primary) 7%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.st-gauge-area {
  position: relative; width: clamp(220px, 36vw, 280px); aspect-ratio: 1;
}
.st-gauge-svg { width: 100%; height: 100%; }
.gauge-track {
  fill: none; stroke: color-mix(in srgb, var(--ink) 7%, transparent);
  stroke-width: 12;
}
.gauge-progress {
  fill: none; stroke: url(#grad); stroke-width: 12; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: center;
  stroke-dasharray: 0 1000; transition: stroke-dasharray .4s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--primary) 50%, transparent));
}
.st-gauge-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.gauge-value { font-family: var(--font-display); font-size: clamp(48px, 8vw, 68px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.gauge-unit { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; font-weight: 600; }
.gauge-label { font-size: 13px; color: var(--ink-soft); margin-top: 8px; max-width: 80%; font-weight: 500; }

.speed-steps { display: flex; gap: 8px; width: 100%; max-width: 380px; }
.speed-step {
  flex: 1; text-align: center; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); padding: 8px 6px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-soft);
  transition: all .35s cubic-bezier(.2,.8,.2,1);
}
.speed-step.active {
  color: #fff; background: var(--grad);
  border-color: transparent; box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 40%, transparent);
  transform: scale(1.04);
}

.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%;
}
.metric {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.metric:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  box-shadow: var(--shadow);
}
.metric-top { display: flex; align-items: center; gap: 7px; }
.metric-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  transition: transform .3s ease;
}
.metric:hover .metric-icon { transform: scale(1.1); }
.icon-ping { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.icon-jitter { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.icon-down { background: color-mix(in srgb, var(--success) 10%, transparent); }
.icon-up { background: color-mix(in srgb, #8b5cf6 10%, transparent); }
.icon-ping svg { width: 14px; height: 14px; fill: var(--primary); }
.icon-jitter svg { width: 14px; height: 14px; fill: var(--accent); }
.icon-down svg { width: 14px; height: 14px; fill: var(--success); }
.icon-up svg { width: 14px; height: 14px; fill: #8b5cf6; }
.metric-label { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }
.metric-value { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.metric-value small { font-family: var(--font-ui); font-size: 11px; color: var(--ink-soft); font-weight: 500; }

.server-info {
  display: grid; gap: 6px; padding: 14px 18px; width: 100%;
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 14px;
}
.server-info-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.server-info-main span { color: var(--ink-soft); flex-shrink: 0; font-size: 13px; }
.server-info-main b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.server-info-mini { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.server-info-mini span { color: var(--ink-soft); }
.server-info-mini b { font-weight: 600; color: var(--ink); }

.server-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
  transition: background .3s ease;
}
.server-dot.testing { background: var(--accent); animation: dotPulse 1s ease-in-out infinite; }
.server-dot.on { background: var(--success); box-shadow: 0 0 8px color-mix(in srgb, var(--success) 50%, transparent); }
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.85); } }

/* ===== Servicios ===== */
.services-grid {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.service-card-media {
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: var(--bg-soft);
}
.service-card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.service-card-media img.object-sube-160 {
  object-position: center -80px;
}
.service-card-media img.object-pos-bottom {
  object-position: center 60%;
}
.service-card-media img.object-fit-contain {
  object-fit: contain;
  background: #02084c;
  padding: 4px;
}
.service-card:hover .service-card-media img {
  transform: scale(1.06);
}
.service-badge {
  position: absolute; top: 14px; right: 14px;
  background: color-mix(in srgb, var(--primary-deep) 85%, transparent);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.2);
}
.service-card-body {
  padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.service-card-head {
  display: flex; justify-content: space-between; align-items: center;
}
.service-num {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--primary); font-feature-settings: "tnum";
}
.service-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  display: grid; place-items: center; flex-shrink: 0;
}
.service-icon svg { width: 22px; height: 22px; fill: var(--primary); }
.service-card-body h3 { font-size: 22px; font-weight: 700; margin-top: 4px; }
.service-card-body p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* ===== Planes ===== */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 380px)); gap: 20px; justify-content: center; overflow: visible; }
.plans .plan { width: 100%; }
.plan {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 18px);
  padding: 28px; display: flex; flex-direction: column; gap: 20px; position: relative;
}
.plan.featured { border-color: var(--primary); border-width: 2px; box-shadow: var(--shadow); }
.plan-flag {
  position: absolute; top: -12px; left: 28px;
  background: var(--primary); color: var(--bg); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.plan-head { display: flex; flex-direction: column; gap: 4px; }
.plan-name { font-size: 18px; font-weight: 600; }
.plan-price { font-family: var(--font-display); font-size: 44px; font-weight: 600; line-height: 1; }
.plan-price .cur { font-size: 22px; color: var(--ink-soft); margin-right: 2px; }
.plan-price small { font-family: var(--font-ui); font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-features li {
  font-size: 15px; color: var(--ink); padding-left: 24px; position: relative;
}
.plan-features li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: color-mix(in srgb, var(--primary-deep) 18%, transparent);
}
.plan-features li::after {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 6px; height: 3px; border-left: 2px solid var(--primary-deep); border-bottom: 2px solid var(--primary-deep);
  transform: rotate(-45deg);
}
.plans-foot { margin-top: 28px; font-size: 15px; color: var(--ink-soft); }
.plans-foot a { color: var(--primary); font-weight: 600; border-bottom: 1px solid var(--primary); }

/* ===== Mapa · signature ===== */
.coverage { display: flex; flex-direction: column; gap: 24px; }
.coverage-embed {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.coverage-embed iframe {
  width: 100%; height: 420px; border: 0; display: block; border-radius: var(--radius-sm);
}

/* ===== Contacto ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: stretch;
}

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #020873 0%, #0820A6 100%);
  border: 1px solid rgba(242, 184, 7, 0.35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(2, 8, 115, 0.3);
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  fill: #F2B807;
}

.contact-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}

.contact-item p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.contact-item a:not(.btn) {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  transition: all .2s ease;
}

.contact-item a:not(.btn):hover {
  color: #F2B807;
  border-bottom-color: #F2B807;
}

.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-soft); }
.form-control {
  font-family: var(--font-ui); font-size: 15px;
  padding: 13px 16px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control::placeholder { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }
.form-control:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
textarea.form-control { resize: vertical; min-height: 110px; }

.form-msg {
  font-size: 15px; padding: 12px 16px; border-radius: 10px;
  opacity: 0; height: 0; overflow: hidden; transition: opacity .25s ease;
}
.form-msg.error { background: color-mix(in srgb, #ef4444 10%, transparent); color: #b91c1c; border: 1px solid #ef4444; opacity: 1; height: auto; }
.form-msg.success { background: color-mix(in srgb, var(--primary-deep) 12%, transparent); color: var(--primary-deep); border: 1px solid color-mix(in srgb, var(--primary-deep) 50%, transparent); opacity: 1; height: auto; }

.form-sales-banner {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(8, 32, 166, 0.06);
}
.form-sales-banner p { margin: 0; }
.form-sales-banner a {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1.5px solid var(--primary);
  transition: color 0.2s;
}
.form-sales-banner a:hover {
  color: var(--primary-mid);
}

/* ===== Footer ===== */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); margin-top: 80px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 36px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 310px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.brand-footer { font-size: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--primary); }
.footer-strip {
  border-top: 1px solid var(--border);
  max-width: var(--maxw); margin: 0 auto; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  position: relative;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); display: grid; place-items: center;
  color: var(--ink-soft);
}
.socials a:hover { color: var(--primary); border-color: var(--primary); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.copyright { font-size: 13px; color: var(--ink-soft); position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }

/* ===== Spinner ===== */
.spinner {
  display: inline-block; width: 15px; height: 15px; vertical-align: middle;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Fade-in y Reveal Scroll Animations ===== */
.fade-in {
  opacity: 0; transform: translateY(16px);
  animation: fadeIn .6s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Micro-animación flotante de imagen hero */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Micro-animación de giro continuo en el sello conmemorativo */
@keyframes sealRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.badge-seal svg {
  animation: sealRotate 28s linear infinite;
  transform-origin: center;
}

/* Micro-interacción en iconos al pasar el cursor */
.story-card:hover .story-icon,
.mv-card:hover .mv-icon,
.value-card:hover .value-icon {
  transform: scale(1.12) rotate(5deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.story-icon, .mv-icon, .value-icon {
  transition: transform 0.3s ease;
}

/* ===== Página Nosotros (Misión y Visión) ===== */
.nav a.nav-link--active {
  color: var(--primary);
  font-weight: 700;
}
.nav a.nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.hero-media-card {
  position: relative;
  align-self: center;
}
.hero-media-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.hero-media-img {
  width: 100%;
  max-width: 480px;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .5s ease;
}
.hero-media-wrap:hover .hero-media-img {
  transform: scale(1.03);
}
.hero-badge-overlay {
  position: absolute;
  bottom: 14px;
  right: 14px;
  backdrop-filter: blur(12px);
  background: rgba(2, 8, 115, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.hero-badge-overlay .badge-seal {
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  margin: 0;
  flex-shrink: 0;
}
.hero-badge-overlay .seal-num {
  font-size: 18px;
}
.hero-badge-overlay .seal-unit {
  font-size: 6px;
}
.hero-badge-overlay .seal-sub {
  font-size: 5px;
}
.hero-badge-overlay .badge-caption-light {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== Video Showcase (Vertical) ===== */
.video-showcase-section {
  padding: 64px 0;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 64px rgba(2, 8, 115, 0.22);
}
.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  aspect-ratio: 9 / 16;
  max-height: 640px;
}
.promo-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  display: block;
}

/* ===== Quiénes Somos Story Grid ===== */
.about-story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.story-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  display: grid;
  place-items: center;
}
.story-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}
.story-icon--gold {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.story-icon--gold svg {
  fill: var(--accent);
}
.story-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.story-card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.mv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.mv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
}
.mv-card--vision::before {
  background: linear-gradient(135deg, var(--accent) 0%, #eab308 100%);
}
.mv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mv-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}
.mv-badge--gold {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--ink);
}
[data-theme="dark"] .mv-badge--gold {
  color: var(--accent);
}
.mv-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  display: grid;
  place-items: center;
}
.mv-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}
.mv-icon--gold {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.mv-icon--gold svg {
  fill: var(--accent);
}
.mv-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.mv-text {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}
.mv-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  border-top: 1px dashed var(--border);
  padding-top: 18px;
}
.mv-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}
.mv-list li svg {
  width: 20px;
  height: 20px;
  fill: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== Valores Grid ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #020873 0%, #0820A6 100%);
  border: 1px solid rgba(242, 184, 7, 0.35);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(2, 8, 115, 0.3);
}
.value-icon svg {
  width: 24px;
  height: 24px;
  fill: #F2B807;
}

/* ===== Trayectoria / Timeline ===== */
.history-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .3s ease;
}
.timeline-item:hover {
  transform: translateY(-3px);
}
.timeline-item--current {
  border-color: #F2B807;
  background: color-mix(in srgb, var(--bg-card) 92%, #F2B807);
}
.timeline-year {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 16px;
  background: #F2B807;
  color: #020873;
  font-weight: 800;
  font-size: 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(242, 184, 7, 0.35);
}
.timeline-item--current .timeline-year {
  background: #ffffff;
  color: #020873;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.35);
}
.timeline-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.timeline-content p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ===== About CTA ===== */
.about-cta-section {
  padding: 40px 0 88px;
  border-top: none;
}
.about-cta-card {
  background: linear-gradient(135deg, #020873 0%, #0420BF 50%, #0820A6 100%);
  border-radius: 24px;
  padding: 48px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(2, 8, 115, 0.4);
  position: relative;
  overflow: hidden;
}
.about-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(242, 184, 7, 0.12) 0%, transparent 65%);
  pointer-events: none;
}
.about-cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.about-cta-text p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 54ch;
}
.about-cta-buttons {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  z-index: 2;
}
.about-cta-buttons .btn-solid {
  background: #F2B807;
  color: #020873;
  border-color: #F2B807;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.about-cta-buttons .btn-solid:hover {
  background: #ffffff;
  color: #020873;
  border-color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.4);
}
.about-cta-buttons .btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  font-weight: 600;
}
.about-cta-buttons .btn-outline:hover {
  background: #ffffff;
  color: #020873;
  border-color: #ffffff;
}

/* ===== Galería de Infraestructura y Tecnología ===== */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.infra-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.infra-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.infra-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.infra-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.infra-card-media img.object-top {
  object-position: center top;
}
.infra-card-media img.object-tendido {
  object-position: center 20%;
}
.infra-card:hover .infra-card-media img {
  transform: scale(1.08);
}
.infra-card-body {
  padding: 20px;
}
.infra-card-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.infra-card-body p {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.5;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .brand-logo--img img { height: 54px; }
  .hero-header { grid-template-columns: 1fr; gap: 24px; }
  .hero-badge-standalone { align-self: flex-start; margin-right: 0; margin-top: 0; }
  .speedtest-card { gap: 24px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .nav.open {
    display: flex; flex-direction: column; gap: 8px;
    position: absolute; top: 100%; right: 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-lg);
    width: min(260px, calc(100vw - 48px));
  }
  .nav.open a { padding: 8px 0; }
  .nav.open a::after { display: none; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .hero-bg-section { 
    padding: 40px 24px 28px;
    background-image: url('../imagenes/vg/hero_banner_movil.jpeg');
    background-position: center top;
  }
  .hero-header {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }
  /* Reorden en móvil: texto → badge → botones */
  .hero-text        { grid-column: 1; grid-row: auto; order: 1; }
  .hero-badge-standalone { grid-column: 1; grid-row: auto; order: 2; align-self: center; flex-direction: row; justify-content: center; margin: 0 auto; transform: translateY(-62px); }
  .hero-cta         { grid-column: 1; grid-row: auto; order: 3; flex-direction: column; align-items: stretch; width: 100%; }
  .hero-strip-glass { grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 20px; }
  .plans { grid-template-columns: 1fr; }
  .plan-flag {
    position: static;
    display: inline-block;
    margin-bottom: 4px;
    align-self: flex-start;
  }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-strip { flex-direction: column; text-align: center; }
  .footer-strip .copyright { position: static; transform: none; text-align: center; white-space: normal; padding: 0 8px; }
  .speedtest-card { padding: 32px 18px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .coverage-embed iframe { height: 340px; }
  .about-story-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .history-timeline { grid-template-columns: repeat(2, 1fr); }
  .about-cta-card { flex-direction: column; text-align: center; padding: 36px 24px; }
  .about-cta-buttons { width: 100%; flex-direction: column; }
}

@media (max-width: 480px) {
  .brand-logo--img img { height: 39px; }
  .main { padding: 0 16px; }
  .hero-bg-section { padding: 24px 14px 18px; margin: 16px 0 24px; border-radius: 18px; background-position: center 30%; }
  .hero-title { font-size: clamp(26px, 7vw, 38px); }
  .hero-badge-standalone { padding: 14px 18px; border-radius: 14px; }
  .badge-seal { width: 90px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-solid, .btn-outline { width: 100%; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .speedtest-card { padding: 24px 12px; gap: 20px; }
  .st-gauge-area { width: 190px; }
  .gauge-value { font-size: 42px; }
  .btn-start { width: 100%; }
  .coverage-embed iframe { height: 280px; }
  .contact-item { grid-template-columns: 1fr; gap: 8px; }
  .contact-item-icon { width: 38px; height: 38px; }
  .values-grid { grid-template-columns: 1fr; }
  .history-timeline { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
  .mv-card { padding: 24px 20px; }
}

/* ===== Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .badge-seal { animation: none; }
  .fade-in { animation: none; opacity: 1; transform: none; }
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Modal de video promocional ===== */
.promo-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.promo-overlay.is-visible {
  opacity: 1; visibility: visible;
}
.promo-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  background: #000;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.promo-overlay.is-visible .promo-modal {
  transform: scale(1) translateY(0);
}
.promo-iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 80vh;
  background: #000;
}
.promo-iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.promo-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  width: 42px; height: 42px;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.promo-close:hover,
.promo-close:focus-visible {
  background: var(--primary);
  transform: scale(1.1);
  outline: none;
}
.promo-close svg {
  width: 18px; height: 18px; fill: none;
}

/* Móvil: video ocupa la pantalla cómodamente */
@media (max-width: 600px) {
  .promo-overlay { padding: 12px; align-items: center; }
  .promo-modal { max-width: 360px; border-radius: 16px; }
  .promo-iframe-container { max-height: 75vh; }
  .promo-close { width: 44px; height: 44px; top: 10px; right: 10px; }
}

/* ===== Métodos de pago ===== */
.pagos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.pago-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: default;
}
.pago-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(8, 32, 166, 0.12);
}

.pago-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--grad);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pago-icon svg {
  width: 28px; height: 28px;
  fill: #fff;
}
.pago-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.pago-icon--img {
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.pago-icon--img img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
/* Iconos en modo oscuro: amarillo accent igual que Iniciar prueba */
[data-theme="dark"] .pago-icon:not(.pago-icon--img) {
  background: var(--accent);
}
[data-theme="dark"] .pago-icon svg {
  fill: #020873;
}
@media (max-width: 900px) {
  .pagos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .pagos-grid { grid-template-columns: repeat(2, 1fr); }
}
