/* ============================================================
   KIRA LEVEL — Dark luxury tech
   ============================================================ */

:root {
  --bg: #0A0A0F;
  --bg-2: #111118;
  --accent: #6C63FF;
  --accent-2: #00D4AA;
  --orange: #EB6707;
  --orange-soft: #FF7A1A;
  --gold: #F5C842;
  --text: #F0F0F5;
  --text-dim: #8888AA;
  --border: rgba(108, 99, 255, 0.2);
  --glass: rgba(255, 255, 255, 0.025);
  --radius: 18px;
  --maxw: 1180px;
  --glow: 0 0 40px rgba(108, 99, 255, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }

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

/* accesibilidad: visible para lectores de pantalla / SEO, oculto visualmente */
.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;
}

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

/* ---------- Background layers ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 100%);
}

.bg-glow {
  position: fixed;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 rgba(108, 99, 255, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
  background: #7d75ff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.08);
  transform: translateY(-2px);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
  font-weight: 400;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; line-height: 1; }
.brand-logo { height: 52px; width: auto; display: block; }
.brand-mark {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-top: 3px;
}
.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-size: 15px;
  color: var(--text-dim);
  position: relative;
  transition: color .25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { width: 100%; }

/* ---------- Login button ---------- */
.nav-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.nav-login-btn:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(108, 99, 255, 0.08);
}

/* ---------- Language switcher ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
}
.lang-btn {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 5px;
  border-radius: 6px;
  opacity: 0.45;
  transition: opacity .2s ease, background .2s ease, transform .15s ease;
}
.lang-btn:hover { opacity: 0.8; background: rgba(255,255,255,0.06); }
.lang-btn.active { opacity: 1; transform: scale(1.15); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: max-height .35s ease, padding .35s ease;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { max-height: 420px; padding: 12px 24px 24px; }
.mobile-link {
  padding: 14px 4px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 17px;
}
.mobile-cta { margin-top: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 150px 0 80px;
  overflow: hidden;
}
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero-copy { max-width: 600px; }
.hero-title {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
  color: #F4F4FA;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 0 38px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Hero visual: AI automation hub ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ai-hub {
  width: 100%;
  max-width: 480px;
  height: auto;
  overflow: visible;
}

.is-hidden { display: none !important; }

/* rotating outer rings */
.ring { transform-origin: 240px 240px; }
.ring-a { animation: hub-spin 70s linear infinite; }
.ring-b { animation: hub-spin 52s linear infinite reverse; }

/* orbiting particles */
.hub-orbit { transform-origin: 240px 240px; animation: hub-spin 20s linear infinite; }
.hub-orbit circle { filter: drop-shadow(0 0 6px currentColor); }
.hub-orbit-rev { animation-duration: 26s; animation-direction: reverse; }

/* connectors (flowing data) */
.hub-link { stroke-dasharray: 4 10; animation: hub-flow 2.4s linear infinite; }
.hub-link:nth-child(2) { animation-delay: -0.4s; }
.hub-link:nth-child(3) { animation-delay: -0.8s; }
.hub-link:nth-child(4) { animation-delay: -1.2s; }
.hub-link:nth-child(5) { animation-delay: -1.6s; }
.hub-link:nth-child(6) { animation-delay: -2s; }

/* traveling data packets (hidden where offset-path is unsupported) */
.pkt { display: none; }
@supports (offset-path: path("M0 0")) {
  .pkt {
    display: block;
    offset-rotate: 0deg;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(108, 99, 255, 0.9));
    animation: pkt-travel 3s linear infinite;
  }
  .pkt-1 { offset-path: path("M240 75 L240 240"); animation-delay: 0s; }
  .pkt-2 { offset-path: path("M240 240 L383 158"); animation-delay: -0.5s; }
  .pkt-3 { offset-path: path("M383 322 L240 240"); animation-delay: -1s; }
  .pkt-4 { offset-path: path("M240 240 L240 405"); animation-delay: -1.5s; }
  .pkt-5 { offset-path: path("M97 322 L240 240"); animation-delay: -2s; }
  .pkt-6 { offset-path: path("M240 240 L97 158"); animation-delay: -2.5s; }
}

/* tool node badges */
.hub-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: hub-float 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

/* glowing AI core */
.core-glow { transform-origin: 240px 240px; animation: hub-pulse 4s ease-in-out infinite; }
.core-hex { transform-origin: 240px 240px; animation: hub-spin 28s linear infinite; }
.core-agent {
  transform-origin: 240px 240px;
  filter: drop-shadow(0 0 10px rgba(140, 130, 255, 0.95));
  animation: hub-breathe 3.6s ease-in-out infinite;
}

