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

:root {
  /* DARK THEME - paleta basada en #172439 */
  --bg: #172439;
  --bg-soft: #1E2D44;
  --bg-deep: #0F1A2B;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-light: #F8FAFC;

  --ink: #FFFFFF;
  --ink-2: rgba(255, 255, 255, 0.85);
  --ink-3: rgba(255, 255, 255, 0.65);
  --mute: rgba(255, 255, 255, 0.55);
  --mute-2: rgba(255, 255, 255, 0.40);
  --mute-3: rgba(255, 255, 255, 0.25);

  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Brand */
  --brand: #0960CF;
  --brand-bright: #3D8FFF;
  --brand-soft: rgba(9, 96, 207, 0.15);
  --brand-glow: rgba(61, 143, 255, 0.25);

  /* Govierno accent */
  --gov: #F4C443;
  --gov-soft: rgba(244, 196, 67, 0.12);

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --max: 1280px;
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
::selection { background: var(--brand-bright); color: var(--ink); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(23, 36, 57, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(15, 26, 43, 0.92);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo: K + wordmark Montserrat */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}
.nav-logo-k { height: 44px; width: auto; display: block; }
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--ink);
  line-height: 1;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-center a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.2s;
  position: relative;
}
.nav-center a:hover { color: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Language toggle - pill visible */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}
.lang-toggle button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  color: var(--mute);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  transition: all 0.2s;
}
.lang-toggle button.active {
  background: var(--brand);
  color: var(--ink);
}
.lang-toggle button:not(.active):hover { color: var(--ink); }

.nav-cta {
  background: var(--brand);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
  border: 1px solid var(--brand);
}
.nav-cta:hover {
  background: var(--brand-bright);
  border-color: var(--brand-bright);
  transform: translateY(-1px);
  color: var(--ink);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 28px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.nav-mobile a {
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .nav-mobile-cta {
  margin-top: 18px;
  background: var(--brand);
  color: var(--ink);
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  text-align: center;
  border: none;
  font-weight: 700;
}
.nav-mobile.open { display: flex; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  justify-content: center;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-bright);
  border-color: var(--brand-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--brand-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--ink); }
.btn-full { width: 100%; }

/* ===== EYEBROW / SECTION HEADERS ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brand-bright);
}
.eyebrow.gov { color: var(--gov); }
.eyebrow.gov::before { background: var(--gov); }

.section-header { max-width: 760px; margin-bottom: 72px; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--ink);
}
.section-header p {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 600px;
}
.section-header.centered p { margin: 0 auto; }

/* ===== HERO ===== */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -300px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gov-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--brand-bright);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 12px var(--brand-bright);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -3px;
  color: var(--ink);
  margin-bottom: 32px;
}
.hero-title .accent {
  color: var(--brand-bright);
  font-weight: 700;
  font-style: italic;
}
.hero-title .underline {
  position: relative;
  display: inline-block;
}
.hero-title .underline::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0; right: 0;
  height: 8px;
  background: var(--brand);
  opacity: 0.4;
  border-radius: 4px;
  z-index: -1;
}

.hero-right { padding-bottom: 8px; }
.hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-marquee {
  margin-top: 96px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 56px;
  align-items: center;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.8px;
}
.marquee-item.dot { color: var(--brand-bright); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== PROBLEM ===== */
.problem { padding: 130px 0; position: relative; }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}
.problem-left h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--ink);
}
.problem-left p {
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.75;
}
.problem-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.problem-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: start;
  transition: all 0.3s;
}
.problem-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.problem-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-bright);
  font-weight: 600;
  padding-top: 3px;
}
.problem-item h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.problem-item p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
}

