/* =================================================
   SISTEMA VS — Rediseño moderno
   Identidad: cyan #00C2D6 + dorado #f4af0b
   Tipografía: Manrope + JetBrains Mono
   ================================================= */

/* ====== CSS RESET MÍNIMO ====== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button { border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }


/* ====== TOKENS DE DISEÑO ====== */
:root {
  /* Marca */
  --brand: #00C2D6;
  --brand-deep: #008798;
  --brand-light: #7AE6F2;
  --brand-glow: rgba(0, 194, 214, 0.18);
  --accent: #f4af0b;
  --accent-deep: #c98e00;

  /* Neutros (light) */
  --ink-1: #0a0f1a;
  --ink-2: #008798;
  --ink-3: #404a5c;
  --ink-4: #6b7587;
  --ink-5: #9aa3b2;
  --line: #e6e9ef;
  --line-soft: #eef0f4;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-tint: #f0f9fb;

  /* Oscuros */
  --night: #0a0f1a;
  --night-2: #111827;
  --night-3: #1a2235;
  --night-line: rgba(255, 255, 255, 0.08);
  --on-night-1: #ffffff;
  --on-night-2: rgba(255, 255, 255, 0.78);
  --on-night-3: rgba(255, 255, 255, 0.58);

  /* Tipografía */
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Escalas */
  --container: 1240px;
  --container-narrow: 920px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 15, 26, 0.04);
  --shadow-sm: 0 4px 12px rgba(10, 15, 26, 0.05), 0 1px 3px rgba(10, 15, 26, 0.04);
  --shadow-md: 0 12px 32px rgba(10, 15, 26, 0.08), 0 2px 6px rgba(10, 15, 26, 0.04);
  --shadow-lg: 0 24px 60px rgba(10, 15, 26, 0.12), 0 4px 12px rgba(10, 15, 26, 0.06);
  --shadow-brand: 0 12px 36px rgba(0, 135, 152, 0.28);

  /* Anim */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-base: 240ms;
  --t-slow: 480ms;
}


/* ====== BASE ====== */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #14c8db;
  line-height: 1.18;
}

p { color: var(--ink-3); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.text-grad {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* ====== BOTONES ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { font-size: 14px; padding: 10px 16px; }
.btn--lg { font-size: 16px; padding: 16px 26px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--ink-1);
  color: var(--on-night-1);
  box-shadow: 0 8px 24px rgba(10, 15, 26, 0.16);
}
.btn--primary:hover { background: var(--brand-deep); box-shadow: var(--shadow-brand); }

.btn--secondary {
  background: var(--bg);
  color: var(--ink-1);
  border-color: var(--line);
}
.btn--secondary:hover { border-color: var(--ink-1); }

.btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink-1); color: var(--ink-1); }


/* ====== NAVBAR ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0a0f1a;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
.nav.is-scrolled {
  background: rgb(10, 15, 26);
  border-bottom-color: #0a0f1a;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.nav__brand { flex-shrink: 0; }
.nav__logo { height: 38px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 24px;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 10px;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav__link:hover { color: #008798; background: var(--bg-soft); }
.nav__link--dropdown svg { transition: transform var(--t-fast) var(--ease); }

.nav__link--featured {
  color: var(--brand-deep);
  font-weight: 600;
}
.nav__link--featured .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 175, 11, 0.18);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.nav__dropdown { position: relative; }
.nav__dropdown:hover .nav__megamenu,
.nav__dropdown:focus-within .nav__megamenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__dropdown:hover .nav__link--dropdown svg { transform: rotate(180deg); }

.nav__megamenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(960px, 92vw);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base) var(--ease);
}
.megamenu__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.megamenu__col { display: flex; flex-direction: column; gap: 6px; }
.megamenu__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-deep);
  margin-bottom: 6px;
}
.megamenu__col a {
  font-size: 13.5px;
  color: var(--ink-3);
  padding: 6px 8px;
  border-radius: 6px;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.megamenu__col a:hover { color: var(--ink-1); background: var(--bg-soft); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; }


/* Mobile menu */
.nav__mobile {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 0 28px;
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.nav__mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-1);
}
.nav__mobile-link--featured {
  color: var(--brand-deep);
  font-weight: 600;
}
.nav__mobile-group summary {
  list-style: none;
  cursor: pointer;
}
.nav__mobile-group summary::-webkit-details-marker { display: none; }
.nav__mobile-group[open] summary svg { transform: rotate(180deg); }
.nav__mobile-group summary svg { transition: transform var(--t-fast) var(--ease); }
.nav__mobile-sub {
  display: flex;
  flex-direction: column;
  padding: 4px 8px 12px 16px;
  gap: 4px;
}
.nav__mobile-sub strong {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-deep);
  margin-top: 12px;
  margin-bottom: 4px;
}
.nav__mobile-sub a {
  font-size: 14px;
  color: var(--ink-3);
  padding: 8px 0;
}
.nav__mobile .btn { margin-top: 16px; }


