/* ===================================================================
   ITSENSE v2.1 — Design System ALINEADO A MARCA OFICIAL
   Manual de Marca · Junio 2021 · Arquetipo: El Forajido (Outlaw)
   Tipografía: Source Sans Variable · Source Serif · Source Code Pro
   =================================================================== */

:root {
  /* ─── PALETA OFICIAL (Manual de Marca, pp. 22-23) ─── */
  --violeta-premium:   #281240;  /* PMS 2627 C */
  --rojo-intenso:      #BC1F39;  /* PMS 186 C */
  --naranja-codigo:    #FF8900;  /* PMS 151 C */
  --azul-academy:      #0078C4;  /* PMS 3005 C */
  --azul-tech:         #009FAE;  /* PMS 7467 C */

  /* Gradientes oficiales */
  --violeta-grad-0:    #190B28;
  --violeta-grad-1:    #3C1A60;
  --naranja-grad-0:    #FF5837;
  --naranja-grad-1:    #FFA951;
  --rojo-grad-0:       #A1243B;
  --rojo-grad-1:       #D44761;
  --azul-grad-0:       #1C77C0;
  --azul-grad-1:       #80BAEA;

  /* Neutros derivados */
  --ink:               #120820;  /* violeta muy oscuro */
  --ink-2:             #1C0E30;
  --ink-3:             #2A1848;
  --surface:           #342158;
  --cream:             #F5EFE4;  /* color papel oficial */
  --cream-2:           #EDE4D1;
  --cream-3:           #D6C9A8;

  /* Tokens semánticos */
  --bg:                var(--ink);
  --bg-elev:           var(--ink-2);
  --bg-card:           var(--ink-3);
  --text:              var(--cream);
  --text-dim:          #C9BEA5;
  --text-mute:         #9A8F7A;
  --text-faint:        rgba(245, 239, 228, 0.45);
  --accent:            var(--naranja-codigo);
  --accent-hot:        var(--naranja-grad-0);
  --accent-soft:       rgba(255, 137, 0, 0.14);
  --accent-dim:        rgba(255, 137, 0, 0.5);
  --brand-violet:      var(--violeta-premium);
  --brand-red:         var(--rojo-intenso);
  --brand-blue:        var(--azul-academy);
  --brand-teal:        var(--azul-tech);
  --border:            rgba(245, 239, 228, 0.08);
  --border-2:          rgba(245, 239, 228, 0.18);
  --border-accent:     rgba(255, 137, 0, 0.35);

  /* ─── TIPOGRAFÍA OFICIAL ─── */
  --ff-sans:           'Source Sans 3', 'Source Sans Pro', -apple-system, sans-serif;
  --ff-serif:          'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --ff-mono:           'Source Code Pro', ui-monospace, 'SF Mono', monospace;

  /* Sizes */
  --fs-h1:             clamp(2.5rem, 5.5vw, 5rem);
  --fs-h2:             clamp(2rem, 4.2vw, 3.75rem);
  --fs-h3:             clamp(1.5rem, 2.5vw, 2.25rem);
  --fs-h4:             clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-lede:           clamp(1.0625rem, 1.3vw, 1.3125rem);
  --fs-body:           1rem;
  --fs-sm:             0.875rem;
  --fs-meta:           0.75rem;

  /* Spacing */
  --sec-y:             clamp(5rem, 10vh, 9rem);
  --sec-y-sm:          clamp(3rem, 6vh, 5rem);
  --container:         min(1320px, calc(100% - 3rem));
  --container-reading: min(780px, calc(100% - 3rem));
  --container-narrow:  min(1000px, calc(100% - 3rem));

  /* Motion */
  --ease:              cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:          cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:            180ms;
  --t-med:             360ms;
  --t-slow:            720ms;

  /* Radius */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ─── GRAIN TEXTURE OFICIAL (page 9 del manual) ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.93 0 0 0 0 0.89 0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 1000;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 18px;
  font-family: var(--ff-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-sans);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; line-height: 1; font-weight: 800; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; line-height: 1.05; font-weight: 800; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.1; font-weight: 700; }
h4 { font-size: var(--fs-h4); letter-spacing: -0.015em; font-weight: 700; }

/* Italic via Source Serif para emphasis editorial */
em, i { font-family: var(--ff-serif); font-style: italic; font-weight: 500; }
.italic-serif { font-family: var(--ff-serif); font-style: italic; font-weight: 500; color: var(--accent); }
.accent { color: var(--accent); }

/* Patrón oficial: subrayado naranja + cursor _ en palabras clave */
.kw {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-weight: inherit;
}
.kw::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.08em;
  height: 0.14em;
  background: var(--accent);
  border-radius: 1px;
}
.cursor::after {
  content: "_";
  color: var(--accent);
  margin-left: 0.08em;
  animation: blink 1.05s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "{  ";
  color: var(--accent);
  font-weight: 700;
  font-family: var(--ff-mono);
  opacity: 0.8;
}
.eyebrow::after {
  content: "  }";
  color: var(--accent);
  font-weight: 700;
  font-family: var(--ff-mono);
  opacity: 0.8;
}

.mono { font-family: var(--ff-mono); }
.meta {
  font-family: var(--ff-mono);
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--text-dim);
  font-weight: 400;
  max-width: 40em;
}

/* ─── CONTAINERS ─── */
.container { width: var(--container); margin-inline: auto; position: relative; }
.container-reading { width: var(--container-reading); margin-inline: auto; }
.container-narrow { width: var(--container-narrow); margin-inline: auto; }

section { padding: var(--sec-y) 0; position: relative; z-index: 2; }
.section-tight { padding: var(--sec-y-sm) 0; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease), backdrop-filter var(--t-med) var(--ease);
}
.nav.scrolled {
  background: rgba(18, 8, 32, 0.82);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  color: var(--text);
}
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-link {
  font-size: 0.9375rem;
  color: var(--text-dim);
  transition: color var(--t-fast) var(--ease);
  position: relative;
  padding: 6px 0;
  font-weight: 500;
}
.nav-link:hover { color: var(--text); }
.nav-link.current { color: var(--text); }
.nav-link.current::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 12px 22px;
  font-size: 0.9375rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.cta:hover {
  background: var(--violeta-premium);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(40, 18, 64, 0.55), 0 0 0 1px var(--accent) inset;
}
.cta .arr { transition: transform var(--t-fast) var(--ease); }
.cta:hover .arr { transform: translateX(4px); color: var(--accent); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
}

@media (max-width: 960px) {
  .nav-links { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 320px; max-width: 85vw; background: var(--ink-2); flex-direction: column; align-items: flex-start; padding: 100px 32px 32px; gap: 20px; border-left: 1px solid var(--border-2); transform: translateX(100%); transition: transform var(--t-med) var(--ease); z-index: 90; }
  .nav-links.open { display: flex; transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
  .nav .cta { display: none; }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 14px 28px;
  font-family: var(--ff-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--violeta-premium);
  color: var(--accent);
  box-shadow: 0 12px 32px rgba(40, 18, 64, 0.55), 0 0 0 1px var(--accent) inset;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255, 137, 0, 0.35);
}
.btn-brand-purple {
  background: var(--violeta-premium);
  color: var(--cream);
  border-color: var(--accent);
}
.btn-brand-purple:hover { background: var(--ink-3); }

.link-arrow {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  transition: gap var(--t-fast) var(--ease);
  border-bottom: 1px solid transparent;
}
.link-arrow:hover { gap: 0.7em; border-bottom-color: var(--accent); }

/* ─── HERO — atmosférico (composición radial en movimiento lento) ───
   Task 15: restauración pre-minimalista + drift sutil de gradientes.
   Composición: naranja top-right · violeta bottom-left · ink al centro.
   @keyframes hero-drift mueve las posiciones de las elipses (~28s).
*/
.hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 62% 52% at 88% 14%, rgba(255, 137, 0, 0.42), transparent 60%),
    radial-gradient(ellipse 58% 60% at 8% 92%, rgba(91, 63, 212, 0.55), transparent 62%),
    radial-gradient(ellipse 80% 65% at 50% 50%, rgba(40, 18, 64, 0.92), rgba(18, 8, 32, 1) 78%),
    linear-gradient(180deg, #1C0E30 0%, #190B28 70%, #120820 100%);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

/* Capa de movimiento: parallax horizontal + pinstripe naranja
   muy suave que "respira" horizontalmente (código/circuito). */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  background:
    radial-gradient(ellipse 40% 35% at 70% 30%, rgba(255, 137, 0, 0.18), transparent 65%),
    radial-gradient(ellipse 45% 40% at 25% 70%, rgba(188, 31, 57, 0.14), transparent 65%),
    repeating-linear-gradient(
      90deg,
      transparent 0 6px,
      rgba(255, 137, 0, 0.035) 6px 7px,
      transparent 7px 28px
    );
  mix-blend-mode: screen;
  animation: hero-drift 28s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* Dot-grid atmosférico — fade elipse centrada */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(245, 239, 228, 0.055) 1px, transparent 0);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 45% 55%, rgba(0,0,0,0.75), transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 45% 55%, rgba(0,0,0,0.75), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

