/* ===========================================================
   SincroNube — Landing. Tokens del handoff (design_handoff_*).
   Reconstruccion limpia del prototipo Cloud Design (sin runtime DC).
   =========================================================== */
:root {
  --bg: #070A12;
  --panel: #0D1117;
  --brand: #1565C0;
  --brand-2: #2563EB;
  --blue-400: #60A5FA;
  --blue-300: #93C5FD;
  --blue-500: #3B82F6;
  --blue-200: #9DC0F5;
  --text: #E6EDF3;
  --text-2: #A7B2C4;
  --muted: #8B98AD;
  --muted-2: #7C8AA0;
  --muted-3: #6B7688;
  --green: #34D399;
  --green-2: #6EE7B7;
  --wa-1: #128C4B;
  --wa-2: #25D366;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.16);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --maxw: 1180px;
  --maxw-wide: 1220px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--blue-400); text-decoration: none; }
a:hover { color: var(--blue-300); }
::selection { background: rgba(21,101,192,0.5); color: #fff; }
img { max-width: 100%; height: auto; }

/* ---------- animations ---------- */
@keyframes auroraA { 0% { transform: translate(-10%,-8%) scale(1);} 50% { transform: translate(12%,10%) scale(1.25);} 100% { transform: translate(-10%,-8%) scale(1);} }
@keyframes auroraC { 0% { transform: translate(0,0) scale(1);} 50% { transform: translate(-8%,14%) scale(1.3);} 100% { transform: translate(0,0) scale(1);} }
@keyframes floatY { 0% { transform: translateY(0);} 50% { transform: translateY(-14px);} 100% { transform: translateY(0);} }
@keyframes spinorbit { 0% { transform: rotate(0);} 100% { transform: rotate(360deg);} }

/* ---------- layout shell ---------- */
.sn-root {
  position: relative; width: 100%; min-height: 100vh; overflow: hidden;
  background: radial-gradient(1200px 700px at 70% -10%, rgba(21,101,192,0.18), transparent 60%), var(--bg);
}
.sn-aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sn-aurora span { position: absolute; width: 55vw; height: 55vw; border-radius: 50%; }
.sn-aurora .a1 { top: -20%; left: -12%; background: radial-gradient(circle, rgba(21,101,192,0.26), transparent 64%); filter: blur(120px); animation: auroraA 26s ease-in-out infinite; }
.sn-aurora .a2 { bottom: -28%; right: -12%; background: radial-gradient(circle, rgba(37,99,235,0.16), transparent 62%); filter: blur(130px); animation: auroraC 32s ease-in-out infinite; }
#ring-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; min-height: 720px; z-index: 1; pointer-events: none; }

.wrap { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.wrap-wide { max-width: var(--maxw-wide); }

/* ---------- nav ---------- */
.sn-nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px,5vw,64px); backdrop-filter: blur(14px);
  background: rgba(7,10,18,0.55); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sn-brand { display: flex; align-items: center; gap: 12px; }
.sn-logo { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.sn-logo .box { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--blue-500)); box-shadow: 0 6px 20px rgba(21,101,192,0.5); }
.sn-logo .orbit { position: relative; width: 16px; height: 16px; border: 2.5px solid #fff; border-radius: 50%; border-top-color: transparent; animation: spinorbit 6s linear infinite; }
.sn-brand .name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.sn-brand .name b { color: var(--blue-400); font-weight: 700; }
.sn-nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.sn-nav-links a { color: inherit; }
.sn-nav-links a:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; font-weight: 700; cursor: pointer; border: 0;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease; }
.btn-sm { padding: 10px 20px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 12px 34px rgba(21,101,192,0.5); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(21,101,192,0.7); color: #fff; }
.btn-sm.btn-primary { box-shadow: 0 8px 24px rgba(21,101,192,0.4); }
.btn-sm.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(21,101,192,0.6); }
.btn-ghost { padding: 16px 28px; font-size: 17px; font-weight: 600; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(96,165,250,0.5); color: var(--text); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-wa { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 17px 32px; font-size: 18px; box-shadow: 0 14px 40px rgba(21,101,192,0.55); }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 20px 52px rgba(21,101,192,0.75); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: clamp(70px,12vw,140px) clamp(20px,5vw,40px) clamp(60px,8vw,90px); text-align: center; }
.eyebrow-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(21,101,192,0.12); border: 1px solid rgba(96,165,250,0.28); font-size: 13.5px; font-weight: 600; color: var(--blue-200); margin-bottom: 28px; }
.eyebrow-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px,7vw,82px); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 26px; }
.grad-text { background: linear-gradient(110deg, var(--blue-400), var(--blue-500) 40%, var(--blue-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { max-width: 640px; margin: 0 auto 40px; font-size: clamp(17px,2.2vw,21px); line-height: 1.55; color: var(--text-2); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }

.hero-mockup { position: relative; margin: clamp(56px,9vw,96px) auto 0; max-width: 960px; animation: floatY 7s ease-in-out infinite; }
.hero-mockup .glow { position: absolute; inset: -1px; border-radius: 18px; background: linear-gradient(135deg, rgba(96,165,250,0.55), rgba(21,101,192,0.08), rgba(96,165,250,0.4)); filter: blur(1px); opacity: 0.55; }
.browser { position: relative; border-radius: 16px; background: var(--panel); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 40px 90px rgba(0,0,0,0.6); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); background: rgba(18,24,40,0.9); }
.browser-bar .d { width: 11px; height: 11px; border-radius: 50%; }
.browser-bar .d.r { background: #FF5F57; } .browser-bar .d.y { background: #FEBC2E; } .browser-bar .d.g { background: #28C840; }
.browser-bar .url { margin-left: 14px; font-size: 12.5px; color: var(--muted-3); font-family: var(--font-display); }
.browser-shot { max-height: 512px; overflow: hidden; }
.browser-shot img { width: 100%; display: block; }

/* ---------- generic sections ---------- */
.section { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: clamp(60px,9vw,110px) clamp(20px,5vw,40px); }
.section-tight { padding: clamp(30px,5vw,60px) clamp(20px,5vw,40px); }
.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-400); margin-bottom: 14px; }
.section-head h2, h2.title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px,5vw,52px); letter-spacing: -0.03em; line-height: 1.05; }
.section-head p { max-width: 560px; margin: 18px auto 0; font-size: 17px; color: var(--text-2); line-height: 1.55; }

