@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #06100d;
  --bg-alt: #0a1612;
  --surface: #0e1a16;
  --surface-2: #12211c;
  --line: #1f2d28;
  --line-strong: #2c4a40;
  --ink: #f0efec;
  --ink-soft: #a9b9b2;
  --green: #1d9e75;
  --green-dark: #0f6e56;
  --mint: #5dcaa5;
  --orange: #d85a30;
  --orange-hot: #e8693f;
  --radius: 18px;
  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 12, 11, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: block; margin-right: auto; }
.logo-svg { display: block; height: 44px; width: auto; }
.logo-svg text { font-family: var(--font); font-weight: 600; }
.logo-svg .wsub { font-weight: 500; }
.logo-svg--sm { height: 36px; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 10px 14px; color: var(--ink-soft); text-decoration: none; border-radius: 10px; font-weight: 500; font-size: .98rem; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 30px -10px rgba(216, 90, 48, .6); }
.btn--primary:hover { background: var(--orange-hot); transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(216, 90, 48, .75); }
.btn--wa { background: var(--green); color: #fff; box-shadow: 0 10px 30px -10px rgba(29, 158, 117, .6); }
.btn--wa:hover { background: var(--mint); color: var(--bg); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: var(--mint); background: rgba(93, 202, 165, .08); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .98rem; }
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 1.125rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 40px; isolation: isolate; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .85; }
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(29, 158, 117, .20), transparent 70%),
    radial-gradient(40% 40% at 8% 90%, rgba(216, 90, 48, .10), transparent 70%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; min-height: min(640px, calc(100svh - 190px)); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .95rem; color: var(--ink-soft); background: rgba(16, 24, 22, .7); margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(93, 202, 165, .2); }
h1 { font-size: clamp(2.5rem, 6vw, 4.9rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
h1 em { font-style: normal; color: var(--mint); }
.lead { margin-top: 24px; max-width: 34em; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Caso de ejemplo */
.case { background: linear-gradient(160deg, rgba(20, 32, 28, .92), rgba(12, 18, 16, .92)); border: 1px solid var(--line-strong); border-radius: 24px; padding: 22px; backdrop-filter: blur(8px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(29, 158, 117, .35); }
.case__head { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.case__tag { justify-self: start; padding: 2px 10px; border-radius: 999px; background: rgba(29, 158, 117, .16); color: var(--mint); font-size: .85rem; font-weight: 600; }
.case__head b { font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.chat { display: grid; gap: 10px; padding: 18px 0; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: .98rem; line-height: 1.45; }
.msg small { display: block; margin-bottom: 4px; color: var(--mint); font-size: .875rem; font-weight: 600; }
.msg--out { justify-self: start; background: var(--surface-2); border: 1px solid var(--line-strong); border-top-left-radius: 4px; }
.msg--in { justify-self: end; background: var(--green-dark); border-top-right-radius: 4px; font-weight: 600; padding-inline: 20px; }
.result { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.result li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; color: var(--ink-soft); line-height: 1.4; }
.result .ic { margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--green); color: #fff; width: 1.4em; height: 1.4em; }
.js .msg, .js .result li { opacity: 0; transform: translateY(10px); animation: nodein .6s ease forwards; }
.js .msg:nth-child(1) { animation-delay: .4s; }
.js .msg:nth-child(2) { animation-delay: 1.5s; }
.js .msg:nth-child(3) { animation-delay: 2.4s; }
.js .result li:nth-child(1) { animation-delay: 3.1s; }
.js .result li:nth-child(2) { animation-delay: 3.6s; }
.js .result li:nth-child(3) { animation-delay: 4.1s; }
@keyframes nodein { to { opacity: 1; transform: none; } }

.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.stack li { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-weight: 500; font-size: .98rem; background: rgba(16, 24, 22, .6); }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 60px); }
.head h2, .cta h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.15rem; }
.head--left { margin-bottom: 0; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; padding: 30px 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s, background .25s; }
.card:hover { border-color: var(--green); background: var(--surface-2); transform: translateY(-4px); }
.card__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(29, 158, 117, .14); color: var(--mint); margin-bottom: 22px; font-size: 1.15rem; }
.card h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: 10px; font-weight: 600; }
.card p { color: var(--ink-soft); }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.who { display: grid; gap: 14px; }
.who li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.who .ic { width: 28px; height: 28px; color: var(--mint); margin-top: 2px; }
.who span { display: grid; color: var(--ink-soft); }
.who b { color: var(--ink); font-weight: 600; font-size: 1.1rem; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.step { padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; margin-bottom: 20px; }
.step:last-child .step__n { background: var(--orange); }
.step h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 8px; font-weight: 600; }
.step p { color: var(--ink-soft); }

/* Área de Sistemas */
.lead-note { margin-top: 14px; font-size: 1.05rem; color: var(--ink-soft); }
.lead-note a { color: var(--mint); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lead-note a:hover { color: var(--ink); }
.outsource { padding-top: 0; }
.outsource__box { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line-strong); border-radius: 24px;
  background: radial-gradient(70% 120% at 0% 100%, rgba(29, 158, 117, .2), transparent 70%), var(--bg-alt); }
.outsource__box h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.outsource__box p { margin-top: 14px; max-width: 38em; color: var(--ink-soft); font-size: 1.1rem; }

/* CTA */
.cta { position: relative; padding: clamp(80px, 11vw, 140px) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line);
  background: radial-gradient(55% 80% at 50% 100%, rgba(29, 158, 117, .22), transparent 70%), var(--bg); }
.cta__in { display: grid; justify-items: center; gap: 22px; }
.cta p { max-width: 34em; color: var(--ink-soft); font-size: 1.15rem; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }

.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--ink-soft); font-size: .98rem; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer__in p { margin-right: auto; }
.footer a { text-decoration: none; padding: 10px 0; }
.footer a:hover { color: var(--mint); }

.floats { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.float { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--orange); color: #fff; box-shadow: 0 12px 30px -8px rgba(216, 90, 48, .7); transition: transform .2s; font-size: 1.5rem; }
.float:hover { transform: scale(1.07); }
.float--wa { background: var(--green); box-shadow: 0 12px 30px -8px rgba(29, 158, 117, .7); }
[hidden] { display: none !important; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 959px) {
  .outsource__box { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .hero__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .logo-svg { height: 38px; }
  .header__in { min-height: 64px; }
  .btn--sm { padding: 0 16px; }
  .grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { width: 100%; }
  .flow { padding: 16px; }
  .btn--lg { width: 100%; padding: 0 20px; }
  .floats { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .msg, .js .result li { opacity: 1; transform: none; }
}