@keyframes hero-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-22px, 6px, 0) scale(1.015); }
  100% { transform: translate3d(18px, -4px, 0) scale(1.01); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

/* Task 15: ornamentos SVG amateur eliminados — ahora la atmósfera
   viene de los gradientes animados + constelación generativa. */

/* Code-snippet decoration — aparece flotante en esquinas */
.hero-code-snippet {
  position: absolute;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--accent);
  opacity: 0.14;
  letter-spacing: 0.02em;
  white-space: pre;
  pointer-events: none;
  z-index: 1;
}
.hero-code-snippet.top-right {
  top: 120px;
  right: 5%;
  text-align: right;
}
.hero-code-snippet.bottom-left {
  bottom: 80px;
  left: 5%;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 640px;              /* ajustado para evitar overflow */
  margin: 0 0 0 auto;
  padding-right: clamp(8px, 2vw, 28px);
  box-sizing: border-box;
  text-align: right;
}
.hero-content .cta-row { justify-content: flex-end; }
.hero-kicker {
  flex-direction: row-reverse;
}
.hero-kicker::before {
  background: linear-gradient(270deg, transparent, var(--accent)) !important;
}
.hero h1 {
  margin-left: auto;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero-subline { margin-left: auto !important; max-width: 100%; }
.hero-kicker {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}
.hero-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  display: inline-block;
  opacity: 0.7;
}
.hero h1 {
  max-width: 100%;
  margin: 0 0 32px;
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
  letter-spacing: -0.02em;
  color: var(--cream);
}
.hero h1 em {
  font-family: var(--ff-serif);
  font-weight: 500;
  color: var(--accent);
  font-style: italic;
  letter-spacing: -0.02em;
}
.hero-subline {
  max-width: 100%;
  margin: 0 0 40px;
  color: var(--text);
  font-size: clamp(0.95rem, 1.15vw, 1.125rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}
.hero-subline strong {
  color: var(--cream);
  font-weight: 700;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.cta-close .cta-row,
section.cta-close .cta-row { justify-content: center; }

/* ─── HERO MEDIA — mundo futurista (Earth at night) + veil violeta ─── */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(135deg, #140825 0%, #0A0416 100%);
}
/* ─── CAROUSEL DE 4 SLIDES EN EL HERO (CSS-only, 28s cycle · 7s each) ─── */
.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  animation: hero-slide-cycle 28s linear infinite;
  will-change: opacity;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: -21s; }
.hero-slide:nth-child(3) { animation-delay: -14s; }
.hero-slide:nth-child(4) { animation-delay: -7s; }

@keyframes hero-slide-cycle {
  0%          { opacity: 0; }
  3%, 22%     { opacity: 1; }   /* visible ~0.84s→6.16s del cuarto (fade in + hold) */
  25%, 100%   { opacity: 0; }   /* hidden por los otros 21s */
}

.hero-dot {
  animation: hero-dot-idle 28s linear infinite;
}
.hero-dot:nth-child(1) { animation-delay: 0s; }
.hero-dot:nth-child(2) { animation-delay: -21s; }
.hero-dot:nth-child(3) { animation-delay: -14s; }
.hero-dot:nth-child(4) { animation-delay: -7s; }
@keyframes hero-dot-idle {
  0%, 25%, 100%    { background: rgba(245, 239, 228, 0.25); width: 28px; box-shadow: none; }
  3%, 22%          { background: var(--accent);             width: 44px; box-shadow: 0 0 10px rgba(255, 137, 0, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:nth-child(1) { opacity: 1; }
  .hero-dot { animation: none; }
  .hero-dot:nth-child(1) { background: var(--accent); width: 44px; }
}

/* ─── SLIDE 4 — ANALYZER · OpenData branding overlay ─── */
.hero-slide-img-opendata {
  object-position: 55% 50% !important;
  opacity: 0.52 !important;
  filter: saturate(1.1) contrast(1.08) hue-rotate(-30deg) !important;
}
.hero-slide-analyzer-brand {
  position: absolute;
  top: 14%;
  right: 6%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding: 22px 28px;
  background: rgba(10, 4, 22, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 137, 0, 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 120px rgba(255, 215, 0, 0.1);
  pointer-events: none;
  animation: analyzer-float 5s ease-in-out infinite alternate;
}
.hero-analyzer-logo {
  width: clamp(180px, 20vw, 260px);
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}
.hero-analyzer-tagline {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #FFE600;   /* amarillo del branding de analyzer */
  opacity: 0.92;
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 230, 0, 0.3);
  width: 100%;
  text-align: center;
}
@keyframes analyzer-float {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide-analyzer-brand { animation: none; }
}
@media (max-width: 960px) {
  .hero-slide-analyzer-brand { top: 12%; right: 5%; padding: 14px 18px; }
  .hero-analyzer-logo { max-width: 180px; }
}
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  opacity: 0.58;
  filter: saturate(0.95) contrast(1.08) hue-rotate(-6deg);
  animation: hero-world-ken 42s ease-in-out infinite alternate;
  transform-origin: 30% 50%;
  will-change: transform;
}

/* Slide 2 — Banca digital: tono cálido blanco/grises, filtro que integre con paleta */
.hero-slide-banking .hero-slide-img {
  object-position: 40% 50%;
  opacity: 0.38;
  filter: saturate(0.55) contrast(1.15) hue-rotate(-15deg) brightness(0.85);
}

/* Slide 3 — Aula moderna: tonos cálidos marrones, violeta-friendly */
.hero-slide-edu .hero-slide-img {
  object-position: 50% 50%;
  opacity: 0.5;
  filter: saturate(0.8) contrast(1.1) hue-rotate(-20deg) brightness(0.85);
}

/* ─── LOGO WATERMARK FIJO ─── */
.hero-logo-watermark {
  position: absolute;
  bottom: 46px;
  left: 5%;
  width: clamp(130px, 14vw, 180px);
  height: auto;
  opacity: 0.58;
  z-index: 4;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

/* ─── FRASE TYPEWRITER POR SLIDE (posición variable por slide) ─── */
.hero-slide-phrase {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
  max-width: 52%;
}

/* Variantes de posición */
.phrase-top-left    { top: 18%; left: 5%; align-items: flex-start; }
.phrase-bottom-left { bottom: 16%; left: 5%; align-items: flex-start; }
.phrase-middle-left { top: 50%; left: 5%; transform: translateY(-50%); align-items: flex-start; }
.phrase-bottom-wide { bottom: 14%; left: 5%; align-items: flex-start; max-width: 60%; }

.phrase-num {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.25em;
  line-height: 1;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 137, 0, 0.5);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}
.phrase-text {
  font-family: var(--ff-mono);
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-shadow:
    0 4px 28px rgba(0, 0, 0, 0.8),
    0 2px 10px rgba(0, 0, 0, 0.65);
  position: relative;
}
.phrase-text em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  text-shadow:
    0 4px 28px rgba(0, 0, 0, 0.8),
    0 0 32px rgba(255, 137, 0, 0.4);
}
.phrase-text::after {
  content: "_";
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  font-weight: 400;
  font-family: var(--ff-mono);
  animation: phrase-cursor 900ms steps(2, end) infinite;
}
@keyframes phrase-cursor {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .phrase-text::after { animation: none; opacity: 0; }
}

@media (max-width: 960px) {
  .hero-slide-phrase { max-width: 85%; }
  .phrase-text { font-size: clamp(1.3rem, 5.5vw, 2rem); }
  .phrase-top-left    { top: 14%; }
  .phrase-bottom-left,
  .phrase-bottom-wide { bottom: 28%; }
  .phrase-middle-left { top: 40%; transform: translateY(-50%); }
}

/* ─── DOTS ─── */
.hero-carousel-dots {
  position: absolute;
  bottom: 58px;
  right: 5%;
  z-index: 5;
  display: flex;
  gap: 10px;
  pointer-events: auto;
}
.hero-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(245, 239, 228, 0.25);
  display: inline-block;
}

