/* ==========================================================================
   NexaGuard Blog-Style Editorial Landing Page Engine
   Estilo Guía Forense / Artículo Técnico de Alta Autoridad y Conversión
   ========================================================================== */

:root {
  --bg: #070c22;
  --bg2: #0d1538;
  --panel: rgba(17, 28, 70, 0.65);
  --panel-card: rgba(14, 23, 62, 0.75);
  --line: rgba(150, 175, 255, 0.16);
  --line2: rgba(170, 195, 255, 0.32);
  --text: #eaf0ff;
  --muted: #a0acd2;
  --yellow: #ffcf33;
  --yellow-ink: #1a1400;
  --blue: #6b8cff;
  --red: #ff4560;
  --red-soft: rgba(255, 69, 96, 0.12);
  --red-border: rgba(255, 69, 96, 0.35);
  --green: #3de8a4;
  --cyan: #00f0ff;
  --fd: 'Unbounded', system-ui, sans-serif;
  --fb: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --fm: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}

a:hover {
  opacity: 0.85;
}

/* ---------- Barra de Navegación Minimalista de NexaGuard ---------- */
.bl-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(20px, 5vw);
  background: rgba(7, 12, 34, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bl-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bl-logo svg {
  height: 32px;
  width: auto;
  display: block;
}

.bl-nav-acts {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Botones del Blog ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-y {
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: 0 4px 18px -4px rgba(255, 207, 51, 0.45);
}

.btn-y:hover {
  background: #ffe066;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(255, 207, 51, 0.65);
}

.btn-o {
  border-color: var(--line2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-o:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text);
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 18px -4px rgba(255, 69, 96, 0.5);
}

.btn-red:hover {
  background: #ff5c74;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(255, 69, 96, 0.7);
}

/* ---------- Contenedor Editorial Central ---------- */
.bl-container {
  max-width: 860px;
  margin: 36px auto 60px;
  padding: 0 24px;
}

/* Migas de pan */
.bl-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.bl-breadcrumbs a {
  color: var(--muted);
}

.bl-breadcrumbs a:hover {
  color: var(--yellow);
}

.bl-breadcrumbs span {
  opacity: 0.4;
}

/* Badge de cabecera */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--red-soft);
  border: 1px solid var(--red-border);
  color: #ff7a8e;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Título H1 del Blog */
h1.bl-title {
  font-family: var(--fd);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-wrap: balance;
}

/* Fila de Metadatos */
.meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.meta-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Caja de Alerta Roja Destacada */
.alert-box {
  background: rgba(255, 69, 96, 0.08);
  border: 1px solid rgba(255, 69, 96, 0.38);
  border-left: 6px solid var(--red);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 28px 0 34px;
  box-shadow: 0 10px 30px rgba(255, 69, 96, 0.08);
}

.alert-box h3 {
  color: var(--red);
  font-size: 1.18rem;
  margin-bottom: 8px;
  font-family: var(--fd);
  font-weight: 600;
  line-height: 1.3;
}

.alert-box p {
  color: #e2e8f0;
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
}

/* Cuerpo del Contenido Editorial */
.bl-content h2 {
  font-family: var(--fd);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin: 44px 0 18px;
  color: #ffffff;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  letter-spacing: -0.01em;
}

.bl-content h3 {
  font-family: var(--fd);
  font-size: 1.22rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--yellow);
}

.bl-content p {
  margin-bottom: 18px;
  color: #cdd7f5;
  font-size: 1.02rem;
  line-height: 1.75;
}

.bl-content ul, .bl-content ol {
  margin: 0 0 24px 22px;
  color: #cdd7f5;
}

.bl-content li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.bl-content b, .bl-content strong {
  color: #ffffff;
}

.bl-content code {
  background: #04081c;
  padding: 3px 8px;
  border-radius: 6px;
  color: #ff9fb0;
  font-family: var(--fm);
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tarjetas de Pasos (Step Cards 01, 02, 03...) */
.step-card {
  background: var(--panel-card);
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 26px 28px;
  margin: 24px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.4);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), #ff9800);
  color: var(--yellow-ink);
  font-weight: 800;
  font-family: var(--fm);
  font-size: 0.92rem;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(255, 207, 51, 0.3);
}

.step-card h3 {
  font-family: var(--fd);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 10px;
}

