/* ==========================================================================
   Nikato IA — ia.nikatoestudio.uy
   Pure CSS. Dark premium / "Silicon Valley product".
   Brand tokens extracted from nikatoestudio.uy. Type ref: midu.design.
   ========================================================================== */

/* ----------------------------- Tokens --------------------------------- */
:root {
  /* Base Nikato (verified from nikatoestudio.uy) */
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.64);
  --muted: rgba(255, 255, 255, 0.45);
  --accent: #34ecac;
  --accent-deep: #0e8e66;
  --border: rgba(255, 255, 255, 0.08);

  /* Tech extensions */
  --surface: #121212;
  --surface-2: #181818;
  --accent-glow: rgba(52, 236, 172, 0.16);
  --accent-soft: rgba(52, 236, 172, 0.10);
  --border-accent: rgba(52, 236, 172, 0.30);
  --cool: rgba(60, 120, 240, 0.14);
  --violet: rgba(140, 90, 240, 0.10);

  --maxw: 1200px;
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { list-style: none; }
::selection { background: var(--accent); color: #06150f; }

/* Hide the native cursor everywhere — only once the custom cursor is active.
   Gated on .has-cursor so a JS failure never leaves the user with no cursor. */
.has-cursor, .has-cursor * { cursor: none !important; }

/* ----------------------------- Grain ---------------------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Global ambient gradient (very subtle, behind everything) */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -5%, rgba(52, 236, 172, 0.07), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(60, 120, 240, 0.05), transparent 70%);
}

/* ----------------------------- Layout --------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.section { position: relative; padding-block: clamp(80px, 12vh, 150px); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }

/* ----------------------------- Typography ----------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.section-title {
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-lead {
  margin-top: 22px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  font-weight: 300;
  max-width: 56ch;
}

/* Instrument Serif accent — the midu.design editorial italic */
.hero-title em,
.section-title em,
.cta-title em,
.problema-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
  font-size: 1.06em;
}

