/* =============================================
   LIFESTRATEGICS V6.1 — DESIGN SYSTEM
   main.css · Abril 2026 (DS V2 migration)
   Tokens actualizados. Fuente: LifeStrategics Design System/
   Deprecated pre-migración en: _deprecated/
   ============================================= */

/* TOKENS — Legacy (mantiene compatibilidad con páginas existentes) */
:root {
  --bg:          #181818;
  --surface:     #202020;
  --surface2:    #262626;
  --border:      #2e2e2e;
  --border2:     #3a3a3a;
  --text:        #f0ece4;
  --muted:       #c8c4bc;  /* MEJORADO: era #999, warm mid-white legible */
  --muted2:      #8a8680;  /* MEJORADO: era #555, warm gray legible en oscuro */

  --blue:        #4A9EFF;
  --blue-dim:    rgba(74,158,255,0.10);
  --blue-line:   rgba(74,158,255,0.28);

  --yellow:      #FFD84A;
  --yellow-dim:  rgba(255,216,74,0.10);
  --yellow-line: rgba(255,216,74,0.28);

  --red:         #FF4A4A;
  --red-dim:     rgba(255,74,74,0.10);
  --red-line:    rgba(255,74,74,0.28);

  /* Verde: SOLO para indicadores visuales positivos, nunca como color de seccion */
  --green:       #3db87a;
  --green-dim:   rgba(61,184,122,0.10);
  --green-line:  rgba(61,184,122,0.28);

  /* TOKENS CANONICOS DS V2 (prefijo --ls-). Para páginas nuevas. */
  --ls-bg:          var(--bg);
  --ls-surface:     var(--surface);
  --ls-surface-2:   var(--surface2);
  --ls-code-bg:     #111111;
  --ls-border:      var(--border);
  --ls-border-2:    var(--border2);
  --ls-hairline:    rgba(255,255,255,0.015);
  --ls-lift:        rgba(255,255,255,0.02);

  --ls-fg:          var(--text);
  --ls-fg-2:        var(--muted);    /* #c8c4bc */
  --ls-fg-3:        var(--muted2);   /* #8a8680 */

  --ls-blue:        var(--blue);
  --ls-blue-dim:    var(--blue-dim);
  --ls-blue-line:   var(--blue-line);
  --ls-yellow:      var(--yellow);
  --ls-yellow-dim:  var(--yellow-dim);
  --ls-yellow-line: var(--yellow-line);
  --ls-red:         var(--red);
  --ls-red-dim:     var(--red-dim);
  --ls-red-line:    var(--red-line);
  --ls-green:       var(--green);
  --ls-green-dim:   var(--green-dim);
  --ls-green-line:  var(--green-line);

  --ls-font-sans:   'Wix Madefor Display', ui-sans-serif, system-ui, sans-serif;
  --ls-font-mono:   'Courier New', ui-monospace, monospace;
  --ls-fs-body:     0.9rem;

  --ls-page-max:    820px;
  --ls-nav-max:     1100px;
  --ls-gap:         12px;
  --pad:            clamp(20px, 5vw, 80px);
  --ls-section-mb:  64px;

  --ls-r-micro:     5px;
  --ls-r-sm:        8px;
  --ls-r-md:        10px;
  --ls-r-lg:        12px;
  --ls-r-xl:        16px;
  --ls-r-pill:      9999px;

  --ls-shadow-nav:  0 8px 32px rgba(0,0,0,0.55);
  --ls-shadow-dd:   0 16px 40px rgba(0,0,0,0.6);
  --ls-shadow-mod:  0 24px 60px rgba(0,0,0,0.7);

  --ls-glass:       rgba(26,26,28,0.65);
  --ls-glass-blur:  blur(24px);
  --ls-glass-line:  1px solid rgba(255,255,255,0.10);

  --ls-spectrum:    linear-gradient(to right, var(--ls-blue), #7070e0, #c05050, var(--ls-red));
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* PARTICLE CANVAS — soporta ambos IDs (legacy y nuevo DS V2) */
#particle-canvas,
#ls-particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  display: block;
}

/* =============================================
   NAV — Pill glassmorphism con dropdowns
   ============================================= */
.nav-wrap {
  position: fixed;
  top: 20px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  z-index: 900; /* alto para que los dropdowns floten sobre todo */
  padding: 0 24px;
  /* No overflow aquí — los dropdowns necesitan salir */
}

nav {
  width: 100%;
  max-width: 1100px;
  background: rgba(26,26,28,0.68);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  padding: 0 9px 0 21px;
  display: flex;
  align-items: center;
  height: 54px;
  gap: 2px;
  overflow: visible;
  position: relative; /* anchor para los dropdowns */
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 16px;
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,0.10);
  flex-shrink: 0;
  text-decoration: none;
  background: none;
  border-radius: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.nav-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  display: block;
  transition: opacity 0.2s;
}
.nav-logo:hover img { opacity: 1; }