/* ====== HERO ====== */
.hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 135, 152, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 135, 152, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 70%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}
.hero__glow--1 {
  top: -150px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
}
.hero__glow--2 {
  top: 100px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(122, 230, 242, 0.25) 0%, transparent 70%);
}
.hero__glow--3 {
  top: 20%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(0, 194, 214, 0.18) 0%, transparent 70%);
}

.hero__inner {
  text-align: center;
  padding: 40px 0 96px;
  max-width: 860px;
}

.hero__title {
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: -0.035em;
  margin: 28px 0 22px;
  line-height: 1.05;
}

.hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-3);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 36px 0 0;
}

.hero__trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  color: var(--ink-4);
  font-size: 14px;
  font-weight: 500;
}
.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__trust-item svg { color: var(--brand-deep); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(0, 135, 152, 0.08);
  color: var(--brand-deep);
  border: 1px solid rgba(0, 135, 152, 0.16);
}
.badge--light { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(8px); }
.badge--dark { background: rgba(255, 255, 255, 0.08); color: var(--on-night-1); border-color: rgba(255, 255, 255, 0.14); }
.badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 194, 214, 0.2);
  animation: pulse 2s var(--ease) infinite;
}
.badge__dot--accent { background: var(--accent); box-shadow: 0 0 0 4px rgba(244, 175, 11, 0.25); }


/* ====== MARQUEE DE RUBROS ====== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg);
  mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.marquee__track span:not(:nth-child(2n)) { color: var(--ink-1); }
.marquee__track span:nth-child(2n) { color: var(--brand); font-weight: 700; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ====== SECCIONES ====== */
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-soft); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section__head--left {
  text-align: left;
  margin: 0 0 32px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-deep);
  padding: 6px 12px;
  background: rgba(0, 135, 152, 0.08);
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--accent { color: var(--accent-deep); background: rgba(244, 175, 11, 0.12); }
.eyebrow--light { color: var(--on-night-1); background: rgba(255, 255, 255, 0.08); }

.section__title {
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.section__title--light { color: var(--on-night-1); }
.section__lead {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-3);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}
.section__head--left .section__lead { margin: 0; }
.section__lead--light { color: var(--on-night-2); }


/* ====== GRIDS ====== */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--compact { gap: 14px; }


/* ====== FEATURE CARDS (3-up) ====== */
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 194, 214, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0, 194, 214, 0.3); }
.feature:hover::before { opacity: 1; }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 194, 214, 0.12) 0%, rgba(122, 230, 242, 0.12) 100%);
  color: var(--brand-deep);
  margin-bottom: 22px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 15px; line-height: 1.55; }

.feature--accent .feature__icon {
  background: linear-gradient(135deg, rgba(244, 175, 11, 0.14) 0%, rgba(244, 175, 11, 0.06) 100%);
  color: var(--accent-deep);
}


