/* ========================================================================
   ICOTEC — Conectividad Inteligente sin Fronteras
   styles.css · Cosmic / Telecom aesthetic · Full responsive · Light + Dark
   ======================================================================== */

/* ---------- Tokens / Variables ---------- */
:root {
  /* Dark (default) — tema galáctico */
  --bg-base: #050A1F;
  --bg-soft: #0A1530;
  --bg-elev: #122044;
  --bg-card: rgba(18, 32, 68, 0.55);
  --bg-card-hover: rgba(28, 46, 90, 0.7);
  --border: rgba(56, 199, 232, 0.18);
  --border-strong: rgba(56, 199, 232, 0.45);
  --text: #E8F1FF;
  --text-soft: #B7C5DE;
  --text-mute: #7A8AAB;

  --cyan: #38C7E8;
  --cyan-bright: #5DD8F4;
  --cyan-deep: #0F8DAB;
  --orange: #FF7A1A;
  --orange-deep: #E55F0A;
  --orange-soft: #FFA66B;
  --green: #22C55E;
  --whatsapp: #25D366;

  --gradient-primary: linear-gradient(135deg, #38C7E8 0%, #1E88C9 50%, #FF7A1A 100%);
  --gradient-cyan: linear-gradient(135deg, #38C7E8, #0F8DAB);
  --gradient-orange: linear-gradient(135deg, #FF7A1A, #E55F0A);
  --gradient-text: linear-gradient(135deg, #38C7E8 0%, #5DD8F4 40%, #FF7A1A 100%);

  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-mid: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 48px rgba(56, 199, 232, 0.25);
  --shadow-glow-orange: 0 0 32px rgba(255, 122, 26, 0.35);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1240px;
  --nav-h: 76px;

  /* Touch-friendly sizing */
  --touch-min: 44px;
}

[data-theme="light"] {
  --bg-base: #F4F7FC;
  --bg-soft: #FFFFFF;
  --bg-elev: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border: rgba(14, 58, 95, 0.12);
  --border-strong: rgba(14, 58, 95, 0.3);
  --text: #0E2845;
  --text-soft: #3D5474;
  --text-mute: #6E809A;

  --cyan: #1E88C9;
  --cyan-bright: #38C7E8;
  --cyan-deep: #0A5F8C;
  --shadow-soft: 0 4px 16px rgba(14, 58, 95, 0.08);
  --shadow-mid: 0 12px 32px rgba(14, 58, 95, 0.12);
  --shadow-glow: 0 0 48px rgba(56, 199, 232, 0.2);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
  position: relative;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Touch-friendly interactive elements */
button, a, .tab, .index-card, .planet, .cert-view-btn, select, input, textarea {
  touch-action: manipulation;
}

/* GPU acceleration for smooth animations */
.gpu {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform;
}

/* Improved tap highlight */
* {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--cyan);
  color: #001120;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  position: relative;
  z-index: 2;
}

/* ---------- Fondo galáctico ---------- */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}

[data-theme="light"] #starfield {
  opacity: 0.35;
}

.cosmic-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: aura-float 20s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.aura-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(56, 199, 232, 0.45), rgba(14, 58, 150, 0.2) 40%, transparent 70%);
  top: -200px;
  left: -200px;
}

.aura-2 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.28), rgba(120, 30, 0, 0.1) 40%, transparent 70%);
  bottom: -100px;
  right: -250px;
  animation-delay: -7s;
}

.aura-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(100, 56, 232, 0.3), transparent 70%);
  top: 40%;
  left: 35%;
  animation-delay: -14s;
}

[data-theme="light"] .aura {
  opacity: 0.25;
}

@keyframes aura-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 60px) scale(0.95); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(56, 199, 232, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 199, 232, 0.06) 1px, transparent 1px),
    linear-gradient(to right, rgba(56, 199, 232, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 199, 232, 0.02) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  animation: grid-pulse 8s ease-in-out infinite;
}

@keyframes grid-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Network canvas: nodos y conexiones animadas */
#network-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Scanline futurista */
.bg-scanline {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(56, 199, 232, 0.008) 3px,
    rgba(56, 199, 232, 0.008) 4px
  );
  animation: scanline-move 12s linear infinite;
}

@keyframes scanline-move {
  0%   { background-position: 0 0; }
  100% { background-position: 0 200px; }
}

[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(to right, rgba(14, 58, 95, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 58, 95, 0.05) 1px, transparent 1px);
}