/* Link container */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  flex: 1;
  position: relative;
}

/* Base nav link */
nav a:not(.nav-logo),
.nav-dropdown > .nav-dd-trigger {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font: 600 11px 'Wix Madefor Display', sans-serif;
  white-space: nowrap;
  padding: 6px 9px;
  border-radius: 9999px;
  border: 0;
  background: transparent;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
}
nav a:not(.nav-logo):hover,
.nav-dropdown > .nav-dd-trigger:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}
nav a:not(.nav-logo).active {
  color: var(--blue);
  background: var(--blue-dim);
}

/* CTA nav button — borde animado multi-color */
nav a.nav-cta {
  color: var(--text) !important;
  background: rgba(255,255,255,0.04) !important;
  padding: 7px 16px !important;
  flex-shrink: 0;
  opacity: 1;
  font-weight: 700 !important;
  margin: 2px 0 2px 4px;
  letter-spacing: 0.06em;
  position: relative;
  overflow: visible;
  box-shadow: none;
}
nav a.nav-cta::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9999px;
  padding: 1px;
  background: 
    conic-gradient(from var(--ls-spin-1), transparent 0%, var(--blue) 15%, transparent 35%),
    conic-gradient(from var(--ls-spin-2), transparent 0%, var(--yellow) 15%, transparent 35%),
    conic-gradient(from var(--ls-spin-3), transparent 0%, var(--red) 15%, transparent 35%);
  animation: 
    ls-spin-1 8s linear infinite,
    ls-spin-2 12s linear infinite,
    ls-spin-3 17s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
nav a.nav-cta:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  transform: translateY(-1px);
}


/* Dropdown chevron */
.nav-dd-trigger .chevron {
  display: inline-block;
  font-size: 0.55rem;
  transition: transform 0.2s;
  margin-left: 1px;
}

/* DROPDOWN CONTAINER */
.nav-dropdown {
  position: static; /* no positioning — el menu se posiciona relativo al nav */
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* El menu es portado al body — posición calculada por JS */
.nav-dd-menu {
  position: fixed;
  top: 76px;
  left: 0; /* sobreescrito por JS */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(6px);
  min-width: 210px;
  background: rgba(26,26,28,0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(74,158,255,0.07);
  padding: 6px;
  z-index: 9999;
}

/* Visible: clase .open directamente en el menú (portado al body) */
.nav-dd-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* Chevron girado cuando el trigger padre tiene .open */
.nav-dropdown.open .chevron { transform: rotate(180deg); }

.nav-dd-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dd-menu a:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text);
}