@media (max-width: 820px) {
  .hero-slide-analyzer-frame { width: 78%; left: 11%; }
  .hero-slide-indicator { left: 5%; bottom: 24px; }
  .hero-logo-watermark { bottom: 70px; }
  .hero-carousel-dots { bottom: 24px; }
}
.hero-color-veil {
  position: absolute;
  inset: 0;
  background:
    /* Fuerte cortina violeta del lado DERECHO (H1) → transparente a la izquierda (Tierra visible) */
    linear-gradient(270deg,
      rgba(20, 8, 37, 0.96) 0%,
      rgba(20, 8, 37, 0.88) 22%,
      rgba(20, 8, 37, 0.55) 45%,
      rgba(20, 8, 37, 0.20) 70%,
      transparent 100%),
    /* Glow naranja cálido donde está Tierra (izquierda) */
    radial-gradient(ellipse 45% 60% at 18% 40%, rgba(255, 137, 0, 0.22), transparent 60%),
    /* Oscurecimiento inferior para que el CTA respire */
    linear-gradient(180deg, transparent 35%, rgba(18, 8, 32, 0.45) 100%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 137, 0, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 137, 0, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 90% at 15% 50%, #000 5%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 15% 50%, #000 5%, transparent 75%);
  opacity: 0.45;
  mix-blend-mode: overlay;
}

@keyframes hero-world-ken {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.10) translate3d(-1.5%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-world { animation: none; transform: scale(1.04); }
}

/* ─── Scroll storyteller bands (fullbleed parallax) ─── */
.scroll-band {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 440px;
  max-height: 680px;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.scroll-band-media {
  position: absolute;
  inset: -10%;
  z-index: 0;
  transform: scale(1.08);
  will-change: transform;
  transition: transform 120ms linear;
}
.scroll-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scroll-band-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Band 1 — COLLAGE de sectores (logos en mosaico) */
.scroll-band-1 {
  background: linear-gradient(180deg, #140825 0%, #281240 50%, #140825 100%);
}
.sector-collage {
  position: absolute;
  inset: -2%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(110px, 1fr);
  gap: 18px;
  padding: 30px;
  align-items: center;
  justify-items: center;
}
.sector-collage img {
  max-width: 80%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.42;
  filter: grayscale(100%) brightness(1.35) contrast(1.1);
  mix-blend-mode: luminosity;
  transition: opacity 600ms, filter 600ms;
}
.sector-collage img:nth-child(3n) { opacity: 0.32; transform: scale(0.9); }
.sector-collage img:nth-child(5n) { opacity: 0.5;  transform: scale(1.1); }
.sector-collage img:nth-child(7n) { opacity: 0.28; transform: scale(0.85); }
@media (max-width: 820px) {
  .sector-collage { grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px; }
  .sector-collage img:nth-child(n+17) { display: none; }
}

.scroll-band-1 .scroll-band-veil {
  background:
    radial-gradient(ellipse 55% 60% at 50% 50%, rgba(18, 8, 32, 0.55) 0%, rgba(18, 8, 32, 0.88) 75%),
    linear-gradient(180deg, rgba(40, 18, 64, 0.30) 0%, transparent 40%, rgba(18, 8, 32, 0.55) 100%),
    radial-gradient(ellipse 40% 50% at 50% 50%, rgba(255, 137, 0, 0.18), transparent 65%);
}

/* Band 2 — data-viz abstracto (SVG nativo, on-brand) */
.scroll-band-2 {
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, #2A1148 0%, #140825 60%, #0A0416 100%);
}
.scroll-band-2 .scroll-band-media {
  opacity: 1;
}
.band-dataviz {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 32px rgba(255, 137, 0, 0.2));
}
.band-dataviz .dv-path {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: dv-draw 3.5s var(--ease-out) forwards;
}
.band-dataviz .dv-path-a { animation-delay: 0.2s; }
.band-dataviz .dv-path-b { animation-delay: 0.6s; animation-duration: 4s; }
.band-dataviz .dv-path-c { animation-delay: 1.0s; }
@keyframes dv-draw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .band-dataviz .dv-path { animation: none; stroke-dashoffset: 0; }
}
.scroll-band-2 .scroll-band-veil {
  background:
    /* vignette para enfocar texto al centro */
    radial-gradient(ellipse 60% 70% at 50% 50%, transparent 10%, rgba(10, 4, 22, 0.6) 95%);
}

/* Band 3 — pure typographic, violet gradient + grid */
.scroll-band-3 {
  background: linear-gradient(135deg, #281240 0%, #140825 100%);
}
.scroll-band-3 .scroll-band-media {
  background-image:
    repeating-linear-gradient(135deg, transparent 0 46px, rgba(255, 137, 0, 0.05) 46px 47px),
    radial-gradient(circle at 1px 1px, rgba(245, 239, 228, 0.08) 1px, transparent 0);
  background-size: auto, 40px 40px;
}
.scroll-band-3 .scroll-band-veil {
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, transparent 30%, rgba(18, 8, 32, 0.75) 100%);
}

.scroll-band-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 32px 40px;
  text-align: center;
  pointer-events: none;
}
.scroll-band-content::before {
  /* backdrop suave para legibilidad del texto */
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  background: radial-gradient(ellipse 70% 85% at 50% 50%, rgba(18, 8, 32, 0.55), transparent 75%);
  filter: blur(20px);
}
.scroll-band-kicker {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 22px;
  opacity: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}
.scroll-band-headline {
  font-family: var(--ff-sans);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin: 0;
  opacity: 0;
  transform: translateY(32px);
  will-change: opacity, transform;
  transition: opacity 120ms linear, transform 120ms linear;
  text-shadow:
    0 4px 24px rgba(0, 0, 0, 0.75),
    0 2px 8px rgba(0, 0, 0, 0.6);
}
.scroll-band-headline em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  text-shadow:
    0 4px 24px rgba(0, 0, 0, 0.8),
    0 0 32px rgba(255, 137, 0, 0.45);
}
.scroll-band-foot {
  margin: 28px 0 0;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.88;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-band-media { transform: none !important; }
  .scroll-band-headline { opacity: 1 !important; transform: none !important; }
}

/* ─── Typewriter H1 ─── */
.hero-typewriter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-typewriter .tw-line-1 {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  animation: tw-line-in 600ms 150ms var(--ease) forwards;
}
.hero-typewriter .tw-line-2 {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--ff-serif);
  font-weight: 500;
  color: var(--accent);
  font-style: italic;
  letter-spacing: -0.02em;
}
.hero-typewriter .tw-text {
  white-space: pre;
}
.hero-typewriter .tw-cursor {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  font-weight: 200;
  font-family: var(--ff-sans);
  font-style: normal;
  animation: tw-blink 900ms steps(2, end) infinite;
}
@keyframes tw-line-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tw-blink {
  0%, 49%  { opacity: 1; }
  50%, 100%{ opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-typewriter .tw-line-1 { opacity: 1; transform: none; animation: none; }
  .hero-typewriter .tw-cursor  { animation: none; opacity: 0; }
}

/* Sello CodeStars (ahora vive en Nosotros / Método, no en el hero) */
.brand-seal {
  width: clamp(140px, 16vw, 200px);
  height: auto;
  animation: spin-seal 32s linear infinite;
  filter: drop-shadow(0 0 36px rgba(255, 137, 0, 0.35));
}
@keyframes spin-seal { to { transform: rotate(360deg); } }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 3;
  align-items: stretch;
  justify-items: stretch;
}
.hero-meta > div {
  padding: 4px 22px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
  text-align: left;
}
.hero-meta > div:first-child { padding-left: 0; }
.hero-meta > div:last-child { border-right: 0; padding-right: 0; }
.hero-meta-label {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin: 0;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
}
.hero-meta-value {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
}
.hero-meta-value em { font-family: var(--ff-serif); color: var(--accent); font-weight: 500; font-style: italic; }

@media (max-width: 960px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .hero-meta > div:nth-child(2) { border-right: 0; }
  .hero-meta > div:nth-child(3) { padding-left: 0; }
}
@media (max-width: 520px) {
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta > div { border-right: 0; border-bottom: 1px solid var(--border); padding: 14px 0; }
  .hero-meta > div:last-child { border-bottom: 0; }
}

@media (max-width: 820px) {
  .hero-code-snippet { display: none; }
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(255, 137, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 80% at 5% 100%, rgba(91, 63, 212, 0.22), transparent 55%),
    var(--ink);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(245, 239, 228, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at top right, rgba(0,0,0,0.5), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { max-width: 20ch; margin-bottom: 24px; }
.page-hero .lede { max-width: 55ch; }
.breadcrumbs {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumbs a { color: var(--text-mute); transition: color var(--t-fast) var(--ease); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--text-faint); }
.breadcrumbs .current { color: var(--text); }

/* ─── MARQUEE ─── */
.marquee-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
  background: var(--ink);
  position: relative;
}
.marquee-label {
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 30px;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--ff-sans);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-mute);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.marquee-item::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}
.marquee-item:first-child::before { content: none; }
.marquee-item:hover { color: var(--text); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 28px)); }
}

/* ─── GRIDS ─── */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Bracket frame utility — ahora con llaves { } como motivo secundario */
.bracket {
  position: relative;
}
.bracket::before,
.bracket::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--accent);
  transition: all var(--t-med) var(--ease);
  opacity: 0;
  pointer-events: none;
}
.bracket::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.bracket::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.bracket:hover::before, .bracket:hover::after { opacity: 1; width: 24px; height: 24px; }

/* Curly brace accent wrapper */
.curly {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  color: var(--accent);
}
.curly::before { content: "{"; font-size: 1.2em; font-weight: 700; }
.curly::after { content: "}"; font-size: 1.2em; font-weight: 700; }

/* ─── OFFER CARDS ─── */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-2);
}
.offer-card {
  background: transparent;
  padding: 44px 36px 36px;
  transition: background var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
  position: relative;
  border-right: 1px solid var(--border);
}
.offer-card:last-child { border-right: 0; }
.offer-card:hover {
  background: linear-gradient(180deg, rgba(255, 137, 0, 0.04), transparent 60%);
}
.offer-card .mono-idx {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}
.offer-card h3 {
  font-size: 1.875rem;
  letter-spacing: -0.025em;
  margin-top: 8px;
  font-weight: 800;
}
.offer-card p { color: var(--text-dim); font-weight: 400; flex-grow: 1; font-size: 0.9375rem; line-height: 1.6; }
.offer-card .link-arrow { align-self: flex-start; margin-top: 8px; }

@media (max-width: 960px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer-card { border-right: 0; border-bottom: 1px solid var(--border); }
  .offer-card:last-child { border-bottom: 0; }
}

