:root {
  --ink: #142433;
  --muted: #4d5f70;
  --bg: #ffffff;
  --bg-alt: #f3f7fa;
  --line: #dbe4eb;
  --brand: #0f3d5e;
  --accent: #12a38a;
  --accent-ink: #0b7a67;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 61, 94, .06), 0 6px 20px rgba(15, 61, 94, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6eef4;
    --muted: #a7b6c3;
    --bg: #0d1720;
    --bg-alt: #121f2b;
    --line: #22323f;
    --brand: #7cc3ee;
    --accent: #2cc5a8;
    --accent-ink: #5ad8bf;
    --card: #142330;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand svg { width: 30px; height: 30px; }
nav { display: flex; gap: 22px; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  border: 2px solid var(--accent); transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--line); }
.btn-light { background: #fff; color: #0f3d5e; border-color: #fff; }
.btn-light:hover { background: #e9f4f8; border-color: #e9f4f8; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(700px 360px at 85% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%);
}
.hero-inner { max-width: 860px; }
.eyebrow { color: var(--accent-ink); font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--brand); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 700px; }

/* Band */
.band { background: var(--brand); color: #fff; padding: 64px 0; }
@media (prefers-color-scheme: dark) { .band { background: #10324b; } }
.band h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.band p { color: rgba(255,255,255,.85); }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }

/* Sections */
.section { padding: 88px 0; }
.alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--brand); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin-bottom: 40px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3, .point h3 { font-size: 1.15rem; }
.card p, .point p { color: var(--muted); margin: 0; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: var(--bg); font-weight: 700; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.example { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.example p { margin: 0; padding: 16px 20px; }
.before { color: var(--muted); border-bottom: 1px dashed var(--line); }
.after { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.after strong { color: var(--accent-ink); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; padding-right: 32px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--accent-ink); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* CTA */
.cta {
  padding: 88px 0; color: #fff;
  background: linear-gradient(135deg, #0f3d5e, #0b6b74);
}
.cta h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.cta p { color: rgba(255,255,255,.88); font-size: 1.1rem; }

/* Questionnaire */
.hint { color: var(--muted); font-size: .95rem; }
.req { color: #c2410c; font-weight: 700; }
.form fieldset {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: 8px 26px 18px; margin: 0 0 24px; box-shadow: var(--shadow);
}
.form legend {
  font-weight: 700; font-size: 1.15rem; color: var(--brand);
  padding: 4px 12px; margin-left: -12px; background: var(--bg); border-radius: 8px;
}
.q { padding: 18px 0; border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: 0; }
.q-title { display: block; font-weight: 600; margin: 0 0 10px; }
.help { color: var(--muted); font-size: .92rem; margin: -4px 0 10px; }
.opts { display: grid; gap: 8px; }
.opts label { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-wrap: wrap; }
.opts input[type="radio"], .opts input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form input[type="text"], .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.form textarea { resize: vertical; }
.opts .other input[type="text"] { flex: 1; min-width: 160px; width: auto; padding: 6px 10px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { color: var(--muted); font-size: .9rem; }
.form button { font: inherit; cursor: pointer; }
.center-block { margin-left: auto; margin-right: auto; }
.survey-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.survey-cta p { color: var(--muted); margin: 0; max-width: 620px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .grid, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  /* Menú en celular: segunda fila con accesos que se deslizan de costado */
  .top-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 0; gap: 0 12px; justify-content: space-between; }
  nav {
    order: 3; width: 100%; margin: 8px -16px 0; padding: 0 16px 10px;
    gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a {
    flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
    font-size: .88rem; color: var(--ink); background: var(--bg);
  }
  [id] { scroll-margin-top: 118px; }
  .grid, .grid-4, .steps, .examples { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section, .cta { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
