:root {
  --bg: #0d0f12;
  --bg-alt: #14171c;
  --card: #1a1e24;
  --line: #2a2f37;
  --text: #eef0f3;
  --muted: #9aa3ae;
  --hot: #ff6a1a;
  --hot-2: #ffb020;
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 14px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.center { text-align: center; }
.center h2 { margin-inline: auto; }

.eyebrow {
  font: 600 .8rem/1 var(--body);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--hot-2);
  margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hot {
  background: linear-gradient(90deg, var(--hot), var(--hot-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--hot); color: #111; box-shadow: 0 8px 30px -8px rgba(255,106,26,.6); }
.btn-primary:hover { background: #ff7d36; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-wa { background: var(--wa); color: #06210f; box-shadow: 0 8px 30px -8px rgba(37,211,102,.55); }
.btn-wa:hover { background: #33e076; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1.15rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; margin-top: .8rem; padding: .3rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(13,15,18,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .55rem; font: 800 1.25rem var(--display); text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--hot), var(--hot-2)); color: #111; font-weight: 900; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: clamp(4rem, 12vw, 8rem) 0 clamp(4rem, 10vw, 7rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(13,15,18,.95) 0%, rgba(13,15,18,.8) 40%, rgba(13,15,18,.15) 75%, rgba(13,15,18,.05) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}
.hero-inner { position: relative; z-index: 2; }
@media (max-width: 900px) { .hero::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(13,15,18,.75) 45%, rgba(13,15,18,.55) 100%); } }
.hero h1 { max-width: 16ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.8rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero-proof li::before { content: "✓"; color: var(--wa); margin-right: .45rem; font-weight: 700; }

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

/* Sections */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.risk-grid, .auth-grid, .testi-grid, .svc-grid { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.risk-grid, .testi-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.auth-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.svc-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.risk { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; position: relative; }
.risk-num { font: 900 2.6rem var(--display); color: transparent; -webkit-text-stroke: 1px var(--hot); display: block; margin-bottom: .6rem; }
.risk p { color: var(--muted); }
.risk .stake { color: var(--text); font-weight: 600; border-left: 3px solid var(--hot); padding-left: .8rem; margin: 0; }
.bridge { margin-top: 2.5rem; font-size: 1.15rem; color: var(--muted); }
.bridge strong { color: var(--text); }

/* Quiz */
.quiz { margin-top: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); }
.quiz-progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 1.8rem; }
.quiz-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hot), var(--hot-2)); transition: width .35s ease; }
.quiz-count { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.quiz-q { font: 700 clamp(1.25rem, 3vw, 1.6rem)/1.3 var(--display); min-height: 3.2em; }
.quiz-q.in { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.quiz-answers { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.quiz-result { text-align: center; animation: fadeUp .4s ease; }
.result-level { display: inline-block; padding: .35rem .9rem; border-radius: 99px; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.quiz-result[data-level="high"] .result-level { background: rgba(255,80,40,.15); color: #ff7a52; }
.quiz-result[data-level="medium"] .result-level { background: rgba(255,176,32,.15); color: var(--hot-2); }
.quiz-result[data-level="low"] .result-level { background: rgba(37,211,102,.15); color: var(--wa); }
.quiz-result > p:not(.result-level) { color: var(--muted); }

.field { display: block; text-align: left; margin: 1.2rem 0 1rem; }
.field span { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }
.field select { width: 100%; padding: .85rem 1rem; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; }

/* Authority */
.auth { padding: 1.6rem; border-top: 3px solid var(--hot); background: var(--card); border-radius: 0 0 var(--radius) var(--radius); }
.auth p { color: var(--muted); margin: 0; }
.process { list-style: none; padding: 0; margin: 3.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; counter-reset: s; }
.process li { position: relative; }
.process p { color: var(--muted); margin: 0; }
.step { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--hot); color: var(--hot); font: 800 1.1rem var(--display); margin-bottom: .9rem; }

/* Testimonials */
.testi { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; }
.stars { color: var(--hot-2); letter-spacing: .15em; margin-bottom: .8rem; }
.testi blockquote { margin: 0 0 1.4rem; font-size: 1.05rem; flex: 1; }
.testi figcaption { display: flex; flex-direction: column; font-size: .92rem; }
.testi figcaption span { color: var(--muted); }
.areas { margin-top: 3rem; text-align: center; }
.areas p { color: var(--muted); }
.areas ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.areas li { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 99px; font-weight: 600; font-size: .9rem; background: var(--card); }

/* Services */
.svc { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); }
.svc p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--hot); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: .8rem 0 0; }

/* Final CTA */
.final { padding: clamp(5rem, 10vw, 7rem) 0; background: radial-gradient(70% 90% at 50% 100%, rgba(37,211,102,.12), transparent 70%); }
.final .lead { margin: 0 auto 2rem; }

.footer { border-top: 1px solid var(--line); padding: 2rem 0 6rem; color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 120px; height: 120px; border-radius: 50%; background: #1e6fff; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(0,0,0,.5); animation: pulse 2.8s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(30,111,255,.5); } 60% { box-shadow: 0 0 0 24px rgba(30,111,255,0); } }
.wa-float svg { width: 56px; height: 56px; }

/* Pop-up */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); opacity: 0; transition: opacity .2s; }
.modal-card { position: relative; width: min(460px, 100%); background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--hot); border-radius: var(--radius); padding: 2rem; text-align: center; transform: translateY(20px) scale(.97); opacity: 0; transition: transform .25s, opacity .2s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-card h3 { font-size: 1.55rem; }
.modal-card > p:not(.eyebrow) { color: var(--muted); }
.modal-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; cursor: pointer; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
