:root {
  --bg: #0b1020;
  --bg-2: #0f1830;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #5b6478;
  --line: #e5e9f2;
  --forja: #f97316;
  --forja-dark: #ea580c;
  --ia: #06b6d4;
  --violet: #8b5cf6;
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(8, 15, 40, 0.12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--forja), var(--violet)); font-size: 1.1rem;
}
.brand-text strong { color: var(--forja); }
.main-nav { display: flex; gap: 20px; margin-left: auto; font-size: 0.92rem; }
.main-nav a { color: #cbd5e1; font-weight: 500; transition: color .15s; }
.main-nav a:hover { color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 11px; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--forja), var(--forja-dark));
  color: #fff; box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(249, 115, 22, 0.45); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; }
.btn-ghost {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(700px 400px at 10% 10%, rgba(6, 182, 212, 0.22), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: #fff; padding: 78px 0 90px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: .3px;
  color: #c7d2fe; background: rgba(139, 92, 246, 0.16); border: 1px solid rgba(139,92,246,0.35);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; margin: 0 0 18px; font-weight: 900; letter-spacing: -1px; }
.grad { background: linear-gradient(90deg, var(--forja), #fdba74, var(--ia)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.13rem; color: #cbd5e1; max-width: 560px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-bullets { list-style: none; padding: 0; margin: 0; color: #9fb0c8; font-size: 0.94rem; display: grid; gap: 7px; }

/* Hero visual */
.hero-visual { position: relative; min-height: 380px; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-1 { width: 260px; height: 260px; right: 0; top: 0; background: radial-gradient(circle, rgba(6,182,212,.5), transparent 70%); }
.orb-2 { width: 220px; height: 220px; left: 0; bottom: 0; background: radial-gradient(circle, rgba(249,115,22,.45), transparent 70%); }
.card-float {
  position: absolute; background: rgba(255,255,255,0.97); color: var(--ink);
  border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); width: 230px;
  display: flex; flex-direction: column; gap: 3px;
}
.card-float { left: 8%; top: 6%; }
.card-float.cf-2 { left: auto; right: 2%; top: 42%; }
.card-float.cf-3 { left: 18%; top: 68%; }
.cf-icon { font-size: 1.7rem; }
.cf-title { font-weight: 800; font-size: 1.02rem; }
.cf-sub { color: var(--muted); font-size: 0.84rem; }

/* Sections */
.section { padding: 76px 0; }
.section-alt { background: #f6f8fc; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.5px; margin: 0 0 12px; }
.section-sub { color: var(--muted); font-size: 1.06rem; margin: 0 0 42px; max-width: 620px; }

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .15s, box-shadow .15s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sc-icon { font-size: 2rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1.12rem; margin: 0 0 8px; }
.service-card p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--forja), var(--violet)); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step h3 { font-size: 1.02rem; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Form */
.quiz-form { display: grid; gap: 18px; margin-top: 8px; }
.q-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: #fff; margin: 0; }
.q-block legend {
  font-weight: 800; font-size: 1.05rem; padding: 0 10px; display: flex; align-items: center; gap: 9px;
}
.q-num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  background: var(--ia); color: #fff; font-size: 0.85rem;
}
.field { display: grid; gap: 6px; margin-top: 16px; }
.field:first-of-type { margin-top: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; color: #334155; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 11px 13px; border: 1.5px solid #d7dde8; border-radius: 10px; background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ia); box-shadow: 0 0 0 3px rgba(6,182,212,0.16); background: #fff;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #f6f8fc; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 0.92rem; color: #334155; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forja); }

.form-error { background: #fef2f2; color: var(--bad); border: 1px solid #fecaca; padding: 12px 16px; border-radius: 10px; font-size: 0.92rem; }
.form-note { text-align: center; color: var(--muted); font-size: 0.84rem; margin: 4px 0 0; }

.spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Report */
.report-panel { margin-top: 28px; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.report-head h2 { margin: 0; font-size: 1.4rem; }
.report-head .btn-ghost { color: var(--ink); border-color: #cbd5e1; }
.report-body { display: grid; gap: 16px; }
.rb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.rb-card h3 { margin: 0 0 12px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.rb-card p { margin: 0 0 10px; }
.rb-card ul, .rb-card ol { margin: 0 0 10px; padding-left: 22px; }
.rb-card li { margin-bottom: 6px; }
.rb-card pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 0.86rem; white-space: pre-wrap; }
.meter-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; padding: 7px 0; font-size: 0.92rem; }
.meter { height: 10px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; }
.m-red { background: var(--bad); } .m-amber { background: var(--warn); } .m-green { background: var(--ok); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #eef2ff; color: #4338ca; }
.tag.local { background: #ecfdf5; color: #047857; }
.tag.nube { background: #eff6ff; color: #1d4ed8; }
.alert-note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 14px 16px; font-size: 0.92rem; margin-top: 14px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq-item summary { font-weight: 700; cursor: pointer; padding: 14px 0; }
.faq-item p { color: var(--muted); margin: 0 0 14px; }

/* Footer */
.site-footer { background: var(--bg); color: #cbd5e1; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: #8fa0b8; font-size: 0.92rem; max-width: 300px; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h4 { color: #fff; margin: 0 0 4px; font-size: 0.95rem; }
.footer-col a { color: #8fa0b8; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 36px; padding-top: 22px; font-size: 0.84rem; color: #7c8ca3; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 620px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 60px; }
  .section { padding: 52px 0; }
  .card-float { width: 190px; padding: 13px 15px; }
  .hero-visual { min-height: 320px; }
  .footer-inner { grid-template-columns: 1fr; }
}