/* Burger button (mobile) */
.burger {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Arrow text — prevent emoji rendering on mobile */
.arrow-text {
  font-family: 'Wix Madefor Display', Arial, sans-serif;
  font-style: normal;
}

/* =============================================
   PAGE LAYOUT
   ============================================= */
.page {
  position: relative;
  z-index: 10;
  max-width: 820px;
  margin: 0 auto;
  padding: 110px 32px 100px;
}

.page-wide {
  position: relative;
  z-index: 10;
  max-width: 1040px;
  margin: 0 auto;
  padding: 110px 40px 100px;
}

.section {
  scroll-margin-top: 90px;
  margin-bottom: 64px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
  font-weight: 700;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow.y { color: var(--yellow); }
.eyebrow.r { color: var(--red); }

/* H1 hero & interior (equalized) */
.h1-hero,
.h1-page {
  font-size: clamp(1.7rem, 4.2vw, 3.6rem); /* Reduced by 30% */
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

/* H2 sección */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-head h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* H3 bloque */
.h3-block {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* Section num badge */
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--section-num-fs, 0.58rem);
  letter-spacing: var(--section-num-ls, 0.2em);
  font-weight: var(--section-num-fw, 700);
  padding: var(--section-num-pad, 4px 9px);
  border-radius: var(--section-num-radius, 5px);
  flex-shrink: 0;
  text-transform: uppercase;
  border: 1px solid var(--section-num-border, transparent);
}
.num-b {
  --section-num-bg: var(--blue-dim);
  --section-num-color: var(--blue);
  --section-num-border: var(--blue-line);
  background: var(--section-num-bg);
  color: var(--section-num-color);
}
.num-y {
  --section-num-bg: var(--yellow-dim);
  --section-num-color: var(--yellow);
  --section-num-border: var(--yellow-line);
  background: var(--section-num-bg);
  color: var(--section-num-color);
}
.num-r {
  --section-num-bg: var(--red-dim);
  --section-num-color: var(--red);
  --section-num-border: var(--red-line);
  background: var(--section-num-bg);
  color: var(--section-num-color);
}
.num-m {
  --section-num-bg: rgba(255, 255, 255, 0.06);
  --section-num-color: var(--muted2);
  --section-num-border: var(--border);
  background: var(--section-num-bg);
  color: var(--section-num-color);
}

/* Body */
.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 600px;
  font-weight: 400;
  margin-bottom: 8px;
}
.lead strong, .lead b { color: var(--text); font-weight: 700; }

.body-text {
  font-size: var(--ls-fs-body, 0.9rem);
  color: var(--muted);
  line-height: 1.85;
}
.body-text strong, .body-text b { color: var(--text); font-weight: 700; }

.section-intro {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 24px;
  max-width: 680px;
}
.section-intro strong { color: var(--text); font-weight: 600; }

/* Header block */
.header-block {
  margin-bottom: 56px;
  padding-top: 16px;
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* =============================================
   LABELS / BADGES
   ============================================= */
.label {
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
.lb { color: var(--blue); }
.ly { color: var(--yellow); }
.lr { color: var(--red); }
.lm { color: var(--muted2); }

.badge {
  display: inline-block;
  font-size: 0.57rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
}
.badge-b { background: var(--blue-dim); color: var(--blue); }
.badge-y { background: var(--yellow-dim); color: var(--yellow); }
.badge-r { background: var(--red-dim); color: var(--red); }
.badge-m { background: rgba(255,255,255,0.06); color: var(--muted2); }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--border2);
  background: var(--surface2);
  transform: translateY(-3px);
}
.card.top-b { border-top: 2px solid var(--blue); }
.card.top-y { border-top: 2px solid var(--yellow); }
.card.top-r { border-top: 2px solid var(--red); }

.card h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.card p  { font-size: 0.8rem; color: var(--muted); line-height: 1.75; }
.card p strong { color: var(--text); font-weight: 600; }

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: gap 0.2s;
}
.card:hover .card-arrow { gap: 9px; }
.card.top-b .card-arrow { color: var(--blue); }
.card.top-y .card-arrow { color: var(--yellow); }
.card.top-r .card-arrow { color: var(--red); }

/* =============================================
   GRIDS
   ============================================= */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.full   { grid-column: 1 / -1; }

/* =============================================
   CALLOUTS
   ============================================= */
.callout {
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 14px;
}
.callout .label { margin-bottom: 10px; }
.callout p { font-size: 0.85rem; color: var(--muted); line-height: 1.85; }
.callout p strong { color: var(--text); font-weight: 600; }
.callout-b { background: var(--blue-dim); border: 1px solid var(--blue-line); }
.callout-y { background: var(--yellow-dim); border: 1px solid var(--yellow-line); }
.callout-r { background: var(--red-dim); border: 1px solid var(--red-line); }

/* =============================================
   VALUE LOOP (ZIG-ZAG)
   ============================================= */
.vloop { display: flex; flex-direction: column; gap: 0; }