/* ---------- Cursor personalizado ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transition: transform 0.15s var(--ease), opacity 0.3s;
  mix-blend-mode: difference;
  display: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--cyan);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: var(--orange);
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot,
  .cursor-ring {
    display: block;
  }
  body { cursor: none; }
  a, button, input, select, textarea, .tab, [role="tab"] { cursor: none; }
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.gradient-text,
.accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 6s linear infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 16px;
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title.big {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.section-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-soft);
  max-width: 640px;
  margin-top: 8px;
}

.section-head {
  margin-bottom: 56px;
  text-align: left;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  white-space: nowrap;
  user-select: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn-primary {
  background: var(--gradient-orange);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(255, 122, 26, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(56, 199, 232, 0.12);
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-lg {
  padding: 17px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-nav {
  padding: 11px 22px;
  font-size: 14px;
}

/* Ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), backdrop-filter 0.3s, border 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 10, 31, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(244, 247, 252, 0.85);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 42px;
  width: auto;
  transition: transform 0.3s var(--ease);
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, transform 0.3s;
  color: var(--text);
}

.theme-toggle:hover {
  background: rgba(56, 199, 232, 0.15);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}

[data-theme="dark"] .icon-sun {
  transform: rotate(-90deg) scale(0);
  opacity: 0;
}
[data-theme="dark"] .icon-moon {
  transform: rotate(0) scale(1);
  opacity: 1;
}
[data-theme="light"] .icon-sun {
  transform: rotate(0) scale(1);
  opacity: 1;
}
[data-theme="light"] .icon-moon {
  transform: rotate(90deg) scale(0);
  opacity: 0;
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.nav-burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s;
  border-radius: 2px;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  width: 86%;
  max-width: 360px;
  height: calc(100dvh - var(--nav-h));
  background: rgba(10, 21, 48, 0.95);
  backdrop-filter: blur(24px);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 99;
}

[data-theme="light"] .mobile-drawer {
  background: rgba(244, 247, 252, 0.97);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer nav a {
  padding: 16px 18px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.25s, transform 0.25s, color 0.25s;
}

.mobile-drawer nav a:hover {
  background: rgba(56, 199, 232, 0.1);
  color: var(--cyan);
  transform: translateX(6px);
}

.drawer-footer {
  font-size: 13px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(56, 199, 232, 0.1);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--cyan);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-badge-in 0.6s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hero-badge-in {
  to { opacity: 1; transform: translateY(0); }
}

.dot-live {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(56, 199, 232, 0.7);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 199, 232, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(56, 199, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 199, 232, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title .line {
  opacity: 0;
  transform: translateY(40px);
  animation: hero-line-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 200ms; }
.hero-title .line:nth-child(2) { animation-delay: 400ms; }
.hero-title .line:nth-child(3) { animation-delay: 600ms; }

@keyframes hero-line-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line:nth-child(1) { animation-delay: 100ms; }
.hero-title .line:nth-child(2) { animation-delay: 250ms; }
.hero-title .line:nth-child(3) { animation-delay: 400ms; }

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-soft);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-sub-in 0.6s 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hero-sub-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-ctas-in 0.6s 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hero-ctas-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-stats-in 0.5s 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hero-stats-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero-title .line,
  .hero-sub,
  .hero-ctas,
  .hero-stats {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-unit {
  font-size: 0.5em;
  margin-left: 4px;
  opacity: 0.8;
}

.stat-label {
  font-size: 13px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ---------- Hero Visual / Sistema orbital ---------- */
.hero-visual {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-system {
  position: relative;
  width: 400px;
  height: 400px;
  max-width: 100%;
}

.connection-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.rotating-circle {
  transform-origin: center;
  animation: rotate-slow 20s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes rotate-slow {
  to { transform: rotate(360deg); }
}

.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(56, 199, 232, 0.15);
}

.orbit-1 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 12s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.orbit-2 {
  width: 320px;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 22s linear infinite reverse;
  will-change: transform;
  backface-visibility: hidden;
}

.orbit-3 {
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 30s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.planet {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--bg-elev);
  border: 1.5px solid var(--cyan);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(56, 199, 232, 0.4), 0 0 0 1px rgba(56, 199, 232, 0.1) inset;
  z-index: 2;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  cursor: pointer;
}

.planet svg {
  width: 24px;
  height: 24px;
}

.planet:hover {
  transform: scale(1.2);
  box-shadow: 0 0 36px rgba(56, 199, 232, 0.7);
  z-index: 3;
}

.planet-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: counter-spin 12s linear infinite;
}

.planet-2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.4);
  animation: counter-spin 22s linear infinite reverse;
}

.planet-3 {
  bottom: 0;
  left: 30%;
  animation: counter-spin 22s linear infinite reverse;
}

.planet-4 {
  top: 20%;
  left: 0;
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.4);
  animation: counter-spin 30s linear infinite;
}

.planet-5 {
  bottom: 15%;
  right: 10%;
  animation: counter-spin 30s linear infinite;
}

@keyframes counter-spin {
  to { transform: translateX(-50%) rotate(-360deg); }
}

.planet-2 { animation: counter-spin-2 22s linear infinite; }
@keyframes counter-spin-2 { to { transform: translateY(-50%) rotate(360deg); } }
.planet-3, .planet-4, .planet-5 { animation: none; }

.planet[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  font-family: var(--font-mono);
  z-index: 10;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  z-index: 3;
}

.core-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: core-pulse 3s ease-out infinite;
}

.core-ring-2 {
  animation-delay: 1.5s;
}