/* ─── CASE CARDS ─── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 20px 48px -12px rgba(255, 137, 0, 0.18);
}
.case-media {
  aspect-ratio: 16/10;
  background: var(--ink-3);
  position: relative;
  overflow: hidden;
}
/* Imágenes en tono natural — sin sepia, sin tintes (Task #6) */
.case-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform var(--t-slow) var(--ease);
}
.case-media::after {
  /* gradiente violeta solo abajo — no cubre el color del sujeto */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 8, 32, 0.72) 75%, rgba(18, 8, 32, 0.92) 100%);
  z-index: 2;
  pointer-events: none;
}
.case-card:hover .case-media img {
  transform: scale(1.04);
}
.case-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}
.case-tag {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
}
.case-card h3 {
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.case-metrics {
  display: flex;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-wrap: wrap;
}
.case-metric { display: flex; flex-direction: column; gap: 2px; }
.case-metric-value {
  font-family: var(--ff-sans);
  font-size: 1.375rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.case-metric-label {
  font-size: 0.75rem;
  color: var(--text-mute);
  line-height: 1.3;
}
.case-link {
  color: var(--accent);
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 6px;
  transition: gap var(--t-fast) var(--ease);
  font-weight: 600;
}
.case-card:hover .case-link { gap: 0.7em; }

@media (max-width: 1000px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .case-grid { grid-template-columns: 1fr; } }

/* ─── METRICS ─── */
.metrics-head {
  margin-bottom: 72px;
  max-width: 24ch;
}
.metrics-head h2 em {
  font-family: var(--ff-serif);
  font-weight: 500;
  color: var(--accent);
  font-style: italic;
}
.metrics-primary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metric-block {
  padding: 44px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.metric-block:last-child { border-right: 0; }
.metric-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}
.metric-value {
  font-family: var(--ff-sans);
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  font-weight: 900;
}
.metric-value em { font-family: var(--ff-serif); color: var(--accent); font-style: italic; font-weight: 500; }
.metric-label {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.45;
  font-weight: 400;
}

.metrics-sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px dashed var(--border);
}
.metric-sub {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.metric-sub-value {
  font-family: var(--ff-sans);
  font-weight: 900;
  font-size: 2.75rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  min-width: 3.5em;
}
.metric-sub-label { color: var(--text-dim); font-size: 0.9375rem; line-height: 1.5; font-weight: 400; }
.metric-sub-client {
  color: var(--text-faint);
  font-size: 10.5px;
  font-family: var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 8px;
  display: block;
}

.credentials {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-mute);
  font-size: 13px;
  font-family: var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.credentials span::before {
  content: "★";
  color: var(--accent);
  margin-right: 10px;
  font-size: 0.9em;
}

@media (max-width: 960px) {
  .metrics-primary { grid-template-columns: repeat(2, 1fr); }
  .metric-block:nth-child(2) { border-right: 0; }
  .metric-block:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .metrics-sub { grid-template-columns: 1fr; gap: 28px; }
}

/* ─── SECTION HEADER ─── */
.sec-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-bottom: 72px;
  align-items: end;
}
.sec-head h2 { max-width: 16ch; }
.sec-head h2 em { font-family: var(--ff-serif); color: var(--accent); font-weight: 500; font-style: italic; }
.sec-head .lede { max-width: 44ch; }
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── METHOD TEASER ─── */
/* Method teaser — sección CREAM para romper el ritmo dark del home */
.method-teaser {
  background:
    radial-gradient(ellipse 60% 50% at 95% 0%, rgba(255, 137, 0, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 5% 100%, rgba(40, 18, 64, 0.06), transparent 55%),
    linear-gradient(180deg, #FAF5EA 0%, #F5EFE4 100%);
  color: #281240;
  border-top: 1px solid rgba(40, 18, 64, 0.12);
  border-bottom: 1px solid rgba(40, 18, 64, 0.12);
  position: relative;
  overflow: hidden;
}
.method-teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(40, 18, 64, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5), transparent 75%);
  pointer-events: none;
}
.method-teaser::after {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 137, 0, 0.22), transparent 70%);
  pointer-events: none;
}
/* Override text colors para el contexto cream */
.method-teaser .eyebrow { color: #BC1F39; }
.method-teaser h2 { color: #281240; }
.method-teaser h2 em { color: #FF8900; }
.method-teaser .lede { color: rgba(40, 18, 64, 0.78); }
.method-teaser .lede strong { color: #281240; }
.method-teaser .method-toc { border-left-color: #FF8900; }
.method-teaser .method-toc-item {
  color: rgba(40, 18, 64, 0.7);
  border-bottom-color: rgba(40, 18, 64, 0.15);
}
.method-teaser .method-toc-num { color: #FF8900; }
.method-teaser .method-quote {
  background: rgba(255, 137, 0, 0.08);
  color: #281240;
  border-left-color: #FF8900;
}
.method-teaser .method-quote-attr { color: #BC1F39; }
.method-teaser .btn-ghost {
  color: #281240;
  border-color: rgba(40, 18, 64, 0.3);
}
.method-teaser .btn-ghost:hover {
  background: #281240;
  color: #FF8900;
  border-color: #281240;
}
.method-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.method-toc {
  position: sticky;
  top: 120px;
  border-left: 2px solid var(--accent);
  padding-left: 28px;
}
.method-toc-item {
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--ff-sans);
  font-size: 1.1875rem;
  color: var(--text-dim);
  font-weight: 600;
  cursor: default;
}
.method-toc-item:last-child { border-bottom: 0; }
.method-toc-num {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--accent);
  min-width: 2.2em;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.method-body h2 em { font-family: var(--ff-serif); color: var(--accent); font-weight: 500; font-style: italic; }
.method-body h2 { max-width: 18ch; margin: 14px 0 24px; }
.method-body .lede { margin-bottom: 40px; }
.method-quote {
  font-family: var(--ff-serif);
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  line-height: 1.25;
  color: var(--text);
  font-style: italic;
  padding: 28px 32px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 32px;
  font-weight: 500;
}
.method-quote-attr {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-style: normal;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 16px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .method-split { grid-template-columns: 1fr; gap: 40px; }
  .method-toc { position: static; }
}

/* ─── CTA CLOSE ─── */
.cta-close {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 137, 0, 0.22), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(91, 63, 212, 0.25), transparent 60%),
    var(--ink);
  position: relative;
  overflow: hidden;
}
.cta-close::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(245, 239, 228, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
  pointer-events: none;
}
.cta-close .container { position: relative; z-index: 2; }
.cta-close .eyebrow { margin-bottom: 28px; display: inline-flex; }
.cta-close h2 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-style: italic;
  max-width: 20ch;
  margin: 0 auto 28px;
}
.cta-close h2 em {
  font-weight: 500;
  color: var(--accent);
}
.cta-close .lede {
  margin: 0 auto 44px;
  max-width: 52ch;
}
.cta-close .cta-row { justify-content: center; }

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  font-family: var(--ff-sans);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.025em;
}
.footer-brand img { height: 30px; width: auto; }

.footer-tag {
  color: var(--text-dim);
  font-size: 0.9375rem;
  max-width: 32ch;
  line-height: 1.55;
  font-weight: 400;
}
.footer-badge {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: var(--r-sm);
  font-weight: 700;
  background: var(--accent-soft);
}
.footer-col h5 {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-dim);
  font-size: 0.9375rem;
  transition: color var(--t-fast) var(--ease);
  font-weight: 500;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.footer-social { display: flex; gap: 22px; }
.footer-social a {
  color: var(--text-mute);
  font-family: var(--ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: color var(--t-fast) var(--ease);
  font-weight: 600;
}
.footer-social a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand-col { grid-column: span 2; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand-col { grid-column: span 1; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── UTILS ─── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-2), transparent);
  margin: 48px 0;
  border: 0;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-xs);
  background: var(--accent-soft);
  font-weight: 700;
}
.tag-pill.violet { color: var(--cream); border-color: var(--cream); background: rgba(245, 239, 228, 0.1); }
.tag-pill.red { color: var(--brand-red); border-color: var(--brand-red); background: rgba(188, 31, 57, 0.12); }
.tag-pill.teal { color: var(--brand-teal); border-color: var(--brand-teal); background: rgba(0, 159, 174, 0.12); }
.tag-pill.blue { color: var(--brand-blue); border-color: var(--brand-blue); background: rgba(0, 120, 196, 0.12); }

.ghost-n {
  position: absolute;
  top: -30px; right: 0;
  font-family: var(--ff-mono);
  font-size: clamp(10rem, 22vw, 22rem);
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 239, 228, 0.04);
  pointer-events: none;
  font-weight: 700;
  user-select: none;
}