/* ----------------------------- Buttons -------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  will-change: transform;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease),
    color 0.25s, filter 0.25s;
}
.btn-primary {
  background: var(--accent);
  color: #06150f;
  box-shadow: 0 6px 24px -10px rgba(52, 236, 172, 0.5);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 12px 38px -8px rgba(52, 236, 172, 0.6); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-lg { padding: 19px 34px; font-size: 17px; border-radius: 14px; }
.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ----------------------------- Cursor --------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: difference; /* inverts whatever is behind it; splits across edges */
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.28s var(--ease), height 0.28s var(--ease), opacity 0.3s;
  will-change: transform;
}
.cursor.is-hover { width: 48px; height: 48px; }
.cursor.is-down { width: 13px; height: 13px; }
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* --------------------------- Scroll progress -------------------------- */
.scroll-rail {
  position: fixed;
  top: 120px; bottom: 120px; right: 30px;
  width: 16px;
  z-index: 900;
  pointer-events: none;
}
.scroll-rail-track,
.scroll-rail-progress {
  position: absolute;
  left: 50%; top: 0;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
}
.scroll-rail-track { height: 100%; background: rgba(255, 255, 255, 0.07); }
.scroll-rail-progress {
  height: 0;
  background: linear-gradient(to bottom, rgba(52, 236, 172, 0), var(--accent) 72%, #d6fff0);
}
.scroll-rail-thumb {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #eafff7;
  animation: railPulse 2.6s ease-in-out infinite;
}
@keyframes railPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 236, 172, 0.22), 0 0 12px 1px var(--accent); }
  50%      { box-shadow: 0 0 0 5px rgba(52, 236, 172, 0.10), 0 0 20px 3px var(--accent); }
}
.scroll-rail-label {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.scroll-rail.is-scrolling .scroll-rail-label { opacity: 1; }
@media (hover: none), (pointer: coarse), (max-width: 860px) {
  .scroll-rail { display: none; }
}

/* ------------------------------- Nav ---------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 12px; }
.nav-logo-img { height: 23px; width: auto; display: block; }
.nav-pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  background: var(--accent-soft);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--text-muted); transition: color 0.2s; position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 6px; }
.nav-burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-burger span {
  width: 18px; height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 18px clamp(20px, 5vw, 48px) 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-14px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.3s;
  z-index: 999;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a:not(.btn) {
  padding: 14px 4px;
  font-size: 19px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-cta { margin-top: 16px; }

/* ------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: 60px;
}
.hero-gradient {
  --bx: 0px;
  --by: 0px;
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at calc(18% + var(--bx)) calc(38% + var(--by)), var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 60% 80% at calc(82% - var(--bx)) calc(62% - var(--by)), var(--cool), transparent 62%),
    radial-gradient(ellipse 50% 50% at 60% 10%, var(--violet), transparent 60%);
  animation: gradientShift 14s ease-in-out infinite alternate;
  filter: blur(8px);
}
@keyframes gradientShift {
  0%   { opacity: 0.65; transform: scale(1) translate(0, 0); }
  50%  { opacity: 0.95; transform: scale(1.12) translate(-2%, 2%); }
  100% { opacity: 0.75; transform: scale(1.06) translate(2.5%, -2%); }
}
.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
  margin-bottom: 30px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

.hero-title {
  font-size: clamp(50px, 8vw, 110px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero-title .line { display: block; }
.hero-title .line-inner { display: block; }

.hero-sub {
  margin-top: 30px;
  max-width: 56ch;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-muted);
}
.hero-ctas { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badge {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(52, 236, 172, 0.6);
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0% { box-shadow: 0 0 0 0 rgba(52, 236, 172, 0.5); }
  100% { box-shadow: 0 0 0 12px rgba(52, 236, 172, 0); }
}
.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 18px; height: 52px;
}
.hero-scroll::before {
  content: '';
  position: absolute; left: 50%; top: 0;
  width: 1px; height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.015));
}
.hero-scroll::after {
  content: '';
  position: absolute; left: 50%; top: 0;
  width: 2px; height: 16px;
  margin-left: -1px;
  border-radius: 2px;
  background: linear-gradient(rgba(52, 236, 172, 0), var(--accent));
  box-shadow: 0 0 10px var(--accent-glow);
  animation: heroSpark 2.3s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes heroSpark {
  0%   { transform: translateY(-16px); opacity: 0; }
  25%  { opacity: 1; }
  72%  { opacity: 1; }
  100% { transform: translateY(52px); opacity: 0; }
}

/* ----------------------------- Problema ------------------------------- */
.problema-title { max-width: 16ch; }
.pain-list {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  gap: 2px;
  max-width: 880px;
}
.pain-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  border-top: 1px solid var(--border);
  font-size: clamp(17px, 2.2vw, 23px);
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.3s, padding-left 0.3s var(--ease);
}
.pain-item:last-child { border-bottom: 1px solid var(--border); }
.pain-item:hover { color: var(--text); padding-left: 12px; }
.pain-x {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 80, 80, 0.08);
  color: #ff6b6b;
  font-size: 13px;
}