.step-card p {
  color: #c2cfef;
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.step-card p:last-child {
  margin-bottom: 0;
}

.step-card ul {
  margin-bottom: 0;
}

/* Barra de Escaneo Rápido Dentro del Artículo */
.bl-quick-scan {
  background: rgba(14, 24, 68, 0.85);
  border: 1.5px solid var(--yellow);
  border-radius: 14px;
  padding: 24px;
  margin: 34px 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.bl-quick-scan h3 {
  font-family: var(--fd);
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0 0 6px;
}

.bl-quick-scan p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.bl-scan-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bl-scan-row input {
  flex: 1;
  min-width: 240px;
  background: rgba(4, 8, 28, 0.85);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 11px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--fb);
  outline: none;
  transition: border-color 0.2s;
}

.bl-scan-row input:focus {
  border-color: var(--yellow);
}

/* Modulo Antes / Después (.cmp) */
.bl-cmp-wrap {
  margin: 36px 0;
}

.cmp {
  position: relative;
  border: 1px solid var(--line2);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: 60vh;
  width: 100%;
  margin: 0 auto;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  background: #0b1030;
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.7);
}

.pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.pane.hacked {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.74rem;
  background: #141c40;
  border-bottom: 1px solid var(--line);
}

.chrome .url {
  flex: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.lk.bad { color: #ff8ba0; font-weight: 700; }
.lk.ok { color: var(--green); font-weight: 700; }

.hk {
  flex: 1;
  background: #14040b;
  color: var(--red);
  padding: 4% 6%;
  display: flex;
  flex-direction: column;
  gap: 3%;
  font-family: var(--fm);
}

.hk-warn {
  background: #b3122a;
  color: #fff;
  padding: 0.45em 0.8em;
  font-family: var(--fb);
  font-weight: 700;
  font-size: clamp(0.6rem, 1.4vw, 0.85rem);
  border-radius: 4px;
}

.hk-t {
  font-family: var(--fm);
  font-weight: 700;
  font-size: clamp(0.95rem, 3.6vw, 2.2rem);
  text-shadow: 2px 0 #00f0ff, -2px 0 #ff00c8;
}

.site-clean-preview {
  flex: 1;
  background: #0e1a47;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.site-clean-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(61, 232, 164, 0.15);
  border: 1px solid rgba(61, 232, 164, 0.4);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.site-clean-preview h4 {
  font-family: var(--fd);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  color: #ffffff;
  margin-bottom: 6px;
}

.site-clean-preview p {
  color: #b0c2f0;
  font-size: 0.92rem;
  max-width: 440px;
}

.hdl {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: var(--yellow);
  z-index: 4;
}

.hdl b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--yellow-ink);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.cmp-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Acordeón de FAQ */
.bl-faq {
  margin: 40px 0;
}

.bl-faq details {
  border-bottom: 1px solid var(--line);
}

.bl-faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.bl-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #ffffff;
}

.bl-faq summary::-webkit-details-marker {
  display: none;
}

.bl-faq summary .ic-faq {
  width: 18px;
  height: 18px;
  transition: transform 0.25s;
  color: var(--yellow);
  flex-shrink: 0;
}

.bl-faq details[open] summary .ic-faq {
  transform: rotate(45deg);
}

.bl-faq p {
  color: var(--muted);
  padding: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Banner de Conversión Final */
.cta-banner {
  background: linear-gradient(135deg, #0e1a47, #13225a);
  border: 1.5px solid rgba(255, 207, 51, 0.4);
  border-radius: 18px;
  padding: 40px 32px;
  text-align: center;
  margin: 50px 0 30px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 207, 51, 0.1);
}

.cta-banner h2 {
  font-family: var(--fd);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.cta-banner p {
  color: #c9d6f8;
  font-size: 0.98rem;
  max-width: 580px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

.cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Pie de Página */
.bl-footer {
  text-align: center;
  padding: 40px 20px 50px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
  margin-top: 60px;
  background: rgba(7, 12, 34, 0.95);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.bl-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 0.84rem;
}

.bl-footer-links a {
  color: var(--muted);
}

.bl-footer-links a:hover {
  color: var(--yellow);
}

@media (max-width: 640px) {
  .bl-container {
    padding: 0 18px;
    margin-top: 24px;
  }
  .bl-nav {
    padding: 12px 16px;
  }
  .bl-nav-acts .btn-o {
    display: none;
  }
  .step-card {
    padding: 20px 18px;
  }
  .cta-banner {
    padding: 28px 20px;
  }
  .cmp {
    aspect-ratio: 4/3;
  }
}