/* ===== SERVICE ===== */
.service {
  padding: 130px 0;
  background: var(--bg-deep);
  position: relative;
}
.service-card {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.service-left { display: flex; flex-direction: column; }
.service-intro {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}
.service-price-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.service-price-block .service-price { margin-bottom: 4px; }
.service-price-block .service-price-note { margin-bottom: 0; }

.capabilities {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.cap-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.cap-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cap-chip {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}
.cap-chip:hover {
  background: var(--brand-soft);
  border-color: rgba(9, 96, 207, 0.35);
  color: var(--brand-bright);
}

.service-right-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 600;
}

.results-iso {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-shrink: 0;
}
.results-iso img {
  height: 110px;
  width: auto;
  opacity: 0.5;
}

.service-price-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.service-left h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1.2px;
  margin-bottom: 28px;
  color: var(--ink);
}
.service-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--brand-bright);
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.service-price-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.guarantee {
  background: var(--brand-soft);
  border: 1px solid rgba(9, 96, 207, 0.3);
  border-left: 3px solid var(--brand-bright);
  padding: 22px 24px;
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.guarantee strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.guarantee p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

.include-list { list-style: none; }
.include-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.include-list li:first-child { padding-top: 0; }
.include-list li:last-child { border-bottom: none; }
.include-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-bright);
  font-weight: 600;
  padding-top: 4px;
  letter-spacing: 0.5px;
}
.include-list h4 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.include-list p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* ===== PROCESS ===== */
.process { padding: 130px 0; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-step {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: var(--bg-card);
  transition: all 0.3s;
}
.process-step:hover {
  transform: translateY(-6px);
  border-color: var(--brand-bright);
  background: var(--bg-card-hover);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-bright);
  letter-spacing: 2px;
  margin-bottom: 18px;
  font-weight: 600;
}
.step-time {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -1px;
  color: var(--ink);
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.process-step p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
}

/* ===== RESULTS ===== */
.results {
  padding: 140px 0;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.results::before {
  content: '';
  position: absolute;
  top: -300px; right: -150px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 65%);
  pointer-events: none;
}
.results .container { position: relative; z-index: 1; }
.results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 64px;
}
.results-header > div { max-width: 620px; }
.results-header h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}
.results-header p { font-size: 18px; color: var(--ink-3); line-height: 1.6; }
.results-logo img { height: 88px; opacity: 0.85; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s;
}
.result-card:hover {
  background: var(--brand-soft);
  border-color: rgba(9, 96, 207, 0.4);
  transform: translateY(-6px);
}
.result-icon {
  display: inline-flex;
  width: 48px; height: 48px;
  background: var(--brand);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
  color: var(--ink);
}
.result-card h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.result-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: 20px;
}
.result-roi {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.3px;
}
.result-roi strong { color: var(--brand-bright); font-weight: 600; }

/* ===== GOVIERNO (GOV) ===== */
.gov-section {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.gov-section::before {
  content: '';
  position: absolute;
  top: 10%; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gov-soft) 0%, transparent 70%);
  pointer-events: none;
}
.gov-section .container { position: relative; z-index: 1; }
.gov-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.gov-left h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--ink);
}
.gov-left h2 .accent {
  color: var(--gov);
}
.gov-left > p {
  font-size: 17px;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 32px;
}
.gov-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gov-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--gov-soft);
  border: 1px solid rgba(244, 196, 67, 0.3);
  color: var(--gov);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.8px;
}
.gov-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gov-case {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: all 0.3s;
}
.gov-case:hover {
  background: var(--gov-soft);
  border-color: rgba(244, 196, 67, 0.4);
  transform: translateY(-3px);
}
.gov-case-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gov);
  margin-bottom: 12px;
  letter-spacing: 1px;
  font-weight: 600;
}
.gov-case h5 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--ink);
}
.gov-case p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ===== FOR WHOM ===== */
.forwhom { padding: 130px 0; }
.forwhom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.forwhom-block h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.forwhom-block h3 .pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 1.5px;
}
.yes-pill { background: var(--brand); color: var(--ink); }
.no-pill { background: var(--bg-card); color: var(--mute); border: 1px solid var(--line); }

.criteria { display: flex; flex-direction: column; gap: 10px; }
.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--bg-card);
}
.criteria-item .icon {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding-top: 3px;
}
.criteria-item.yes .icon { color: var(--brand-bright); }
.criteria-item.no .icon { color: var(--mute); }
.criteria-item p { color: var(--ink-2); line-height: 1.5; }

