/* Jungla Lab · sitio web
   Layout: contenedor de 1280px con gutter fluido; secciones apiladas sobre un solo fondo azul noche,
   separadas por líneas finas; tarjetas de una sola familia; menta = acción, azul eléctrico = brillo. */
:root {
  --bg: #060819;
  --surface: #0c1030;
  --surface-2: #111640;
  --border: #1b2150;
  --border-2: #2a3170;
  --txt: #eef1ff;
  --txt-2: #b3bade;
  --txt-3: #8b94c7;
  --accent: #3de3b1;
  --accent-ink: #060819;
  --blue: #2d3bff;
  --wa: #25d366;
  --wa-ink: #06290f;
  --error: #ff8a80;

  --f-sans: "DM Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 5.5vw, 80px);
  --radius: 16px;
  --section-y: clamp(56px, 7vw, 88px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 400 16px/1.55 var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: #8ff0d2; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(1280px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- elementos base ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.hl { color: var(--accent); }
.h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.lead { font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; color: var(--txt-2); max-width: 540px; }
.sec-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 64px; align-items: end; }
.sec-head > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease, background .15s; white-space: nowrap; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--txt); border-color: var(--border-2); }
.btn--ghost:hover { color: var(--txt); background: rgba(255,255,255,.08); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--wa { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { color: var(--wa-ink); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tile { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: rgba(61,227,177,.10); border: 1px solid rgba(61,227,177,.22); display: flex; align-items: center; justify-content: center; }
.tile svg { width: 20px; height: 20px; }
.chip { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip--mint { background: rgba(61,227,177,.10); color: var(--accent); border: 1px solid rgba(61,227,177,.25); }
.chip--blue { background: rgba(143,155,255,.10); color: #b3bcff; border: 1px solid rgba(143,155,255,.25); }
.chip--gray { background: rgba(255,255,255,.05); color: #c3c9ec; border: 1px solid rgba(255,255,255,.10); }

.section { position: relative; padding-block: var(--section-y); border-top: 1px solid var(--border); }
.section > .wrap { display: flex; flex-direction: column; gap: 44px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(6,8,25,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(184,191,230,.10); }
.site-header .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; color: #fff; text-decoration: none; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.logo small { font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--accent); }
.logo:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { color: var(--txt-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--txt); }
.header-actions { display: none; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-2); background: rgba(255,255,255,.03); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--txt); padding: 0; }
.icon-btn--wa { background: var(--wa); border-color: var(--wa); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle .bar { transition: transform .2s, opacity .2s; transform-origin: center; }
.menu-toggle[aria-expanded="true"] .bar1 { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar2 { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar3 { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 55% 70% at 80% 0%, rgba(45,59,255,.55) 0%, rgba(45,59,255,.12) 45%, rgba(6,8,25,0) 75%), var(--bg); margin-top: -73px; padding-top: 73px; }
.hero__blade { position: absolute; right: -300px; top: -60px; width: 900px; height: 900px; opacity: .55; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 72px; align-items: center; padding-block: 56px 96px; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(61,227,177,.35); border-radius: 999px; background: rgba(61,227,177,.06); font: 400 12px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero h1 { font-size: clamp(38px, 4.6vw, 66px); line-height: .96; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -.03em; color: #fff; }
.hero__sub { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--txt-2); max-width: 590px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; flex-wrap: wrap; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; gap: 2px; padding-inline: 24px; border-left: 1px solid var(--border); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { font-size: 28px; font-weight: 700; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--txt-3); }
.hero__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ---------- formulario ---------- */
.lead-form { padding: 28px; border-radius: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lead-form .full { grid-column: 1 / -1; }
.form-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.form-kicker { display: flex; align-items: center; gap: 8px; font: 400 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.form-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.form-head h2 { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.form-head p { font-size: 14px; color: var(--txt-2); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--txt-2); min-width: 0; }
.field .opt { color: var(--txt-3); font-weight: 400; }
.field input, .field select { height: 44px; border: 1px solid #262d66; border-radius: 10px; padding: 0 14px; font-size: 14px; font-weight: 400; background: var(--bg); color: var(--txt); width: 100%; transition: border-color .15s; }
.field select { padding-right: 36px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b3bade' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input::placeholder { color: #6f78ab; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 12px; font-weight: 400; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; font-weight: 400; line-height: 1.45; color: var(--txt-2); }
.consent input { width: 16px; height: 16px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { height: 50px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: filter .15s; }
.form-submit:hover { filter: brightness(1.08); }
.form-submit[disabled] { cursor: progress; filter: saturate(.6); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(6,8,25,.3); border-top-color: var(--accent-ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { font-size: 13px; line-height: 1.45; border-radius: 10px; padding: 10px 12px; }
.form-status--error { background: rgba(255,138,128,.1); border: 1px solid rgba(255,138,128,.35); color: #ffd3cf; }
.form-status--info { background: rgba(61,227,177,.08); border: 1px solid rgba(61,227,177,.3); color: var(--txt); }
.form-status a { font-weight: 700; }
.quote { margin: 0; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); border: 1px dashed #2f377c; background: rgba(255,255,255,.02); }
.quote__avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #1a2170; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--accent); }
.quote blockquote { margin: 0; font-size: 14px; line-height: 1.5; color: var(--txt); }
.quote figcaption { font-size: 12px; color: var(--txt-3); margin-top: 6px; }

/* ---------- logos ---------- */
.logos-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.logos-head > div { display: flex; flex-direction: column; gap: 10px; }
.logos-head h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.logos-head p { font-size: 15px; color: var(--txt-2); }
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); background: rgba(12,16,48,.5); overflow: hidden; }
.logo-grid li { height: 80px; display: flex; align-items: center; justify-content: center; padding: 0 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logo-grid li:nth-child(6n) { border-right: 0; }
.logo-grid li:nth-last-child(-n+6) { border-bottom: 0; }
.logo-grid img { width: auto; max-height: var(--h, 36px); max-width: 100%; opacity: .75; transition: opacity .2s; }
.logo-grid li:hover img { opacity: 1; }

/* ---------- servicios ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.svc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .2s, transform .2s; }
.svc:hover { border-color: var(--border-2); transform: translateY(-2px); }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.svc h3 { margin-top: 6px; font-size: 19px; font-weight: 700; color: #fff; }
.svc p { font-size: 15px; line-height: 1.6; color: var(--txt-2); }
.band { position: relative; overflow: hidden; background: radial-gradient(ellipse 60% 160% at 100% 0%, rgba(45,59,255,.75) 0%, rgba(45,59,255,0) 65%), var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.band__txt { display: flex; flex-direction: column; gap: 8px; max-width: 780px; min-width: 0; }
.band__kicker { font: 400 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.band h3 { font-size: 24px; font-weight: 700; color: #fff; }
.band p { font-size: 16px; line-height: 1.55; color: #dfe3fb; }
.svc--growth { grid-column: span 2; background: radial-gradient(ellipse 70% 130% at 100% 0%, rgba(45,59,255,.75) 0%, rgba(45,59,255,0) 65%), var(--surface); border-color: var(--border-2); justify-content: space-between; }

/* ---------- funnel (B2B) ---------- */
.funnel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: stage; }
.stage { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stage__node { display: flex; align-items: center; }
.stage__num { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--accent); background: var(--bg); display: flex; align-items: center; justify-content: center; font: 400 12px/1 var(--f-mono); color: var(--accent); }
.stage__line { flex-grow: 1; height: 1px; background: linear-gradient(90deg, #3de3b1, rgba(61,227,177,.15)); }
.stage__card { flex-grow: 1; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.stage__name { font: 400 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.stage__card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.stage__card p { font-size: 14px; line-height: 1.55; color: var(--txt-2); }
.stage__kpi { font-size: 12px !important; color: var(--txt-3) !important; }
.stage__out { margin-top: auto; padding-top: 4px; font: 400 12px/1.4 var(--f-mono); color: var(--accent); }
.stage--last .stage__num { background: var(--accent); color: var(--accent-ink); }
.stage--last .stage__card { background: linear-gradient(180deg, rgba(61,227,177,.10), rgba(61,227,177,.03)); border-color: rgba(61,227,177,.4); }

/* ---------- casos ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.case { border-radius: 20px; background: linear-gradient(180deg, #0e1338 0%, #0a0d2a 100%); padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.case__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.case__brand { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: .02em; color: #fff; }
.case__proj { font: 400 12px/1.2 var(--f-mono); color: var(--accent); }
.case h3 { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.2; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.case p { font-size: 15px; line-height: 1.6; color: var(--txt-2); }
.case__txt { display: flex; flex-direction: column; gap: 8px; }
.eq { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.eq span { width: 12px; border-radius: 3px; }
.weeks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: end; height: 56px; }
.weeks div { display: flex; flex-direction: column; gap: 8px; }
.weeks span { height: 6px; border-radius: 3px; }
.weeks small { font: 400 11px/1 var(--f-mono); color: var(--txt-3); }
.kpis { margin-top: auto; display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 18px; align-items: end; }
.kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi b { font-size: 28px; line-height: 1.1; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; line-height: 1.35; color: var(--txt-3); }
.kpi--hero b { font-size: clamp(40px, 4vw, 52px); line-height: 1; font-weight: 800; color: var(--accent); letter-spacing: -.03em; }

/* ---------- IA ---------- */
.ia-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ia-card { padding: 22px; display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.ia-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.ia-card p { font-size: 14px; line-height: 1.55; color: var(--txt-2); }
.tools-label { font: 400 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--txt-3); }
.tools { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tools li { height: 72px; border-radius: 12px; background: rgba(255,255,255,.02); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 0 16px; }
.tools img { width: auto; max-height: var(--h, 28px); max-width: 100%; opacity: .8; }
.tools .txt-logo { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: #fff; opacity: .8; }

/* ---------- CTA + footer ---------- */
.cta-card { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--border-2); background: radial-gradient(ellipse 50% 140% at 100% 50%, rgba(45,59,255,.8) 0%, rgba(45,59,255,0) 70%), radial-gradient(ellipse 30% 90% at 0% 100%, rgba(61,227,177,.18) 0%, rgba(61,227,177,0) 70%), var(--surface); padding: clamp(26px, 4vw, 48px) clamp(22px, 4.5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-card > div { display: flex; flex-direction: column; gap: 12px; max-width: 760px; min-width: 0; }
.cta-card h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -.02em; color: #fff; }
.cta-card p { font-size: 17px; color: #c3c9ec; }
.site-footer { border-top: 1px solid var(--border); padding-block: 36px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; gap: 6px; }
.foot-brand span { font-size: 13px; color: var(--txt-3); }
.foot-links { display: flex; gap: 12px 28px; flex-wrap: wrap; font-size: 14px; }
.foot-links a, .foot-links button { color: var(--txt-2); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
.foot-links a:hover, .foot-links button:hover { color: var(--txt); }
.foot-contact { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; font-size: 13px; color: var(--txt-3); }
.foot-contact a { color: var(--txt-2); text-decoration: none; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 35; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--wa); color: var(--wa-ink); text-decoration: none; font-size: 15px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.45); transition: transform .2s, opacity .2s; }
.wa-float:hover { color: var(--wa-ink); transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* ---------- cookies ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 560px; margin-inline: auto; padding: 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border-2); box-shadow: 0 20px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 14px; }
.cookie h2 { font-size: 16px; font-weight: 700; }
.cookie p { font-size: 13px; line-height: 1.5; color: var(--txt-2); }
.cookie__prefs { display: flex; flex-direction: column; gap: 8px; }
.cookie__opt { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.cookie__opt small { display: block; color: var(--txt-3); font-size: 12px; }
.cookie__opt input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* ---------- páginas internas ---------- */
.page { padding-block: clamp(48px, 7vw, 88px); }
.page .wrap { display: flex; flex-direction: column; gap: 28px; }
.narrow { max-width: 760px; }
.thanks { max-width: 820px; display: flex; flex-direction: column; gap: 28px; }
.thanks h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.steps .when { font: 400 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.steps h2 { font-size: 18px; font-weight: 700; }
.steps p { font-size: 14px; color: var(--txt-2); line-height: 1.55; }
.legal section { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; border-top: 1px solid var(--border); }
.legal h2 { display: flex; gap: 12px; align-items: baseline; font-size: 22px; font-weight: 700; }
.legal h2 span { font: 400 13px/1 var(--f-mono); color: var(--accent); }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--txt-2); }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal b { color: var(--txt); }
.ph { padding: 1px 6px; border-radius: 4px; background: rgba(61,227,177,.12); color: var(--accent); font: 400 13px var(--f-mono); }

/* ---------- aparición suave ---------- */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-pending { opacity: 0; transform: translateY(16px); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px 64px; }
  .hero__side { max-width: 620px; }
  .svc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel { grid-template-columns: 1fr; gap: 0; }
  .stage { flex-direction: row; gap: 14px; }
  .stage__node { flex-direction: column; align-items: center; gap: 4px; width: 32px; flex-shrink: 0; }
  .stage__line { width: 1px; height: auto; flex-grow: 1; background: linear-gradient(180deg, #3de3b1, rgba(61,227,177,.15)); }
  .stage__card { margin-bottom: 12px; }
  .tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .sec-head { grid-template-columns: 1fr; }
  .svc-grid, .ia-grid, .cases, .steps { grid-template-columns: 1fr; }
  .svc--growth { grid-column: auto; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-grid li:nth-child(6n) { border-right: 1px solid var(--border); }
  .logo-grid li:nth-child(3n) { border-right: 0; }
  .logo-grid li:nth-last-child(-n+6) { border-bottom: 1px solid var(--border); }
  .logo-grid li:nth-last-child(-n+3) { border-bottom: 0; }
  .logo-grid li { height: 68px; padding: 0 10px; }
  .logo-grid img { max-height: calc(var(--h, 36px) * .72); }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: calc(64px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bg); box-shadow: 0 20px 40px rgba(0,0,0,.5); border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav .btn { margin-top: 16px; height: 48px; }
  .header-actions { display: flex; }
  .site-header .wrap { height: 64px; }
  .hero { margin-top: -65px; padding-top: 65px; }
  .wa-float { display: none; }
  .hero__blade { width: 600px; height: 600px; right: -280px; top: -40px; opacity: .4; }
  .lead-form { grid-template-columns: 1fr; padding: 22px; }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 0; border: 0; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 11px; }
  .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tools li { height: 56px; padding: 0 10px; }
  .tools img { max-height: calc(var(--h, 28px) * .72); }
  .tools .txt-logo { font-size: 16px; }
  .foot-contact { align-items: flex-start; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .hero__ctas .btn { width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cta-card .btn { width: 100%; }
  .cookie__actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal.is-pending { opacity: 1; transform: none; }
}
