:root {
  --bg: #07070a;
  --panel: #111114;
  --raised: #1a1a1e;
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #ececee;
  --dim: #8f8f96;
  --accent: #4aabc8;
  --height: #a88fff;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Cabecera */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}
.brand { color: var(--text); letter-spacing: 0.18em; font-size: 15px; }
.brand strong { font-weight: 800; }
.brand span { font-weight: 300; color: var(--accent); }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
nav a { color: var(--dim); }
nav a:hover { color: var(--text); text-decoration: none; }
.lang {
  background: var(--raised); color: var(--text);
  border: 1px solid var(--stroke); border-radius: 6px;
  padding: 4px 10px; font: 600 12px Inter, sans-serif; cursor: pointer;
}

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; }

/* Portada */
.hero { text-align: center; padding-top: 88px; }
.hero .icon { border-radius: 28px; filter: drop-shadow(0 12px 40px rgba(74, 171, 200, 0.25)); }
.kicker {
  margin: 24px 0 8px; color: var(--accent);
  font: 600 12px "JetBrains Mono", monospace; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -0.02em; max-width: 820px; margin: 0 auto 20px; }
.lead { font-size: 19px; color: var(--dim); max-width: 680px; margin: 0 auto; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 36px 0 16px; }
.btn {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  background: var(--raised); color: var(--text);
  border: 1px solid var(--stroke); font-weight: 600;
}
.btn:hover { text-decoration: none; border-color: rgba(255, 255, 255, 0.2); }
.btn.primary { background: var(--accent); color: #00161d; border-color: var(--accent); box-shadow: 0 8px 30px rgba(74, 171, 200, 0.3); }
.btn small { font: 500 11px "JetBrains Mono", monospace; opacity: 0.7; }
.req { color: var(--dim); font-size: 13px; }

/* Captura */
.shot { padding: 24px 0 0; position: relative; }
.shot img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--stroke);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.shot .placeholder { display: none; }
.shot.empty img { display: none; }
.shot.empty .placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 380px; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--panel), var(--panel) 12px, var(--raised) 12px, var(--raised) 24px);
  border: 1px dashed var(--stroke); color: var(--dim);
}

/* Problema */
.problem { max-width: 760px; margin: 0 auto; text-align: center; }
.problem p { color: var(--dim); font-size: 18px; }
.problem .strong { color: var(--text); font-weight: 600; }

/* Funciones */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding-top: 24px;
}
.grid article {
  background: var(--panel); border: 1px solid var(--stroke);
  border-radius: var(--radius); padding: 26px;
}
.grid h3 { font-size: 19px; }
.grid p { color: var(--dim); margin: 0; font-size: 15px; }
.ico {
  width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 16px;
  border-radius: 10px; background: rgba(74, 171, 200, 0.12); color: var(--accent); font-size: 20px;
}
.grid article:nth-child(3) .ico, .grid article:nth-child(6) .ico { background: rgba(168, 143, 255, 0.14); color: var(--height); }

/* Pasos */
.steps ol { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: s; position: relative;
  background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 20px 22px 20px 72px; color: var(--dim);
}
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(s); position: absolute; left: 22px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #00161d; font: 700 14px "JetBrains Mono", monospace;
}

/* FAQ */
.faq details {
  background: var(--panel); border: 1px solid var(--stroke); border-radius: 10px;
  padding: 16px 20px; margin-top: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--dim); margin: 12px 0 0; }

/* Cierre */
.final { text-align: center; }
.final img { border-radius: 18px; margin-bottom: 16px; }

footer {
  border-top: 1px solid var(--stroke); margin-top: 40px;
  padding: 32px 24px; text-align: center; color: var(--dim); font-size: 13px;
}
footer .legal { max-width: 720px; margin: 8px auto 0; opacity: 0.7; font-size: 12px; }

/* Calibración automática */
.calib {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center;
}
.calib h2 { margin: 4px 0 12px; }
.calib .lead-sm { color: var(--dim); font-size: 17px; margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--text); font-size: 15px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(74, 171, 200, 0.16); color: var(--accent);
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.calib-shot { margin: 0; }
.calib-shot img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--stroke);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
@media (max-width: 900px) {
  .calib { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  nav a { display: none; }
  section { padding: 48px 0; }
  .hero { padding-top: 56px; }
  .steps li { padding-left: 64px; }
}