@keyframes core-pulse {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

.core-inner {
  position: absolute;
  inset: 12px;
  background: radial-gradient(circle at 30% 30%, var(--cyan-bright), var(--cyan-deep) 60%, var(--bg-elev) 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 0 48px rgba(56, 199, 232, 0.6), inset 0 0 24px rgba(0, 0, 0, 0.3);
  animation: rotate-slow 30s linear infinite;
}

.core-inner svg {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}

/* Floating chips */
.data-chip {
  position: absolute;
  padding: 8px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-soft);
  z-index: 4;
  animation: chip-float 4s ease-in-out infinite;
}

.chip-1 {
  top: 8%;
  left: -10%;
}

.chip-2 {
  top: 50%;
  right: -15%;
  animation-delay: -1.5s;
}

.chip-3 {
  bottom: 12%;
  left: 5%;
  animation-delay: -3s;
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.chip-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}

.chip-dot.orange {
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* ---------- Index Section ---------- */
.index-section {
  padding: 100px 0;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.index-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
  overflow: hidden;
}

.index-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(56, 199, 232, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.index-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  background: var(--bg-card-hover);
}

.index-card:hover::before {
  opacity: 1;
}

.index-num {
  display: block;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  transition: opacity 0.3s, transform 0.3s;
}

.index-card:hover .index-num {
  opacity: 1;
  transform: translateY(-4px);
}

.index-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.index-card p {
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.5;
}

.index-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 24px;
  color: var(--cyan);
  transition: transform 0.4s var(--ease);
  font-weight: 300;
}

.index-card:hover .index-arrow {
  transform: translate(6px, -6px);
}

/* ---------- Sections base ---------- */
.section {
  padding: 100px 0;
  position: relative;
  contain: style; /* evita repaints — NO layout porque rompe position:fixed */
}

/* ---------- EMPRESA ---------- */
.empresa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}

.lead strong {
  color: var(--text);
  font-weight: 600;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--gradient-orange);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(255, 122, 26, 0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: chip-in 0.6s var(--ease-back) forwards;
  animation-delay: var(--d);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  cursor: default;
}

.tech-chip:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 22px rgba(255, 122, 26, 0.45);
}

.tech-chip svg {
  width: 16px;
  height: 16px;
}

@keyframes chip-in {
  to { opacity: 1; transform: translateY(0); }
}