/* ===== BLOG ===== */
.blog {
  padding: 130px 0;
  background: var(--bg-deep);
}
.blog-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 56px;
}
.blog-header > div { max-width: 620px; }
.blog-header h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  color: var(--ink);
}
.blog-header p { font-size: 18px; color: var(--ink-3); }
.blog-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-3);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.blog-tag .dot { width: 7px; height: 7px; background: var(--brand-bright); border-radius: 50%; box-shadow: 0 0 8px var(--brand-bright); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: all 0.3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-bright);
}
.blog-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--brand) 0%, #0A4FAA 100%);
  position: relative;
  overflow: hidden;
}
.blog-thumb-2 { background: linear-gradient(135deg, var(--gov) 0%, #C99A2E 100%); }
.blog-thumb-3 { background: linear-gradient(135deg, var(--brand-bright) 0%, #1E40D9 100%); }
.blog-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.blog-body { padding: 28px; }
.blog-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.blog-meta .sep { color: var(--mute-3); }
.blog-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.blog-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 20px;
}
.blog-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-bright);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.blog-card:hover .blog-link { gap: 10px; }
.blog-footer { display: flex; justify-content: center; margin-top: 48px; }

/* ===== SHOP ===== */
.shop { padding: 130px 0; }
.shop-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 64px;
}
.shop-header > div { max-width: 620px; }
.shop-header h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  color: var(--ink);
}
.shop-header p { font-size: 18px; color: var(--ink-3); line-height: 1.6; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.shop-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.shop-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-bright);
  box-shadow: 0 12px 40px rgba(9, 96, 207, 0.2);
}
.shop-thumb {
  aspect-ratio: 1;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.shop-thumb .stamp {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
  font-weight: 600;
}
.shop-thumb .stamp.brand-stamp { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.shop-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.shop-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}
.shop-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--ink);
}
.shop-card .desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.shop-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.shop-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--brand-bright);
}
.shop-cta-row { display: flex; justify-content: center; margin-top: 48px; }

/* ===== FAQ ===== */
.faq {
  padding: 130px 0;
  background: var(--bg-deep);
}
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.faq-wrap > .section-header { margin-bottom: 0; }
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 28px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--brand-bright); }
.faq-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink);
  flex-shrink: 0;
  transition: all 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--brand-bright);
  border-color: var(--brand-bright);
  color: var(--ink);
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p {
  padding: 0 0 28px;
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.75;
  max-width: 720px;
}
.faq-item.open .faq-a { max-height: 320px; }

/* ===== CONTACT ===== */
.contact {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 65%);
  pointer-events: none;
}
.contact::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gov-soft) 0%, transparent 70%);
  pointer-events: none;
}
.contact .container { position: relative; z-index: 1; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: start;
}
.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 28px;
}
.contact-left > p {
  font-size: 18px;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-info-item .icon {
  font-size: 18px;
  background: var(--brand-soft);
  color: var(--brand-bright);
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.contact-info-item .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-info-item .val {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--mute); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-bright);
  background: var(--bg);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-disclaimer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  text-align: center;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-deep);
  color: var(--ink);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.footer-brand img { height: 80px; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; color: var(--ink-3); line-height: 1.65; max-width: 320px; margin-bottom: 24px; }

/* Footer logo (K + wordmark, used in home + blog) */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  color: var(--ink);
  text-decoration: none;
}
.footer-logo img,
.footer-logo .footer-logo-k {
  height: 36px;
  width: auto;
  display: block;
  margin: 0 !important;
}
.footer-logo-text,
.footer-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--ink);
  line-height: 1;
}
.footer-tag { font-size: 14px; color: var(--ink-3); line-height: 1.65; max-width: 320px; margin: 10px 0 22px; }
.footer-top h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-top ul { list-style: none; padding: 0; }
.footer-top ul li { margin-bottom: 10px; }
.footer-top ul a {
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.2s ease;
}
.footer-top ul a:hover { color: var(--brand-bright); }