.vloop-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.vloop-block:last-child { border-bottom: none; }
.vloop-block.reverse .vloop-text { order: 2; }
.vloop-block.reverse .vloop-visual { order: 1; }

.vloop-text .label { margin-bottom: 12px; }

.vloop-text .h3-block { margin-bottom: 14px; }

.vloop-text .body-text { margin-bottom: 18px; }

.vloop-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap 0.2s;
  color: var(--blue);
}
.vloop-link.y { color: var(--yellow); }
.vloop-link.r { color: var(--red); }
.vloop-link:hover { gap: 10px; }

.vloop-visual {
  /* Sin recuadro — solo fondo muy sutil */
  background: transparent;
  border-radius: 12px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
}

.vloop-visual-inner {
  text-align: center;
  width: 100%;
}

/* =============================================
   BENTO GRID
   ============================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.bento-card:hover {
  border-color: var(--border2);
  background: var(--surface2);
  transform: translateY(-3px);
}
.bento-card .label { margin-bottom: 8px; }
.bento-card h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.bento-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.7; }

/* Top border variants for bento-cards */
.bento-card.top-b { border-top: 2px solid var(--blue); }
.bento-card.top-y { border-top: 2px solid var(--yellow); }
.bento-card.top-r { border-top: 2px solid var(--red); }

/* Inline CTA link */
.cta-link {
  display: inline;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.cta-link:hover { opacity: 0.7; }

/* Nav dropdown active link */
.nav-dd-menu a.active {
  color: var(--blue);
  background: var(--blue-dim);
}

/* =============================================
   PROCESS / TRUST (numbered steps)
   ============================================= */
.process-steps { display: flex; flex-direction: column; gap: 0; }

.process-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  position: relative;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 72px; /* Starts 6px below current circle bottom (20px top + 46px height = 66px + 6px = 72px) */
  left: 22px; /* Centered relative to the column */
  width: 2px;
  bottom: -14px; /* Stops 6px before the next circle top (which starts at next row top + 20px padding - 6px gap = next row start + 14px) */
  background: var(--border);
}

.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-dim);
  border: 1px solid var(--blue-line);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.step-num.y { background: var(--yellow-dim); border-color: var(--yellow-line); color: var(--yellow); }
.step-num.r { background: var(--red-dim); border-color: var(--red-line); color: var(--red); }

.step-content { padding-top: 12px; }
.step-content h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.step-content p { font-size: 0.82rem; color: var(--muted); line-height: 1.75; }
.step-content p strong { color: var(--text); font-weight: 600; }

/* =============================================
   PROOF CASE (3 columns)
   ============================================= */
.proof-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
}
.proof-col {
  padding: 20px 18px;
  border-right: 1px solid var(--border);
}
.proof-col:last-child { border-right: none; }
.proof-col-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.proof-col-label.b { color: var(--blue); }
.proof-col-label.y { color: var(--yellow); }
.proof-col-label.r { color: var(--red); }
.proof-col p { font-size: 0.8rem; color: var(--muted); line-height: 1.7; }
.proof-col p strong { color: var(--text); font-weight: 600; }

/* =============================================
   CTA / ENDCAP con glowing border
   ============================================= */
/* Light trail: @property con prefijo --ls-spin-* (DS V2 canonical) */
@property --ls-spin-1 { syntax: "<angle>"; inherits: true; initial-value: 0turn; }
@property --ls-spin-2 { syntax: "<angle>"; inherits: true; initial-value: 0turn; }
@property --ls-spin-3 { syntax: "<angle>"; inherits: true; initial-value: 0turn; }

@keyframes ls-spin-1 { 0% { --ls-spin-1: 0turn; } 100% { --ls-spin-1: 1turn; } }
@keyframes ls-spin-2 { 0% { --ls-spin-2: 0turn; } 100% { --ls-spin-2: 1turn; } }
@keyframes ls-spin-3 { 0% { --ls-spin-3: 0turn; } 100% { --ls-spin-3: 1turn; } }