.ruc-display {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: rgba(56, 199, 232, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
}

.ruc-label {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.2em;
  font-weight: 600;
}

.ruc-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.empresa-visual {
  position: relative;
}

.visual-card {
  position: relative;
  background: linear-gradient(135deg, rgba(56, 199, 232, 0.08), rgba(255, 122, 26, 0.04));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.visual-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: pulse-ring 4s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  30% { opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.vg-cell {
  padding: 20px;
  background: rgba(5, 10, 31, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s;
  animation: cell-in 0.6s var(--ease-back) forwards;
  animation-delay: calc(var(--i) * 100ms + 300ms);
  opacity: 0;
  transform: scale(0.9);
}

[data-theme="light"] .vg-cell {
  background: rgba(255, 255, 255, 0.7);
}

@keyframes cell-in {
  to { opacity: 1; transform: scale(1); }
}

.vg-cell:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.vg-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.vg-lbl {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ---------- SERVICIOS ---------- */
.tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 0 auto 48px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mute);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.tab-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.tab-icon svg {
  width: 16px;
  height: 16px;
}

.tab:hover {
  color: var(--text);
}

.tab.tab-active {
  background: var(--gradient-cyan);
  color: #fff;
  box-shadow: 0 4px 16px rgba(56, 199, 232, 0.4);
}

.tab[data-tab="vsat"].tab-active {
  background: var(--gradient-orange);
  box-shadow: 0 4px 16px rgba(255, 122, 26, 0.4);
}

.tab-panel {
  display: none;
  animation: panel-in 0.5s var(--ease);
}

.tab-panel-active {
  display: block;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

.service-badge {
  display: inline-block;
  padding: 8px 18px;
  background: var(--gradient-orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  border-radius: 6px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(255, 122, 26, 0.35);
}

.service-badge-cyan {
  background: var(--gradient-cyan);
  box-shadow: 0 4px 12px rgba(56, 199, 232, 0.35);
}

.benefits-title {
  font-size: 1.4rem;
  margin: 28px 0 18px;
}

.benefits-title.center {
  text-align: center;
  margin-bottom: 32px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.benefit {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
  backdrop-filter: blur(12px);
}

.benefit:hover {
  transform: translateX(6px);
  border-color: var(--cyan);
  background: var(--bg-card-hover);
}

.benefit-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 199, 232, 0.12);
  display: grid;
  place-items: center;
  color: var(--cyan);
  transition: transform 0.3s var(--ease);
}

.benefit:hover .benefit-icon {
  transform: rotate(-8deg) scale(1.1);
  background: var(--gradient-cyan);
  color: #fff;
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

.benefit h5 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}

.benefit p {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Cloud system (SD-WAN visual) */
.service-visual {
  position: relative;
  min-height: 460px;
  background: linear-gradient(180deg, rgba(56, 199, 232, 0.05), transparent);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 40px;
  overflow: hidden;
}

.cloud-system {
  position: relative;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.cs-cloud {
  position: relative;
  width: 200px;
  height: 140px;
  animation: cloud-float 6s ease-in-out infinite;
}

.cs-cloud svg {
  width: 100%;
  height: 100%;
}

@keyframes cloud-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.cs-tag {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cs-lines {
  position: absolute;
  top: 130px;
  left: 0;
  right: 0;
  height: 140px;
  pointer-events: none;
}

.cs-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  opacity: 0.6;
}

.cs-line-1 { left: 20%; animation: pulse-line 2s ease-in-out infinite; }
.cs-line-2 { left: 50%; animation: pulse-line 2s ease-in-out infinite 0.6s; }
.cs-line-3 { left: 80%; animation: pulse-line 2s ease-in-out infinite 1.2s; }

@keyframes pulse-line {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.cs-nodes {
  display: flex;
  gap: 28px;
  width: 100%;
  justify-content: space-around;
}

.cs-node {
  position: relative;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.node-pulse {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-cyan);
  position: relative;
  box-shadow: 0 0 24px rgba(56, 199, 232, 0.4);
  animation: node-pulse 2s ease-in-out infinite var(--d, 0s);
}

.node-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--cyan);
  border-radius: 14px;
  opacity: 0;
  animation: node-ring 2s ease-out infinite var(--d, 0s);
}

@keyframes node-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes node-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.cs-node span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* VSAT showcase */
.vsat-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vsat-card {
  background: linear-gradient(135deg, rgba(10, 21, 48, 0.8), rgba(18, 32, 68, 0.4));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.vsat-card-main {
  min-height: 220px;
}

.vsat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vsat-card-head span:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vsat-tag {
  padding: 4px 12px;
  background: var(--gradient-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.1em;
}

.vsat-antenna {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.vsat-antenna svg {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(56, 199, 232, 0.4));
  animation: antenna-sway 4s ease-in-out infinite;
}

@keyframes antenna-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.satellites {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  font-size: 20px;
  pointer-events: none;
}

.sat {
  filter: drop-shadow(0 0 4px rgba(56, 199, 232, 0.6));
  animation: sat-orbit 8s linear infinite;
}

.sat-1 { animation-delay: 0s; }
.sat-2 { animation-delay: -2.6s; }
.sat-3 { animation-delay: -5.3s; }

@keyframes sat-orbit {
  0%, 100% { transform: translate(0, 0); opacity: 1; }
  25% { transform: translate(20px, 10px); }
  50% { transform: translate(0, 20px); opacity: 0.7; }
  75% { transform: translate(-20px, 10px); }
}

.vsat-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vsat-spec {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.vsat-spec:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}

.vsat-spec svg {
  width: 24px;
  height: 24px;
  color: var(--cyan);
  flex-shrink: 0;
}

.vsat-spec strong {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
}

.vsat-spec span {
  font-size: 12px;
  color: var(--text-mute);
}

.vsat-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vsat-feat {
  padding: 14px 18px;
  background: var(--bg-card);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  transition: transform 0.3s var(--ease), background 0.3s;
}

.vsat-feat:nth-child(even) {
  border-left-color: var(--orange);
}

.vsat-feat:hover {
  transform: translateX(6px);
  background: var(--bg-card-hover);
}

.vsat-feat strong {
  color: var(--text);
  font-weight: 600;
}

.vsat-benefits {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.vsat-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.benefit-card {
  padding: 28px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56, 199, 232, 0.1), transparent);
  transition: left 0.6s var(--ease);
}

.benefit-card:hover::before {
  left: 100%;
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  background: var(--bg-card-hover);
}

.benefit-card svg {
  width: 36px;
  height: 36px;
  color: var(--cyan);
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease);
}

.benefit-card:hover svg {
  transform: scale(1.15) rotate(-6deg);
  color: var(--orange);
}

.benefit-card h5 {
  font-size: 16px;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ---------- ALCANCE ---------- */
.alcance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.alcance-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}

.alcance-card:hover {
  transform: translateY(-10px);
  border-color: var(--orange);
}

.alcance-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.2), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.alcance-card:hover .alcance-glow {
  opacity: 1;
}

.alcance-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--gradient-orange);
  color: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(255, 122, 26, 0.35);
  transition: transform 0.4s var(--ease);
}

.alcance-card:hover .alcance-icon {
  transform: rotate(-8deg) scale(1.1);
}

.alcance-icon svg {
  width: 28px;
  height: 28px;
}

.alcance-num {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.alcance-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.alcance-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Process line */
.process-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  flex-wrap: wrap;
  gap: 16px;
}

.pl-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
  transition: color 0.3s;
  cursor: default;
}

.pl-step:hover,
.pl-step.active {
  color: var(--text);
}

.pl-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56, 199, 232, 0.1);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--cyan);
  transition: all 0.3s var(--ease);
}

.pl-step.active .pl-num {
  background: var(--gradient-cyan);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(56, 199, 232, 0.5);
}

.pl-step:hover .pl-num {
  transform: scale(1.15);
}

.pl-bar {
  flex: 1;
  min-width: 20px;
  height: 1px;
  background: linear-gradient(to right, var(--border), var(--border-strong), var(--border));
  position: relative;
  overflow: hidden;
}

.pl-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--cyan), transparent);
  animation: bar-flow 3s linear infinite;
}

@keyframes bar-flow {
  to { left: 130%; }
}

/* ---------- PROPUESTA ECONÓMICA ---------- */
.propuesta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.propuesta-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
  overflow: hidden;
}

.propuesta-card:hover {
  transform: translateY(-10px);
  border-color: var(--orange);
  background: var(--bg-card-hover);
}

.propuesta-featured {
  border-color: var(--orange);
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.08), var(--bg-card));
  transform: scale(1.04);
}