.social-row {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: all 0.2s;
  cursor: pointer;
}
.social-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
  transform: translateY(-2px);
}
.social-btn svg { width: 18px; height: 18px; }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mute);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
  flex-wrap: wrap;
  gap: 12px;
  letter-spacing: 0.3px;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 43, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  border-top: 4px solid var(--brand-bright);
}
.modal-icon {
  width: 70px; height: 70px;
  background: var(--brand);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
  box-shadow: 0 0 30px var(--brand-glow);
}
.modal-box h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.modal-box p { font-size: 15px; color: var(--ink-3); margin-bottom: 32px; line-height: 1.6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .problem-grid { grid-template-columns: 1fr; gap: 56px; }
  .service-card { grid-template-columns: 1fr; gap: 56px; }
  .results-iso { justify-content: flex-start; }
  .results-iso img { height: 80px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .results-header, .blog-header, .shop-header { flex-direction: column; align-items: start; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .gov-wrap { grid-template-columns: 1fr; gap: 56px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .forwhom-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .nav-center, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { height: 72px; gap: 12px; }
  .nav-logo-k { height: 36px; }
  .nav-logo-text { font-size: 18px; }

  .hero { padding: 130px 0 72px; }
  .hero-actions .btn { width: 100%; }
  .hero-marquee { margin-top: 56px; }

  .problem, .service, .process, .forwhom, .blog, .shop, .faq, .gov-section { padding: 90px 0; }
  .results, .contact { padding: 96px 0; }

  .results-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .gov-cases { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .include-list li { grid-template-columns: 1fr; gap: 8px; }
}

/* =====================================================================
   ===== BLOG STYLES — Article listing + Article reader            =====
   ===================================================================== */

/* ---- Language toggle helpers (used in blog pages) ---- */
body.lang-es .lang-only-en { display: none !important; }
body.lang-en .lang-only-es { display: none !important; }

/* ---- Reading progress bar (top of article pages) ---- */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-bright), var(--gov));
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--brand-glow);
}

/* ===== BLOG INDEX PAGE ===== */
.blog-index {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.blog-index::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(61, 143, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.blog-index-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}
.blog-index-header h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--brand-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-index-header p {
  font-size: 19px;
  color: var(--ink-3);
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Category filter pills ---- */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}
.cat-pill {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.cat-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.cat-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
  box-shadow: 0 6px 20px var(--brand-glow);
}

/* ---- Article grid (blog index) ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(10px);
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6), 0 0 40px -20px var(--brand-glow);
}
.article-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

/* ---- Article thumbnail (real photo + brand-color tint per category) ---- */
.article-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}
.article-thumb picture,
.article-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.article-thumb img {
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
  filter: saturate(0.92) brightness(0.92);
}
.article-card:hover .article-thumb img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1);
}
/* Category color tint — sutil, deja respirar la foto */
.article-thumb-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.55;
  transition: opacity 0.4s ease;
}
.article-card:hover .article-thumb-tint { opacity: 0.30; }

/* Brand glow desde la esquina inferior izquierda (continuidad con la card) */
.article-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 26, 43, 0.55) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Tints por categoría (más luz, menos saturación que antes) */
.article-thumb-tint.cat-ai       { background: linear-gradient(135deg, rgba(9,96,207,0.85), rgba(99,102,241,0.55)); }
.article-thumb-tint.cat-cloud    { background: linear-gradient(135deg, rgba(30,64,217,0.80), rgba(6,182,212,0.50)); }
.article-thumb-tint.cat-security { background: linear-gradient(135deg, rgba(31,27,75,0.85), rgba(147,51,234,0.50)); }
.article-thumb-tint.cat-energy   { background: linear-gradient(135deg, rgba(180,83,9,0.70), rgba(251,191,36,0.45)); }
.article-thumb-tint.cat-strategy { background: linear-gradient(135deg, rgba(23,36,57,0.85), rgba(61,143,255,0.50)); }
.article-thumb-tint.cat-history  { background: linear-gradient(135deg, rgba(49,46,129,0.85), rgba(91,33,182,0.55)); }

