/* RedVectra Security — hoja de estilos principal */
:root {
  --bg: #0b0d10;
  --bg-2: #11151a;
  --bg-3: #171c23;
  --line: #232a33;
  --text: #e6e9ee;
  --muted: #9aa4b2;
  --red: #e5383b;
  --red-2: #ff5a5f;
  --red-dim: rgba(229, 56, 59, 0.12);
  --green: #3ddc97;
  --radius: 10px;
  --max: 1180px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--red-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--red); color: #fff; padding: 8px 12px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text); font-weight: 800; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; }
.brand span { color: var(--red); }
.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px;
  font-weight: 650; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.nav-links .btn { padding: 8px 16px; color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, rgba(0,0,0,.55), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, rgba(0,0,0,.55), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(229,56,59,.22), transparent 65%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .8rem; color: var(--red-2);
  background: var(--red-dim); border: 1px solid rgba(229,56,59,.3);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.hero h1 .accent { color: var(--red); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 580px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.badge {
  font-family: var(--mono); font-size: .75rem; color: var(--muted);
  border: 1px solid var(--line); background: var(--bg-2);
  padding: 4px 10px; border-radius: 6px;
}

/* Terminal */
.terminal {
  background: #07090b; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(229,56,59,.06);
  overflow: hidden; font-family: var(--mono); font-size: .82rem;
}
.terminal-bar { display: flex; gap: 7px; align-items: center; padding: 11px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c333d; }
.terminal-bar i:first-child { background: var(--red); }
.terminal-bar span { margin-left: 10px; color: var(--muted); font-size: .75rem; }
.terminal-body { padding: 18px 18px 22px; min-height: 290px; color: #c7cdd6; white-space: pre-wrap; line-height: 1.7; }
.t-prompt { color: var(--red-2); }
.t-ok { color: var(--green); }
.t-warn { color: #f5b84b; }
.t-crit { color: var(--red-2); font-weight: 700; }
.t-dim { color: #5d6774; }
.cursor { display: inline-block; width: 8px; height: 1em; background: var(--red); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.kicker { font-family: var(--mono); color: var(--red-2); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.card:hover { border-color: rgba(229,56,59,.5); transform: translateY(-2px); }
.section-alt .card { background: var(--bg); }
.card .icon {
  width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center;
  background: var(--red-dim); color: var(--red-2); margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: .95rem; }
.card ul { margin: auto 0 0; padding: 14px 0 0; list-style: none; border-top: 1px dashed var(--line); }
.card li { font-size: .86rem; color: var(--muted); padding: 3px 0 3px 18px; position: relative; }
.card li::before { content: "›"; position: absolute; left: 2px; color: var(--red); font-weight: 700; }
.tag { font-family: var(--mono); font-size: .72rem; color: var(--red-2); margin-bottom: 8px; display: block; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 1.7rem; font-weight: 700; color: var(--red);
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1rem; }
.step p { color: var(--muted); font-size: .88rem; margin: 0; }

/* Frameworks / compliance */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1px solid var(--line); background: var(--bg-3); border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--text); }
.pill small { color: var(--muted); margin-left: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--line); color: var(--muted); }
.checklist li strong { color: var(--text); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  width: 20px; height: 20px; border-radius: 5px; background: var(--red-dim); color: var(--red-2);
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}

/* Report sample */
.report {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.report-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.finding { display: grid; grid-template-columns: 86px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.finding:last-child { border-bottom: 0; }
.sev { font-family: var(--mono); font-size: .7rem; font-weight: 700; text-align: center; padding: 3px 0; border-radius: 4px; }
.sev-c { background: rgba(229,56,59,.18); color: #ff6b6e; }
.sev-h { background: rgba(245,130,60,.16); color: #ff9a5c; }
.sev-m { background: rgba(245,184,75,.14); color: #f5b84b; }
.sev-l { background: rgba(61,220,151,.12); color: var(--green); }
.finding .cvss { font-family: var(--mono); font-size: .78rem; color: var(--muted); }

/* Team */
.team-card { gap: 18px; }
.avatar {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px;
  background: linear-gradient(135deg, #2a1416, #1a1d22); border: 1px solid rgba(229,56,59,.35);
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700; color: var(--red-2); font-size: 1.15rem;
}
.team-card .role { color: var(--red-2); font-size: .86rem; font-weight: 600; margin-bottom: 8px; }
.team-card .certs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.grid-3 > *, .grid-2 > * { min-width: 0; }
.team-card > div:last-child { min-width: 0; }
.team-card a { font-size: .84rem; font-family: var(--mono); overflow-wrap: anywhere; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, rgba(229,56,59,.16), rgba(229,56,59,.03));
  border: 1px solid rgba(229,56,59,.35); border-radius: 14px;
  padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; font-size: 1.7rem; }
.cta-band p { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list .label { display: block; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
.contact-list .val { color: var(--text); font-weight: 500; }
.contact-list .fpr { font-family: var(--mono); font-size: .8rem; color: var(--muted); word-break: break-word; }
form { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 16px; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
  font: inherit; font-size: .95rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }
textarea { min-height: 130px; resize: vertical; }
.consent { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.consent input { width: auto; margin-top: 4px; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 12px; font-size: .88rem; color: var(--green); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: #08090b; font-size: .88rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color: var(--text); font-size: .9rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--muted); }
.site-footer .brand { color: var(--text); margin-bottom: 14px; }
.site-footer a:hover { color: var(--text); }
.legal-line { border-top: 1px solid var(--line); padding-top: 22px; font-size: .78rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal { padding: 70px 0 90px; }
.legal .container { max-width: 840px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; padding-top: 1em; border-top: 1px solid var(--line); }
.legal p, .legal li { color: #c3c9d2; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .93rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 600; width: 36%; }
.legal .updated { font-family: var(--mono); font-size: .8rem; color: var(--muted); }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 28px 24px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.trust-item strong::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); border-radius: 2px; margin-right: 10px; vertical-align: 2px; }
.trust-item span { color: var(--muted); font-size: .88rem; line-height: 1.5; display: block; }

/* Plans */
.plan { position: relative; }
.plan-featured { border-color: rgba(229,56,59,.55); background: linear-gradient(180deg, rgba(229,56,59,.08), transparent 60%), var(--bg) !important; }
.plan-flag {
  position: absolute; top: -11px; right: 22px;
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .02em;
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 100px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 650; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px;
  font-family: var(--mono); font-size: 1.35rem; color: var(--red-2); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #fff; }
.faq details p { color: var(--muted); margin: -4px 0 20px; padding-right: 32px; }

/* Disclosure strip */
.disclosure {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 8px;
  padding: 18px 22px; margin-bottom: 48px; background: var(--bg-2);
}
.disclosure strong { display: block; color: var(--text); margin-bottom: 2px; }
.disclosure a:not(.btn) { color: var(--red-2); }
.disclosure .btn { padding: 8px 16px; font-size: .85rem; color: var(--text); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; justify-content: center; }
}
@media (max-width: 640px) {
  section { padding: 70px 0; }
  .hero { padding: 72px 0 64px; }
  .grid-3, .grid-2, .steps, .form-row, .footer-grid, .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; padding: 16px 0; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
  .faq-grid { gap: 32px; }
  .cta-band { padding: 30px; }
  .finding { grid-template-columns: 70px 1fr; }
  .finding .cvss { display: none; }
  .legal th, .legal td { display: block; width: 100%; padding: 4px 0; border: 0; }
  .legal th { padding-top: 14px; }
  .legal tr { display: block; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .legal td { overflow-wrap: anywhere; }
  .terminal { font-size: .66rem; }
  .terminal-body { min-height: 0; padding: 14px; white-space: pre; overflow-x: auto; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  #contact-form .btn { width: 100%; justify-content: center; }
}
