:root {
  --bg: #0A0D12;
  --bg-2: #0D1117;
  --bg-3: #05070A;
  --card: #10151C;
  --line: #1F2731;
  --line-2: #36414E;
  --text: #E9EEF4;
  --muted: #A9B4C0;
  --muted-2: #8A96A3;
  --light: #F3F5F8;
  --ink: #0A0D12;
  --ink-muted: #44505D;
  --accent: #2F6BFF;
  --accent-text: #6E9BFF;
  --amber: #FFB23F;
  --green: #25D366;
  --ok: #34D399;
  --radius: 20px;
  --wrap: 1240px;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section--light { background: var(--light); color: var(--ink); }
.section--alt { background: var(--bg-2); border-top: 1px solid #1A212B; }

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.section--light .eyebrow { color: #3A4A5C; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
h1 { font-weight: 800; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; color: #fff; }
h2 { font-weight: 800; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 620px; margin: 24px 0 0; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--whatsapp { background: var(--green); color: #06210F; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #1F5BEF; }
.btn--ghost { border-color: var(--line-2); color: #fff; }
.btn--ghost:hover { border-color: #5A6676; }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; font-weight: 600; border-radius: 8px; }

/* Barra superior */
.topbar { background: var(--bg-3); border-bottom: 1px solid #1A212B; font-size: 13px; color: #A3AEBB; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.topbar a { text-decoration: none; color: #A3AEBB; }
.topbar a:hover { color: #fff; }
.topbar__links { display: flex; gap: 20px; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 1px; }

/* Encabezado */
.header { position: sticky; top: 0; z-index: 50; background: rgba(10, 13, 18, .9); backdrop-filter: blur(10px); border-bottom: 1px solid #1A212B; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #D9D9D9; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.brand__name { font-weight: 800; font-size: 21px; letter-spacing: .02em; }
.brand__sub { font-weight: 600; font-size: 10.5px; letter-spacing: .42em; margin-top: 4px; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: #D4DBE3; white-space: nowrap; }
.header__actions .btn { white-space: nowrap; }
.nav a:hover { color: #fff; }
.header__actions { display: flex; gap: 10px; align-items: center; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: 54px; width: min(84vw, 300px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; box-shadow: 0 24px 48px rgba(0,0,0,.5); }
.menu__panel a { padding: 12px 14px; border-radius: 8px; text-decoration: none; color: #E9EEF4; }
.menu__panel a:hover { background: #18202A; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu { display: block; }
  .header__actions .btn--ghost { display: none; }
}
@media (max-width: 520px) {
  .header__actions .btn--primary { display: none; }
}

/* Portada */
.hero { background: radial-gradient(1100px 560px at 85% 15%, rgba(47,107,255,.16), transparent 60%), var(--bg); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero__copy { flex: 999 1 520px; min-width: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 36px 0 0; padding: 0; list-style: none; font-size: 14px; color: #9AA6B2; }
.checks li { display: flex; align-items: center; gap: 8px; }

.thermal { flex: 1 1 380px; min-width: 0; margin: 0; background: #0F141B; border: 1px solid #222B36; border-radius: 18px; padding: 22px; box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.thermal__head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); letter-spacing: .06em; }
.thermal__rec { color: var(--amber); }
.thermal__img {
  margin-top: 16px; border-radius: 12px; height: 260px; position: relative; overflow: hidden;
  background:
    radial-gradient(70px 60px at 76% 58%, #FFF2B3 0%, #FFB23F 28%, #FF5A3C 52%, rgba(255,90,60,0) 72%),
    radial-gradient(90px 80px at 30% 40%, rgba(255,178,63,.55), rgba(255,178,63,0) 70%),
    linear-gradient(160deg, #241056 0%, #3B1C8C 35%, #6B2FA6 60%, #2A1560 100%);
}
.thermal__grid { position: absolute; inset: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.thermal__grid span { border: 2px solid rgba(255,255,255,.35); border-radius: 6px; }
.thermal__grid span:last-child { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,90,60,.35); }
.thermal__target { position: absolute; left: 70%; top: 50%; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; }
.thermal__readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; font-family: var(--font-mono); }
.reading { background: #151B24; border-radius: 10px; padding: 12px; }
.reading small { display: block; font-size: 11px; color: var(--muted-2); }
.reading strong { display: block; font-size: 20px; font-weight: 500; margin-top: 4px; }
.reading--hot { background: #2A1712; border: 1px solid #FF5A3C; }
.reading--hot small { color: #FFB4A3; }
.reading--hot strong { color: #FFD2C7; }
.thermal figcaption { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #C9D2DC; }

/* Franja de confianza */
.trust { background: var(--bg-2); border-top: 1px solid #1A212B; border-bottom: 1px solid #1A212B; }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.trust__item { display: flex; gap: 14px; align-items: center; }
.trust__item strong { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: #fff; }
.trust__item span { font-size: 14px; line-height: 1.4; color: #9AA6B2; }

/* Problema */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split__head { flex: 1 1 360px; min-width: 0; }
.split__body { flex: 2 1 560px; min-width: 0; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.pain { background: #fff; border: 1px solid #E1E6EC; border-radius: 16px; padding: 28px; }
.pain h3 { margin: 18px 0 8px; }
.pain p { margin: 0; font-size: 15px; color: var(--ink-muted); }

/* Servicios */
.section-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.section-head > div { max-width: 740px; }
.link-underline { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid #fff; padding-bottom: 4px; }
.services { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 100px; }
.service__top { display: flex; justify-content: space-between; align-items: center; }
.service__num { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); }
.badge { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--amber); padding: 6px 10px; border-radius: 999px; }
.service h3 { font-size: 26px; font-weight: 800; color: #fff; }
.service p { margin: 0; color: var(--muted); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: #D4DBE3; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "—"; color: var(--accent-text); }
.service__link { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: #fff; font-weight: 600; text-decoration: none; }
.service__link:hover { color: var(--accent-text); }

/* Planes */
.center { text-align: center; max-width: 760px; margin: 0 auto; }
.center .lead { margin-left: auto; margin-right: auto; }
.plans { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.plan h3 { font-size: 24px; font-weight: 800; color: #fff; }
.plan__for { margin: 8px 0 0; font-size: 15px; color: #9AA6B2; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: #D4DBE3; }
.plan .btn { margin-top: auto; }
.plan--featured { background: #fff; border-color: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.plan--featured h3 { color: var(--ink); }
.plan--featured .plan__for { color: var(--ink-muted); }
.plan--featured ul { color: #1E2732; }
.plan__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pill-dark { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }

/* Proceso */
.steps { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 2px solid var(--ink); }
.steps li { padding: 28px 28px 0 0; }
.steps span { font-family: var(--font-mono); font-size: 14px; color: #3A4A5C; }
.steps h3 { margin: 14px 0 10px; font-size: 22px; font-weight: 800; }
.steps p { margin: 0; font-size: 15px; color: var(--ink-muted); }

/* Portal */
.portal { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.portal__copy { flex: 1 1 400px; min-width: 0; }
.portal__copy .btn { margin-top: 32px; }
.portal__mock { flex: 1 1 440px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.portal__mock-head { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.portal__mock-head span:last-child { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.doc { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: 0; padding-bottom: 0; }
.doc b { display: block; font-weight: 500; color: var(--text); }
.doc small { font-size: 13px; color: var(--muted-2); }
.doc em { font-style: normal; font-size: 14px; font-weight: 600; color: #8FB3FF; }

/* Sectores */
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sectors div { background: #0F141B; padding: 32px; }
.sectors h3 { color: #fff; margin-bottom: 8px; }
.sectors p { margin: 0; font-size: 15px; color: #9AA6B2; }

/* Preguntas frecuentes */
.faq details { border-top: 1px solid #C9D1DA; padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid #C9D1DA; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 19px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 24px; line-height: 1; color: #3A4A5C; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 14px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink-muted); max-width: 720px; }

/* Contacto */
.contact { background: radial-gradient(900px 500px at 10% 0%, rgba(47,107,255,.18), transparent 60%), var(--bg); }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact__info h2 { color: #fff; font-size: clamp(34px, 4.4vw, 56px); }
.contact__info p { margin: 0; font-size: 18px; color: var(--muted); }
.channel { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: #fff; }
a.channel:hover { border-color: var(--line-2); }
.channel small { display: block; font-size: 13px; color: #9AA6B2; }
.channel b { font-weight: 600; font-size: 17px; }
.form { flex: 1 1 440px; min-width: 0; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-content: start; }
.form h3 { grid-column: 1 / -1; font-size: 26px; font-weight: 800; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 13px 14px; min-height: 48px;
  border: 1px solid #C9D1DA; border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form textarea { resize: vertical; }
.form .btn { grid-column: 1 / -1; border: 0; }
.form__note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-muted); }
.hidden { display: none; }

/* Pie de página */
.footer { background: var(--bg-3); border-top: 1px solid #1A212B; font-size: 14px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; padding-top: 56px; padding-bottom: 40px; }
.footer__about { flex: 1 1 280px; min-width: 0; }
.footer__about img { display: block; height: auto; }
.footer__about p { margin: 18px 0 0; color: var(--muted-2); max-width: 340px; line-height: 1.7; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a, .footer__col span { color: #C9D2DC; text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #1A212B; padding-top: 20px; padding-bottom: 32px; color: #8A96A3; font-size: 13px; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #06210F;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.wa-float:hover { transform: scale(1.05); }

@media (max-width: 640px) {
  .topbar__links { display: none; }
  .section { padding: 80px 0; }
  .service, .plan, .form { padding: 28px; }
  .thermal__img { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .wa-float { transition: none; }
}