.grid { display: grid; gap: 16px; }
.grid-vp { grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }
.grid-svc { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; }
.grid-proj { grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 20px; }
.grid-steps { grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }

/* value prop card */
.vp-card { padding: 24px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.vp-card:hover { transform: translateY(-4px); border-color: rgba(96,165,250,0.35); background: rgba(21,101,192,0.06); }
.vp-card .ic { font-size: 26px; margin-bottom: 12px; }
.vp-card .t { font-family: var(--font-display); font-weight: 600; font-size: 17.5px; margin-bottom: 6px; }
.vp-card .d { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* service card */
.svc-card { position: relative; padding: 28px; border-radius: 18px; background: linear-gradient(160deg, rgba(18,24,40,0.7), rgba(10,14,26,0.7)); border: 1px solid var(--border); overflow: hidden; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.svc-card:hover { transform: translateY(-6px); border-color: rgba(96,165,250,0.45); box-shadow: 0 24px 50px rgba(21,101,192,0.25); }
.svc-card .ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, rgba(21,101,192,0.3), rgba(59,130,246,0.12)); border: 1px solid rgba(96,165,250,0.25); margin-bottom: 18px; }
.svc-card .t { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.svc-card .d { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* project card */
.proj-card { position: relative; display: block; border-radius: 20px; background: linear-gradient(165deg, rgba(20,27,45,0.85), rgba(9,13,24,0.92)); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; color: inherit; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease; }
.proj-card:hover { color: inherit; transform: translateY(-8px); box-shadow: 0 34px 70px rgba(21,101,192,0.35); border-color: rgba(96,165,250,0.5); }
.proj-thumb { position: relative; height: 184px; background: linear-gradient(150deg, #0B2A5E, #123C82); overflow: hidden; }
.proj-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.proj-thumb .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,18,0.55) 0%, transparent 42%, transparent 100%); }
.proj-badges { position: absolute; left: 18px; top: 18px; display: flex; align-items: center; gap: 10px; }
.proj-badges .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: rgba(7,10,18,0.6); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(8px); }
.proj-badges .tag { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.9); background: rgba(7,10,18,0.55); padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.14); }
.proj-body { padding: 22px 24px 26px; }
.proj-body .name { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.proj-body .desc { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.proj-foot { display: flex; align-items: center; justify-content: space-between; }
.proj-foot .result { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--green-2); }
.proj-foot .sub { font-size: 13px; color: var(--blue-400); font-weight: 600; }
/* whatsapp mock thumb */
.wa-mock { position: absolute; inset: 0; padding: 60px 18px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.wa-mock .in { align-self: flex-start; max-width: 74%; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.14); color: #EAF1FB; font-size: 12px; line-height: 1.4; padding: 8px 11px; border-radius: 13px 13px 13px 3px; }
.wa-mock .out { align-self: flex-end; max-width: 78%; background: linear-gradient(135deg, var(--wa-1), var(--wa-2)); color: #fff; font-size: 12px; line-height: 1.4; padding: 8px 11px; border-radius: 13px 13px 3px 13px; box-shadow: 0 8px 20px rgba(37,211,102,0.3); }

/* steps */
.step-card { position: relative; padding: 28px 24px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.step-card .n { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brand); background: rgba(96,165,250,0.12); width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid rgba(96,165,250,0.25); }
.step-card .t { font-family: var(--font-display); font-weight: 600; font-size: 18.5px; margin-bottom: 8px; }
.step-card .d { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* metrics */
.metrics-band { position: relative; border-radius: 24px; padding: clamp(36px,6vw,60px) clamp(24px,5vw,56px); background: linear-gradient(135deg, rgba(21,101,192,0.16), rgba(10,14,26,0.6)); border: 1px solid rgba(96,165,250,0.2); overflow: hidden; }
.metrics-band .halo { position: absolute; top: -40%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(59,130,246,0.28), transparent 65%); filter: blur(50px); }
.metrics-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 32px; text-align: center; }
.metric .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px,6vw,58px); line-height: 1; background: linear-gradient(120deg, #fff, var(--blue-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric .lbl { margin-top: 10px; font-size: 14.5px; color: var(--text-2); font-weight: 500; }
.social { position: relative; margin-top: 44px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); }
.social .cap { text-align: center; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-3); margin-bottom: 22px; }
.social .logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.social .logos .logo { padding: 12px 22px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--muted-2); }