/* ─── FORM ─── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
  font-weight: 600;
}
.form-field .req { color: var(--accent); }
.form-hint {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-top: 10px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── PAGE-SPECIFIC: MANIFESTO (método) ─── */
.manifesto {
  padding: var(--sec-y) 0;
  width: var(--container-reading);
  margin-inline: auto;
}
.manifesto-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.manifesto-section:first-of-type { border-top: 0; padding-top: 0; }
.manifesto-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.manifesto-section h2 .num {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.manifesto-section h3 {
  font-family: var(--ff-sans);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.manifesto-section h3 .subnum {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  font-weight: 700;
  letter-spacing: 0.14em;
}
.manifesto-section p {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 18px;
  font-weight: 400;
  font-size: 1.0625rem;
}
.manifesto-section strong { color: var(--text); font-weight: 700; }
.principles { display: flex; flex-direction: column; gap: 20px; margin: 20px 0; }
.principle {
  padding: 22px 26px;
  background: var(--ink-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.principle-num {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 700;
}
.principle-text {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 8px;
  font-weight: 500;
}
.principle-sub {
  font-size: 0.9375rem;
  color: var(--text-dim);
  font-weight: 400;
  line-height: 1.55;
}

.manifesto-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.9375rem;
}
.manifesto-table th, .manifesto-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.manifesto-table th {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  font-weight: 700;
  border-bottom: 1px solid var(--border-2);
}
.manifesto-table td { color: var(--text-dim); font-weight: 400; }
.manifesto-table td strong { color: var(--text); font-weight: 700; }

.ascii-diagram {
  background: var(--ink-2);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--r-sm);
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-dim);
  overflow-x: auto;
  margin: 24px 0;
  white-space: pre;
}

/* ─── PAGE-SPECIFIC: CASE STUDY ─── */
.case-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.case-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.case-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  /* sin sepia ni saturate — tono natural (Task #6) */
  filter: none;
}
.case-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 8, 32, 0.55) 0%, rgba(18, 8, 32, 0.96) 100%);
}
.case-hero .container { position: relative; z-index: 2; }
.case-hero h1 { max-width: 22ch; margin-bottom: 32px; }
.case-hero h1 em { font-family: var(--ff-serif); font-weight: 500; color: var(--accent); font-style: italic; }
.case-hero .lede { max-width: 56ch; margin-bottom: 60px; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
.kpi {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
}
.kpi:last-child { border-right: 0; }
.kpi-value {
  font-family: var(--ff-sans);
  font-weight: 900;
  font-size: clamp(2.75rem, 4.5vw, 3.75rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.kpi-label { color: var(--text-dim); font-size: 0.9375rem; line-height: 1.4; font-weight: 400; }

.case-body {
  padding: var(--sec-y) 0;
  width: var(--container-reading);
  margin-inline: auto;
}
.case-body .section-block {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.case-body .section-block:last-child { border-bottom: 0; }
.case-body h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 20px;
  letter-spacing: -0.025em;
}
.case-body h2 .num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  flex-shrink: 0;
}
.case-body h3 {
  font-family: var(--ff-sans);
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.25rem;
}
.case-body p {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 1.0625rem;
  font-weight: 400;
}
.case-body strong { color: var(--text); font-weight: 700; }
.case-body ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.case-body ul li {
  padding: 13px 0 13px 28px;
  color: var(--text-dim);
  font-weight: 400;
  line-height: 1.6;
  position: relative;
  border-bottom: 1px dashed var(--border);
}
.case-body ul li:last-child { border-bottom: 0; }
.case-body ul li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9em;
  top: 14px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-top: 20px;
}
.stack-chip {
  padding: 20px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stack-chip-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  margin-bottom: 8px;
  font-weight: 700;
}
.stack-chip-value {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 600;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-top: 28px;
}
.outcome {
  padding: 28px;
  border-right: 1px solid var(--border);
}
.outcome:last-child { border-right: 0; }
.outcome-value {
  font-family: var(--ff-sans);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}
.outcome-label {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 400;
}

.pull-quote {
  background: var(--ink-2);
  border-left: 3px solid var(--accent);
  padding: 32px 36px;
  margin: 40px 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.pull-quote blockquote {
  font-family: var(--ff-serif);
  font-size: 1.625rem;
  line-height: 1.35;
  color: var(--text);
  font-style: italic;
  margin-bottom: 20px;
  font-weight: 500;
}
.pull-quote-attr {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: block;
  font-weight: 600;
}

@media (max-width: 760px) {
  .kpi-row { grid-template-columns: 1fr; }
  .kpi { border-right: 0; border-bottom: 1px solid var(--border); }
  .outcome-grid { grid-template-columns: 1fr; }
  .outcome { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* ===================================================================
   COMPONENTES NUEVOS — v2.2 (Abril 2026)
   Revisión de adjustments: presence band centered, logo carousel,
   sectors grid SEO, trust band, brand dividers, brand-seal live GIF
   =================================================================== */

/* ── Presencia internacional — banda horizontal perfectamente centrada ── */
.presence-band {
  padding: 40px 0;
  background: var(--ink-2);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.presence-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 auto 22px;
  display: inline-block;
}
.presence-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.presence-item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.presence-flag { font-size: 1.25rem; line-height: 1; }
.presence-country {
  font-family: var(--ff-sans);
  font-weight: 700;
  color: var(--cream);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.presence-note {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Separador con gradiente oficial violeta → naranja ── */
.brand-divider {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--violeta-premium) 18%,
    var(--violeta-grad-1) 40%,
    var(--accent) 65%,
    var(--naranja-grad-0) 85%,
    transparent 100%);
  opacity: 0.85;
  position: relative;
  z-index: 4;
}
.brand-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}

/* ── LOGO CARROUSEL (clientes oficiales) ── */
.clients-carousel {
  padding: 80px 0 64px;
  background: var(--ink);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.clients-carousel .container { text-align: center; }
.clients-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--text-mute);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.clients-title {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  max-width: 22ch;
  margin: 0 auto 40px;
  color: var(--cream);
  line-height: 1.12;
}
.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  padding: 32px 0;
  position: relative;
}
.logo-marquee::before, .logo-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-accent), transparent);
}
.logo-marquee::before { left: 12%; }
.logo-marquee::after  { right: 12%; }

.logo-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: logo-marquee 72s linear infinite;
  list-style: none;
  padding: 0;
  margin: 0;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item {
  flex: 0 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(0.96) contrast(1.02);
  opacity: 0.82;
  transition: opacity var(--t-med) var(--ease), filter var(--t-med) var(--ease);
}
.logo-item:hover { opacity: 1; filter: brightness(1.08); }
.logo-item img {
  max-height: 52px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* tono natural — sin sepia ni grayscale (Task #6) */
  filter: none;
}
.logo-fallback {
  /* placeholder tipográfico cuando el PNG no existe aún */
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 22px;
  border: 1px dashed var(--border-2);
  border-radius: var(--r-sm);
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: rgba(245, 239, 228, 0.025);
}
.logo-fallback::before {
  content: "◆";
  color: var(--accent);
  margin-right: 10px;
  font-size: 0.7em;
}
@keyframes logo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 36px)); }
}

/* ── SECTORES — auto-scroll carrusel (Task 19) ──
   Sin conteos visibles. Banca como flagship (tile ancho, productos listados).
   Marquee infinito, pausa en hover, mask-fade en bordes.
*/
.sectors-section {
  padding: var(--sec-y) 0;
  position: relative;
  overflow: hidden;
}
.sectors-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sectors-marquee:hover .sectors-track { animation-play-state: paused; }
.sectors-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 4px 20px;
  list-style: none;
  margin: 0;
  width: max-content;
  animation: sectors-drift 48s linear infinite;
  will-change: transform;
}
@keyframes sectors-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 10px)); }
}
.sector-tile {
  flex: 0 0 320px;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.sector-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0.3);
  transition: transform var(--t-med) var(--ease);
}
.sector-tile:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(255, 137, 0, 0.06), var(--ink-2) 70%);
}
.sector-tile:hover::before { transform: scaleX(1); }
.sector-tile-link {
  display: contents;
  color: inherit;
}
.sector-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 137, 0, 0.18), rgba(91, 63, 212, 0.12));
  color: var(--accent);
  border: 1px solid rgba(255, 137, 0, 0.28);
}
.sector-tile-body { display: flex; flex-direction: column; gap: 8px; }
.sector-kicker {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}
.sector-tile h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
.sector-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}
.sector-desc strong { color: var(--cream); font-weight: 700; }

/* Flagship Banca — el doble de ancho y destacado */
.sector-tile-flagship {
  flex: 0 0 520px;
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(255, 137, 0, 0.20), transparent 60%),
    linear-gradient(180deg, #24133C, var(--ink-2));
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 0 1px rgba(255, 137, 0, 0.15), 0 20px 40px -20px rgba(255, 137, 0, 0.25);
}
.sector-tile-flagship .sector-kicker { color: var(--accent); }
.sector-tile-flagship h3 {
  font-size: 1.5rem;
  font-family: var(--ff-sans);
}
.sector-products {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.sector-products li {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 5px 10px;
  border: 1px solid rgba(255, 137, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 137, 0, 0.08);
  white-space: nowrap;
}
.sector-cta {
  margin-top: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  gap: 6px;
  transition: gap var(--t-fast) var(--ease);
}
.sector-tile-flagship:hover .sector-cta { gap: 12px; }

.sectors-total {
  margin-top: 24px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  text-transform: uppercase;
  text-align: right;
}
.sectors-total strong { color: var(--accent); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .sectors-track { animation: none; flex-wrap: wrap; width: 100%; }
}
@media (max-width: 720px) {
  .sector-tile { flex: 0 0 280px; padding: 22px 22px 20px; }
  .sector-tile-flagship { flex: 0 0 340px; }
  .sector-tile-flagship h3 { font-size: 1.3rem; }
}

/* ── TRUST BAND (credentials + clutch + live seal) ── */
.trust-band {
  padding: var(--sec-y-sm) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.trust-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(245, 239, 228, 0.04) 1px, transparent 0);
  background-size: 34px 34px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}