/* ---------------------------- Stats band ------------------------------ */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(rgba(52, 236, 172, 0.02), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: clamp(44px, 6vw, 70px);
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.count-prefix { opacity: 0.7; }
.stat-label { font-size: 14px; color: var(--text-muted); font-weight: 400; line-height: 1.4; }

/* ---------------------------- Soluciones ------------------------------ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(180px circle at var(--mx, 78%) var(--my, 0%), var(--accent-glow), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--card-angle),
    transparent 0deg,
    transparent 258deg,
    rgba(52, 236, 172, 0.5) 312deg,
    #d8fff2 338deg,
    rgba(52, 236, 172, 0.5) 350deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.4s;
  animation: cardSpin 6s linear infinite;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  background: var(--surface-2);
  box-shadow: 0 24px 60px -28px rgba(52, 236, 172, 0.4);
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }

.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s;
}
.card:hover .card-num { color: var(--accent); }
.card-icon {
  display: inline-flex;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.4s, border-color 0.4s, background 0.4s, transform 0.5s var(--ease);
}
.card:hover .card-icon {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-soft);
  transform: translateY(-2px) rotate(-4deg);
}
.card-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.card-text { font-size: 14.5px; color: var(--text-muted); font-weight: 300; line-height: 1.6; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.card-tags span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.3s, border-color 0.3s;
}
.card:hover .card-tags span { border-color: rgba(52, 236, 172, 0.18); }

/* ------------------------------ Casos --------------------------------- */
.cases { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 90px); }
.case {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.case-reverse .case-media { order: 2; }
.case-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  max-width: 420px;
  background: var(--surface);
}
.case-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.12) contrast(1.02);
  transition: filter 0.6s var(--ease);
  will-change: transform;
}
.case:hover .case-media img { filter: grayscale(0) contrast(1.06) brightness(1.04); }
.case-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 55%, rgba(10, 10, 10, 0.55));
  pointer-events: none;
}
.case-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-accent);
}
.case-body { max-width: 56ch; }
.case-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.case-name {
  margin-top: 10px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.case-text {
  margin-top: 18px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
}
.case-text strong { color: var(--text); font-weight: 600; }

.casos-cta {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.casos-cta p { font-size: clamp(18px, 2.4vw, 26px); font-weight: 500; letter-spacing: -0.02em; max-width: 22ch; }

/* ----------------------------- Proceso -------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease);
}
.step:hover { border-color: var(--border-accent); background: var(--surface-2); transform: translateY(-4px); }
.step-num {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 7px 13px;
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  background: var(--accent-soft);
  margin-bottom: 22px;
}
.step-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.step-text { font-size: 15px; color: var(--text-muted); font-weight: 300; line-height: 1.6; }

/* ------------------------------ Precio -------------------------------- */
.precio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.price-card {
  padding: 32px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.price-card:hover { border-color: var(--border-accent); transform: translateY(-4px); }
.price-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.price-value { margin-top: 16px; font-size: 18px; color: var(--text-muted); font-weight: 300; }
.price-amount { font-size: clamp(34px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.price-period { font-size: 20px; font-weight: 600; color: var(--text-muted); }
.price-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

.price-aside {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(52, 236, 172, 0.05), transparent);
}
.price-disclaimer { font-size: 15px; color: var(--text-muted); font-weight: 300; line-height: 1.6; max-width: 52ch; }

.value-compare {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.value-col { display: flex; flex-direction: column; gap: 8px; padding: 34px 32px; }
.value-col-muted { background: rgba(255, 255, 255, 0.015); }
.value-col-accent { background: linear-gradient(140deg, rgba(52, 236, 172, 0.08), transparent); }
.value-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.value-col-accent .value-tag { color: var(--accent); }
.value-price { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--muted); }
.value-col-accent .value-price { color: var(--text); }
.value-price span { font-size: 18px; font-weight: 600; opacity: 0.6; }
.value-desc { font-size: 14px; color: var(--muted); }
.value-col-accent .value-desc { color: var(--text-muted); }
.value-vs {
  display: grid;
  place-items: center;
  padding-inline: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  border-inline: 1px solid var(--border);
}

/* ------------------------------- FAQ ---------------------------------- */
.faq-container { max-width: 860px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  background: none;
  border: none;
  text-align: left;
  color: var(--text);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.25s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 1.6px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon { border-color: var(--border-accent); transform: rotate(180deg); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }
.faq-a {
  overflow: hidden;
  height: 0;
  transition: height 0.4s var(--ease);
}
.faq-a p {
  padding: 0 4px 26px;
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
  max-width: 62ch;
}

/* ---------------------------- CTA final ------------------------------- */
.cta-final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(100px, 16vh, 200px);
  border-top: 1px solid var(--border);
}
.cta-gradient { animation-duration: 16s; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-title {
  font-size: clamp(38px, 7vw, 92px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.cta-sub {
  margin-top: 26px;
  max-width: 52ch;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 300;
  color: var(--text-muted);
}
.cta-actions { margin-top: 40px; }
.cta-secondary {
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.cta-secondary:hover { color: var(--accent); border-color: var(--border-accent); }

/* ------------------------------ Footer -------------------------------- */
.footer { border-top: 1px solid var(--border); padding-top: clamp(48px, 7vw, 80px); padding-bottom: 40px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { height: 34px; width: auto; }
.footer-tag { font-size: 15px; font-weight: 500; color: var(--text); }
.footer-loc { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-links a { color: var(--text-muted); transition: color 0.2s; width: fit-content; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ======================= Reveal states (JS-gated) ===================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

.js .hero-title .line-inner { opacity: 0; }
.js [data-hero] { opacity: 0; transform: translateY(22px); }

/* Master safety net — force everything visible after 6s no matter what */
.force-visible [data-reveal],
.force-visible .hero-title .line-inner,
.force-visible [data-hero] {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================ Responsive ============================== */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-pill { display: none; }

  .case,
  .case-reverse { grid-template-columns: 1fr; }
  .case-reverse .case-media { order: 0; }
  .case-media { max-width: 100%; aspect-ratio: 16 / 11; }
  .case-body { max-width: 100%; }

  .precio-grid { grid-template-columns: 1fr; }
  .value-compare { grid-template-columns: 1fr; }
  .value-vs { border-inline: none; border-block: 1px solid var(--border); padding-block: 8px; }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .casos-cta { flex-direction: column; align-items: flex-start; }
  .casos-cta .btn { width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (max-width: 420px) {
  .price-aside { flex-direction: column; align-items: flex-start; }
  .price-aside .btn { width: 100%; }
}

/* Respect reduced data/motion ONLY for the heavy looping bg, never for content reveals */
@media (prefers-reduced-motion: reduce) {
  .hero-gradient { animation-duration: 30s; }
}

/* ====================================================================== */
/* =============== ENHANCEMENTS v2 — modern wow + conversion ============ */
/* ====================================================================== */

/* --- No widows / balanced wrapping --- */
.hero-title, .section-title, .cta-title, .case-name,
.card-title, .ai-title, .step-title, .problema-title {
  text-wrap: balance;
}
.hero-sub, .section-lead, .card-text, .case-text, .ai-lead,
.step-text, .price-disclaimer, .faq-a p, .cta-sub {
  text-wrap: pretty;
}

/* --- Bigger, bolder section titles --- */
.section-title { font-size: clamp(34px, 5.6vw, 72px); letter-spacing: -0.035em; }

/* ---------------------------- Marquee --------------------------------- */
.marquee-section {
  padding-block: clamp(30px, 4vw, 52px);
  border-block: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(rgba(255, 255, 255, 0.012), transparent);
}
.marquee-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq-item {
  font-size: clamp(20px, 2.7vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.46);
  padding-inline: 22px;
  transition: color 0.3s;
}
.mq-item:hover { color: var(--accent); }
.mq-sep {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
}

/* ------------------------- AI feature section ------------------------- */
.ai-feature {
  position: relative;
  overflow: hidden;
  padding-block: clamp(90px, 14vh, 180px);
  border-top: 1px solid var(--border);
}
.ai-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; opacity: 0.6;
  pointer-events: none;
}
.ai-feature-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 46% at 50% 36%, rgba(52, 236, 172, 0.10), transparent 70%);
}
.ai-inner {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.ai-title {
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.038em;
  margin-top: 10px;
}
.ai-lead {
  margin-top: 26px;
  max-width: 54ch;
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 300;
  color: var(--text-muted);
}
.ai-stage {
  position: relative;
  z-index: 1;
  margin: clamp(48px, 7vw, 96px) auto 0;
  max-width: 1000px;
  padding-inline: clamp(20px, 5vw, 48px);
}
.ai-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: 0 50px 130px -50px rgba(52, 236, 172, 0.45);
}
.ai-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(130% 100% at 50% 0%, transparent 38%, rgba(10, 10, 10, 0.7));
  pointer-events: none;
}
.ai-img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  will-change: transform;
}
.ai-chip {
  position: absolute;
  z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(16, 16, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.75);
}
.ai-chip-body { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.ai-chip-body strong { font-size: 14px; font-weight: 600; color: var(--text); }
.ai-chip-body em, .ai-chip-body span { font-size: 12.5px; color: var(--text-muted); font-style: normal; }
.ai-chip-body em { font-style: italic; }
.ai-chip-ico {
  display: grid; place-items: center;
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(52, 236, 172, 0.14);
  color: var(--accent);
}
.ai-chip-ico-ok { background: var(--accent); color: #06150f; }
.ai-stars { color: var(--accent); letter-spacing: 1.5px; }
.ai-star-dim { color: rgba(255, 255, 255, 0.25); }
.ai-chip-1 { top: 7%; left: -2%; animation: floatY 5s ease-in-out infinite; }
.ai-chip-2 { top: 42%; right: -3%; animation: floatY 6s ease-in-out infinite 0.4s; }
.ai-chip-3 { bottom: 7%; left: 9%; animation: floatY 5.5s ease-in-out infinite 0.9s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --------------------------- Floating WhatsApp ------------------------ */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  height: 58px; width: 58px;
  border-radius: 100px;
  background: #25d366;
  color: #06150f;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, 0.6);
  overflow: hidden;
  transform: translateY(120px) scale(0.85);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.4s, width 0.4s var(--ease), background 0.25s;
}
.wa-float.visible { transform: none; opacity: 1; pointer-events: auto; }
.wa-float svg { width: 30px; height: 30px; flex-shrink: 0; margin: 0 14px; position: relative; z-index: 1; }
.wa-float-label {
  font-weight: 600; font-size: 15px; white-space: nowrap;
  padding-right: 22px; opacity: 0;
  transition: opacity 0.25s;
}
.wa-float-ring {
  position: absolute; inset: 0; border-radius: 100px;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { width: 188px; background: #2bdb6e; }
  .wa-float:hover .wa-float-label { opacity: 1; }
}

/* --------------------------- Responsive (v2) -------------------------- */
@media (max-width: 760px) {
  .ai-chip { padding: 10px 13px; gap: 10px; }
  .ai-chip-1 { top: 4%; left: 0; }
  .ai-chip-2 { display: none; }
  .ai-chip-3 { bottom: 4%; left: 2%; }
  .ai-chip-body strong { font-size: 13px; }
}
@media (max-width: 480px) {
  .wa-float { right: 16px; bottom: 16px; height: 54px; width: 54px; }
  .wa-float svg { width: 27px; height: 27px; margin: 0 13.5px; }
}

/* --- Rotating border light on cards (opsnexus-style, non-constant speed) --- */
@property --card-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes cardSpin {
  0%   { --card-angle: 0deg; }
  22%  { --card-angle: 48deg; }
  48%  { --card-angle: 212deg; }
  78%  { --card-angle: 300deg; }
  100% { --card-angle: 360deg; }
}
.cards-grid .card:nth-child(2)::after { animation-delay: -0.9s; }
.cards-grid .card:nth-child(3)::after { animation-delay: -1.8s; }
.cards-grid .card:nth-child(4)::after { animation-delay: -2.6s; }
.cards-grid .card:nth-child(5)::after { animation-delay: -3.4s; }
.cards-grid .card:nth-child(6)::after { animation-delay: -4.1s; }
.cards-grid .card:nth-child(7)::after { animation-delay: -4.9s; }
.cards-grid .card:nth-child(8)::after { animation-delay: -5.5s; }
.cards-grid .card:nth-child(9)::after { animation-delay: -2.2s; }
