/* ============================================
   CONTEXTO DIGITAL — styles
   Tema: tinta + lime, tech-editorial premium
   ============================================ */

:root {
  --ink: #0a0a0b;
  --ink-2: #101012;
  --surface: #16161a;
  --surface-2: #1c1c21;
  --line: #2a2a30;
  --bone: #f4f1ea;
  --muted: #9a9a94;
  --muted-2: #6c6c68;
  --lime: #c3f53c;
  --lime-deep: #9bd11f;
  --violet: #7b6cff;
  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--lime); color: var(--ink); }

/* ---------- Atmosphere ---------- */
.bg-atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.glow {
  position: absolute; border-radius: 50%; filter: blur(120px);
  opacity: 0.5; will-change: transform;
}
.glow--lime {
  width: 50vw; height: 50vw; top: -15vw; right: -10vw;
  background: radial-gradient(circle, rgba(195,245,60,0.22), transparent 70%);
  animation: drift 22s var(--ease) infinite alternate;
}
.glow--deep {
  width: 45vw; height: 45vw; bottom: -10vw; left: -10vw;
  background: radial-gradient(circle, rgba(123,108,255,0.16), transparent 70%);
  animation: drift 28s var(--ease) infinite alternate-reverse;
}
@keyframes drift { to { transform: translate(6%, 8%) scale(1.15); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

/* ---------- Layout helpers ---------- */
section { position: relative; }
.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; padding: 0 24px; }
.kicker {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--lime); margin-bottom: 18px; text-transform: uppercase;
}
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }
.ital { font-style: italic; font-family: var(--font-display); font-weight: 400; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 100px; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s;
  white-space: nowrap;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn--primary {
  background: var(--lime); color: var(--ink);
  box-shadow: 0 0 0 0 rgba(195,245,60,0.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(195,245,60,0.55); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--bone); transform: translateY(-2px); }
.btn--small { padding: 11px 20px; font-size: 0.92rem; background: var(--bone); color: var(--ink); }
.btn--small:hover { background: var(--lime); }
.btn--block { width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px clamp(20px, 5vw, 48px);
  backdrop-filter: blur(14px);
  background: rgba(10,10,11,0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(10,10,11,0.82); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 1.4rem; color: var(--lime); }
.brand__bracket { font-weight: 500; }
.brand__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin: 0 1px; box-shadow: 0 0 12px var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.8); } }
.brand__name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.brand__name span { color: var(--muted); font-weight: 400; }
.brand__name--lg { font-size: 1.7rem; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 0.96rem; color: var(--muted); transition: color 0.2s; position: relative; }
.nav__links a:hover { color: var(--bone); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--lime); transition: width 0.25s var(--ease); }
.nav__links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(50px, 9vw, 110px) clamp(20px, 5vw, 48px) 80px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 7px 15px; margin-bottom: 28px;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.hero__title { font-size: clamp(3.1rem, 8vw, 6rem); font-weight: 400; margin-bottom: 28px; }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.hero__lead strong { color: var(--bone); font-weight: 600; }
.hero__lead em { color: var(--lime); font-style: italic; font-family: var(--font-display); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero__meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__meta > div:not(.hero__divider) { display: flex; flex-direction: column; }
.hero__meta strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.hero__meta span { font-size: 0.85rem; color: var(--muted-2); }
.hero__divider { width: 1px; height: 36px; background: var(--line); }

/* Terminal */
.terminal {
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
  transform: rotate(1.2deg);
}
.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.2);
}
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.terminal__bar span:first-child { background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: var(--lime); }
.terminal__bar p { margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); }
.terminal__body { padding: 22px; font-family: var(--font-mono); font-size: 0.86rem; display: flex; flex-direction: column; gap: 16px; }
.t-line { line-height: 1.5; opacity: 0; transform: translateY(8px); animation: lineIn 0.5s var(--ease) forwards; }
.terminal__body .t-line:nth-child(1) { animation-delay: 0.4s; }
.terminal__body .t-line:nth-child(2) { animation-delay: 1.0s; }
.terminal__body .t-line:nth-child(3) { animation-delay: 1.7s; }
.terminal__body .t-line:nth-child(4) { animation-delay: 2.4s; }
.terminal__body .t-line:nth-child(5) { animation-delay: 3.0s; }
@keyframes lineIn { to { opacity: 1; transform: translateY(0); } }
.t-prompt { color: var(--muted-2); }
.t-ai { color: var(--bone); }
.t-tag { color: var(--lime); }
.t-typing .dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.t-typing .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: blink 1.2s infinite; }
.t-typing .dots i:nth-child(2) { animation-delay: 0.2s; }
.t-typing .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* ---------- Strip ---------- */
.strip { max-width: var(--maxw); margin: 0 auto; padding: 30px clamp(20px,5vw,48px); border-block: 1px solid var(--line); }
.strip__label { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted-2); margin-bottom: 18px; }
.strip__items { display: flex; flex-wrap: wrap; gap: 14px 38px; align-items: center; }
.strip__items span { font-size: 1.05rem; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; transition: color 0.2s; }
.strip__items span:hover { color: var(--bone); }