@keyframes hub-spin { to { transform: rotate(360deg); } }
@keyframes hub-flow { to { stroke-dashoffset: -140; } }
@keyframes hub-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes hub-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes hub-breathe {
  0%, 100% { transform: scale(0.97); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}
@keyframes pkt-travel {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 40px;
  margin-top: 70px;
}
.stat {
  flex: 1;
  min-width: 140px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}
.stat-num {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--text);
}
.stat-label { font-size: 13px; color: var(--text-dim); }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section { padding: 100px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.section-title { font-size: clamp(28px, 4.5vw, 46px); margin-bottom: 16px; }
.section-sub { font-size: clamp(16px, 2vw, 19px); color: var(--text-dim); }

.closing-line {
  text-align: center;
  max-width: 760px;
  margin: 56px auto 0;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-dim);
  font-style: italic;
}
.closing-line strong { color: var(--orange); font-style: normal; }
.closing-line.big {
  font-style: normal;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: clamp(22px, 3.5vw, 36px);
}

/* ---------- Problema: coste real (medidor + barras) ---------- */
.cost-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}
.cost-gauge { text-align: center; }
.gauge-ring {
  --pct: 50;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.06) 0);
}
.gauge-ring::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border);
}
.gauge-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.gauge-pct {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 56px;
  color: var(--text);
}
.gauge-pct b { color: var(--accent); font-weight: 700; font-size: 34px; }
.gauge-cap { font-size: 14px; color: var(--text-dim); margin-top: 8px; }
.cost-gauge-note { font-size: 15px; color: var(--text-dim); max-width: 260px; margin: 0 auto; }
.cost-gauge-note strong { color: var(--orange); }

.cost-break-title { font-size: 15px; color: var(--text-dim); margin-bottom: 24px; }
.cost-bar { margin-bottom: 22px; }
.cost-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}
.cost-bar-label { font-size: 15px; color: var(--text); }
.cost-bar-label em { color: var(--text-dim); font-style: normal; font-size: 13px; }
.cost-bar-num {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--accent);
  white-space: nowrap;
}
.cost-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cost-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.1s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--i, 0) * 0.18s + 0.15s);
}
.cost-grid.visible .cost-fill { width: var(--w); }
.cost-foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
  color: var(--text-dim);
  font-style: italic;
}

/* ---------- 3-up glass cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.card-icon { font-size: 34px; display: block; margin-bottom: 18px; }
.card-title {
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.card-text { color: var(--text-dim); font-size: 15px; }

/* ---------- Diferenciación: insignias de icono alineadas + movimiento ---------- */
.diff-card { position: relative; text-align: center; }
.diff-step {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  opacity: 0.5;
}
.diff-icon {
  --ring: var(--accent);
  position: relative;
  width: 76px;
  height: 76px;
  margin: 4px auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 28%, rgba(108, 99, 255, 0.22), rgba(10, 10, 20, 0.55));
}
.diff-2 .diff-icon { --ring: var(--accent-2); }
.diff-3 .diff-icon { --ring: var(--orange); }
.diff-icon::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--ring) 80%, #ffffff 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: diff-rotate 4.5s linear infinite;
}
.diff-icon svg {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--ring);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes diff-rotate { to { transform: rotate(360deg); } }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.service-featured {
  border-color: rgba(108, 99, 255, 0.5);
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.12);
}
.service-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.level-badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
}
.level-base { color: var(--accent-2); background: rgba(0, 212, 170, 0.1); border: 1px solid rgba(0, 212, 170, 0.4); }
.level-pro { color: var(--accent); background: rgba(108, 99, 255, 0.12); border: 1px solid rgba(108, 99, 255, 0.5); }
.level-premium { color: var(--gold); background: rgba(245, 200, 66, 0.1); border: 1px solid rgba(245, 200, 66, 0.4); }
.level-custom { color: var(--text-dim); background: rgba(136, 136, 170, 0.1); border: 1px solid rgba(136, 136, 170, 0.3); }

.tag-badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: auto;
}
.tag-sold { background: var(--orange); color: #fff; }
.tag-roi { background: rgba(0, 212, 170, 0.15); color: var(--accent-2); }
.tag-roi-high { background: rgba(245, 200, 66, 0.15); color: var(--gold); }
.tag-new { background: rgba(0, 212, 170, 0.9); color: #04221b; }

.service-title { font-size: 21px; margin-bottom: 10px; }
.service-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; flex: 1; }
.service-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}
.service-meta > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
}
.meta-label { color: var(--text-dim); }
.meta-val { font-weight: 500; color: var(--text); }
.meta-val.accent { color: var(--accent-2); }