.trust-band .container { position: relative; z-index: 2; }
.trust-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 72px;
  align-items: center;
}
.trust-h2 { margin-top: 18px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.trust-lede { margin-top: 18px; font-size: 1rem; }
.trust-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.trust-card {
  padding: 22px 20px;
  border-right: 1px solid var(--border);
  position: relative;
}
.trust-card:last-child { border-right: 0; }
.trust-card-year {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
}
.trust-card-name {
  font-family: var(--ff-sans);
  font-weight: 700;
  color: var(--cream);
  margin-top: 6px;
  font-size: 0.95rem;
}
.trust-card-sub {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 4px;
  line-height: 1.4;
}
.trust-card-logo {
  max-height: 32px;
  margin-top: 10px;
  opacity: 0.85;
  filter: none;
}

/* Task 20: trust-cards focused (solo ProColombia + Clutch) */
.trust-cards-focused { grid-template-columns: 1fr 1fr; }
.trust-card-procolombia { background: linear-gradient(180deg, rgba(255,137,0,0.04), transparent 60%); }
.trust-card-clutch { background: linear-gradient(180deg, rgba(91,63,212,0.07), transparent 60%); }

/* Clutch embed oficial */
.clutch-embed {
  margin-top: 28px;
  padding: 20px 20px 16px;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: relative;
  min-height: 120px;
}
.clutch-embed::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--brand-red));
  border-radius: 3px 0 0 3px;
}
.clutch-fallback {
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 10px 0 0;
}
.clutch-fallback code {
  color: var(--accent);
  font-family: var(--ff-mono);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Task 20: arte generativo en panel derecho (reemplaza logo en óvalo) */
.brand-generative {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px;
}
.genart {
  position: relative;
  width: clamp(280px, 32vw, 380px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(40,18,64,0.35), transparent 70%),
    radial-gradient(circle at 30% 30%, rgba(91,63,212,0.18), transparent 60%),
    #1C0E30;
  border: 1px solid rgba(255, 137, 0, 0.2);
  box-shadow:
    inset 0 0 80px rgba(91, 63, 212, 0.4),
    0 0 60px -20px rgba(255, 137, 0, 0.25);
  isolation: isolate;
}
.genart-aura,
.genart-aura-2 {
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(255,137,0,0.28) 60deg,
      transparent 120deg,
      rgba(91,63,212,0.30) 200deg,
      transparent 260deg,
      rgba(188,31,57,0.18) 320deg,
      transparent 360deg
    );
  filter: blur(28px);
  animation: genart-rotate 22s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.85;
}
.genart-aura-2 {
  animation-duration: 38s;
  animation-direction: reverse;
  filter: blur(44px);
  opacity: 0.55;
}
@keyframes genart-rotate {
  to { transform: rotate(360deg); }
}
.genart-corchete {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56%;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(255, 137, 0, 0.55));
  z-index: 3;
  animation: genart-breathe 6s ease-in-out infinite;
}
.genart-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68%;
  max-width: 260px;
  height: auto;
  z-index: 4;
  filter: drop-shadow(0 0 18px rgba(255, 137, 0, 0.35)) drop-shadow(0 4px 24px rgba(0, 0, 0, 0.5));
  animation: genart-breathe 6s ease-in-out infinite;
}
@keyframes genart-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.04); }
}
.genart-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(245, 239, 228, 0.08) 1px, transparent 0);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 75%);
  opacity: 0.6;
}
.genart-orbits {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.genart-orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 70%;
  height: 70%;
  margin-left: -35%;
  margin-top: -35%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 137, 0, 0.22);
  animation: genart-spin 18s linear infinite;
}
.genart-orbit::before,
.genart-orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.genart-orbit::before { top: -4px; left: 50%; transform: translateX(-50%); }
.genart-orbit::after  { bottom: -4px; right: 30%; width: 4px; height: 4px; background: var(--cream); box-shadow: 0 0 8px rgba(245,239,228,0.7); }
.genart-orbit-a { width: 90%; height: 90%; margin: -45% 0 0 -45%; animation-duration: 26s; border-color: rgba(255, 137, 0, 0.2); }
.genart-orbit-b { width: 72%; height: 72%; margin: -36% 0 0 -36%; animation-duration: 18s; animation-direction: reverse; border-color: rgba(91, 63, 212, 0.35); }
.genart-orbit-c { width: 54%; height: 54%; margin: -27% 0 0 -27%; animation-duration: 12s; border-color: rgba(255, 137, 0, 0.35); }
@keyframes genart-spin {
  to { transform: rotate(360deg); }
}
.genart-video {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255,137,0,0.25);
}
@media (prefers-reduced-motion: reduce) {
  .genart-aura, .genart-aura-2, .genart-orbit, .genart-corchete, .genart-logo { animation: none; }
}

/* Legacy (oculto por compatibilidad) */
.clutch-placeholder {
  display: none;
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--ink);
  border: 1px dashed var(--border-accent);
  border-radius: var(--r-md);
  gap: 18px;
  align-items: center;
  position: relative;
}
.clutch-placeholder::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--brand-red));
  border-radius: 3px 0 0 3px;
}
.clutch-logo {
  font-family: var(--ff-sans);
  font-size: 1.625rem;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}
.clutch-logo > span {
  color: var(--accent);
  font-size: 1.2em;
  margin-right: 4px;
}
.clutch-dot { color: var(--accent); }
.clutch-headline { font-size: 0.9375rem; color: var(--cream); margin: 0 0 4px; line-height: 1.4; }
.clutch-sub {
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

/* Brand seal — ahora es el GIF oficial animado (live) */
.brand-seal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
}
.brand-seal-live {
  width: clamp(180px, 22vw, 260px);
  height: auto;
  filter: drop-shadow(0 0 48px rgba(255, 137, 0, 0.32));
  border-radius: 50%;
  /* GIF ya está animado — no aplicamos rotación CSS */
}
.brand-seal-caption {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 600;
  line-height: 1.6;
}
.brand-seal-note {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr; gap: 48px; }
  .brand-seal-wrap { order: -1; }
}

/* ── Enhanced scroll reveal with staggered children ── */
.reveal[data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
}
.reveal[data-stagger].in > *:nth-child(1) { transition-delay: 0ms;   }
.reveal[data-stagger].in > *:nth-child(2) { transition-delay: 80ms;  }
.reveal[data-stagger].in > *:nth-child(3) { transition-delay: 160ms; }
.reveal[data-stagger].in > *:nth-child(4) { transition-delay: 240ms; }
.reveal[data-stagger].in > *:nth-child(5) { transition-delay: 320ms; }
.reveal[data-stagger].in > *:nth-child(6) { transition-delay: 400ms; }
.reveal[data-stagger].in > *:nth-child(7) { transition-delay: 480ms; }
.reveal[data-stagger].in > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal[data-stagger] > *,
  .logo-track, .marquee-track,
  .brand-seal-live, .brand-seal {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ── JOBS LIST (trabaja-con-nosotros) ── */
.jobs-list {
  display: grid;
  gap: 16px;
  margin-top: 56px;
  padding: 0;
  list-style: none;
}
.job-card {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  position: relative;
}
.job-card::before {
  content: "";
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.job-card:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}
.job-card:hover::before { opacity: 1; }
.job-meta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.job-meta p {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}
.job-apply {
  font-size: 0.8125rem !important;
  padding: 10px 18px !important;
}
@media (max-width: 760px) {
  .job-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .job-card .tag-pill { justify-self: start; }
  .job-apply { justify-self: start; }
}

/* ── BLOG listing + posts ── */
.blog-hero {
  padding: 160px 0 80px;
  background:
    radial-gradient(ellipse 70% 50% at 80% 15%, rgba(255, 137, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 60% at 10% 90%, rgba(91, 63, 212, 0.22), transparent 55%),
    var(--ink);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.blog-hero h1 { max-width: 22ch; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
}
.blog-card .card-media {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
  position: relative;
  overflow: hidden;
}
.blog-card .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 137, 0, 0.28), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(91, 63, 212, 0.32), transparent 55%);
}
.blog-card .card-media .card-eyebrow {
  position: absolute;
  bottom: 16px; left: 20px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--cream);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
  font-weight: 700;
}
.blog-card .card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.blog-card h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.blog-card .card-kicker {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.blog-card .card-sum {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.55;
  flex: 1;
}
.blog-card .card-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.blog-card .card-read-arrow { color: var(--accent); font-weight: 700; }

/* Single post */
.post-hero {
  padding: 150px 0 60px;
  border-bottom: 1px solid var(--border);
  background: var(--ink);
}
.post-hero .post-kicker {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.post-hero h1 {
  margin-top: 24px;
  max-width: 22ch;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.05;
}
.post-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.post-meta strong { color: var(--cream); font-weight: 700; }
.post-body {
  padding: 72px 0 var(--sec-y);
  width: var(--container-reading);
  margin-inline: auto;
}
.post-body h2 {
  font-size: 1.875rem;
  margin: 56px 0 16px;
  letter-spacing: -0.02em;
}
.post-body h3 {
  font-size: 1.25rem;
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.post-body p {
  color: var(--text-dim);
  font-size: 1.0625rem;
  line-height: 1.72;
  margin-bottom: 18px;
}
.post-body p strong { color: var(--cream); font-weight: 700; }
.post-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 137, 0, 0.4);
  transition: border-color var(--t-fast) var(--ease);
}
.post-body a:hover { border-bottom-color: var(--accent); }
.post-body ul {
  margin: 14px 0 24px 0;
  padding-left: 0;
  list-style: none;
}
.post-body ul li {
  padding: 8px 0 8px 22px;
  color: var(--text-dim);
  line-height: 1.6;
  position: relative;
}
.post-body ul li::before {
  content: "◆";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 0.65em;
}
.post-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--ink-2);
  padding: 22px 28px;
  margin: 28px 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.35;
}
.post-next {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.post-next a { color: var(--accent); font-weight: 700; }

/* ═════════════════════════════════════════════════════════════════
   Task 21 — scroll UX: progress bar + back-to-top + section marker
   + smooth-scroll + hero parallax
   ═════════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Progress bar (barra superior delgada, naranja) */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: rgba(40, 18, 64, 0.35);
  z-index: 200;
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--brand-red));
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 10px rgba(255, 137, 0, 0.6);
  will-change: transform;
  transition: transform 60ms linear;
}