.cta-section {
  margin-top: 60px;
  padding: 50px 40px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Glowing gradient border via pseudo-element */
.cta-section::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: 
    conic-gradient(from var(--ls-spin-1), transparent 0%, var(--blue) 15%, transparent 35%),
    conic-gradient(from var(--ls-spin-2), transparent 0%, var(--yellow) 15%, transparent 35%),
    conic-gradient(from var(--ls-spin-3), transparent 0%, var(--red) 15%, transparent 35%);
  animation: 
    ls-spin-1 8s linear infinite,
    ls-spin-2 12s linear infinite,
    ls-spin-3 17s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.4rem,3.5vw,2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section p strong { color: var(--text); }

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.btn:hover { transform: translateY(-2px); }

/* Primary — borde animado multi-color (mismo que modal/cta-section) */
.btn-primary {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  padding: 10px 22px;
  box-shadow: none;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9999px;
  padding: 1px;
  background: 
    conic-gradient(from var(--ls-spin-1), transparent 0%, var(--blue) 15%, transparent 35%),
    conic-gradient(from var(--ls-spin-2), transparent 0%, var(--yellow) 15%, transparent 35%),
    conic-gradient(from var(--ls-spin-3), transparent 0%, var(--red) 15%, transparent 35%);
  animation: 
    ls-spin-1 8s linear infinite,
    ls-spin-2 12s linear infinite,
    ls-spin-3 17s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn-primary:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.6);
  box-shadow: inset 0 0 0 1px var(--border2);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}

.btn-ghost {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0;
  background: none;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--muted2);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.btn-ghost:hover {
  color: var(--yellow);
  text-decoration-color: var(--yellow);
  transform: none;
}

/* =============================================
   SOCIAL PROOF / LOGO MARQUEE
   ============================================= */
.logos-section { margin-bottom: 56px; }
.logos-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted2);
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

/* Marquee container — clipping window */
.logos-marquee-wrap {
  overflow: hidden;
  /* Fade edges */
  -webkit-mask: linear-gradient(to right, transparent 0%, #fff 10%, #fff 90%, transparent 100%);
  mask: linear-gradient(to right, transparent 0%, #fff 10%, #fff 90%, transparent 100%);
}

/* Scrolling row */
.logos-marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
.logos-marquee:hover { animation-play-state: paused; }

/* Each track is one full set of logos */
.logos-track {
  display: flex;
  align-items: center;
  gap: 52px;
  padding: 0 26px;
  flex-shrink: 0;
}

/* Normalized logos — height fixed, width auto, white filter */
.logos-track img {
  height: 36px;
  width: auto;
  max-width: 120px;   /* cap widths para logos muy anchos */
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  transition: opacity 0.25s;
  flex-shrink: 0;
}
.logos-track img:hover { opacity: 0.75; }

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* =============================================
   CREDENCIALES / CREDENTIALS
   ============================================= */
.creds {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
}
.creds .label { margin-bottom: 12px; }
.creds-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
/* Dot neutro — no verde en bullets de texto */
.cred-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--muted2);
  flex-shrink: 0;
  margin-top: 7px;
  opacity: 0.7;
}

/* =============================================
   TAGLINE (tagline UNDERSTAND·DECIDE·TAKE ACTION)
   ============================================= */
.tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--ls-fs-body, 0.9rem);
  letter-spacing: 0.15em;
  font-weight: 400;
  text-transform: lowercase;
}
.tg-b { color: var(--blue); }
.tg-y { color: var(--yellow); }
.tg-r { color: var(--red); }
.tg-sep { color: var(--muted2); }

/* =============================================
   CONTACT / PREFOOTER CTA
   ============================================= */
.contact {
  min-height: 57svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px var(--pad);
  position: relative;
  overflow: hidden;
}
.contact h2.section-kw {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted2);
  margin: 0;
  line-height: 1.3;
}
.contact h3.contact-display {
  font-size: clamp(2.45rem, 4.2vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.93;
  margin: 14px 0 30px;
}
.contact a.ls-trail {
  display: inline-block;
  padding: 14px 17px;
  background: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9999px;
  transition: all 0.2s;
}
.contact a.ls-trail:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}

/* Note: #ls-footer gets removed by loadPartial() in main.js
   All footer styles must target .site-footer instead */

/* =============================================
   FADE ANIMATIONS (IntersectionObserver)
   ============================================= */
.fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.fade.vis { opacity: 1; transform: none; }

.fade-d1 { transition-delay: 0.08s; }
.fade-d2 { transition-delay: 0.15s; }
.fade-d3 { transition-delay: 0.22s; }

/* =============================================
   FOOTER FAT (4 columnas)
   ============================================= */
footer,
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  padding: 48px var(--pad) 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col-title {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted2);
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
  font-weight: 400;
}
.footer-col a:hover { color: var(--text); }
.footer-col a.cta-link {
  color: var(--blue);
  font-weight: 700;
  margin-top: 8px;
}

.footer-bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  gap: 16px;
}

.footer-logo {
  height: 30px;
  width: auto;
  opacity: 0.55;
  transition: opacity 0.2s;
  display: block;
  margin: 0 auto;
}
.footer-logo:hover { opacity: 1; }

.footer-legal {
  font-size: 0.65rem;
  color: var(--muted2);
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal a { color: var(--muted2); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text); }

/* =============================================
   MODAL DE CONTACTO
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}
.modal-overlay.open .modal-box { transform: none; }

.modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  color: var(--muted2);
  font-size: 1.2rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--text); }

.modal-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.modal-box p.modal-sub {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted2);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  transition: border-color 0.2s;
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); }

.form-submit {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 12px 24px;
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 4px;
}
.form-submit:hover { opacity: 0.85; }

.form-success {
  display: none;
  text-align: center;
  padding: 30px 0;
}
.form-success.show { display: block; }
.success-icon { font-size: 2rem; margin-bottom: 12px; }
.success-msg {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.success-sub { font-size: 0.85rem; color: var(--muted); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 820px) {
  .nav-wrap { padding: 0 16px; }
  nav { height: 56px; padding: 0 12px; }

  .nav-logo {
    display: flex !important;
    margin-right: auto !important;
    padding-right: 0 !important;
    border-right: 0 !important;
  }
  .nav-logo img { height: 25px; }

  .burger {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    padding: 10px;
    flex-direction: column;
    align-items: stretch !important;
    gap: 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(26, 26, 28, 0.96);
    backdrop-filter: blur(24px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    overflow: visible !important;
  }
  .nav-links.open {
    display: flex !important;
  }

  .nav-links > a,
  .nav-dd-trigger {
    width: 100%;
    padding: 12px 13px !important;
    text-align: left;
    font-size: 14px !important;
  }

  .nav-dropdown { width: 100%; }
  .nav-dd-trigger {
    display: flex;
    justify-content: space-between;
  }

  .nav-dd-menu {
    display: grid !important;
    position: static !important;
    width: auto !important;
    padding: 3px 0 3px 12px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    min-width: auto;
  }
  .nav-dd-menu a {
    font-size: 13px !important;
    color: var(--muted) !important;
  }

  .nav-cta {
    margin: 6px 0 0 !important;
    text-align: center !important;
  }

  .page { padding: 82px 18px 60px; }
  .page-wide { padding: 82px 18px 60px; }

  .h1-hero,
  .h1-page { font-size: clamp(2rem, 8vw, 3.2rem); }

  .grid-2, .grid-3, .grid-4, .bento, .footer-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-col { border-right: none; border-bottom: 1px solid var(--border); }
  .proof-col:last-child { border-bottom: none; }

  .vloop-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }
  .vloop-block.reverse .vloop-text  { order: 1; }
  .vloop-block.reverse .vloop-visual { order: 2; }

  .cta-section { padding: 36px 20px; }
  .modal-box { padding: 28px 22px; }
  .contact { min-height: 42svh; padding-top: 48px; padding-bottom: 48px; }
  .contact h3.contact-display { font-size: clamp(2rem, 8vw, 3.2rem); }
  .footer-bottom-bar { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .trust-row { flex-direction: column; gap: 10px; }
  .cta-actions { flex-direction: column; align-items: stretch; text-align: center; }
}

/* =============================================
   DESIGN SYSTEM CHEAT SHEET CARD STYLING
   ============================================= */
