/* Revibit · landing. Colores y tipografía del Manual de Marca (08_Marca).
   El verde neón solo sobre fondos oscuros; sobre claro, verde texto #007A55 (5,4:1). */
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy: #021b28;
  --navy-2: #0a2836;
  --port: #0e4a63;
  --neon: #00ffb3;
  --green: #007a55;
  --white: #ffffff;
  --gray: #f2f2f2;
  --sand: #eadfcb;
  --terra: #c65d3b;
  --text: #021b28;
  --text-2: #3d5260;
  --border: #dce3e7;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(2,27,40,.06), 0 10px 30px rgba(2,27,40,.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: "Montserrat", Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.dot { color: var(--green); }
.hero .dot, .quote .dot, .topbar .dot, .footer .dot { color: var(--neon); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 4.2vw, 42px); }
h3 { font-size: 20px; }
.sub { color: var(--text-2); font-size: 18px; margin: 12px 0 0; max-width: 640px; }
.muted { color: var(--text-2); margin: 6px 0 18px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .1s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.98); }
.btn-neon { background: var(--neon); color: var(--navy); }
.btn-neon:hover { box-shadow: 0 0 0 6px rgba(0,255,179,.18); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Cabecera */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(2,27,40,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--white); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:not(.btn):hover { color: var(--white); background: rgba(255,255,255,.08); }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 85% 10%, rgba(14,74,99,.9), transparent 60%), var(--navy); color: var(--white); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 104px; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 14px; font-weight: 700; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); }
.lead { font-size: clamp(18px, 2vw, 21px); color: rgba(255,255,255,.82); margin: 22px 0 32px; max-width: 620px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.status { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; font-size: 15px; color: rgba(255,255,255,.75); }
.pulse { width: 10px; height: 10px; border-radius: 999px; background: var(--neon); box-shadow: 0 0 0 0 rgba(0,255,179,.6); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0,255,179,0); } 100% { box-shadow: 0 0 0 0 rgba(0,255,179,0); } }

/* Módulos: parcelas vacías (contorno) que vuelven a la vida (neón) */
.modules { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; width: 100%; max-width: 360px; justify-self: end; }
.modules span { aspect-ratio: 1; border-radius: 22%; border: 1.5px solid rgba(255,255,255,.16); }
.modules span.on { background: var(--neon); border-color: var(--neon); animation: alive 6s ease-in-out infinite; }
.modules span.on:nth-child(3n) { animation-delay: 1.2s; }
.modules span.on:nth-child(4n) { animation-delay: 2.4s; }
.modules span.on:nth-child(5n) { animation-delay: 3.6s; }
@keyframes alive { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Secciones */
.section { padding: 96px 0; }
.section.alt { background: var(--gray); }
.cards { display: grid; gap: 18px; margin-top: 36px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; border: 1px solid var(--border); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-2); }
.ico { width: 52px; height: 52px; border-radius: 999px; background: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--neon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Escalera */
.stairs { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.stairs li { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; }
.stairs li:nth-child(1) { min-height: 220px; }
.stairs li:nth-child(2) { min-height: 260px; }
.stairs li:nth-child(3) { min-height: 300px; }
.stairs li:nth-child(4) { min-height: 340px; }
.stairs li.now { background: var(--navy); color: var(--white); }
.stairs li.now p { color: rgba(255,255,255,.8); }
.stairs .n { display: block; font-weight: 700; font-size: 34px; color: var(--green); margin-bottom: 10px; }
.stairs li.now .n { color: var(--neon); }
.stairs h3 { margin-bottom: 8px; }
.stairs p { margin: 0; color: var(--text-2); font-size: 16px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; background: var(--neon); color: var(--navy); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }

/* Cita */
.quote { background: var(--navy); color: var(--white); padding: 96px 0; }
.quote blockquote { margin: 0; max-width: 900px; }
.quote blockquote p { font-size: clamp(28px, 4.2vw, 46px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
.quote footer { margin-top: 20px; color: rgba(255,255,255,.8); font-size: 18px; }
.quote strong { color: var(--neon); }

/* Pestañas y formularios */
.tabs { display: inline-flex; gap: 4px; padding: 5px; margin: 32px 0 18px; background: var(--gray); border-radius: 999px; }
.tabs button { font: inherit; font-weight: 700; font-size: 15px; border: 0; background: transparent; color: var(--text-2); padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form h3 { font-size: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 16px; min-height: 50px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(0,122,85,.18); }
.field [aria-invalid="true"] { border-color: #b42318; }
.hint { font-size: 13px; color: var(--text-2); }
.req { color: #b42318; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--green); }
.layer { font-size: 13px; color: var(--text-2); margin: 0; }
.msg { margin: 0; font-weight: 700; }
.msg.ok { color: var(--green); }
.msg.err { color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* FAQ */
.faq { margin-top: 32px; }
.faq details { background: var(--white); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow); }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; 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-size: 24px; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--text-2); }

/* Pie */
.footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 56px 0 64px; font-size: 15px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.disclaimer { max-width: 520px; margin: 14px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--white); }

/* Páginas legales */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal .todo { background: #fff3dc; color: #8a3e22; border-radius: 12px; padding: 12px 16px; font-size: 15px; }

/* Responsive */
@media (max-width: 920px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 72px; }
  .modules { justify-self: start; max-width: 280px; }
  .cards.three, .stairs { grid-template-columns: 1fr 1fr; }
  .stairs li { min-height: 0 !important; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .section, .quote { padding: 64px 0; }
  .cards.three, .stairs { grid-template-columns: 1fr; }
  .ctas .btn { width: 100%; }
  .modules { display: none; }
  .footer-in { grid-template-columns: 1fr; }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Vista previa con contraseña (gate.js) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.locked body > *:not(.gate) { display: none !important; }
.gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 80% 0%, rgba(14,74,99,.9), transparent 60%), var(--navy); color: var(--white); }
.gate-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.gate-box h1 { font-size: clamp(32px, 7vw, 44px); margin-top: 18px; }
.gate-box p { margin: 0; color: rgba(255,255,255,.8); }
.gate-box input { font: inherit; font-size: 16px; min-height: 52px; border-radius: 999px; padding: 0 20px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: var(--white); }
.gate-box input::placeholder { color: rgba(255,255,255,.6); }
.gate-err { color: #ffb4a8 !important; min-height: 1.4em; font-weight: 700; }