/* Back-to-top flotante */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  border: 1px solid rgba(245, 239, 228, 0.2);
  box-shadow: 0 10px 30px -10px rgba(255, 137, 0, 0.6), 0 0 0 0 rgba(255, 137, 0, 0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  pointer-events: none;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
  z-index: 180;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--accent-hot);
  box-shadow: 0 12px 36px -8px rgba(255, 137, 0, 0.7), 0 0 0 6px rgba(255, 137, 0, 0.12);
}
#back-to-top:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* Section marker (etiqueta vertical lateral) */
#section-marker {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  pointer-events: none;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}
#section-marker .section-marker-num {
  color: var(--accent);
  font-weight: 800;
  padding: 4px 2px 4px 6px;
  border-left: 2px solid var(--accent);
}
#section-marker .section-marker-name {
  color: var(--text);
  font-weight: 600;
}
#section-marker.flip .section-marker-num,
#section-marker.flip .section-marker-name {
  animation: section-marker-in 420ms var(--ease-out);
}
@keyframes section-marker-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1100px) {
  #section-marker { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #section-marker { display: none; }
}

/* Hero parallax — aplicado al contenido del hero y a la constelación.
   (Las capas ::before/::after ya tienen el keyframe hero-drift para
   animación continua; el parallax se suma en elementos sin animación.)
*/
.hero-content {
  transform: translateY(calc(var(--hero-parallax-y, 0px) * -0.35));
  will-change: transform;
}
.hero-visual {
  transform: translateY(calc(-50% - var(--hero-parallax-y-slow, 0px) * 0.6));
}
@media (max-width: 1100px) {
  .hero-visual { transform: none; }
  .hero-content { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content, .hero-visual { transform: none !important; }
}

/* ═════════════════════════════════════════════════════════════════
   Task 22 — AI Studios (inspirado en Globant)
   Grid 4×2 desktop · 1 columna mobile · hover naranja cálido
   ═════════════════════════════════════════════════════════════════ */
/* AI Studios — sección CREAM (segundo break del dark del home) */
.ai-studios {
  padding: var(--sec-y) 0;
  background:
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(255, 137, 0, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 5% 100%, rgba(40, 18, 64, 0.08), transparent 55%),
    linear-gradient(180deg, #FAF5EA 0%, #F5EFE4 100%);
  color: #281240;
  position: relative;
  border-top: 1px solid rgba(40, 18, 64, 0.12);
  border-bottom: 1px solid rgba(40, 18, 64, 0.12);
  overflow: hidden;
}
.ai-studios::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(40, 18, 64, 0.06) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 78%);
  pointer-events: none;
}
.ai-studios .container { position: relative; z-index: 2; }
.ai-studios .eyebrow { color: #BC1F39; }
.studios-head { max-width: 820px; margin-bottom: 56px; }
.studios-head h2 { margin-top: 20px; color: #281240; }
.studios-head h2 em {
  font-family: var(--ff-serif); color: #FF8900; font-weight: 500; font-style: italic;
}
.studios-subline {
  margin-top: 20px;
  font-size: 1.05rem;
  color: rgba(40, 18, 64, 0.72);
  line-height: 1.6;
}

/* Cards en cream — invertidas: superficie violeta sutil + bordes oscuros */
.ai-studios .studio-card {
  background: #FFFFFF;
  border-color: rgba(40, 18, 64, 0.14);
  box-shadow: 0 1px 3px rgba(40, 18, 64, 0.04), 0 6px 18px rgba(40, 18, 64, 0.06);
}
.ai-studios .studio-card:hover {
  border-color: #FF8900;
  box-shadow: 0 12px 32px rgba(40, 18, 64, 0.12), 0 0 0 1px #FF8900;
}
.ai-studios .studio-body { background: #FFFFFF; }
.ai-studios .studio-body h3 { color: #281240; }
.ai-studios .studio-body p { color: rgba(40, 18, 64, 0.7); }
.ai-studios .studio-body p strong { color: #281240; }
.ai-studios .studio-body .studio-tag {
  color: #BC1F39;
  border-top-color: rgba(40, 18, 64, 0.15);
}
.ai-studios .studio-kicker {
  background: rgba(255, 137, 0, 0.92);
  color: #FFFFFF;
  border-color: transparent;
  backdrop-filter: none;
}
.studios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.studio-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  isolation: isolate;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.studio-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
}
.studio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(255, 137, 0, 0) 75%, rgba(255, 137, 0, 0.14));
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}
.studio-card:hover::after { opacity: 1; }
.studio-media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, var(--ink-3), var(--ink-2));
  position: relative;
  overflow: hidden;
}
.studio-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 137, 0, 0.32), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(91, 63, 212, 0.38), transparent 55%);
}
.studio-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.8;
  transition: transform 800ms var(--ease), mix-blend-mode 400ms, opacity 400ms;
}
.studio-card:hover .studio-media img {
  transform: scale(1.06);
  mix-blend-mode: normal;
  opacity: 1;
}

/* ── Generative art por sector (reemplaza la foto repetida) ── */
.studio-art {
  display: grid;
  place-items: center;
  color: var(--cream);
  isolation: isolate;
}
.studio-art::before {
  /* redefine el glow base por tarjeta */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}
.studio-art::after {
  /* ruido / grano sutil para textura editorial */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(245,239,228,0.05) 1px, transparent 0);
  background-size: 18px 18px;
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}
.studio-glyph {
  position: relative;
  z-index: 2;
  width: 42%;
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(255, 137, 0, 0.35));
  transition: transform 600ms var(--ease), filter 400ms;
}
.studio-card:hover .studio-glyph {
  transform: scale(1.06) rotate(-1.5deg);
  filter: drop-shadow(0 0 44px rgba(255, 137, 0, 0.55));
}

/* 01 Banking — arquitectura + columnas */
.studio-art-banking::before {
  background:
    radial-gradient(ellipse 70% 100% at 50% 110%, rgba(255, 137, 0, 0.35), transparent 60%),
    linear-gradient(155deg, #2A0F4A 0%, #1C0A36 100%);
}
/* 02 Gov — institucional violet profundo */
.studio-art-gov::before {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 137, 0, 0.24), transparent 55%),
    linear-gradient(180deg, #20123D 0%, #0F0620 100%);
}
/* 03 Coop — tonos tierra/humano */
.studio-art-coop::before {
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(255, 137, 0, 0.38), transparent 55%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(188, 31, 57, 0.24), transparent 55%),
    linear-gradient(135deg, #2D1540, #1A0928);
}
/* 04 Aviation — cielo pre-amanecer */
.studio-art-aviation::before {
  background:
    linear-gradient(180deg, #1C1240 0%, #2E1A4A 50%, #4A2A44 100%),
    radial-gradient(circle at 80% 30%, rgba(255, 137, 0, 0.4), transparent 50%);
}
.studio-art-aviation::before {
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 137, 0, 0.5), transparent 45%),
    linear-gradient(180deg, #130820 0%, #2C1446 55%, #4A2A44 100%);
}
/* 05 Edu — académico / papel / aurora */
.studio-art-edu::before {
  background:
    radial-gradient(ellipse 60% 70% at 50% 110%, rgba(91, 63, 212, 0.45), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(255, 137, 0, 0.22), transparent 50%),
    linear-gradient(165deg, #1A0B32, #0E0520);
}
/* 06 Retail — grilla comercial + heatmap */
.studio-art-retail::before {
  background:
    linear-gradient(135deg, rgba(255, 137, 0, 0.18) 0%, transparent 40%, rgba(188, 31, 57, 0.22) 100%),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(245, 239, 228, 0.025) 44px 45px),
    linear-gradient(180deg, #1B0B30, #10061F);
}
/* 07 Health — quirúrgico/clínico */
.studio-art-health::before {
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(188, 31, 57, 0.30), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(255, 137, 0, 0.22), transparent 55%),
    linear-gradient(145deg, #1F0F3C, #0C0420);
}
/* 08 Services — contemplativo/sobrio */
.studio-art-services::before {
  background:
    radial-gradient(ellipse 50% 60% at 50% 30%, rgba(255, 137, 0, 0.30), transparent 55%),
    linear-gradient(180deg, #1E1038 0%, #070212 100%);
}

/* Motion: breathing sutil en el glyph cuando no hay hover */
@keyframes studio-breath {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 30px rgba(255, 137, 0, 0.35)); }
  50%      { transform: translateY(-3px) scale(1.015); filter: drop-shadow(0 0 40px rgba(255, 137, 0, 0.5)); }
}
.studio-card:not(:hover) .studio-glyph {
  animation: studio-breath 5.5s ease-in-out infinite;
}
.studio-card:nth-child(2n) .studio-glyph { animation-delay: -2s; }
.studio-card:nth-child(3n) .studio-glyph { animation-delay: -3.5s; }
@media (prefers-reduced-motion: reduce) {
  .studio-card:not(:hover) .studio-glyph { animation: none; }
}
.studio-kicker {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 700;
  padding: 4px 8px;
  background: rgba(18, 8, 32, 0.7);
  border: 1px solid rgba(255, 137, 0, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.studio-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.studio-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
.studio-body p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}
.studio-body p strong { color: var(--cream); font-weight: 700; }
.studio-body .studio-tag {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 1px dashed var(--border);
  font-weight: 700;
}
@media (max-width: 1100px) {
  .studios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .studios-grid { grid-template-columns: 1fr; }
}

/* ═════════════════════════════════════════════════════════════════
   Task 23 — Banca & Finanzas (página industria)
   ═════════════════════════════════════════════════════════════════ */
.bank-hero {
  position: relative;
  padding: 170px 0 100px;
  background:
    radial-gradient(ellipse 65% 55% at 82% 14%, rgba(255, 137, 0, 0.42), transparent 60%),
    radial-gradient(ellipse 55% 55% at 6% 92%, rgba(91, 63, 212, 0.55), transparent 62%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(40, 18, 64, 0.92), rgba(18, 8, 32, 1) 78%),
    var(--ink);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.bank-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(245, 239, 228, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
  pointer-events: none;
}
.bank-hero .container { position: relative; z-index: 2; }
.bank-hero .eyebrow { color: var(--accent); }
.bank-hero h1 {
  max-width: 20ch;
  margin-top: 20px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.bank-hero h1 em {
  font-family: var(--ff-serif); font-weight: 500; color: var(--accent); font-style: italic;
}
.bank-hero .lede {
  max-width: 60ch;
  margin-top: 24px;
  font-size: 1.1rem;
  color: var(--text-dim);
}
.bank-hero .cta-row { margin-top: 36px; }

.bank-section { padding: var(--sec-y) 0; position: relative; }
.bank-section h2 em { font-family: var(--ff-serif); color: var(--accent); font-weight: 500; font-style: italic; }

.bank-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.bank-product {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px 26px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.bank-product.bank-product-star {
  background: linear-gradient(180deg, #2A1748, var(--ink-2));
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px rgba(255, 137, 0, 0.15);
}
.bank-product:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}
.bank-product::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34px;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0.3);
  transition: transform var(--t-med) var(--ease);
}
.bank-product:hover::before { transform: scaleX(1); }
.bank-product .product-idx {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.bank-product h3 {
  font-size: 1.15rem;
  color: var(--cream);
  margin: 0;
  letter-spacing: -0.015em;
}
.bank-product p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}
.bank-product p strong { color: var(--cream); font-weight: 700; }
.bank-product a.link-arrow { margin-top: auto; padding-top: 10px; font-size: 11px; }

.bank-method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.bank-method-card {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 22px;
  position: relative;
}
.bank-method-card .bank-method-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
}
.bank-method-card h4 {
  font-size: 1.05rem;
  color: var(--cream);
  margin: 10px 0 8px;
  letter-spacing: -0.01em;
}
.bank-method-card p { font-size: 0.875rem; color: var(--text-dim); line-height: 1.55; margin: 0; }

.bank-impact-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bank-impact {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 26px 26px 24px;
}
.bank-impact .bank-impact-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
}
.bank-impact .bank-impact-label {
  display: block;
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}
.bank-impact .bank-impact-tag {
  display: block;
  margin-top: 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.bank-stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}