/* Article hero base (real photo) */
.article-hero { background: var(--bg-deep); }

/* ---- Article card body ---- */
.article-card-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-card-meta .sep { color: var(--mute-3); }
.article-card-meta .cat-badge {
  color: var(--brand-bright);
  font-weight: 600;
}
.article-card h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--ink);
}
.article-card p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-cta {
  font-size: 14px;
  color: var(--brand-bright);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.article-card:hover .article-card-cta { gap: 12px; }

/* ===== ARTICLE READER PAGE ===== */
.article-page { padding-top: 88px; }

.article-hero {
  height: clamp(280px, 48vw, 520px);
  position: relative;
  overflow: hidden;
  margin-bottom: 56px;
}
.article-hero picture,
.article-hero .article-hero-img,
.article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.article-hero img {
  object-fit: cover;
  filter: saturate(0.95);
}
/* Overlay degradado para dar continuidad con el fondo dark sin opacar la foto */
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,26,43,0.15) 0%, rgba(15,26,43,0.05) 35%, rgba(15,26,43,0.55) 80%, var(--bg) 100%),
    radial-gradient(circle at 80% 20%, rgba(61,143,255,0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: 2;
}
.article-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 3;
}

.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 14px;
  font-family: var(--font-mono);
  margin-bottom: 28px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.back-link:hover { color: var(--brand-bright); gap: 12px; }

.article-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-meta-top .cat-badge {
  background: var(--brand-soft);
  color: var(--brand-bright);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.article-meta-top .sep { color: var(--mute-3); }

.article-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 14px 0 36px;
  color: var(--ink);
}

/* ---- Share bar ---- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 52px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}
.share-label {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: all 0.25s ease;
  cursor: pointer;
}
.share-btn svg { width: 17px; height: 17px; }
.share-btn:hover {
  transform: translateY(-2px);
  border-color: transparent;
  color: #fff;
}
.share-linkedin:hover { background: #0A66C2; box-shadow: 0 8px 20px rgba(10, 102, 194, 0.35); }
.share-facebook:hover { background: #1877F2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35); }
.share-twitter:hover  { background: #000;    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.share-whatsapp:hover { background: #25D366; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }
.share-copy:hover     { background: var(--brand); box-shadow: 0 8px 20px var(--brand-glow); }
.share-copy.copied { background: #10B981; color: #fff; }

/* ---- Article body typography ---- */
.article-content {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 400;
}
.article-content > * + * { margin-top: 1.2em; }
.article-content p { color: var(--ink-2); }
.article-content strong { color: var(--ink); font-weight: 700; }
.article-content em { color: var(--ink-2); font-style: italic; }

.article-content h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.4em 0 0.6em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}
.article-content h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 2em 0 0.6em;
}
.article-content h4 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 1.6em 0 0.5em;
}

.article-content a {
  color: var(--brand-bright);
  text-decoration: underline;
  text-decoration-color: rgba(61, 143, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.article-content a:hover { text-decoration-color: var(--brand-bright); }

.article-content ul, .article-content ol {
  padding-left: 1.6em;
  margin: 1.2em 0;
}
.article-content li { margin: 0.5em 0; color: var(--ink-2); }
.article-content li::marker { color: var(--brand-bright); }

.article-content blockquote {
  border-left: 3px solid var(--brand-bright);
  padding: 6px 24px;
  margin: 1.8em 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink-2);
}
.article-content blockquote p { margin: 0.5em 0; }

.article-content hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.4em 0;
}

.article-content code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--brand-bright);
}