/* ---------- Problem ---------- */
.problem { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px,10vw,120px) clamp(20px,5vw,48px); }
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prob-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform 0.3s var(--ease), border-color 0.3s;
}
.prob-card:hover { transform: translateY(-6px); border-color: var(--muted-2); }
.prob-card__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--lime); }
.prob-card h3 { margin: 16px 0 10px; }
.prob-card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Services ---------- */
.services { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px,6vw,70px) clamp(20px,5vw,48px) clamp(70px,10vw,120px); }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px 34px; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.svc::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(195,245,60,0.08), transparent 40%);
}
.svc:hover { transform: translateY(-6px); border-color: var(--muted-2); }
.svc:hover::before { opacity: 1; }
.svc--feature { background: linear-gradient(160deg, rgba(195,245,60,0.07), var(--surface) 60%); border-color: rgba(195,245,60,0.3); }
.svc__badge {
  position: absolute; top: 22px; right: 22px; font-family: var(--font-mono);
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--lime); color: var(--ink); padding: 5px 11px; border-radius: 100px; font-weight: 500;
}
.svc__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); border: 1px solid var(--line); color: var(--lime); margin-bottom: 22px;
}
.svc__icon svg { width: 26px; height: 26px; }
.svc h3 { margin-bottom: 12px; }
.svc > p { color: var(--muted); margin-bottom: 20px; }
.svc ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.svc li { position: relative; padding-left: 22px; font-size: 0.94rem; color: var(--bone); }
.svc li::before { content: "+"; position: absolute; left: 0; color: var(--lime); font-family: var(--font-mono); font-weight: 500; }

/* ---------- Process ---------- */
.process { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px,10vw,120px) clamp(20px,5vw,48px); }
.process__steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.3s, transform 0.3s var(--ease); }
.step:hover { border-color: var(--lime); transform: translateY(-4px); }
.step__num { font-family: var(--font-display); font-size: 3rem; font-weight: 300; color: var(--lime); line-height: 1; display: block; margin-bottom: 16px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Why ---------- */
.why { padding: clamp(70px,10vw,120px) clamp(20px,5vw,48px); border-block: 1px solid var(--line); background: var(--ink-2); }
.why__inner { max-width: var(--maxw); margin: 0 auto; }
.why h2 { margin-bottom: 56px; }
.why__points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.why-point { border-top: 1px solid var(--line); padding-top: 22px; }
.why-point h3 { color: var(--lime); margin-bottom: 10px; font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; letter-spacing: 0; }
.why-point p { color: var(--muted); }

/* ---------- CTA / Form ---------- */
.cta { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px,10vw,120px) clamp(20px,5vw,48px); }
.cta__panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
  background: linear-gradient(150deg, var(--surface-2), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(32px,5vw,60px);
}
.cta__copy h2 { margin: 14px 0 18px; }
.cta__sub { color: var(--muted); margin-bottom: 26px; }
.cta__bullets { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.cta__bullets li { display: flex; align-items: center; gap: 11px; font-weight: 500; }
.cta__bullets svg { color: var(--lime); flex-shrink: 0; }

.lead-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--bone); }
.field .opt { color: var(--muted-2); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--bone);
  background: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; transition: border-color 0.2s, box-shadow 0.2s; resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(195,245,60,0.15);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239a9a94' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.field select option { background: var(--ink); }
.form-note { font-size: 0.8rem; color: var(--muted-2); line-height: 1.5; margin-top: 4px; }
.form-note a { color: var(--lime); text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; padding: clamp(40px,6vw,70px) clamp(20px,5vw,48px) clamp(80px,11vw,130px); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color 0.3s; }
.faq-item[open] { border-color: var(--muted-2); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.5rem; color: var(--lime); transition: transform 0.3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 26px 24px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: clamp(50px,7vw,80px) clamp(20px,5vw,48px) 36px; }
.footer__top { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__brand p { color: var(--muted); margin-top: 16px; max-width: 380px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__cols h4 { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); margin-bottom: 16px; }
.footer__cols a { display: block; color: var(--muted); font-size: 0.96rem; margin-bottom: 10px; transition: color 0.2s; }
.footer__cols a:hover { color: var(--lime); }
.footer__bottom { max-width: var(--maxw); margin: 28px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted-2); font-size: 0.86rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px -6px rgba(37,211,102,0.6);
  transition: transform 0.25s var(--ease); animation: floatIn 0.5s var(--ease) 1s backwards;
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
@keyframes floatIn { from { transform: scale(0); opacity: 0; } }

/* ---------- Reveal on scroll (solo si hay JS; si no, todo visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Legal page ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: clamp(50px,8vw,90px) clamp(20px,5vw,48px) 100px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.legal .legal__date { font-family: var(--font-mono); font-size: 0.84rem; color: var(--muted-2); margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--lime); text-decoration: underline; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--lime); margin-bottom: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .terminal { transform: none; max-width: 460px; }
  .problem__grid, .process__steps { grid-template-columns: 1fr; }
  .services__grid, .why__points, .cta__panel, .footer__top { grid-template-columns: 1fr; }
  .cta__panel { gap: 36px; }
  .footer__top { gap: 36px; }
}
@media (max-width: 520px) {
  .nav { padding: 14px 18px; }
  .btn--small { padding: 10px 15px; font-size: 0.84rem; }
  .hero__meta { gap: 16px; }
  .hero__divider { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .wa-float { bottom: 18px; right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
