/* ==========================================================
   CCSBINCSPA — estilos del sitio corporativo
   ========================================================== */

:root {
  --bg: #070b16;
  --bg-2: #0b1120;
  --surface: #0f1626;
  --surface-2: #131c2f;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #f1f5f9;
  --text-soft: #a3b0c2;
  --text-dim: #6b7a90;
  --green: #4ade80;
  --cyan: #22d3ee;
  --accent: #34d8b0;
  --grad: linear-gradient(120deg, var(--green) 0%, var(--cyan) 100%);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(52, 216, 176, 0.3); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--grad);
  color: #03140d;
  box-shadow: 0 10px 30px -10px rgba(52, 216, 176, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(52, 216, 176, 0.7); }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: rgba(148, 163, 184, 0.4); background: rgba(255, 255, 255, 0.05); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* ── Header ── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 11, 22, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; }
.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 168px 0 112px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 720px; height: 720px;
  top: -320px; right: -180px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16) 0%, transparent 65%);
  pointer-events: none;
}
.hero-glow.two {
  top: 80px; left: -300px; right: auto;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.10) 0%, transparent 65%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 64px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.eyebrow .pill {
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(52, 216, 176, 0.14);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero-lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 44px;
  font-size: 14px;
  color: var(--text-dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent); }

/* Ventana visual del hero */
.hero-visual { position: relative; }
.window {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(19, 28, 47, 0.95), rgba(11, 17, 32, 0.95));
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3550; }
.window-bar .title {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.window-body { padding: 22px 22px 24px; font-family: var(--mono); font-size: 13px; line-height: 1.9; }
.line { color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line .p { color: var(--accent); }
.line .k { color: #93c5fd; }
.line .s { color: #fcd34d; }
.line .ok { color: var(--green); }
.line .dim { color: var(--text-dim); }
.window-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  font-family: var(--font);
}
.stat {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.stat small { display: block; font-size: 11.5px; color: var(--text-dim); margin-bottom: 4px; }
.stat strong { font-size: 15px; font-weight: 600; color: var(--text); }
.stat .bar { height: 4px; margin-top: 10px; border-radius: 4px; background: rgba(148, 163, 184, 0.15); overflow: hidden; }
.stat .bar b { display: block; height: 100%; border-radius: 4px; background: var(--grad); }
.float-card {
  position: absolute;
  left: -36px;
  bottom: -28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(15, 22, 38, 0.96);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-size: 13.5px;
}
.float-card .ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(74, 222, 128, 0.14);
  color: var(--green);
}
.float-card .ico svg { width: 18px; height: 18px; }
.float-card strong { display: block; font-weight: 600; }
.float-card span { color: var(--text-dim); font-size: 12.5px; }

/* ── Franja de capacidades ── */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
  padding: 26px 24px;
}
.strip-label { font-size: 13px; color: var(--text-dim); }
.strip-items { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.strip-items span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: -0.01em;
}

/* ── Secciones ── */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-head p { font-size: 17px; color: var(--text-soft); }

/* Servicios */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service {
  position: relative;
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  overflow: hidden;
}
.service::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at 0% 0%, rgba(52, 216, 176, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.service:hover::after { opacity: 1; }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--accent);
  background: rgba(52, 216, 176, 0.1);
  border: 1px solid rgba(52, 216, 176, 0.22);
}
.service-icon svg { width: 22px; height: 22px; }
.service h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.service p { color: var(--text-soft); font-size: 15.5px; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

/* Proceso */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-num::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.step h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-soft); }

/* Empresas */
.ventures {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
.venture {
  display: flex;
  flex-direction: column;
  padding: 38px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px circle at 100% 0%, rgba(74, 222, 128, 0.10), transparent 50%),
    var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.venture:hover { transform: translateY(-3px); border-color: rgba(74, 222, 128, 0.35); }
.venture-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.venture-logo {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #03140d;
  background: var(--grad);
}
.venture-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 2px;
}
.venture h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.venture p { color: var(--text-soft); font-size: 16px; max-width: 460px; margin-bottom: 28px; }
.venture-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.venture-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.venture:hover .venture-link svg { transform: translate(2px, -2px); }
.venture-next {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 38px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  color: var(--text-dim);
}
.venture-next .plus {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.venture-next .plus svg { width: 20px; height: 20px; }
.venture-next h3 { font-size: 18px; color: var(--text-soft); margin-bottom: 6px; letter-spacing: -0.02em; }
.venture-next p { font-size: 14.5px; }

/* CTA */
.cta {
  position: relative;
  padding: 72px 56px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(700px circle at 0% 100%, rgba(74, 222, 128, 0.14), transparent 55%),
    radial-gradient(700px circle at 100% 0%, rgba(34, 211, 238, 0.14), transparent 55%),
    var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}
.cta h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.cta p { color: var(--text-soft); font-size: 17px; max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* ── Footer ── */
.site-footer { padding: 72px 0 36px; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-about p { margin-top: 16px; color: var(--text-dim); font-size: 14.5px; max-width: 320px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--text-dim); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ── Animaciones de entrada (solo con JS) ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ── 404 ── */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px;
}
.notfound h1 { font-size: clamp(80px, 14vw, 140px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.notfound p { color: var(--text-soft); font-size: 18px; margin: 16px 0 36px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta { flex-direction: column; align-items: flex-start; padding: 56px 40px; }
}

@media (max-width: 820px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 24px 24px;
    background: rgba(7, 11, 22, 0.97);
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 0; }
  .nav.open .nav-links a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav.open .btn { display: inline-flex; margin-top: 12px; }
  .site-header.menu-open { background: rgba(7, 11, 22, 0.97); border-bottom-color: var(--border); }
  .services, .ventures { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .header-inner { height: 68px; }
  .nav.open { top: 68px; padding: 12px 16px 20px; }
  .hero { padding: 128px 0 88px; }
  .hero-actions .btn { flex: 1; }
  .float-card { display: none; }
  .window-body { padding: 18px 16px 20px; font-size: 12px; }
  .window-stats { grid-template-columns: 1fr 1fr; }
  .window-stats .stat:last-child { display: none; }
  .strip-inner { padding: 22px 16px; }
  .section { padding: 88px 0; }
  .service, .venture, .venture-next { padding: 28px 24px; }
  .steps { grid-template-columns: 1fr; }
  .cta { padding: 44px 24px; border-radius: 22px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
}
