/* DaSEO — prueba, no promesa. Navy oscuro con cyan como luz. */

:root {
  --bg: #070a12;          /* deepest navy ground */
  --bg-2: #0a0e1a;        /* brand navy base */
  --bg-3: #111726;        /* raised surface */
  --cyan: #00c8ff;        /* the light / primary accent */
  --cyan-soft: #66dfff;
  --gold: #fbbc04;        /* secondary accent */
  --green: #25d366;       /* whatsapp */
  --ink: #eef3fb;         /* near-white text */
  --ink-2: #aab6cc;       /* secondary, cool-tinted (never flat gray) */
  --ink-3: #6b7891;       /* muted */
  --line: #1b2436;        /* hairline */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --r: 10px;
  --shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.8), 0 4px 14px -6px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(0, 200, 255, 0.18), 0 10px 40px -12px rgba(0, 200, 255, 0.25);
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--cyan); color: var(--bg-2); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #263248; border-radius: 20px; border: 3px solid var(--bg); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }

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

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; margin: 0; }
.cyan { color: var(--cyan); }
.gold { color: var(--gold); }
em { font-style: normal; color: var(--cyan); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 10px; font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: 0.01em; cursor: pointer; border: 1px solid transparent; transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--cyan { background: var(--cyan); color: var(--bg-2); box-shadow: 0 8px 24px -10px rgba(0, 200, 255, 0.6); }
.btn--cyan:hover { background: var(--cyan-soft); transform: translateY(-2px); }
.btn--wa { background: var(--green); color: #05210f; }
.btn--wa:hover { transform: translateY(-2px); }
.btn--ghost { border-color: #26324a; color: var(--ink); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); transition: background 0.3s var(--ease), backdrop-filter 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(7, 10, 18, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: baseline; gap: 2px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.brand b { color: var(--cyan); font-weight: 700; }
.brand sup { font-size: 0.5em; color: var(--ink-3); top: -0.8em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--cyan); transition: width 0.3s var(--ease); }
.nav a:hover { color: var(--ink); } .nav a:hover::after { width: 100%; }
.nav .btn { min-height: 44px; padding: 0 18px; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { overflow: hidden; position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: clamp(28px, 5vw, 64px); padding: 128px var(--gutter) 64px; }
.hero::before { content: ""; position: absolute; top: -10%; right: -5%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; background: radial-gradient(circle, rgba(0, 200, 255, 0.14), transparent 62%); pointer-events: none; z-index: 0; }
.hero__copy, .hero__viz { position: relative; z-index: 1; }
.hero__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--cyan); background: rgba(0, 200, 255, 0.08); border: 1px solid rgba(0, 200, 255, 0.2); padding: 7px 14px; border-radius: 40px; margin-bottom: 22px; }
.hero__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.25); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 600; }
.hero h1 .cyan { display: inline; }
.hero__lead { margin: 24px 0 8px; font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--ink-2); max-width: 44ch; line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__rating { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--ink-2); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }

/* hero data viz: rankings climbing */
.rankviz { background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--glow); }
.rankviz__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.rankviz__head .t { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink); }
.rankviz__head .s { font-size: 12px; color: var(--ink-3); }
.rankrow { display: grid; grid-template-columns: 1fr 46px; align-items: center; gap: 14px; padding: 9px 0; }
.rankrow .kw { font-size: 14px; color: var(--ink-2); }
.rankrow .track { grid-column: 1 / -1; height: 8px; background: #0e1524; border-radius: 6px; overflow: hidden; margin-top: 6px; }
.rankrow .fill { height: 100%; width: 0; background: linear-gradient(90deg, #0a6b8a, var(--cyan)); border-radius: 6px; transition: width 1.1s var(--ease); }
.rankrow .pos { justify-self: end; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.rankrow .pos small { color: var(--ink-3); font-weight: 500; font-size: 11px; }
.rankviz__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* ---------- section frame ---------- */
.band { padding: clamp(72px, 11vw, 130px) 0; position: relative; }
.band--alt { background: var(--bg-2); }
.rule { width: 52px; height: 3px; background: var(--cyan); border: 0; border-radius: 3px; margin: 0 0 24px; }
.lead-head { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 600; max-width: 20ch; letter-spacing: -0.03em; }
.section-intro { max-width: 52ch; color: var(--ink-2); font-size: 1.1rem; margin-top: 20px; line-height: 1.6; }

/* services — editorial rows */
.services { margin-top: 48px; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 54px 1fr auto; align-items: baseline; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding-left 0.35s var(--ease); }
.service:hover { padding-left: 12px; }
.service__no { font-family: var(--display); font-size: 0.95rem; font-weight: 600; color: var(--cyan); font-variant-numeric: tabular-nums; }
.service__name { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
.service__desc { grid-column: 2; color: var(--ink-2); font-size: 1.02rem; margin-top: 8px; max-width: 56ch; }
.service__link { color: var(--cyan); font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; align-self: center; }
.service__link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.service:hover .service__link svg { transform: translateX(4px); }

/* cases — stat blocks */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.case { background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.case .badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); background: rgba(251, 188, 4, 0.1); border: 1px solid rgba(251, 188, 4, 0.25); padding: 4px 10px; border-radius: 20px; margin-bottom: 14px; }
.case h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; }
.case p { color: var(--ink-2); font-size: 0.98rem; margin: 0 0 20px; }
.case .stats { display: grid; gap: 16px; }
.case .stat { display: flex; align-items: baseline; gap: 12px; }
.case .stat .n { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--cyan); font-variant-numeric: tabular-nums; min-width: 4.5ch; }
.case .stat .l { color: var(--ink-2); font-size: 0.95rem; }

/* proof / testimonials */
.rating-lead { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.rating-lead .big { font-family: var(--display); font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 700; color: var(--cyan); }
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.quote { padding: 26px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.quote__text { font-size: 1.05rem; line-height: 1.5; color: var(--ink); margin: 0 0 16px; }
.quote__by { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.quote__by .g { color: var(--gold); }

/* process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.step.live { border-top-color: var(--cyan); }
.step__no { font-family: var(--display); font-size: 0.9rem; font-weight: 700; color: var(--cyan); }
.step__time { float: right; font-size: 12px; font-weight: 600; color: var(--gold); }
.step h3 { font-size: 1.25rem; font-weight: 600; margin: 10px 0; }
.step p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }

/* stack */
.stack-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip { font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); padding: 9px 16px; border-radius: 40px; transition: border-color 0.25s, color 0.25s; }
.chip:hover { border-color: var(--cyan); color: var(--ink); }
.chip.hi { color: var(--cyan); border-color: rgba(0, 200, 255, 0.35); }

/* coverage — offices */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.office { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.office h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.office .row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-bottom: 12px; font-size: 0.98rem; color: var(--ink-2); }
.office .row svg { width: 20px; height: 20px; color: var(--cyan); margin-top: 2px; }
.office a:hover { color: var(--cyan); }

/* CTA final */
.cta-final { text-align: center; padding: clamp(80px, 13vw, 150px) 0; }
.cta-final h2 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 600; max-width: 20ch; margin: 0 auto 14px; }
.cta-final p { color: var(--ink-2); font-size: 1.15rem; max-width: 46ch; margin: 0 auto 32px; }
.cta-note { font-size: 13px; color: var(--ink-3); margin-top: 18px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px var(--gutter) 40px; color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; max-width: var(--maxw); margin: 0 auto; }
.footer-h { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom { max-width: var(--maxw); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* scroll reveal (robust: content visible without JS) */
html.js .reveal-up { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal-up.in { opacity: 1; transform: none; }
html:not(.js) .reveal-up { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { html.js .reveal-up { opacity: 1 !important; transform: none !important; transition: none; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff; display: none; place-items: center; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.5); }
.wa-float svg { width: 30px; height: 30px; }

/* service / city page hero */
.svc-hero { padding: 150px var(--gutter) 66px; max-width: 900px; }
.svc-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 600; }
.svc-hero p { color: var(--ink-2); font-size: 1.15rem; line-height: 1.7; margin: 22px 0 0; max-width: 60ch; }
.svc-body { max-width: 62ch; }
.svc-body p { color: var(--ink-2); font-size: 1.08rem; line-height: 1.75; margin: 0 0 20px; }
.svc-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; max-width: 58ch; }
.svc-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); font-size: 1.05rem; }
.svc-list svg { width: 20px; height: 20px; color: var(--cyan); margin-top: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 14px; margin-bottom: 12px; }
.back-link:hover { color: var(--cyan); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 48px; background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 0.4s var(--ease); z-index: 60; }
  .nav.open { transform: none; }
  .nav a { font-size: 21px; font-family: var(--display); color: var(--ink); }
  .nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer; z-index: 61; }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(3, 5, 10, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.3s; z-index: 55; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .hero { grid-template-columns: 1fr; padding-top: 104px; min-height: auto; }
  .cases, .testi, .steps, .offices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wa-float { display: grid; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 40px 1fr; gap: 14px; }
  .service__link { grid-column: 2; align-self: start; margin-top: 6px; }
  .service__desc { grid-column: 1 / -1; }
  .step__time { float: none; display: block; margin-top: 4px; }
}