/* ====== CAPABILITIES ====== */
.capabilities {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}
.capabilities__text { max-width: 540px; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  margin-top: 16px;
}
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  background-color: var(--brand);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M16.667 5L7.5 14.167 3.333 10' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M16.667 5L7.5 14.167 3.333 10' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Capability media (screen mockup) */
.capabilities__media {
  position: relative;
}
.capabilities__media::before {
  content: '';
  position: absolute;
  inset: -10% -8% -10% 4%;
  background: radial-gradient(ellipse, var(--brand-glow) 0%, transparent 65%);
  z-index: -1;
  filter: blur(30px);
}
.screen {
  background: var(--ink-1);
  border-radius: var(--radius-lg);
  padding: 14px 14px 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.screen__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 12px;
}
.screen__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.screen__bar span:nth-child(1) { background: #ff5f57; }
.screen__bar span:nth-child(2) { background: #febc2e; }
.screen__bar span:nth-child(3) { background: #28c840; }
.screen img {
  border-radius: 10px 10px 0 0;
  width: 100%;
  height: auto;
  display: block;
}


/* ====== NOVEDADES ====== */
.novedades-section { background: var(--bg); }

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 160px;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  overflow: hidden;
}
.news-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle at 100% 0%, rgba(0, 194, 214, 0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.news-card:hover::after { opacity: 1; }
.news-card__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-deep);
  background: rgba(0, 135, 152, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}
.news-card h4 {
  font-size: 17px;
  margin: 24px 0 8px;
  line-height: 1.25;
  color: var(--ink-1);
}
.news-card__arrow {
  align-self: flex-end;
  font-size: 20px;
  color: var(--brand-deep);
  transition: transform var(--t-fast) var(--ease);
}
.news-card:hover .news-card__arrow { transform: translate(4px, -4px); }


/* ====== MODULOS ====== */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}
.filter {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.filter:hover { color: var(--ink-1); border-color: var(--ink-4); }
.filter.is-active {
  background: var(--ink-1);
  color: var(--on-night-1);
  border-color: var(--ink-1);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.module {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  opacity: 1;
  transform: scale(1);
}
.module.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
  position: absolute;
  visibility: hidden;
}
.module:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 214, 0.4);
  box-shadow: var(--shadow-md);
}
.module__img {
  background: linear-gradient(135deg, #c8d4e3 0%, #e3eaf2 100%);
  padding: 16px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.module__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(10, 15, 26, 0.18));
  transition: transform var(--t-slow) var(--ease);
}
.module:hover .module__img img { transform: scale(1.04); }
.module__body { padding: 20px 22px 22px; flex: 1; }
.module__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-deep);
  margin-bottom: 8px;
}
.module h4 { font-size: 17px; margin-bottom: 6px; line-height: 1.3; }
.module p { font-size: 14px; line-height: 1.5; color: var(--ink-3); }


/* ====== IMPLEMENTACION (dark) ====== */
.implementacion {
  background: var(--night);
  color: var(--on-night-1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.implementacion__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 194, 214, 0.5) 50%, transparent 100%);
}
.timeline__step {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.timeline__step:hover { transform: translateY(-4px); border-color: rgba(0, 194, 214, 0.4); }
.timeline__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-light);
  background: rgba(0, 194, 214, 0.12);
  border: 1px solid rgba(0, 194, 214, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 18px;
}
.timeline__content h3 {
  font-size: 19px;
  color: var(--on-night-1);
  margin-bottom: 8px;
}
.timeline__content p {
  font-size: 14px;
  color: var(--on-night-2);
  line-height: 1.55;
}


