/* ============================================================
   CIBRAX — Stylesheet global
   Brandbook v1.1 · Threat hunting platform
   ============================================================ */

/* === TOKENS DE MARCA ======================================= */
:root {
  /* Colores principales */
  --midnight:      #0A0E1A;
  --graphite:      #1A1F2E;
  --graphite-2:    #2A2F3E;
  --hunter:        #FF3B3B;
  --hunter-dark:   #C82828;
  --steel:         #8A93A6;
  --steel-light:   #B8BFCC;
  --bone:          #F4F5F7;
  --white:         #FFFFFF;
  --success:       #4ADE80;

  /* Tipografías */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Espaciado y radios */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Layout */
  --container: 1200px;
  --nav-height: 72px;

  /* Transiciones */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-display);
  background: var(--midnight);
  color: var(--bone);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--hunter);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* === GRID DE FONDO ========================================= */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--graphite) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--graphite) 0.5px, transparent 0.5px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* === LAYOUT ================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

main {
  position: relative;
  z-index: 1;
}

section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--graphite);
  position: relative;
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
}

/* === NAVEGACIÓN ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--graphite);
}

.nav {
  height: var(--nav-height);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -1.5px;
  color: var(--white);
}

.nav-brand .red {
  color: var(--hunter);
  font-style: italic;
}

.nav-brand:hover { color: var(--white); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--steel-light);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--white);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--hunter);
}

/* Dropdown Soluciones */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--t-fast);
}

.has-dropdown[data-open="true"] .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -1rem;
  min-width: 280px;
  background: var(--graphite);
  border: 1px solid var(--graphite-2);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown[data-open="true"] .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--steel-light);
  font-size: 14px;
  transition: background var(--t-fast), color var(--t-fast);
}

.dropdown-item:hover {
  background: rgba(255, 59, 59, 0.08);
  color: var(--white);
}

.dropdown-item .item-title {
  display: block;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.dropdown-item .item-desc {
  display: block;
  font-size: 12px;
  color: var(--steel);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* CTA del nav */
.nav-cta {
  background: var(--hunter);
  color: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background var(--t-fast);
}

.nav-cta:hover {
  background: var(--hunter-dark);
  color: var(--white);
}

/* Toggle móvil */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--graphite-2);
  border-radius: var(--radius-sm);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: transform var(--t-fast), top var(--t-fast), bottom var(--t-fast), opacity var(--t-fast);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { bottom: -6px; }

.site-header[data-mobile-open="true"] .nav-toggle span { background: transparent; }
.site-header[data-mobile-open="true"] .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header[data-mobile-open="true"] .nav-toggle span::after  { bottom: 0; transform: rotate(-45deg); }

/* === HERO ================================================== */
.hero {
  padding: 7rem 0 6rem;
  position: relative;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hunter);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-tag::before { content: "> "; }

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.hero h1 .red {
  color: var(--hunter);
  font-style: italic;
}

.hero p.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--steel-light);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === BOTONES =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.btn-primary {
  background: var(--hunter);
  color: var(--white);
  border: 1px solid var(--hunter);
}

.btn-primary:hover {
  background: var(--hunter-dark);
  border-color: var(--hunter-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--graphite-2);
}

.btn-secondary:hover {
  border-color: var(--hunter);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--steel-light);
  border: none;
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: var(--hunter);
  gap: 0.85rem;
}

/* === SECCIONES: ENCABEZADO ================================= */
.section-header {
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .section-header { grid-template-columns: 1fr; gap: 1rem; }
}

.section-number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--hunter);
  letter-spacing: 2px;
  padding-top: 12px;
  border-top: 2px solid var(--hunter);
}

.section-title {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 16px;
  color: var(--steel-light);
  max-width: 620px;
  line-height: 1.7;
}

.subsection-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hunter);
  letter-spacing: 2px;
  margin: 2rem 0 1.5rem;
  text-transform: uppercase;
}

/* === STATS ================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .stats { grid-template-columns: 1fr; }
}

.stat {
  background: var(--graphite);
  border-left: 3px solid var(--hunter);
  padding: 2rem;
  border-radius: var(--radius-md);
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat .num em {
  color: var(--hunter);
  font-style: italic;
}

.stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* === CARDS DE SOLUCIÓN ===================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--graphite);
  border: 1px solid var(--graphite-2);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--t-base), transform var(--t-base);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--hunter);
  transform: translateY(-3px);
}

.card .card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 59, 59, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--hunter);
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.card p {
  font-size: 15px;
  color: var(--steel-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card .card-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hunter);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--t-fast);
}

.card .card-link:hover { gap: 0.85rem; }

/* === PROCESO ============================================== */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