.ds-cheat-sheet-card {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}
.ds-cheat-sheet-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.ds-cheat-sheet-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ds-cheat-sheet-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 4px 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.ds-cheat-sheet-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.ds-cheat-sheet-code {
  color: var(--blue);
  font-family: var(--ls-font-mono);
  font-weight: 700;
  font-size: 0.72rem;
}
.ds-cheat-sheet-row:nth-child(even) .ds-cheat-sheet-code {
  color: var(--yellow);
}
.ds-cheat-sheet-row:nth-child(3n) .ds-cheat-sheet-code {
  color: var(--red);
}

/* =============================================
   BLOG POST TEMPLATE
   Clases para artículos individuales del blog
   ============================================= */

/* --- Barra de progreso de lectura --- */
.blog-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--blue), var(--yellow), var(--red));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* --- Hero del artículo --- */
.article-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-bottom: 48px;
}
.article-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(24,24,24,0.98) 0%,
    rgba(24,24,24,0.7) 50%,
    rgba(24,24,24,0.15) 100%
  );
}
.article-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 44px;
  max-width: 760px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--muted2);
  letter-spacing: 0.02em;
}
.article-meta-item svg {
  opacity: 0.6;
}
.article-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border2);
}

/* --- Layout de dos columnas (body + TOC) --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: start;
}

/* --- Cuerpo del artículo (prosa) --- */
.article-body {
  min-width: 0;
}
.article-body h2 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 44px 0 16px;
  padding-top: 8px;
  scroll-margin-top: 100px;
}
.article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
  scroll-margin-top: 100px;
}
.article-body p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 18px;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { font-style: italic; color: var(--muted); }
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--text); }
.article-body ul, .article-body ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
.article-body li {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 6px;
}
.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 14px 20px;
  margin: 28px 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
}
.article-body blockquote p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  margin: 0;
  line-height: 1.7;
}
.article-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* --- Tabla de contenidos lateral (TOC) --- */
.article-toc {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.article-toc-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 14px;
}
.article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article-toc-list a {
  display: block;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.article-toc-list a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.article-toc-list a.toc-active {
  color: var(--blue);
  background: var(--blue-dim);
  border-left-color: var(--blue);
  font-weight: 600;
}
.article-toc-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}
.article-toc-cta {
  font-size: 0.72rem;
  color: var(--muted2);
  line-height: 1.5;
  padding: 10px 10px 0;
}
.article-toc-cta a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.article-toc-cta a:hover { text-decoration: underline; }

/* --- Banner de newsletter inline --- */
.newsletter-banner {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(74,158,255,0.06) 100%);
  border: 1px solid var(--blue-line);
  border-radius: 12px;
  padding: 28px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 40px 0;
}
.newsletter-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.newsletter-banner-text {
  flex: 1;
  min-width: 200px;
}
.newsletter-banner-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.newsletter-banner-text span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.newsletter-banner a.btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* --- Sección de newsletter (ancho completo antes del footer) --- */
.newsletter-section {
  background: linear-gradient(135deg, rgba(26,26,28,0.9) 0%, rgba(74,158,255,0.08) 100%);
  border: 1px solid var(--blue-line);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  margin: 0 0 0;
}
.newsletter-section .badge { margin-bottom: 16px; }
.newsletter-section h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.newsletter-section p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 24px;
}

/* --- Artículos relacionados --- */
.related-posts { margin: 56px 0 0; }
.related-posts-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 20px;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- Card de post relacionado --- */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.post-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
}
.post-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.post-card-badge { margin-bottom: 2px; }
.post-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.post-card-excerpt {
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.post-card-date {
  font-size: 0.65rem;
  color: var(--muted2);
  letter-spacing: 0.02em;
}
.post-card-arrow {
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 700;
  transition: transform 0.2s;
}
.post-card:hover .post-card-arrow { transform: translateX(4px); }

/* --- Blog responsive --- */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; order: -1; margin-bottom: 32px; }
  .related-posts-grid { grid-template-columns: 1fr 1fr; }
  .article-hero { min-height: 360px; }
  .article-hero-content { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .related-posts-grid { grid-template-columns: 1fr; }
  .newsletter-section { padding: 32px 20px; }
  .newsletter-banner { flex-direction: column; text-align: center; }
  .article-hero { min-height: 280px; border-radius: 10px; }
}