.article-content figure { margin: 1.5em 0; }
.article-content figcaption {
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ---- Footer of article (next reads / CTA) ---- */
.article-footer-cta {
  margin-top: 80px;
  padding: 48px 36px;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--brand-glow), transparent 60%);
  opacity: 0.5;
}
.article-footer-cta > * { position: relative; z-index: 1; }
.article-footer-cta h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}
.article-footer-cta p {
  color: var(--ink-3);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Related articles ---- */
.related-section { margin-top: 100px; }
.related-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--ink);
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* ===== SOCIAL ICONS (footer) ===== */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: all 0.25s ease;
}
.social-icons a svg { width: 18px; height: 18px; }
.social-icons a:hover {
  transform: translateY(-3px);
  color: #fff;
}
.social-icons a.linkedin:hover  { background: #0A66C2; border-color: #0A66C2; box-shadow: 0 8px 20px rgba(10, 102, 194, 0.4); }
.social-icons a.facebook:hover  { background: #1877F2; border-color: #1877F2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4); }
.social-icons a.instagram:hover { background: linear-gradient(135deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5); border-color: transparent; box-shadow: 0 8px 20px rgba(214, 41, 118, 0.4); }
.social-icons a.twitter:hover   { background: #000; border-color: #000; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }

/* ===== RESPONSIVE BLOG ===== */
@media (max-width: 768px) {
  .blog-index { padding: 110px 0 60px; }
  .articles-grid { grid-template-columns: 1fr; gap: 20px; }
  .article-thumb { height: 160px; }
  .article-hero { height: 220px; }
  .article-hero svg { width: 70px; height: 70px; }
  .article-wrap { padding: 0 20px; }
  .article-content { font-size: 16.5px; line-height: 1.7; }
  .share-bar { padding: 14px 16px; gap: 8px; }
  .share-label { display: none; }
  .article-footer-cta { padding: 36px 22px; }
}

/* ===== Enhanced category pills with icon + color glow ===== */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  overflow: hidden;
}
.cat-pill-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.cat-pill:hover .cat-pill-icon { transform: scale(1.15) rotate(-5deg); }
.cat-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cat-color-1, var(--brand)), var(--cat-color-2, var(--brand-bright)));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.cat-pill > * { position: relative; z-index: 1; }
.cat-pill.active::before { opacity: 1; }
.cat-pill.active { border-color: transparent; color: #fff; }

/* Per-category color tokens (used when .active) */
.cat-pill-all      { --cat-color-1: #475569; --cat-color-2: #94A3B8; }
.cat-pill-ai       { --cat-color-1: #0960CF; --cat-color-2: #6366F1; }
.cat-pill-cloud    { --cat-color-1: #1E40D9; --cat-color-2: #06B6D4; }
.cat-pill-security { --cat-color-1: #5B21B6; --cat-color-2: #9333EA; }
.cat-pill-strategy { --cat-color-1: #172439; --cat-color-2: #3D8FFF; }
.cat-pill-energy   { --cat-color-1: #B45309; --cat-color-2: #F59E0B; }
.cat-pill-history  { --cat-color-1: #312E81; --cat-color-2: #5B21B6; }

.cat-pill-ai.active       { box-shadow: 0 8px 22px rgba(99, 102, 241, 0.4); }
.cat-pill-cloud.active    { box-shadow: 0 8px 22px rgba(6, 182, 212, 0.4); }
.cat-pill-security.active { box-shadow: 0 8px 22px rgba(147, 51, 234, 0.4); }
.cat-pill-strategy.active { box-shadow: 0 8px 22px rgba(61, 143, 255, 0.4); }
.cat-pill-energy.active   { box-shadow: 0 8px 22px rgba(245, 158, 11, 0.4); }
.cat-pill-history.active  { box-shadow: 0 8px 22px rgba(91, 33, 182, 0.4); }
.cat-pill-all.active      { box-shadow: 0 8px 22px rgba(71, 85, 105, 0.4); }

/* ===== Subtle article CTA (replaces big footer-cta) ===== */
.article-footer-cta.subtle {
  margin-top: 60px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  background: none;
  text-align: center;
}
.article-footer-cta.subtle::before { display: none; }
.article-footer-cta.subtle .btn {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.article-footer-cta.subtle .btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand-bright);
  color: var(--brand-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--brand-glow);
}

/* =====================================================================
   AIRE & LUZ — capa de refinamiento luminoso
   ===================================================================== */

/* Glow ambiental detrás del hero del blog index */
.blog-index::after {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  width: 1100px; height: 600px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 30% 40%, rgba(61,143,255,0.10), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(99,102,241,0.08), transparent 60%);
  pointer-events: none;
  filter: blur(40px);
}

/* Article reader: contenedor con respiración y leve luminosidad */
.article-page { background: var(--bg); }
.article-page .article-wrap {
  position: relative;
}
.article-page .article-wrap::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  width: 900px; height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(61,143,255,0.07), transparent 65%);
  pointer-events: none;
  z-index: -1;
  filter: blur(20px);
}

/* Title glow muy sutil para que se sienta "vivo" */
.article-title {
  position: relative;
  text-shadow: 0 0 60px rgba(61,143,255,0.12);
}

/* Cat badge en el meta-top: más luminoso */
.article-meta-top .cat-badge {
  background: linear-gradient(135deg, rgba(9,96,207,0.20), rgba(61,143,255,0.12));
  border: 1px solid rgba(61,143,255,0.30);
  backdrop-filter: blur(8px);
}

/* Article cards: cuerpo con más aire */
.article-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
}
.article-card-body { padding: 30px 28px 32px; }
.article-card h3 {
  font-size: 22px;
  line-height: 1.28;
  margin-bottom: 12px;
}

/* Article content: tipografía editorial con más respiración */
.article-content {
  font-size: 18px;
  line-height: 1.78;
}
.article-content p {
  margin-top: 1.3em;
}
.article-content > p:first-child {
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-top: 0;
}
.article-content h2 {
  margin: 2.6em 0 0.7em;
  padding-top: 0.6em;
}
.article-content h2::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-bright), transparent);
  margin-bottom: 18px;
  border-radius: 2px;
}
.article-content h2 {
  border-top: none;
}