@media (max-width: 768px) {
  .process { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  padding: 2rem 0;
}

.step .step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--hunter);
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.step h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.step p {
  font-size: 15px;
  color: var(--steel-light);
  line-height: 1.6;
}

/* === MANIFIESTO ============================================ */
.manifesto-box {
  background: var(--graphite);
  border-radius: var(--radius-md);
  padding: 4rem 3rem;
  border: 1px solid var(--graphite-2);
  position: relative;
  overflow: hidden;
}

.manifesto-box::before {
  content: ">_";
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-mono);
  color: var(--hunter);
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0.6;
}

.manifesto-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hunter);
  letter-spacing: 3px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.manifesto-text {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.manifesto-text em {
  font-style: italic;
  color: var(--hunter);
}

.manifesto-body {
  font-size: 16px;
  color: var(--steel-light);
  line-height: 1.7;
  max-width: 600px;
}

@media (max-width: 768px) {
  .manifesto-box { padding: 2.5rem 1.5rem; }
}

/* === CTA BLOCK ============================================= */
.cta-block {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--graphite) 0%, var(--midnight) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--graphite-2);
}

.cta-block h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.cta-block h2 em {
  color: var(--hunter);
  font-style: italic;
}

.cta-block p {
  font-size: 17px;
  color: var(--steel-light);
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* === FORMULARIO ============================================ */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full { grid-column: 1 / -1; }

.form label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hunter);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.form input,
.form textarea,
.form select {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--white);
  background: var(--graphite);
  border: 1px solid var(--graphite-2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color var(--t-fast);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-display);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--hunter);
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--steel);
}

@media (max-width: 768px) {
  .form { grid-template-columns: 1fr; }
}

/* === BLOG ================================================= */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--graphite);
  border: 1px solid var(--graphite-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-base), transform var(--t-base);
}

.post-card:hover {
  border-color: var(--hunter);
  transform: translateY(-3px);
}

.post-cover {
  height: 200px;
  background: linear-gradient(135deg, var(--graphite-2) 0%, var(--midnight) 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.post-cover .post-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--hunter);
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(10, 14, 26, 0.8);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--hunter);
}

.post-meta {
  padding: 1.5rem 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.post-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.4px;
  line-height: 1.3;
  margin: 0.75rem 1.5rem;
}

.post-card p {
  font-size: 14px;
  color: var(--steel-light);
  line-height: 1.6;
  margin: 0 1.5rem 1.5rem;
  flex: 1;
}

.post-card .read-more {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hunter);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 1.5rem 1.5rem;
  display: inline-flex;
  gap: 0.5rem;
  transition: gap var(--t-fast);
}

.post-card .read-more:hover { gap: 0.85rem; }

/* === VOZ DO/DON'T ========================================== */
.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.voice-card {
  background: var(--graphite);
  border-radius: var(--radius-md);
  padding: 2rem;
  border-top: 3px solid;
}

.voice-card.do { border-top-color: var(--success); }
.voice-card.dont { border-top-color: var(--hunter); }

.voice-card .voice-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.voice-card.do .voice-label { color: var(--success); }
.voice-card.dont .voice-label { color: var(--hunter); }

.voice-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-card li {
  color: var(--steel-light);
  font-size: 15px;
  padding-left: 1.5rem;
  position: relative;
}

.voice-card.do li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.voice-card.dont li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--hunter);
}

@media (max-width: 768px) {
  .voice-grid { grid-template-columns: 1fr; }
}

/* === LISTA INFO (contacto) ================================= */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  align-items: start;
}

.info-item .info-icon {
  color: var(--hunter);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item .info-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-item .info-value {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
}

/* === GRID DOS COLUMNAS ===================================== */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* === FOOTER ================================================ */
.site-footer {
  background: var(--midnight);
  border-top: 1px solid var(--graphite);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  font-size: 14px;
  color: var(--steel);
  margin-top: 1rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hunter);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 14px;
  color: var(--steel-light);
}

.footer-col a:hover {
  color: var(--hunter);
}

.footer-bottom {
  border-top: 1px solid var(--graphite);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom .red { color: var(--hunter); }

/* === BREADCRUMB ============================================ */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 1.5rem 0 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb a:hover { color: var(--hunter); }
.breadcrumb .sep { color: var(--graphite-2); }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* === UTILITY =============================================== */
.text-mono { font-family: var(--font-mono); }
.text-hunter { color: var(--hunter); }
.text-italic { font-style: italic; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hunter);
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--hunter);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.placeholder-note {
  background: rgba(255, 59, 59, 0.05);
  border: 1px dashed var(--hunter);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--steel-light);
  letter-spacing: 0.5px;
  margin-top: 2rem;
}

