/* ============================================================
   IMPERATOR — Landing Page Styles
   Paleta: negro #0D0D0D, rojo #BF0606, grises neutros
   Dark-first, responsive, sin dependencias externas
   ============================================================ */

/* ---------- Reset mínimo ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Tokens ---------- */
:root {
  --brand-red:     #BF0606;
  --brand-red-dim: #8C0404;
  --brand-red-glow: rgba(191, 6, 6, 0.18);
  --bg-base:       #0D0D0D;
  --bg-surface:    #141414;
  --bg-card:       #1A1A1A;
  --bg-card-hover: #212121;
  --border:        #2A2A2A;
  --border-accent: #3A1010;
  --text-primary:  #F2F2F2;
  --text-secondary:#A0A0A0;
  --text-muted:    #606060;
  --font-sans:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                   "Helvetica Neue", Arial, sans-serif;
  --font-mono:     "SF Mono", "Fira Code", "Consolas", monospace;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --max-w:         1120px;
  --section-pad:   5rem 1.5rem;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-red);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: #E50707; }
a:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
  border-radius: 2px;
}

img, svg { display: block; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding: var(--section-pad);
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__wordmark {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav__wordmark span {
  color: var(--brand-red);
}

.nav__byline {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  padding-left: 0.75rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text-primary); }

.nav__cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* hamburger (mobile) */
.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-primary);
}

.nav__mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  gap: 1.25rem;
}

.nav__mobile-menu.is-open { display: flex; }

.nav__mobile-menu a {
  color: var(--text-secondary);
  font-size: 1rem;
}

.nav__mobile-menu a:hover { color: var(--text-primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}
.btn--primary:hover {
  background: #D40707;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(191, 6, 6, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn--lg {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(191,6,6,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-red);
  background: var(--brand-red-glow);
  border: 1px solid var(--border-accent);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 820px;
  margin-inline: auto;
}

.hero__title em {
  font-style: normal;
  color: var(--brand-red);
}

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__meta {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero__metric {
  text-align: center;
}

.hero__metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero__metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

/* ---------- Section headers ---------- */
.section__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.section__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section__header { margin-bottom: 3rem; }

/* ---------- Pillars / Feature cards ---------- */
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.pillar-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-red-glow);
  border: 1px solid var(--border-accent);
  margin-bottom: 1.25rem;
}

.pillar-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--brand-red);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pillar-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pillar-card__tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
  background: var(--brand-red-glow);
  border: 1px solid var(--border-accent);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* ---------- Architecture diagram ---------- */
.arch {
  background: var(--bg-surface);
}

.arch__diagram {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow-x: auto;
}

.arch__diagram svg {
  width: 100%;
  min-width: 560px;
  max-width: 900px;
  margin-inline: auto;
}

/* ---------- SDLC chain ---------- */
.sdlc__chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 2.5rem 0;
}

.sdlc__step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.sdlc__step:hover {
  border-color: var(--brand-red);
  color: var(--text-primary);
}

.sdlc__step--gate {
  background: var(--brand-red-glow);
  border-color: var(--border-accent);
  color: var(--brand-red);
}

.sdlc__arrow {
  padding: 0 0.3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sdlc__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
}

.sdlc__features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.sdlc__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.sdlc__feature::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-red);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* ---------- Production proof / social proof ---------- */
.proof {
  background: var(--bg-surface);
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.proof__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.proof__card-name {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.proof__card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.proof__card-status {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.proof__card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.proof__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border-accent);
  padding-left: 1rem;
  line-height: 1.7;
  max-width: 680px;
}

/* ---------- CTA final ---------- */
.cta-section {
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 110%, rgba(191,6,6,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-section__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
}

.cta-section__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-section__note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer__brand span { color: var(--brand-red); }

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer__links a:hover { color: var(--text-secondary); }

/* ---------- Divider ---------- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ---------- Utility ---------- */
.text-red  { color: var(--brand-red); }
.text-muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-size: 0.85em; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root { --section-pad: 3.5rem 1rem; }

  .nav__links,
  .nav__cta { display: none; }

  .nav__burger { display: flex; }

  .hero { padding: 4rem 1rem 3.5rem; }

  .hero__ctas { flex-direction: column; align-items: center; }

  .hero__meta { gap: 1.25rem; }

  .footer__inner { flex-direction: column; align-items: flex-start; }

  .sdlc__chain { gap: 0.25rem; }
  .sdlc__arrow { display: none; }
}

@media (max-width: 480px) {
  .pillars__grid,
  .proof__grid { grid-template-columns: 1fr; }

  .sdlc__features { grid-template-columns: 1fr; }
}