.bank-stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.bank-stack-list li {
  font-size: 0.95rem;
  color: var(--text-dim);
  padding: 12px 16px;
  background: var(--ink-2);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  line-height: 1.5;
}
.bank-stack-list li strong { color: var(--cream); font-weight: 700; }

@media (max-width: 1000px) {
  .bank-products-grid { grid-template-columns: repeat(2, 1fr); }
  .bank-method { grid-template-columns: repeat(2, 1fr); }
  .bank-impact-list { grid-template-columns: 1fr; }
  .bank-stack-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bank-products-grid { grid-template-columns: 1fr; }
  .bank-method { grid-template-columns: 1fr; }
}

/* ─── Language switcher (ES / EN) ─── */
.lang-switch{
  display:inline-flex;align-items:center;
  border:1px solid var(--border-2,rgba(245,239,228,0.15));
  border-radius:999px;
  padding:3px;margin-right:12px;
  background:rgba(40,18,64,0.35);
  backdrop-filter:blur(4px);
}
.lang-switch .lang-opt{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:32px;height:26px;padding:0 10px;
  border-radius:999px;
  font-family:var(--ff-mono,'JetBrains Mono',monospace);
  font-size:0.68rem;font-weight:700;letter-spacing:0.1em;
  text-decoration:none;color:var(--text-dim,rgba(245,239,228,0.7));
  transition:background 200ms ease, color 200ms ease;
}
.lang-switch .lang-opt:hover{color:var(--cream,#F5EFE4)}
.lang-switch .lang-opt.is-current{
  background:var(--accent,#FF8900);
  color:var(--ink,#120820);
}
.lang-switch .lang-opt.is-current:hover{background:var(--accent-hot,#FF5837)}

/* Adjust nav spacing when switcher is visible */
@media (max-width:960px){
  .lang-switch{margin-right:8px;padding:2px}
  .lang-switch .lang-opt{min-width:28px;height:24px;font-size:0.64rem;padding:0 8px}

  /* Issue 1: Hide lang-switch from top bar, JS moves it into sidebar */
  .nav-inner > .lang-switch{display:none}

  /* Issue 1: Tighten nav-inner on mobile */
  .nav-inner{gap:0.75rem}

  /* Show lang-switch when placed inside nav-links (sidebar) */
  .nav-links .lang-switch{
    display:inline-flex !important;
    margin-top:auto;
    margin-right:0;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE CRITICAL FIXES — Issues 1, 2, 3 + audit
   ═══════════════════════════════════════════════════════════════════ */

/* Global overflow prevention */
html{overflow-x:hidden}

/* Word break for long text on small screens */
@media (max-width:640px){
  body{word-break:break-word;-webkit-hyphens:auto;hyphens:auto}
}

/* ── Issue 1: Lang switch — handled above in 960px block ── */

/* ── Issue 2: Carousels — add touch scrolling override on mobile ── */
@media (max-width:960px){
  .logo-marquee,
  .sectors-marquee{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  .logo-marquee::-webkit-scrollbar,
  .sectors-marquee::-webkit-scrollbar{display:none}

  .logo-item,
  .sector-tile{
    scroll-snap-align:start;
  }
}

/* ── Issue 3: All grids collapse properly on mobile ── */

/* Container padding on small screens */
@media (max-width:480px){
  .container{padding:0 16px}
  :root{--container:calc(100% - 32px)}
}

/* Sectors marquee — 1 col wrap on small mobile */
@media (max-width:640px){
  .sectors-track{
    animation:none !important;
    flex-wrap:wrap;
    width:100% !important;
    gap:12px;
    padding:4px 0;
  }
  .sector-tile{flex:1 1 100% !important;min-width:0}
  .sector-tile-flagship{flex:1 1 100% !important}
}

/* Offer grid — already 1fr at 960px, confirmed */

/* Case grid — already responsive, just tighten */
@media (max-width:480px){
  .case-grid{gap:16px}
}

/* Blog grid — force 1 col on small */
@media (max-width:480px){
  .blog-grid{grid-template-columns:1fr}
}

/* Studios grid — already handled at 1100 and 640 */

/* Metrics / stats — ensure 1 col on very small */
@media (max-width:480px){
  .metrics-primary{grid-template-columns:1fr}
  .metric-block{border-right:0;border-bottom:1px solid var(--border)}
  .metric-block:last-child{border-bottom:0}
}

/* Footer — already responsive at 980/560 */

/* Job cards — stack on mobile */
@media (max-width:640px){
  .job-card{grid-template-columns:1fr;gap:12px;padding:20px}
}

/* Sec-head — already 1fr at 900px */

/* Trust grid — already 1fr at 900px */

/* ── Additional audit fixes ── */

/* Hero typewriter — clamp font to not overflow on 360px */
@media (max-width:480px){
  h1{font-size:clamp(1.75rem, 8vw, 2.5rem)}
  .hero{padding-top:100px;padding-bottom:60px;min-height:auto}
  .hero-content{padding:0 4px}
}

/* Hero carousel phrases — fit on small screens */
@media (max-width:480px){
  .hero-slide-phrase{max-width:92%}
  .phrase-text{font-size:clamp(1.1rem, 4.5vw, 1.5rem)}
  .phrase-bottom-left,
  .phrase-bottom-wide{bottom:20%}
}

/* Scroll bands — readable on mobile */
@media (max-width:640px){
  .scroll-band{min-height:50vh}
  .scroll-band-headline{font-size:clamp(1.5rem, 6vw, 2.5rem);padding:0 16px}
}

/* Contact form — already 1fr at 640px */

/* Back-to-top — safe position */
#back-to-top{
  z-index:50;
}

/* Hero analyzer brand badge — don't overflow */
@media (max-width:480px){
  .hero-slide-analyzer-brand{display:none}
}

/* ── Very small phones (360px and below) ── */
@media (max-width:400px){
  :root{--container:calc(100% - 24px)}
  .container{padding:0 12px}

  h1{font-size:clamp(1.5rem, 7.5vw, 2rem)}
  h2{font-size:clamp(1.4rem, 6vw, 1.75rem)}
  h3{font-size:clamp(1.1rem, 4.5vw, 1.4rem)}

  .hero-meta{gap:12px 0}
  .hero-meta-label{font-size:9px}
  .hero-meta-value{font-size:0.875rem}

  .nav{padding:0 8px}
  .nav-inner{gap:0.5rem}
  .brand img{height:26px}
  .nav-toggle{width:36px;height:36px}

  .offer-card{padding:28px 20px 24px;min-height:auto}
  .offer-card h3{font-size:1.4rem}

  .case-card .case-body{padding:16px}

  .footer-bottom{flex-direction:column;align-items:flex-start;gap:16px}

  .btn{padding:12px 20px;font-size:0.875rem}
}