.placeholder-note strong {
  color: var(--hunter);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  display: block;
  margin-bottom: 0.5rem;
}

/* === RESPONSIVE NAV ======================================== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--midnight);
    border-bottom: 1px solid var(--graphite);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 2rem 2rem;
    gap: 1rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  }

  .site-header[data-mobile-open="true"] .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link { padding: 0.75rem 0; font-size: 16px; }

  .has-dropdown { width: 100%; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    border-left: 2px solid var(--graphite-2);
    border-radius: 0;
    margin: 0.5rem 0 0.5rem 1rem;
    padding: 0.25rem 0 0.25rem 1rem;
    min-width: 0;
  }

  .dropdown-toggle::after { display: none; }

  .nav-cta { align-self: flex-start; }
}

/* === ACCESIBILIDAD ========================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--hunter);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* === ARTÍCULO DE BLOG ===================================== */
.article-hero {
  padding: 4rem 0 2rem;
}

.article-hero .tag {
  margin-bottom: 1.5rem;
}

.article-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-top: 1px solid var(--graphite);
  padding-top: 1.5rem;
}

.article-meta strong { color: var(--white); font-weight: 600; }

.article-cover {
  margin: 2rem 0 4rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--graphite-2);
  background: var(--graphite);
}

.article-cover svg {
  display: block;
  width: 100%;
  height: auto;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--steel-light);
}

.article-body > * + * { margin-top: 1.5rem; }

.article-body h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--white);
  margin-top: 3rem;
  margin-bottom: 1rem;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.article-body h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.article-body h2::before {
  content: "// ";
  color: var(--hunter);
  font-family: var(--font-mono);
  font-size: 0.7em;
  letter-spacing: 2px;
}

.article-body p { color: var(--steel-light); }

.article-body strong { color: var(--white); font-weight: 600; }

.article-body em { color: var(--bone); font-style: italic; }

.article-body a {
  color: var(--hunter);
  border-bottom: 1px solid rgba(255, 59, 59, 0.3);
  transition: border-color var(--t-fast);
}

.article-body a:hover {
  color: var(--hunter);
  border-bottom-color: var(--hunter);
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-body ul li {
  list-style: none;
  position: relative;
  padding-left: 1.25rem;
}

.article-body ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--hunter);
}

.article-body ol li {
  list-style: decimal;
  color: var(--steel-light);
}

.article-body ol li::marker {
  color: var(--hunter);
  font-family: var(--font-mono);
  font-weight: 700;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--graphite);
  color: var(--bone);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--graphite-2);
}

.article-body pre {
  background: var(--graphite);
  border: 1px solid var(--graphite-2);
  border-left: 3px solid var(--hunter);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--bone);
}

.article-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.article-body blockquote {
  border-left: 3px solid var(--hunter);
  padding: 0.5rem 1.5rem;
  font-size: 1.05em;
  color: var(--bone);
  font-style: italic;
}

.article-body blockquote p {
  color: var(--bone);
}

.article-body hr {
  border: 0;
  height: 1px;
  background: var(--graphite);
  margin: 3rem 0;
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0.5rem;
  text-align: center;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1rem 0;
}

.article-body th,
.article-body td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--graphite-2);
}

.article-body th {
  background: var(--graphite);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Aside con la conclusión */
.article-callout {
  background: var(--graphite);
  border-left: 3px solid var(--hunter);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin: 2rem 0;
}

.article-callout .callout-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hunter);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.article-callout p { color: var(--bone); margin: 0; }

/* Footer del artículo */
.article-footer {
  max-width: 720px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--graphite);
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.article-byline-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--graphite);
  border: 1px solid var(--hunter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--hunter);
  font-size: 14px;
  letter-spacing: 1px;
}

.article-byline-info .who {
  display: block;
  font-weight: 600;
  color: var(--white);
  font-size: 15px;
}

.article-byline-info .role {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.article-related {
  margin-top: 2.5rem;
}

.article-related h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hunter);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* === FORM: ESTADOS DE ENVÍO ============================== */
.form-status {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  display: none;
}

.form-status[data-state="loading"] {
  display: block;
  color: var(--steel-light);
  border-color: var(--graphite-2);
  background: var(--graphite);
}

.form-status[data-state="success"] {
  display: block;
  color: var(--success);
  border-color: var(--success);
  background: rgba(74, 222, 128, 0.05);
}

.form-status[data-state="error"] {
  display: block;
  color: var(--hunter);
  border-color: var(--hunter);
  background: rgba(255, 59, 59, 0.05);
}

.form button[type="submit"][disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.form input.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