.propuesta-featured:hover {
  transform: scale(1.04) translateY(-10px);
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 12px;
  background: var(--gradient-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(255, 122, 26, 0.4);
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.propuesta-diamond {
  width: 80px;
  height: 80px;
  background: var(--gradient-orange);
  display: grid;
  place-items: center;
  color: #fff;
  margin: 0 auto 24px;
  transform: rotate(45deg);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(255, 122, 26, 0.4);
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}

.propuesta-card:hover .propuesta-diamond {
  transform: rotate(225deg) scale(1.08);
  box-shadow: 0 14px 36px rgba(255, 122, 26, 0.55);
}

.propuesta-diamond svg {
  width: 32px;
  height: 32px;
  transform: rotate(-45deg);
  transition: transform 0.5s var(--ease);
}

.propuesta-card:hover .propuesta-diamond svg {
  transform: rotate(-225deg);
}

.propuesta-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text);
}

.propuesta-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}

.hl-cyan {
  color: var(--cyan);
  font-weight: 700;
}

.big-percent {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5em;
  font-weight: 800;
  color: var(--orange);
  vertical-align: middle;
}

.propuesta-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(56, 199, 232, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.propuesta-tag.tag-orange {
  background: rgba(255, 122, 26, 0.12);
  color: var(--orange);
}

.propuesta-banner {
  padding: 28px;
  background: linear-gradient(135deg, rgba(14, 58, 95, 0.6), rgba(10, 21, 48, 0.4));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

[data-theme="light"] .propuesta-banner {
  background: linear-gradient(135deg, rgba(56, 199, 232, 0.1), rgba(255, 122, 26, 0.05));
}

.pb-label {
  color: var(--text-soft);
  font-size: 16px;
}

.pb-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- CONTACTO ---------- */
.contacto-section {
  padding-bottom: 60px;
}

.contacto-inner {
  background: linear-gradient(135deg, rgba(56, 199, 232, 0.05), rgba(255, 122, 26, 0.03));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 64px);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.contacto-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 199, 232, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contacto-head {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

.contacto-head p {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-top: 12px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  position: relative;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.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: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  width: 100%;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #FFFFFF;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(56, 199, 232, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--font-body);
}

/* Info de contacto */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ci-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.ci-card:hover {
  transform: translateX(4px);
  border-color: var(--cyan);
}

.ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 199, 232, 0.12);
  color: var(--cyan);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.ci-card:hover .ci-icon {
  transform: rotate(-8deg);
  background: var(--gradient-cyan);
  color: #fff;
}

.ci-icon svg {
  width: 20px;
  height: 20px;
}

.ci-card.ci-cta {
  background: var(--gradient-orange);
  border-color: transparent;
  color: #fff;
}

.ci-card.ci-cta .ci-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.ci-card.ci-cta .ci-label,
.ci-card.ci-cta .ci-value {
  color: #fff;
}

.ci-card.ci-cta:hover {
  transform: translateX(0) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 122, 26, 0.4);
}

.ci-label {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-bottom: 2px;
}

.ci-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.25s;
}

a.ci-value:hover {
  color: var(--cyan);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(5, 10, 31, 0.4);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 2;
}

[data-theme="light"] .footer {
  background: rgba(244, 247, 252, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tag {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-mini {
  color: var(--text-mute);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.footer-col h6 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col a,
.footer-col span {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.25s, transform 0.25s;
}

.footer-col a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer-ruc {
  font-family: var(--font-mono);
  color: var(--text-mute) !important;
  font-size: 12px !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s ease-out infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 90;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  animation: fab-bounce 5s ease-in-out infinite;
  transition: transform 0.3s var(--ease);
}

.whatsapp-fab:hover {
  transform: scale(1.1);
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  z-index: 2;
  position: relative;
}

@keyframes fab-bounce {
  0%, 90%, 100% { transform: translateY(0); }
  93% { transform: translateY(-8px); }
  96% { transform: translateY(0); }
}

.wa-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--whatsapp);
  border-radius: 50%;
  opacity: 0;
  animation: wa-pulse 2s ease-out infinite;
  pointer-events: none;
}

.wa-ring-2 {
  animation-delay: 1s;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.wa-tooltip {
  position: absolute;
  right: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 10px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  box-shadow: var(--shadow-mid);
}

.whatsapp-fab:hover .wa-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  padding: 14px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-mid);
  transition: transform 0.4s var(--ease);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

/* ========================================================================
   ANIMACIONES ADICIONALES — GLOW, FLOAT, LOADING
   ======================================================================== */

/* Glow pulsante para elementos destacados */
.glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(56, 199, 232, 0.2); }
  50% { box-shadow: 0 0 40px rgba(56, 199, 232, 0.5); }
}

/* Float sutil para cards */
.float-hover {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.float-hover:hover {
  transform: translateY(-6px);
}

/* Shimmer / skeleton shine */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Page entrance */
.page-enter {
  animation: page-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scale reveal */
.scale-reveal {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.scale-reveal.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Enhanced card shimmer hover */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.04),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.card-shine:hover::before {
  opacity: 1;
}

/* Stagger children animation */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  animation: stagger-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 80ms; }
.stagger > *:nth-child(3) { animation-delay: 160ms; }
.stagger > *:nth-child(4) { animation-delay: 240ms; }
.stagger > *:nth-child(5) { animation-delay: 320ms; }
.stagger > *:nth-child(6) { animation-delay: 400ms; }

@keyframes stagger-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Particle burst on click (tiny) */
.particle-burst {
  position: absolute;
  pointer-events: none;
}

.particle-burst span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  animation: burst-fly 0.6s ease-out forwards;
}

@keyframes burst-fly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)) scale(0); opacity: 0; }
}