/* ---------- Logos de integración por servicio ---------- */
.service-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tool-chip {
  height: 34px;
  min-width: 34px;
  padding: 0 7px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.tool-chip:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.tool-ico { width: 17px; height: 17px; fill: currentColor; }
.tool-chip-text {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 0 11px;
}

/* ============================================================
   METODOLOGÍA — timeline
   ============================================================ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 0;
}
.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
  box-shadow: var(--glow);
}
.timeline-step:last-child .step-num {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 30px rgba(235, 103, 7, 0.4);
}
.step-title { font-size: 18px; margin-bottom: 8px; }
.step-text { font-size: 13px; color: var(--text-dim); }

/* ============================================================
   PLANES
   ============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.plan-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(108, 99, 255, 0.08), var(--bg-2));
  box-shadow: var(--glow);
  transform: scale(1.03);
}
.plan-featured:hover { transform: scale(1.03) translateY(-4px); }
.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name {
  font-size: 20px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.plan-name span { color: var(--text-dim); font-weight: 600; }
.plan-tier {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tier-num {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 46px;
  line-height: 1;
  color: var(--text);
}
.plan-featured .tier-num { color: var(--accent); }
.tier-cap { font-size: 14px; color: var(--text-dim); }
.plan-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.plan-features li {
  font-size: 15px;
  color: var(--text-dim);
  padding-left: 26px;
  position: relative;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 7px;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}
.plan-features li strong { color: var(--text); }
.plans-footer { text-align: center; margin-top: 40px; color: var(--text-dim); font-size: 14px; }

/* ============================================================
   CASO DE ÉXITO
   ============================================================ */
.case-card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
}
.case-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.case-company { font-size: 26px; }
.case-sector {
  font-size: 13px;
  color: var(--accent-2);
  border: 1px solid rgba(0, 212, 170, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}
.case-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.case-block p { font-size: 15px; color: var(--text-dim); }
.case-quote {
  margin: 0;
  padding: 28px 32px;
  border-left: 3px solid var(--accent);
  background: rgba(108, 99, 255, 0.05);
  border-radius: 0 12px 12px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}
.case-quote cite {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-style: normal;
  color: var(--text-dim);
}

/* ============================================================
   SOBRE MÍ
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
.about-photo { display: flex; justify-content: center; }
.avatar-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 26%;
  border: 1px solid var(--accent);
  box-shadow: var(--glow);
  background: var(--bg-2);
}
.avatar-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 72px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(108, 99, 255, 0.28), rgba(235, 103, 7, 0.18));
  border: 1px solid var(--accent);
  box-shadow: var(--glow);
  letter-spacing: 0.04em;
}
.about-name { font-size: 30px; margin-bottom: 6px; }
.about-role { color: var(--accent-2); font-size: 16px; margin-bottom: 14px; }
.about-bio { color: var(--text-dim); margin-bottom: 28px; }
.about-tags { margin-bottom: 24px; }
.pill-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.pill-group { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.about-stats .stat { padding: 0; min-width: 0; }
.about-stats .stat::before { display: none; }
.about-stats .stat-num { color: var(--accent); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-section {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(108, 99, 255, 0.1), transparent 70%),
    var(--bg-2);
}
.process-steps {
  list-style: none;
  margin: 0 0 70px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: none;
}
.process-step {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .3s ease, transform .3s ease;
}
.process-step:hover { border-color: var(--accent); transform: translateY(-3px); }
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step h3 em { color: var(--accent-2); font-style: normal; font-weight: 400; font-size: 13px; }
.process-step p { font-size: 14px; color: var(--text-dim); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; color: var(--text-dim); letter-spacing: 0.02em; }
.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  transition: border-color .25s ease, box-shadow .25s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}
.form-alt { text-align: center; font-size: 14px; color: var(--text-dim); margin-top: 4px; }
.form-alt a { color: var(--accent-2); }

.form-status {
  text-align: center;
  font-size: 14px;
  margin-top: 2px;
  min-height: 1.2em;
  transition: color .2s ease;
}
.form-status.is-ok { color: var(--accent-2); }
.form-status.is-error { color: #ff8a8a; }

/* ---------- FAQ ---------- */
.faq-title { font-size: 22px; margin-bottom: 22px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--glass);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
}
.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform .3s ease;
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a p {
  padding: 0 20px 20px;
  color: var(--text-dim);
  font-size: 15px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo { height: 64px; width: auto; display: block; }
.footer-tagline { color: var(--text-dim); font-size: 15px; max-width: 360px; margin-top: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-dim); font-size: 15px; transition: color .25s ease; }
.footer-links a:hover { color: var(--text); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a { color: var(--text-dim); font-size: 15px; transition: color .25s ease; }
.footer-contact a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  padding-bottom: 30px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* ============================================================
   WIDGET WHATSAPP (mini-agente)
   ============================================================ */
.wa-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

/* botón flotante */
.wa-float {
  position: relative;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: wa-pulse 2.6s ease-out infinite;
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float-ico { width: 30px; height: 30px; fill: #fff; }
.wa-float-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 8px 13px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-float:hover .wa-float-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* panel de chat */
.wa-panel {
  width: 340px;
  max-width: calc(100vw - 44px);
  height: 470px;
  max-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  background: #0b1014;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity .22s ease, transform .22s ease;
}
.wa-panel.open { opacity: 1; transform: translateY(0) scale(1); }
.wa-panel[hidden] { display: none; }

.wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #1f2c33;
}
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; display: block; }
.wa-headtext { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.wa-headtext strong { font-size: 15px; color: #fff; font-weight: 600; }
.wa-status { font-size: 12px; color: #8fd0a8; display: flex; align-items: center; gap: 6px; }
.wa-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #25D366; }
.wa-close { background: none; border: none; color: #cfd6da; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }

.wa-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0b141a;
}
.wa-msg {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  animation: wa-pop .25s ease;
}
.wa-msg-bot { align-self: flex-start; background: #202c33; color: #e9edef; border-top-left-radius: 4px; }
.wa-msg-me { align-self: flex-end; background: #005c4b; color: #e9edef; border-top-right-radius: 4px; }
@keyframes wa-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wa-dots { display: inline-flex; gap: 4px; padding: 2px 0; }
.wa-dots i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: wa-blink 1s infinite; }
.wa-dots i:nth-child(2) { animation-delay: .2s; }
.wa-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes wa-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.wa-foot {
  padding: 10px 12px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #0b1014;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.wa-quick {
  background: transparent;
  border: 1px solid #25D366;
  color: #25D366;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.wa-quick:hover { background: #25D366; color: #06231a; }
.wa-skip { border-color: rgba(255, 255, 255, 0.22); color: var(--text-dim); }
.wa-skip:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.wa-inputbar { display: flex; width: 100%; gap: 8px; }
.wa-inputbar input {
  flex: 1;
  background: #202c33;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
  color: #e9edef;
  font-size: 14px;
  font-family: inherit;
}
.wa-inputbar input:focus { outline: none; border-color: #25D366; }
.wa-send { width: 42px; flex-shrink: 0; border: none; border-radius: 50%; background: #25D366; color: #06231a; font-size: 15px; cursor: pointer; }
.wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #25D366;
  color: #06231a;
  font-weight: 600;
  border-radius: 999px;
  padding: 11px;
  font-size: 14px;
}
.wa-cta .wa-float-ico { width: 20px; height: 20px; fill: #06231a; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ring, .hub-orbit, .hub-link, .pkt, .hub-node,
  .core-glow, .core-hex, .core-agent { animation: none; }
  .diff-icon::before { animation: none; }
  .cost-fill { transition: none; width: var(--w); }
  .wa-float { animation: none; }
  .wa-panel, .wa-msg, .wa-dots i { animation: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .lang-btn { font-size: 11px; padding: 4px 5px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .hero-copy { max-width: 640px; margin: 0 auto; }
  .hero-title { font-size: 40px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .ai-hub { max-width: 320px; }

  .cards-3,
  .case-grid { grid-template-columns: 1fr; }

  .cost-grid { grid-template-columns: 1fr; gap: 40px; max-width: 460px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 22px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
  }
  .timeline-step {
    text-align: left;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 18px;
    align-items: start;
    padding-bottom: 32px;
  }
  .step-num { margin-bottom: 0; }
  .timeline-step > .step-title,
  .timeline-step > .step-text { grid-column: 2; }
  .step-title { margin-top: 8px; }

  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-4px); }

  .about-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .about-photo { order: -1; }
  .pill-group { justify-content: center; }

  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .hero { padding: 130px 0 70px; }
  .hero-title { font-size: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .stats-row { gap: 24px 0; }
  .stat { flex: 1 1 45%; min-width: 45%; }
  .stat + .stat::before { display: none; }
  .case-card { padding: 30px 24px; }
  .case-quote { padding: 22px; font-size: 16px; }
  .avatar-circle { width: 190px; height: 190px; font-size: 58px; }
  .avatar-photo { width: 190px; height: 190px; }

  .gauge-ring { width: 184px; height: 184px; }
  .gauge-pct { font-size: 46px; }
  .gauge-pct b { font-size: 28px; }
  .cost-bar-num { font-size: 22px; }

  .wa-widget { right: 16px; bottom: 16px; }
  .wa-float { width: 52px; height: 52px; }
  .wa-float-ico { width: 27px; height: 27px; }
  .wa-float-tip { display: none; }
  .wa-panel { height: 62vh; }
}
