/* ==========================================================================
   PROYECTO ARMOR ONLINE — Sistema de diseño
   Paleta: gunmetal oscuro + rojo cristal (del logo) + acero + ámbar de alerta
   Tipografía: Rajdhani (display, técnica/militar) + Inter (cuerpo, legible)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color */
  --bg-void: #0f1216;        /* fondo base, gunmetal casi negro */
  --bg-panel: #1a1f27;       /* paneles / tarjetas */
  --bg-panel-raised: #212733;
  --line: #2b323f;           /* bordes / divisores */
  --steel: #8d96a3;          /* texto secundario, metal */
  --steel-light: #b7bfca;
  --text: #edeff2;           /* texto principal */
  --red: #c4212d;            /* rojo cristal del logo */
  --red-deep: #7a1119;
  --red-bright: #e14350;
  --amber: #e0a13b;          /* acento de alerta / interés-apoyo */
  --amber-deep: #93641c;

  /* Tipografía */
  --font-display: 'Rajdhani', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 3px; /* casi recto: placas de armadura, no tarjetas SaaS redondeadas */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: #fff;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }

p { max-width: 70ch; color: var(--steel-light); }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; position: relative; }
section + section { border-top: 1px solid var(--line); }

/* Divisor angular tipo placa de armadura, se usa UNA vez para el hero — no en cada sección */
.plate-cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
}
.plate-cut-top {
  clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
}

/* ---------- Navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 18, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; }
.brand img { height: 34px; width: 34px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 0.95rem; color: var(--steel-light); font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active { border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-cta:hover { background: var(--red-bright); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--bg-panel); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--steel); }
.btn-amber { background: var(--amber); color: #211505; }
.btn-amber:hover { background: #eab455; }

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 100px;
  background:
    radial-gradient(ellipse at 78% 20%, rgba(196,33,45,0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-void), #0b0d10);
  border-top: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--amber);
  border: 1px solid var(--amber-deep);
  background: rgba(224,161,59,0.08);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img { width: min(340px, 80%); filter: drop-shadow(0 30px 60px rgba(196,33,45,0.25)); }

/* ---------- Tarjetas / placas ---------- */
.plate {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 28px;
}
.plate.amber { border-left-color: var(--amber); }
.plate.steel { border-left-color: var(--steel); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Etiquetas de estado de la información (investigación) ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tag-verified { background: rgba(90, 168, 110, 0.12); color: #6fc98a; border: 1px solid rgba(90,168,110,0.35); }
.tag-unclear  { background: rgba(224,161,59,0.12); color: var(--amber); border: 1px solid var(--amber-deep); }
.tag-pending  { background: rgba(196,33,45,0.12); color: var(--red-bright); border: 1px solid var(--red-deep); }

/* ---------- Timeline / plan ---------- */
.plan-steps { display: flex; flex-direction: column; gap: 0; }
.plan-step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 18px 0; position: relative; }
.plan-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: -18px;
  width: 2px;
  background: var(--line);
}
.plan-num {
  width: 44px; height: 44px;
  border: 1px solid var(--red-deep);
  color: var(--red-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  border-radius: 50%;
  background: var(--bg-panel);
  z-index: 1;
}

/* ---------- Redes / apps ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: 14px; }
.social-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.social-btn:hover { border-color: var(--steel); background: var(--bg-panel-raised); }
.social-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Contador de apoyo ---------- */
.counter-box { text-align: center; padding: 40px; }
.counter-num { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 700; color: #fff; line-height: 1; }
.counter-label { color: var(--steel); margin-top: 6px; }

/* ---------- Foro (maqueta) ---------- */
.thread {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.thread h4 { margin: 0 0 4px; font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; color: #fff; }
.thread .meta { font-size: 0.85rem; color: var(--steel); }
.thread-stats { text-align: right; font-size: 0.85rem; color: var(--steel); white-space: nowrap; }

/* ---------- Blog ---------- */
.post-card { display: block; padding: 24px; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); }
.post-date { font-size: 0.82rem; color: var(--amber); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: #0b0d10; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--steel-light); font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--steel); font-size: 0.92rem; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-legal { font-size: 0.82rem; color: #5c6472; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-legal p { max-width: none; color: #5c6472; }

/* ---------- Utilidades ---------- */
.text-steel { color: var(--steel); }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.max-w-prose { max-width: 62ch; }
.kicker { color: var(--red-bright); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; display: block; }

/* Banner de instalación PWA */
#pwa-install-banner {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--bg-panel-raised); border: 1px solid var(--line);
  padding: 12px 16px; border-radius: 8px; display: none;
  align-items: center; gap: 14px; z-index: 80; box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
#pwa-install-banner.show { display: flex; }