/* Share-bar más limpio */
.share-bar {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-color: rgba(255,255,255,0.08);
}

/* Reading-progress: gradiente más luminoso */
.reading-progress {
  background: linear-gradient(90deg, var(--brand-bright), #06B6D4 50%, var(--brand-bright));
  box-shadow: 0 0 16px rgba(61,143,255,0.5);
}

/* Cards del home: el blog en index también gana respiración */
.blog .article-card { /* override solo dentro de la sección blog del home */
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

/* Categoría badge del card: más brillo */
.article-card-meta .cat-badge {
  background: rgba(61,143,255,0.10);
  color: var(--brand-bright);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: 1px solid rgba(61,143,255,0.20);
}

/* Hero del home: glow más amplio para sensación luminosa */
.hero::before {
  width: 900px; height: 900px;
  top: -300px; right: -250px;
  background: radial-gradient(circle, rgba(61,143,255,0.16) 0%, transparent 65%);
  filter: blur(8px);
}

/* Eyebrow más vivo */
.eyebrow {
  background: linear-gradient(90deg, var(--brand-bright), #06B6D4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow::before {
  background: linear-gradient(90deg, var(--brand-bright), transparent);
}

/* Article hero — figcaption mini opcional debajo */
.article-hero-credit {
  position: absolute;
  right: 16px; bottom: 16px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
  background: rgba(15,26,43,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* Sección Results: cards con más luz */
.result-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

/* Service-card / sections con sombra interior sutil para textura */
.service-card,
.process-step,
.problem-item,
.gov-case {
  position: relative;
}

/* Sección blog del home: padding superior más generoso */
.blog { padding-top: 150px; padding-bottom: 150px; }

/* Article cards en home: imagen visible */
.blog .article-card .article-thumb { height: 200px; }

/* Mejora responsive del article-hero */
@media (max-width: 768px) {
  .article-hero { height: clamp(220px, 60vw, 320px); margin-bottom: 36px; }
  .article-content { font-size: 17px; }
  .article-content > p:first-child { font-size: 18px; }
  .blog .article-card .article-thumb { height: 180px; }
}

/* Article-thumb en móvil: un poco menos alto */
@media (max-width: 768px) {
  .article-thumb { height: 200px; }
}
