@font-face { font-family: 'BigShoulders'; src: url('/fonts/BigShoulders-Bold.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'BigShoulders'; src: url('/fonts/BigShoulders-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'GeistMono'; src: url('/fonts/GeistMono-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'GeistMono'; src: url('/fonts/GeistMono-Bold.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'WorkSans'; src: url('/fonts/WorkSans-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'WorkSans'; src: url('/fonts/WorkSans-Bold.ttf'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0c0f16;
  --panel: #161b26;
  --panel-2: #12161f;
  --border: rgba(255,255,255,0.1);
  --border-soft: rgba(255,255,255,0.06);
  --text: #f4f6fa;
  --muted: #8b96a8;
  --dim: #5b6577;
  --accent: #2e86de;
  --green: #27ae60;
  --amber: #e1a412;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: 'WorkSans', sans-serif;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: 'GeistMono', monospace; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.label {
  font-family: 'GeistMono'; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); font-size: 13px;
}

/* fondo 3D interactivo (Three.js) y resplandores globales */
#bg-canvas {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  width: 100vw; height: 100vh; display: block;
}
.glow { position: fixed; border-radius: 50%; filter: blur(140px); z-index: -1; pointer-events: none; }

/* nav */
header.nav {
  position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px);
  background: rgba(12,15,22,0.75); border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'BigShoulders'; font-weight: 700; font-size: 24px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-family: 'GeistMono'; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: 'GeistMono'; font-weight: 700;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding: 12px 22px; border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(46,134,222,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(46,134,222,0.45); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta { display: flex; gap: 12px; }

@media (max-width: 860px) { .nav-links { display: none; } }

/* hero */
.hero { padding: 120px 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

h1.display {
  font-family: 'BigShoulders'; font-weight: 700; font-size: clamp(44px, 6vw, 84px);
  line-height: 0.96; letter-spacing: -0.01em; color: var(--text);
}
h1.display .accent { color: var(--accent); }

.hero-sub { margin-top: 26px; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.hero-actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

/* mockup de panel flotante en el hero */
.hero-visual { position: relative; height: 460px; perspective: 1000px; }
.float-card {
  position: absolute; background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 40px 80px rgba(0,0,0,0.5); padding: 22px;
  transform-style: preserve-3d; will-change: transform;
}
.fc-1 { top: 0; left: 20px; width: 300px; }
.fc-2 { top: 190px; left: 100px; width: 280px; border-color: rgba(46,134,222,0.35); }
.fc-3 { top: 340px; left: 0; width: 250px; border-color: rgba(39,174,96,0.35); }
.fc-row { display: flex; justify-content: space-between; align-items: center; }
.fc-dot { width: 8px; height: 8px; border-radius: 50%; }
.fc-num { font-family: 'GeistMono'; font-weight: 700; font-size: 30px; margin-top: 12px; }
.fc-line { height: 1px; background: var(--border-soft); margin: 14px 0; }

/* secciones genéricas */
section { padding: 100px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .label { margin-bottom: 16px; display: block; }
h2.display {
  font-family: 'BigShoulders'; font-weight: 700; font-size: clamp(36px, 4.4vw, 58px); line-height: 1;
}
.section-sub { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* qué es automa: stats */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; }
.stat { background: var(--panel-2); padding: 40px 32px; }
.stat-num { font-family: 'BigShoulders'; font-weight: 700; font-size: 52px; color: var(--text); }
.stat-label { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr; } }

/* servicios */
.services { display: flex; flex-direction: column; gap: 24px; }
.service-card {
  border: 1px solid var(--border); border-radius: 20px; background: var(--panel);
  overflow: hidden; position: relative;
}
.service-featured { padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; border-color: rgba(46,134,222,0.35); }
@media (max-width: 900px) { .service-featured { grid-template-columns: 1fr; padding: 36px; } }

.service-tag {
  display: inline-flex; align-items: center; gap: 8px; font-family: 'GeistMono'; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(46,134,222,0.4); background: rgba(46,134,222,0.08);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
h3.display { font-family: 'BigShoulders'; font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.02; }
.service-desc { margin-top: 18px; font-size: 16px; line-height: 1.65; color: var(--muted); }

.feature-list { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.feature-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: #d5dae3; }
.feature-item .dot { margin-top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

/* mockup dentro del servicio destacado */
.svc-mock { background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 16px; padding: 26px; }
.svc-mock-head { display: flex; justify-content: space-between; align-items: center; }
.svc-mock-total { font-family: 'GeistMono'; font-weight: 700; font-size: 40px; margin-top: 16px; }
.svc-mock-rows { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.svc-mock-row { display: flex; justify-content: space-between; font-family: 'GeistMono'; font-size: 14px; color: #c9d0dc; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.badge { font-family: 'GeistMono'; font-size: 11px; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; }
.badge-green { color: var(--green); background: rgba(39,174,96,0.12); }
.badge-amber { color: var(--amber); background: rgba(225,164,18,0.12); }

.service-row { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 32px 44px; }
@media (max-width: 700px) { .service-row { grid-template-columns: 1fr; text-align: left; gap: 16px; } }
.service-icon { font-size: 36px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--panel-2); border-radius: 14px; }
.service-row h4 { font-family: 'BigShoulders'; font-weight: 700; font-size: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.service-row p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.service-soon { opacity: 0.6; }

.sector-status {
  font-family: 'GeistMono'; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 400; padding: 3px 10px; border-radius: 999px; vertical-align: middle;
}
.sector-live { color: var(--green); background: rgba(39,174,96,0.12); }
.sector-dev { color: var(--amber); background: rgba(225,164,18,0.12); }

/* precios */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  border: 1px solid var(--border); border-radius: 20px; background: var(--panel);
  padding: 40px 32px; display: flex; flex-direction: column; position: relative;
}
.price-reco { border-color: rgba(46,134,222,0.45); background: linear-gradient(180deg, rgba(46,134,222,0.07), var(--panel) 60%); }
.price-badge {
  position: absolute; top: -13px; left: 32px; background: var(--accent); color: #fff;
  font-family: 'GeistMono'; font-size: 11px; letter-spacing: 0.08em; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.price-num { font-family: 'BigShoulders'; font-weight: 700; font-size: 56px; line-height: 1; margin-top: 18px; }
.price-num span { font-family: 'GeistMono'; font-weight: 400; font-size: 15px; color: var(--muted); margin-left: 6px; }
.price-for { margin-top: 10px; font-size: 13.5px; color: var(--dim); }
.price-features { grid-template-columns: 1fr; margin-top: 26px; margin-bottom: 34px; gap: 12px; flex: 1; }
.price-cta { justify-content: center; margin-top: auto; }
.price-footnote { margin-top: 32px; text-align: center; font-size: 13.5px; color: var(--dim); }

/* CTA final */
.cta-section { text-align: center; }
.cta-box {
  border: 1px solid var(--border); border-radius: 24px; padding: 80px 40px; text-align: center;
  background: linear-gradient(180deg, rgba(46,134,222,0.06), transparent);
}
.cta-actions { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* páginas legales */
.legal-page { padding: 160px 0 120px; }
.legal-page .wrap { max-width: 760px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-family: 'GeistMono'; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.legal-back:hover { color: var(--text); }
.legal-updated { display: block; margin-top: 10px; }
.legal-page h1.display { font-size: clamp(32px, 5vw, 50px); margin-bottom: 6px; }
.legal-banner {
  border: 1px solid rgba(225,164,18,0.4); background: rgba(225,164,18,0.08); border-radius: 12px;
  padding: 16px 22px; font-size: 14px; line-height: 1.6; color: #f0c96a; margin: 32px 0 44px;
}
.legal-banner strong { color: var(--amber); }
.legal-body h2 { font-family: 'BigShoulders'; font-weight: 700; font-size: 23px; margin: 44px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-family: 'BigShoulders'; font-weight: 700; font-size: 17px; margin: 26px 0 10px; color: #d5dae3; }
.legal-body p, .legal-body li { color: #c4cbd7; line-height: 1.75; margin-bottom: 14px; font-size: 15.5px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 16px; }
.legal-body strong { color: var(--text); }
.legal-body a { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.legal-ph { color: var(--amber); background: rgba(225,164,18,0.14); padding: 1px 7px; border-radius: 5px; font-family: 'GeistMono'; font-size: 0.88em; white-space: nowrap; }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 24px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.legal-table th { text-align: left; font-family: 'GeistMono'; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--panel-2); }
.legal-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); color: #c4cbd7; vertical-align: top; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-annex { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }

/* footer */
footer { border-top: 1px solid var(--border-soft); padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-family: 'GeistMono'; font-size: 12px; color: var(--dim); letter-spacing: 0.05em; }
.footer-links a:hover { color: var(--muted); }