/* Floating gradient orbs for cards */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
  pointer-events: none;
  animation: orb-drift 10s ease-in-out infinite;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -20px); }
  66% { transform: translate(-10px, 15px); }
}

/* Smooth image loading for lazy images */
img.lazy-load {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.lazy-load.loaded,
img.lazy-load[src] {
  opacity: 1;
}

/* ========================================================================
   ANIMACIONES DE SCROLL — REVEAL
   ======================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ========================================================================
   PREFERS-REDUCED-MOTION
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .mascot-img { animation: none !important; }
}

/* ========================================================================
   RESPONSIVE ≤ 1100px  — Tablet landscape
   ======================================================================== */
@media (max-width: 1100px) {

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-visual  { height: 360px; order: -1; max-width: 360px; margin: 0 auto; }
  .orbit-system { width: 300px; height: 300px; }
  .orbit-3      { width: 340px; height: 340px; }
  .hero-stats   { justify-content: center; }

  /* Layouts */
  .empresa-grid, .service-layout { grid-template-columns: 1fr; gap: 40px; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cert-grid     { grid-template-columns: repeat(2, 1fr); }
  .espec-grid    { grid-template-columns: repeat(2, 1fr); }
  .espec-card--wide { grid-column: span 2; }

  /* Misc */
  .section { padding: 80px 0; }
  .data-chip { font-size: 10px; padding: 6px 12px; }
}

/* ========================================================================
   RESPONSIVE ≤ 820px  — Tablet portrait / Móvil grande
   ======================================================================== */
@media (max-width: 820px) {

  /* ── GPU Performance ── */
  .aura     { filter: blur(40px); opacity: 0.35; animation-duration: 30s; }
  .aura-3   { display: none; }
  .navbar, .mobile-drawer,
  .alcance-card, .propuesta-card, .benefit-card, .contacto-inner {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }
  .orbit-1 { animation-duration: 18s; }
  .orbit-2 { animation-duration: 32s; }
  .orbit-3 { animation-duration: 45s; }
  .rotating-circle { animation-duration: 30s; }

  /* Navbar */
  .nav-links { display: none; }
  .btn-nav   { display: none; }
  .nav-burger { display: flex; }

  /* Sections */
  .section       { padding: 60px 0; }
  .index-section { padding: 60px 0; }
  .section-head  { margin-bottom: 36px; }

  /* Hero */
  .hero { padding-top: calc(var(--nav-h) + 12px); }
  .hero-visual  { height: 300px; max-width: 300px; }
  .orbit-system { width: 260px; height: 260px; }
  .orbit-3      { width: 300px; height: 300px; }
  .planet       { width: 44px; height: 44px; border-radius: 12px; }
  .planet svg   { width: 18px; height: 18px; }
  .orbit-core   { width: 80px; height: 80px; }
  .data-chip    { font-size: 9px; padding: 5px 10px; }
  .hero-ctas    { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats   { gap: 20px; }
  .stat         { flex: 1; min-width: 90px; }

  /* Layouts */
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { text-align: center; justify-content: center; }
  .visual-grid  { grid-template-columns: 1fr 1fr; }
  .form-row     { grid-template-columns: 1fr; }

  /* Especialidades: 1 col */
  .espec-grid       { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .espec-card--wide { grid-column: span 1; }
  .espec-tags       { flex-wrap: wrap; overflow-x: visible; }

  /* Certificaciones: 1 col */
  .cert-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  /* Tabs */
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab  { padding: 10px 14px; font-size: 12px; white-space: nowrap; }

  /* Misc */
  .cert-view-btn { font-size: 12px; padding: 8px 14px; }
  .whatsapp-fab  { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 24px; height: 24px; }

  /* Mascota */
  .mascot-wrap { bottom: 80px; right: 14px; }
  .mascot-img  { width: 72px; height: 72px; }
  .mascot-bubble { font-size: 12px; padding: 8px 12px; max-width: 160px; }
}

/* ========================================================================
   RESPONSIVE ≤ 640px  — Smartphones medianos
   ======================================================================== */
@media (max-width: 640px) {

  :root { --nav-h: 68px; }

  /* Hero */
  .hero-title  { font-size: clamp(1.9rem, 8.5vw, 2.8rem); }
  .hero-visual { height: 280px; max-width: 280px; }
  .orbit-system { width: 240px; height: 240px; }
  .orbit-3     { width: 280px; height: 280px; }
  .planet      { width: 40px; height: 40px; border-radius: 10px; }
  .planet svg  { width: 16px; height: 16px; }
  .orbit-core  { width: 70px; height: 70px; }
  .core-inner svg { width: 34px; height: 34px; }
  .hero-stats  { flex-direction: column; gap: 12px; }
  .stat        { width: 100%; }

  /* Secciones */
  .section-title     { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .section-title.big { font-size: clamp(1.8rem, 7.5vw, 2.5rem); }
  .eyebrow           { font-size: 10px; }
  .section           { padding: 52px 0; }
  .section-head      { margin-bottom: 28px; }

  /* Especialidades */
  .espec-card  { padding: 18px 14px; gap: 12px; }
  .espec-icon-wrap, .espec-svg { width: 44px; height: 44px; min-width: 44px; }
  .espec-svg   { max-width: 44px !important; }
  .espec-title { font-size: 14px; }
  .espec-desc  { font-size: 12.5px; }
  .espec-tags li { font-size: 10px; padding: 3px 8px; }

  /* Certificaciones */
  .cert-grid   { max-width: 400px; }
  .cert-card   { padding: 18px 14px 14px; }
  .cip-num     { font-size: 17px; }
  .cert-title  { font-size: 13.5px; }
  .cert-desc   { font-size: 12px; }
  .cert-dl-row dt, .cert-dl-row dd { font-size: 10.5px; }
  .cert-view-btn { font-size: 12px; padding: 9px 12px; }

  /* Footer */
  .footer-grid  { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Misc */
  .index-card   { padding: 20px 18px; }
  .index-num    { font-size: 40px; }
  .alcance-card { padding: 26px 18px; }
  .propuesta-featured { transform: scale(1); }
  .contacto-inner { padding: 28px 18px; }
  .scroll-indicator { display: none; }
  .vsat-benefits-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   RESPONSIVE ≤ 540px  — Smartphones normales
   ======================================================================== */
@media (max-width: 540px) {

  :root { --nav-h: 64px; }
  .nav-logo img { height: 32px; }

  .hero-title  { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero-visual { height: 250px; max-width: 250px; }
  .orbit-system { width: 220px; height: 220px; }
  .orbit-3     { width: 260px; height: 260px; }
  .hero-badge  { font-size: 11px; padding: 6px 14px; }

  .tech-chip   { padding: 8px 12px; font-size: 12px; }
  .ci-row      { flex-direction: column; gap: 10px; }

  /* Mascota más pequeña */
  .mascot-img  { width: 60px; height: 60px; }
  .mascot-wrap { bottom: 72px; right: 10px; }
}

/* ========================================================================
   RESPONSIVE ≤ 380px  — Smartphones pequeños
   ======================================================================== */
@media (max-width: 380px) {

  .container { padding-inline: 14px; }
  .hero-title { font-size: clamp(1.6rem, 8vw, 2rem); }

  .orbit-system { width: 200px; height: 200px; }
  .orbit-3      { width: 240px; height: 240px; }
  .orbit-core   { width: 60px; height: 60px; }
  .planet       { width: 36px; height: 36px; }
  .planet svg   { width: 14px; height: 14px; }

  .espec-card   { padding: 16px 12px; gap: 10px; }
  .espec-icon-wrap, .espec-svg { width: 38px; height: 38px; min-width: 38px; }
  .espec-svg    { max-width: 38px !important; }

  .cert-grid    { max-width: 100%; }
  .cert-card    { padding: 14px 12px 12px; }
  .cip-num      { font-size: 15px; }
  .cert-ring-wrap { width: 40px; height: 40px; min-width: 40px; }

  .alcance-card, .propuesta-card { padding: 20px 14px; }
  .visual-grid  { grid-template-columns: 1fr; }
}


/* ========================================================================
   ESPECIALIDADES TÉCNICAS
   ======================================================================== */

.espec-section {
  position: relative;
}

.espec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* La quinta card ocupa dos columnas */
.espec-card--wide {
  grid-column: span 2;
}
.espec-card--wide .espec-body .espec-tags {
  flex-wrap: wrap;
}

.espec-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: row;        /* SIEMPRE fila: ícono izq + texto der */
  align-items: flex-start;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.espec-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(56,199,232,0.07), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.espec-card:hover {
  border-color: rgba(56,199,232,0.45);
  box-shadow: 0 10px 48px rgba(56,199,232,0.13);
  transform: translateY(-5px);
}

.espec-card:hover::after {
  opacity: 1;
}

/* Icon */
.espec-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  min-width: 56px;   /* evita que flex lo comprima o expanda */
  min-height: 56px;
  flex-shrink: 0;
  flex-grow: 0;
}

.espec-svg {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  color: var(--cyan);
  display: block;
}

.espec-emoji {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(56,199,232,0.4));
}

/* Body */
.espec-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;        /* crítico: evita que texto desborde el flex container */
  overflow: hidden;
}

.espec-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.espec-desc {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.65;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.espec-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  list-style: none;
  margin-top: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.espec-tags::-webkit-scrollbar { display: none; }

.espec-tags li {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56,199,232,0.25);
  color: var(--cyan);
  background: rgba(56,199,232,0.06);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Responsive especialidades ── */




/* ========================================================================
   CERTIFICACIONES ISO — diseño card vertical uniforme PC + móvil
   ======================================================================== */

.cert-section { position: relative; }

/* Grid: 3 columnas en desktop, colapsa en mobile */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* ── Card base: SIEMPRE columna vertical ── */
.cert-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;   /* VERTICAL en toda pantalla */
  align-items: stretch;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(56,199,232,0.07), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.cert-card:hover {
  border-color: rgba(56,199,232,0.4);
  box-shadow: 0 8px 36px rgba(56,199,232,0.13);
  transform: translateY(-4px);
}

.cert-card:hover::before { opacity: 1; }

/* ── Top row: pill + icono ── */
.cert-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

/* Pill de número ISO */
.cert-iso-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56,199,232,0.35);
  background: rgba(56,199,232,0.08);
  line-height: 1;
  flex-shrink: 0;
}

.cert-iso-pill--green {
  border-color: rgba(72,199,142,0.35);
  background: rgba(72,199,142,0.08);
}

.cert-iso-pill--orange {
  border-color: rgba(255,122,26,0.35);
  background: rgba(255,122,26,0.08);
}

.cip-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-transform: uppercase;
}

.cert-iso-pill--green .cip-label { color: #48c78e; }
.cert-iso-pill--orange .cip-label { color: var(--orange); }

.cip-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.cip-year {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mute);
}

/* Icono circular animado */
.cert-ring-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(56,199,232,0.06);
  border: 1px solid rgba(56,199,232,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: cert-spin 20s linear infinite;
}

.cert-ring-wrap--green {
  background: rgba(72,199,142,0.06);
  border-color: rgba(72,199,142,0.2);
}

.cert-ring-wrap--orange {
  background: rgba(255,122,26,0.06);
  border-color: rgba(255,122,26,0.2);
  animation-direction: reverse;
}

@keyframes cert-spin {
  to { transform: rotate(360deg); }
}

.cert-ring-inner {
  animation: cert-spin-rev 20s linear infinite; /* contra-giro para que el SVG quede estático */
}

.cert-ring-wrap--orange .cert-ring-inner {
  animation-direction: reverse;
}

/* ── Card body ── */
.cert-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cert-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
}

.cert-desc {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* Tabla de datos */
.cert-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 6px 0 14px;
  border-top: 1px solid var(--border);
}

.cert-dl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.cert-dl-row dt {
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.cert-dl-row dd {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Botón ver certificado */
.cert-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(56,199,232,0.3);
  background: rgba(56,199,232,0.06);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  margin-top: auto;
  text-align: center;
}

.cert-view-btn:hover {
  background: rgba(56,199,232,0.14);
  border-color: rgba(56,199,232,0.6);
  transform: translateY(-1px);
}

/* ── LIGHTBOX ── */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.cert-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.cert-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.cert-lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(480px, 92vw);
  max-height: 90vh;
  transform: scale(0.9);
  transition: transform 0.3s var(--ease);
}

.cert-lightbox.open .cert-lightbox-inner { transform: scale(1); }

.cert-lightbox-img {
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  display: block;
}

.cert-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.cert-lightbox-close svg { width: 16px; height: 16px; }
.cert-lightbox-close:hover { transform: rotate(90deg); }

/* ── RESPONSIVE CERTIFICACIONES ── */

/* Tablet: 2 columnas */

/* Móvil: 1 columna, cards completas */

/* Móvil pequeño */


/* ========================================================================
   MASCOTA — sigue al cursor, animación propia, click → WhatsApp
   ======================================================================== */

.mascot-wrap {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;   /* el wrap es solo posicionamiento */
  user-select: none;
  /* La posición real se mueve por JS */
  will-change: transform;
  transition: filter 0.3s ease;
}

/* Burbuja de diálogo */
.mascot-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 10px;
  background: rgba(5, 10, 31, 0.92);
  border: 1px solid rgba(56, 199, 232, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 4px 24px rgba(56, 199, 232, 0.2);
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: 200px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.mascot-bubble-tail {
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 0px solid transparent;
  border-top: 8px solid rgba(56, 199, 232, 0.5);
}

.mascot-wrap:hover .mascot-bubble,
.mascot-wrap.bubble-visible .mascot-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Imagen de la mascota */
.mascot-img-link {
  position: relative;
  display: block;
  pointer-events: all;   /* el link sí captura clicks */
  cursor: pointer;
  border-radius: 50%;
  outline: none;
}

.mascot-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  /* Animación de "respiración" idle */
  animation: mascot-breathe 3s ease-in-out infinite,
             mascot-float 4s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 8px 24px rgba(56, 199, 232, 0.5))
          drop-shadow(0 0 12px rgba(255, 200, 0, 0.3));
  transition: filter 0.3s ease, transform 0.2s ease;
}

.mascot-img-link:hover .mascot-img {
  filter: drop-shadow(0 12px 32px rgba(56, 199, 232, 0.8))
          drop-shadow(0 0 20px rgba(255, 200, 0, 0.5));
  animation-play-state: paused;
  transform: scale(1.08) rotate(-3deg);
}

.mascot-img-link:active .mascot-img {
  transform: scale(0.94);
}

@keyframes mascot-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25%       { transform: scale(1.04) rotate(1.5deg); }
  75%       { transform: scale(0.97) rotate(-1deg); }
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* Sombra dinámica */
.mascot-shadow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 10px;
  background: radial-gradient(ellipse, rgba(56,199,232,0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: mascot-shadow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mascot-shadow-pulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scaleX(1); }
  50%       { opacity: 0.4; transform: translateX(-50%) scaleX(0.7); }
}

/* Aura de partículas alrededor de la mascota */
.mascot-img-link::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(56, 199, 232, 0.3);
  animation: mascot-ring 2s ease-in-out infinite;
  pointer-events: none;
}

.mascot-img-link::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(56, 199, 232, 0.15);
  animation: mascot-ring 2s ease-in-out infinite 0.5s;
  pointer-events: none;
}

@keyframes mascot-ring {
  0%   { transform: scale(0.9); opacity: 0.8; }
  50%  { transform: scale(1.05); opacity: 0.3; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ── Responsive mascota ── */



/* ---------- Print ---------- */
@media print {
  .navbar,
  .whatsapp-fab,
  .scroll-indicator,
  .cursor-dot,
  .cursor-ring,
  #starfield,
  .cosmic-aura,
  .bg-grid {
    display: none !important;
  }
}