/* ====== SERVICE CARDS ====== */
.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 214, 0.3);
  box-shadow: var(--shadow-md);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: var(--on-night-1);
  margin-bottom: 24px;
}
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { font-size: 15px; line-height: 1.6; flex: 1; margin-bottom: 18px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep);
  transition: gap var(--t-fast) var(--ease);
}
.link-arrow span { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover { gap: 10px; }
.link-arrow:hover span { transform: translateX(2px); }
.link-arrow--lg { font-size: 16px; }


/* ====== CTA BANNER (Backup NAS) ====== */
.cta-banner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--night) 0%, var(--night-3) 100%);
  border-radius: var(--radius-xl);
  padding: 56px 56px 56px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--on-night-1);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 60%);
  z-index: -1;
  filter: blur(40px);
}
.cta-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cta-banner__content .badge { margin-bottom: 18px; }
.cta-banner__content h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--on-night-1);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.cta-banner__content p {
  color: var(--on-night-2);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 540px;
}
.cta-banner .link-arrow { color: var(--brand-light); }
.cta-banner__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.shield {
  filter: drop-shadow(0 16px 36px rgba(0, 194, 214, 0.3));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}


/* ====== CONTACTO ====== */
.contact-section {
  background: var(--night);
  color: var(--on-night-1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact-section::before {
  content: '';
  position: absolute;
  bottom: -200px; left: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 60%);
  filter: blur(50px);
  z-index: -1;
}

.contact {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}
.contact__text .section__title { font-size: clamp(24px, 3.2vw, 38px); }
.contact__phone {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--night-line);
  padding: 24px 28px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
.contact__phone:hover {
  border-color: var(--brand);
  background: rgba(0, 194, 214, 0.06);
}
.contact__label {
  display: block;
  font-size: 13px;
  color: var(--on-night-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 6px;
}
.contact__number {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--on-night-1);
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}
.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact__cta {
  display: flex;
  flex-direction: column;
  gap: 18px;
}


/* ====== FOOTER ====== */
.footer {
  background: var(--night);
  color: var(--on-night-2);
  padding: 64px 0 32px;
  border-top: 1px solid var(--night-line);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--night-line);
}
.footer__brand p {
  font-size: 14px;
  color: var(--on-night-2);
  max-width: 360px;
  line-height: 1.6;
  margin-top: 16px;
}
.footer__logo { height: 38px; width: auto; }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-night-1);
  margin-bottom: 6px;
}
.footer__col a {
  font-size: 14px;
  color: var(--on-night-2);
  transition: color var(--t-fast) var(--ease);
}
.footer__col a:hover { color: var(--brand-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: var(--on-night-3);
}
.footer__meta { color: var(--on-night-3); display: inline-flex; align-items: center; gap: 6px; }


/* ====== WHATSAPP FAB ====== */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  animation: pulseFab 2.6s var(--ease) infinite;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}
@keyframes pulseFab {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}


/* ====== ANIMACIONES ====== */
[data-anim] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--anim-delay, 0ms);
}
[data-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ====== RESPONSIVE ====== */
@media (max-width: 1100px) {
  .nav__menu { display: none; }
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    padding: 8px;
    margin-left: auto;
  }
  .nav__toggle span {
    width: 20px; height: 2px;
    background: var(--ink-1);
    border-radius: 1px;
    transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
  }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__actions .btn--ghost { display: none; }
  .nav__inner { gap: 12px; }
}

@media (max-width: 980px) {
  .section { padding: 72px 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .capabilities { grid-template-columns: 1fr; gap: 48px; }
  .capabilities__text { max-width: none; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .cta-banner { grid-template-columns: 1fr; padding: 40px 32px; }
  .cta-banner__visual { display: none; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 56px 0 0; }
  .hero__inner { padding: 24px 0 64px; }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 40px; }
  .check-grid { grid-template-columns: 1fr; gap: 12px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav__actions .btn--sm { padding: 9px 14px; font-size: 13px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { width: 100%; }
  .filters { gap: 6px; }
  .filter { font-size: 13px; padding: 8px 12px; }
  .wa-fab { width: 52px; height: 52px; bottom: 18px; right: 18px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee__track { animation: none; }
  [data-anim] { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .nav, .wa-fab, .marquee, .filters { display: none !important; }
  .section { padding: 24px 0; }
  body { color: #000; background: #fff; }
}

/* Screen-reader only (visible to crawlers and AI, hidden from users) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