/* ---------- CTA + form ---------- */
.cta { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: clamp(70px,11vw,130px) clamp(20px,5vw,40px); text-align: center; }
.cta .halo { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); width: 500px; height: 300px; background: radial-gradient(circle, rgba(21,101,192,0.35), transparent 65%); filter: blur(70px); pointer-events: none; z-index: -1; }
.cta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px,7vw,72px); letter-spacing: -0.035em; line-height: 1.03; margin-bottom: 22px; }
.cta .lead { max-width: 540px; margin: 0 auto 40px; font-size: 19px; color: var(--text-2); line-height: 1.55; }

.lead-form { max-width: 560px; margin: 0 auto; text-align: left; background: linear-gradient(160deg, rgba(18,24,40,0.7), rgba(10,14,26,0.75)); border: 1px solid rgba(96,165,250,0.2); border-radius: 20px; padding: clamp(24px,4vw,36px); }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border-radius: 12px; background: rgba(7,10,18,0.6); border: 1px solid rgba(255,255,255,0.12); color: var(--text); font-family: var(--font-body); font-size: 15px; transition: border-color .2s ease, background .2s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(96,165,250,0.6); background: rgba(7,10,18,0.85); }
.field textarea { resize: vertical; min-height: 92px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 4px 0 18px; }
.consent input { margin-top: 2px; accent-color: var(--brand); }
.lead-form button { width: 100%; justify-content: center; padding: 16px; font-size: 17px; }
.form-msg { margin-top: 14px; font-size: 14px; text-align: center; min-height: 20px; }
.form-msg.ok { color: var(--green-2); }
.form-msg.err { color: #FCA5A5; }
.cta-alt { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.chip-alt { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 14px; font-weight: 600; font-size: 16px; }
.chip-wa { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.16); color: var(--text); }
.chip-wa:hover { background: rgba(255,255,255,0.1); border-color: rgba(96,165,250,0.5); color: var(--text); }
.chip-soon { background: rgba(21,101,192,0.1); border: 1px dashed rgba(96,165,250,0.45); color: var(--blue-200); cursor: default; }
.chip-soon .pill { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bg); background: var(--blue-400); padding: 3px 8px; border-radius: 999px; }
.cta .email-note { margin-top: 22px; font-size: 15px; color: var(--muted-2); }

/* ---------- footer ---------- */
.sn-footer { position: relative; z-index: 2; border-top: 1px solid var(--border); background: rgba(7,10,18,0.6); }
.sn-footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 56px clamp(20px,5vw,40px) 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.sn-footer .fbrand { min-width: 220px; }
.sn-footer .fbrand .top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sn-footer .fbrand .box { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--blue-500)); box-shadow: 0 6px 18px rgba(21,101,192,0.5); }
.sn-footer .fbrand .name { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.sn-footer .fbrand .name b { color: var(--blue-400); }
.sn-footer .fbrand p { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 260px; }
.sn-footer .col h4 { font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 14px; color: var(--text); }
.sn-footer .col .links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.sn-footer .col .links a, .sn-footer .col .links span { color: inherit; }
.sn-footer .col .links a:hover { color: #fff; }
.sn-copy { border-top: 1px solid rgba(255,255,255,0.06); padding: 22px clamp(20px,5vw,40px); text-align: center; font-size: 13px; color: var(--muted-3); }

/* ---------- responsive ---------- */
@media (max-width: 900px) { .sn-nav-links { display: none !important; } }
@media (max-width: 720px) { .sn-footer-grid { grid-template-columns: 1fr 1fr !important; } .lead-form .row { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .sn-footer-grid { grid-template-columns: 1fr !important; } }

/* ---------- reduced motion (accesibilidad) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  #ring-canvas { display: none; }
}
