/* ══════════════════════════════════════════════════════════════
   FONTS.CSS — Declaración de fuentes self-hosted
   Solo @font-face. Las reglas de body van en styles.css.
   ══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Sora';
  src: url('/blog/wp-content/themes/generatepress-child/assets/fonts/sora-v12-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sora';
  src: url('/blog/wp-content/themes/generatepress-child/assets/fonts/sora-v12-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Preload hint (añadir en PHP head via getFontPreloads()):
   <link rel="preload" href="<?= BASE_PATH ?>/assets/fonts/sora-v12-latin-700.woff2"
         as="font" type="font/woff2" crossorigin>                               */
/**
 * STYLES.CSS — Alterlatina
 * Arquitecto de Sistemas Visuales
 * Variables, componentes, y motion design precisos
 * Basado en PROMPT_MAESTRO_ALTERLATINA_v6_SORA.md
 */

/* @font-face declarado en fonts.css — no duplicar aquí */

/* ══════════════════════════════════════════════════════════════
   TOKENS DE DISEÑO — Raíz
   ══════════════════════════════════════════════════════════════ */

:root {
  /* CLARO */
  --white:         #FFFFFF;
  --gray-100:      #F1F5F9;
  --gray-200:      #E2E8F0;
  --text-main:     #060d1f;
  --text-muted:    #475569;
  --text-faint:    #64748b;  /* WCAG AA: 4.65:1 sobre blanco */

  /* ACENTO (universal) */
  --cyan:          #0C5DC5;
  --cyan-hover:    #1A56DB;

  /* OSCURO */
  --dark-0:        #060d1f;  /* Z=0 */
  --dark-1:        #0b1628;  /* Z=1 */
  --dark-2:        #162540;  /* Z=2 */

  /* TIPOGRAFÍA */
  --font-sora:     'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* TIPOGRAFÍA FLUIDA CON clamp() */
  --text-h1:       clamp(52px, 7vw, 96px);
  --text-h2:       clamp(32px, 4vw, 52px);
  --text-h3:       clamp(20px, 2.5vw, 32px);
  --text-h4:       clamp(16px, 1.8vw, 22px);
  --text-body:     clamp(15px, 1.2vw, 17px);
  --text-dato:     clamp(64px, 10vw, 120px);
  --text-eyebrow:  9px;
  --text-meta:     10px;

  /* FONT WEIGHTS */
  --font-weight-light:   300;
  --font-weight-regular: 400;
  --font-weight-medium:  500;
  --font-weight-semibold: 600;
  --font-weight-bold:    700;

  /* LINE HEIGHTS */
  --line-height-tight:   0.88;
  --line-height-snug:    1;
  --line-height-normal:  1.1;
  --line-height-relaxed: 1.2;
  --line-height-loose:   1.6;
  --line-height-body:    1.8;

  /* LETTER SPACING */
  --letter-spacing-tighter: -0.06em;
  --letter-spacing-tight:   -0.04em;
  --letter-spacing-normal:  -0.03em;
  --letter-spacing-snug:    -0.02em;
  --letter-spacing-wide:    0.12em;
  --letter-spacing-wider:   0.14em;
  --letter-spacing-widest:  0.4em;

  /* ESPACIADO BASE 8px */
  --sp-xs:         4px;
  --sp-sm:         8px;
  --sp-base:       16px;
  --sp-md:         24px;
  --sp-lg:         40px;
  --sp-xl:         64px;
  --sp-hero:       96px;
  --sp-mega:       120px;

  /* BORDES Y RADIO */
  --radius-sm:     4px;
  --radius-base:   8px;
  --radius-pill:   100px;

  /* SOMBRAS */
  --shadow-sm:     0 1px 2px rgba(6, 13, 31, 0.05);
  --shadow-base:   0 4px 6px rgba(6, 13, 31, 0.07);
  --shadow-md:     0 8px 16px rgba(6, 13, 31, 0.1);
  --shadow-lg:     0 16px 32px rgba(6, 13, 31, 0.12);

  /* TRANSICIONES */
  --duration-micro: 150ms;
  --duration-base: 400ms;
  --duration-slow: 600ms;

  /* CURVAS DE BÉZIER */
  --ease-in:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);

  /* ═══════════════════════════════════════════════════════════
     ALIASES DE COMPATIBILIDAD
     Permiten que componentes usen nombres de design-system.css
     sin romper el sistema de tokens principal
     ═══════════════════════════════════════════════════════════ */
  
  /* Backgrounds */
  --color-bg-white:    var(--white);
  --color-bg-gray:     var(--gray-100);
  --color-bg-dark:     var(--dark-0);
  --color-bg-dark-alt: var(--dark-1);
  
  /* Text */
  --color-text-main:       var(--text-main);
  --color-text-muted:      var(--text-muted);
  --color-text-faint:      var(--text-faint);
  --color-text-inv:        #e8e9f0;
  --color-text-inv-muted:  #9ca3b8;
  
  /* Lines */
  --color-line-light: var(--gray-200);
  --color-line-dark:  rgba(255, 255, 255, 0.07);
  
  /* Accent */
  --color-cyan:    var(--cyan);
  --color-cyan-10: rgba(12, 93, 197, 0.10);
  --color-cyan-20: rgba(12, 93, 197, 0.20);
  
  /* Typography */
  --font-heading: var(--font-sora);
  --font-body:    var(--font-sora);
  
  /* Radius */
  --radius-xl:   20px;
  --radius-lg:   12px;
  --radius-md:   var(--radius-base);
  --radius-full: var(--radius-pill);
  
  /* Spacing */
  --space-1:  var(--sp-sm);
  --space-2:  var(--sp-base);
  --space-3:  var(--sp-md);
  --space-4:  32px;
  --space-6:  48px;
  --space-8:  var(--sp-xl);
  --space-10: var(--sp-hero);
  --space-12: var(--sp-mega);
  
  /* Transitions */
  --transition-fast: var(--duration-micro) var(--ease-smooth);
  --transition-base: var(--duration-base) var(--ease-smooth);
  
  /* Z-index */
  --z-base:   1;
  --z-sticky: 200;
  --z-modal:  500;
}

/* ══════════════════════════════════════════════════════════════
   RESET + BASE
   ══════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--white);
  color: var(--text-main);
  font-family: var(--font-sora);
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.8;
}

/* ══════════════════════════════════════════════════════════════
   TIPOGRAFÍA — Headings y texto
   ══════════════════════════════════════════════════════════════ */

h1 {
  font-size: clamp(56px, 7vw, 88px);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text-main);
  margin-bottom: var(--sp-md);
}

h2 {
  font-size: var(--text-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: var(--sp-md);
}

h3 {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-snug);
  margin-bottom: var(--sp-base);
}

h4 {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--sp-base);
}

p {
  margin-bottom: var(--sp-md);
  max-width: 68ch;
  line-height: var(--line-height-body);
}

strong {
  font-weight: var(--font-weight-bold);
  color: var(--text-main);
}

/* ══════════════════════════════════════════════════════════════
   EYEBROW — Elemento narrativo de contexto
   ══════════════════════════════════════════════════════════════ */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
  font-size: var(--text-eyebrow);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.85;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   DATO DISPLAY — Número gigante de precisión
   ══════════════════════════════════════════════════════════════ */

.dato-display {
  font-size: var(--text-dato);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tighter);
  color: var(--cyan);
  margin-bottom: var(--sp-base);
}

.dato-display + .dato-label {
  font-size: var(--text-meta);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-lg);
}

/* ══════════════════════════════════════════════════════════════
   GHOST NUMBER — Fondo tipográfico arquitectónico
   ══════════════════════════════════════════════════════════════ */

.ghost-number {
  font-size: clamp(100px, 18vw, 220px);
  font-weight: var(--font-weight-bold);
  color: currentColor;
  opacity: 0.04;
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tighter);
  pointer-events: none;
  user-select: none;
}

/* ══════════════════════════════════════════════════════════════
   CONTAINER — Anchura máxima y padding responsivo
   ══════════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(48px, 6vw, 96px);
}

/* ══════════════════════════════════════════════════════════════
   GRID — Auto-fit con min 280px
   ══════════════════════════════════════════════════════════════ */

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

/* ══════════════════════════════════════════════════════════════
   SECCIONES — Dualidad ritmo base/alt/oscuro
   ══════════════════════════════════════════════════════════════ */

section {
  padding-block: clamp(var(--sp-xl), 12vw, var(--sp-mega));
  scroll-margin-top: var(--sp-hero);
}

.section--alt {
  background: var(--gray-100);
}

.section--dark {
  background: var(--dark-0);
  color: #e8e9f0;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #e8e9f0;
}

.section--dark p {
  color: #9ca3b8;
}

/* Eyebrow en dark — forzar color y opacidad correctos */
.section--dark .eyebrow {
  color: var(--cyan);
  opacity: 0.85;
}

.section--dark .eyebrow::before {
  background: var(--cyan);
}

/* ══════════════════════════════════════════════════════════════
   CARDS — Base y oscuras
   ══════════════════════════════════════════════════════════════ */

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-base);
  padding: var(--sp-xl);
  box-shadow: 0 0 12px rgba(12, 93, 197, 0.06),
              inset 0 0 16px rgba(12, 93, 197, 0.03);
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 200ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 93, 197, 0.4);
  box-shadow: 0 0 20px rgba(12, 93, 197, 0.12),
              inset 0 0 24px rgba(12, 93, 197, 0.05);
}

.card--dark {
  background: var(--dark-2);
  border-color: rgba(255, 255, 255, 0.07);
  color: #9ca3b8;
  box-shadow: none;
}

.card--dark:hover {
  border-color: rgba(12, 93, 197, 0.4);
  box-shadow: 0 0 24px rgba(12, 93, 197, 0.12);
}

/* ══════════════════════════════════════════════════════════════
   TECH CORNER — Lujo refinado en cyan
   Implementa las esquinas técnicas del PROMPT_MAESTRO v6
   ══════════════════════════════════════════════════════════════ */

.tech-corner {
  position: relative;
}

.tech-corner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-top: 1.5px solid var(--cyan);
  border-left: 1.5px solid var(--cyan);
  opacity: 0.7;
  transition: opacity 200ms ease, width 200ms ease, height 200ms ease;
}

.tech-corner::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-bottom: 1.5px solid var(--cyan);
  border-right: 1.5px solid var(--cyan);
  opacity: 0.7;
  transition: opacity 200ms ease, width 200ms ease, height 200ms ease;
}

/* Hover: las esquinas se expanden levemente */
.tech-corner:hover::before,
.tech-corner:hover::after {
  opacity: 1;
  width: 20px;
  height: 20px;
}

/* ══════════════════════════════════════════════════════════════
   BORDE DE ACENTO IZQUIERDO — Para citas o datos destacados
   ══════════════════════════════════════════════════════════════ */

.accent-border {
  border-left: 3px solid var(--cyan);
  box-shadow: inset 3px 0 20px rgba(12, 93, 197, 0.15);
  padding-left: var(--sp-md);
}

/* ══════════════════════════════════════════════════════════════
   BOTONES
   ══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-micro) var(--ease-smooth);
  font-family: var(--font-sora);
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--cyan);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--cyan-hover);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--secondary {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(12, 93, 197, 0.3);
}

.btn--secondary:hover {
  border-color: var(--cyan);
  background: rgba(12, 93, 197, 0.06);
}

.btn--pill {
  border-radius: var(--radius-pill);
  padding: 12px 24px;
}

/* ══════════════════════════════════════════════════════════════
   LINKS — Sin subrayado nativo
   ══════════════════════════════════════════════════════════════ */

a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(12, 93, 197, 0.3);
  transition: border-color var(--duration-micro) var(--ease-smooth);
}

a:hover {
  border-bottom-color: var(--cyan);
}

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════
   INPUT + FORMULARIOS
   ══════════════════════════════════════════════════════════════ */

input,
textarea,
select {
  font-family: var(--font-sora);
  font-size: var(--text-body);
  width: 100%;
  padding: var(--sp-base);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-base);
  background: var(--white);
  color: var(--text-main);
  transition: all var(--duration-micro) var(--ease-smooth);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(12, 93, 197, 0.1);
}

label {
  display: block;
  margin-bottom: var(--sp-sm);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--text-main);
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-sora);
}

/* ══════════════════════════════════════════════════════════════
   IMAGENES
   ══════════════════════════════════════════════════════════════ */

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-base);
}

picture {
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   VISUALIZACIÓN DE IA — Bounding boxes, scan line, tags
   ══════════════════════════════════════════════════════════════ */

.ai-viz {
  background: var(--dark-1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-base);
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.ai-viz__scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  opacity: 0.5;
  animation: scan-line 4s linear infinite;
}

@keyframes scan-line {
  from { top: 0; }
  to { top: calc(100% - 2px); }
}

.ai-viz__bbox {
  position: absolute;
  border: 1.5px solid var(--cyan);
  pointer-events: none;
}

.ai-viz__tag {
  position: absolute;
  font-size: 10px;
  font-weight: var(--font-weight-light);
  color: #e8e9f0;
  opacity: 0;
  animation: tag-fade-in 0.6s ease forwards;
}

@keyframes tag-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-viz__confidence {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1.5px;
  overflow: hidden;
}

.ai-viz__confidence-fill {
  height: 100%;
  background: var(--cyan);
  animation: confidence-fill 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  width: 0;
}

@keyframes confidence-fill {
  from { width: 0%; }
  to   { width: 98%; }
}

/* ══════════════════════════════════════════════════════════════
   CAPA 5 — ANIMACIONES SEMÁNTICAS
   Test: ¿evoca datos, IA, video o transformación? Si no: no entra.
   ══════════════════════════════════════════════════════════════ */

/* Reveal al entrar en viewport
   opacity 0→1 + translateY 20px→0
   Semántico: dato que emerge del proceso (datos emergentes) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay escalonado para listas de elementos */
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Pulse dot — señal activa, proceso en curso
   Semántico: transmisión activa, dato siendo procesado */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-signal 2s ease infinite;
}

@keyframes pulse-signal {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(12, 93, 197, 0);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(12, 93, 197, 0);
    opacity: 0.4;
  }
}

/* Hover lift en bento y cards — Material design preciso
   Semántico: elemento que cobra vida al ser tocado */
.bento:hover,
.client-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tag fade-in escalonado — metadata emergiendo del análisis
   Semántico: clasificaciones que aparecen del proceso IA */
@keyframes tag-emerge {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respeto prefers-reduced-motion — no negociable */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  
  .ai-viz__scan-line {
    animation: none;
  }
  
  .ai-viz__confidence-fill {
    animation: none;
    width: var(--confidence, 85%);
  }
  
  .pulse-dot {
    animation: none;
  }
  
  .ms-confidence-bar__fill {
    animation: none;
    width: 98%;
  }
  
  .scan-container__line {
    animation: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

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

  .container {
    padding-inline: var(--sp-md);
  }

  h1 {
    font-size: clamp(36px, 6vw, 52px);
    letter-spacing: -0.02em;
  }

  .sidebar-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  input,
  textarea,
  select {
    font-size: 16px; /* Evitar zoom en iOS */
  }
}

/* ══════════════════════════════════════════════════════════════
   UTILIDADES — Rápidas
   ══════════════════════════════════════════════════════════════ */

.fade-in {
  animation: fade-in var(--duration-slow) var(--ease-in) forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }

.mt-xs { margin-top: var(--sp-xs); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-base { margin-top: var(--sp-base); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }

.mb-xs { margin-bottom: var(--sp-xs); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-base { margin-bottom: var(--sp-base); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }

.gap-base { gap: var(--sp-base); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }

/* ══════════════════════════════════════════════════════════════
   SECURETYHEADERS — Protección básica (vía .htaccess)
   ══════════════════════════════════════════════════════════════ */

/* Visto que mod_headers no siempre está disponible en shared hosting,
   estas directivas se completan en PHP headers y .htaccess */

/* ══════════════════════════════════════════════════════════════
   HERO SECTION — Sección principal de cada página
   ══════════════════════════════════════════════════════════════ */

.hero {
  background: var(--gray-100);
  min-height: auto;
  display: block;
  padding-top: 24px;
  padding-bottom: 60px;
  padding-left: clamp(40px, 8vw, 120px);
  padding-right: clamp(40px, 8vw, 120px);
}

.hero__content {
  max-width: 900px;
}

.hero__subtitle {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-muted);
  line-height: var(--line-height-loose);
  margin-bottom: var(--sp-lg);
}

.hero__cta {
  display: flex;
  gap: var(--sp-base);
  flex-wrap: wrap;
}

.hero__visual {
  margin-top: var(--sp-xl);
}

/* ══════════════════════════════════════════════════════════════
   FEATURE CARDS — Tarjetas de características
   ══════════════════════════════════════════════════════════════ */

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-base);
  padding: var(--sp-lg);
  box-shadow: 0 0 12px rgba(12, 93, 197, 0.06),
              inset 0 0 16px rgba(12, 93, 197, 0.03);
  transition: all var(--duration-base) var(--ease-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 93, 197, 0.4);
  box-shadow: 0 0 20px rgba(12, 93, 197, 0.12),
              inset 0 0 24px rgba(12, 93, 197, 0.05);
}

.feature-card h3 {
  color: var(--text-main);
  margin-bottom: var(--sp-base);
}

/* ══════════════════════════════════════════════════════════════
   SERVICE CARDS — Tarjetas de servicios con iconos
   ══════════════════════════════════════════════════════════════ */

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-base);
  padding: var(--sp-xl);
  box-shadow: 0 0 12px rgba(12, 93, 197, 0.06),
              inset 0 0 16px rgba(12, 93, 197, 0.03);
  transition: all var(--duration-base) var(--ease-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 93, 197, 0.4);
  box-shadow: 0 0 20px rgba(12, 93, 197, 0.12),
              inset 0 0 24px rgba(12, 93, 197, 0.05);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 93, 197, 0.1);
  color: var(--cyan);
  border-radius: var(--radius-base);
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--sp-base);
}

.service-card h3 {
  color: var(--text-main);
  margin-bottom: var(--sp-base);
}

/* ══════════════════════════════════════════════════════════════
   COUNTER — Animación de contadores
   ══════════════════════════════════════════════════════════════ */

.counter {
  font-size: var(--text-dato);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tighter);
  color: var(--cyan);
  margin-bottom: var(--sp-base);
}

.dato-label {
  font-size: var(--text-meta);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ══════════════════════════════════════════════════════════════
   TEAM MEMBER — Tarjetas de equipo
   ══════════════════════════════════════════════════════════════ */

.team-member {
  text-align: center;
}

.team-member h4 {
  color: var(--text-main);
  margin-bottom: var(--sp-sm);
}

.team-member .role {
  font-size: 14px;
  color: var(--cyan);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--sp-base);
}

/* ══════════════════════════════════════════════════════════════
   FOUNDER PHOTO — Foto del fundador
   ══════════════════════════════════════════════════════════════ */

.founder-photo {
  border-radius: var(--radius-base);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ══════════════════════════════════════════════════════════════
   SKIP TO CONTENT — Accesibilidad
   ══════════════════════════════════════════════════════════════ */

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--cyan);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  border: none;
  z-index: 1000;
}

.skip-to-content:focus {
  top: 0;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero__cta {
    flex-direction: column;
  }
  
  .hero__cta .btn {
    width: 100%;
  }
  
  .timeline {
    padding-left: var(--sp-md);
  }
  
  .timeline__dot {
    left: calc(-1 * var(--sp-md) - 6px);
  }
}

/* ══════════════════════════════════════════════════════════════
   ACC — Puntuación en cyan (H1, H2)
   ══════════════════════════════════════════════════════════════ */

.acc {
  color: var(--cyan);
}

/* ══════════════════════════════════════════════════════════════
   SECTION--HERO — Padding de hero + grid 2 columnas
   ══════════════════════════════════════════════════════════════ */

.section--hero {
  background: var(--white);
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.section--hero .container {
  padding-inline: clamp(64px, 8vw, 120px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--sp-xl);
}

.hero__copy {
  max-width: 680px;
  min-height: 280px;
}

.hero__lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-muted);
  line-height: var(--line-height-body);
  margin-bottom: var(--sp-lg);
  max-width: 56ch;
}

.hero__ghost {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  user-select: none;
}

.hero__ghost .ghost-number {
  font-size: clamp(80px, 14vw, 200px);
  line-height: var(--line-height-tight);
  opacity: 0.04;
  color: var(--text-main);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-sm);
  margin-top: var(--sp-xl);
  opacity: 0.3;
}

.scroll-indicator__label {
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--text-main);
}

.scroll-indicator__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
}

@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__ghost {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   BENTO GRID — 2x2 en sección con ritmo de contraste
   ESTÁNDAR: usar dentro de section--alt (#F1F5F9) para que
   las bento--light (blancas) destaquen sobre el fondo gris.
   ══════════════════════════════════════════════════════════════ */

.bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-base);
  margin-top: var(--sp-lg);
}

.section--dark {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.ghost-number--bg {
  position: absolute;
  right: -2%;
  top: -4%;
  font-size: clamp(140px, 24vw, 320px);
  font-weight: var(--font-weight-bold);
  color: #fff;
  opacity: 0.025;
  letter-spacing: var(--letter-spacing-tighter);
  line-height: var(--line-height-snug);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section--dark .container {
  position: relative;
  z-index: 1;
}

.bento {
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 200ms var(--ease-smooth),
              border-color 200ms var(--ease-smooth),
              box-shadow 200ms var(--ease-smooth);
  will-change: transform;
}

/* ── GLOW BORDER (punto 1 del PROMPT_MAESTRO v6) ──────────────
   Glow sutil permanente: el borde irradia levemente su cyan
   El hover intensifica el glow → sensación de energía contenida */
.bento--dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 0 rgba(12, 93, 197, 0),
              inset 0 0 0 0 rgba(12, 93, 197, 0);
}

.bento--dark:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 93, 197, 0.35);
  box-shadow: 0 4px 24px rgba(12, 93, 197, 0.15),
              inset 0 0 40px rgba(12, 93, 197, 0.04);
}

/* ── BENTO LIGHT (para fondo claro) ──────────────────────────
   Cards blancas con bordes y sombras sutiles sobre fondo gris */
.bento--light {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 0 12px rgba(12, 93, 197, 0.06),
              inset 0 0 16px rgba(12, 93, 197, 0.03);
}

.bento--light:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 93, 197, 0.4);
  box-shadow: 0 0 24px rgba(12, 93, 197, 0.12),
              inset 0 0 32px rgba(12, 93, 197, 0.05);
}

.bento--light h3 {
  color: var(--text-main);
}

.bento--light p {
  color: var(--text-muted);
}

.bento--cyan {
  background: var(--cyan);
}

.bento--cyan .dato-display {
  color: var(--dark-0);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: var(--font-weight-bold);
}

.bento__description--cyan {
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-loose);
  color: var(--dark-0);
  margin-top: var(--sp-base);
  max-width: 28ch;
}

.bento__ghost {
  position: absolute;
  right: var(--sp-base);
  top: var(--sp-sm);
  font-size: clamp(60px, 8vw, 100px);
  font-weight: var(--font-weight-bold);
  color: currentColor;
  opacity: 0.04;
  line-height: var(--line-height-snug);
  pointer-events: none;
  user-select: none;
}

.bento__content {
  position: relative;
  z-index: 1;
}

.eyebrow--inv {
  color: var(--cyan);
  opacity: 0.85;
}

.eyebrow--center {
  justify-content: center;
}

.dato-label--dark {
  font-size: var(--text-meta);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: rgba(6, 13, 31, 0.6);
  margin-bottom: var(--sp-sm);
}

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

/* ══════════════════════════════════════════════════════════════
   WAVEFORM — Barras de señal (CSS puro)
   ══════════════════════════════════════════════════════════════ */

/* .waveform y .waveform__bar definidos en components/waveform.css — no duplicar */


/* ══════════════════════════════════════════════════════════════
   AI-VIZ BENTO — Versión compacta
   ══════════════════════════════════════════════════════════════ */

.ai-viz--bento {
  aspect-ratio: auto;
  height: 64px;
  margin-top: var(--sp-base);
}

.ai-viz--bento .ai-viz__tag {
  top: var(--sp-sm);
  left: var(--sp-sm);
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(12, 93, 197, 0.15);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  border: 0.5px solid rgba(12, 93, 197, 0.3);
  animation: tag-fade-in 0.6s 0.8s ease forwards;
}

/* ══════════════════════════════════════════════════════════════
   SCAN CONTAINER — Procesamiento de archivo (CSS puro)
   ══════════════════════════════════════════════════════════════ */

.scan-container {
  position: relative;
  height: 48px;
  background: transparent;
  border: 1px solid rgba(12, 93, 197, 0.25);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(12, 93, 197, 0.05);
}

.scan-container__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.8;
  animation: scan-line 7s linear infinite;
}

.scan-container__label {
  font-size: 10px;
  font-family: 'Courier New', Courier, monospace;
  color: rgba(12, 93, 197, 0.75);
  letter-spacing: 0.12em;
  pointer-events: none;
  user-select: none;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
   HERITAGE — Grid + stats + quote circle
   ══════════════════════════════════════════════════════════════ */

.heritage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-xl);
}

.heritage__copy {
  position: relative;
}

.ghost-number--heritage {
  position: absolute;
  top: -0.15em;
  left: -0.05em;
  font-size: clamp(60px, 10vw, 130px);
  font-weight: 700;
  color: currentColor;
  opacity: 0.04;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.heritage__copy > *:not(.ghost-number--heritage) {
  position: relative;
  z-index: 1;
}

.section__lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-lg);
  max-width: 52ch;
}

.stats-row {
  display: flex;
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}

.stat__value {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--sp-xs);
}

.stat__label {
  font-size: var(--text-meta);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.quote-circle {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl);
  margin-inline: auto;
}

/* Quote circle en sección oscura */
.section--dark .quote-circle {
  background: var(--dark-1);
  border-color: rgba(255, 255, 255, 0.08);
}

.quote-circle__inner {
  text-align: center;
}

.quote-circle__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--sp-base);
}

.quote-circle__text {
  font-size: clamp(13px, 1.2vw, 15px);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-base);
  max-width: 22ch;
  margin-inline: auto;
}

/* Quote text en sección oscura */
.section--dark .quote-circle__text {
  color: #9ca3b8;
}

.quote-circle__author {
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  color: var(--text-main);
  display: block;
  margin-bottom: var(--sp-xs);
}

/* Quote author en sección oscura */
.section--dark .quote-circle__author {
  color: #e8e9f0;
}

.quote-circle__role {
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Quote role en sección oscura */
.section--dark .quote-circle__role {
  color: rgba(176, 179, 198, 0.7);
}

/* ══════════════════════════════════════════════════════════════
   HERITAGE AI VISUALIZATION — Canvas animation con partículas
   ══════════════════════════════════════════════════════════════ */

.heritage__viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.ai-canvas-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--dark-1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 50%;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(12, 93, 197, 0.6) 50%, 
    transparent 100%);
  box-shadow: 0 0 8px rgba(12, 93, 197, 0.8);
  animation: scan-move 3s ease-in-out infinite;
}

@keyframes scan-move {
  0%, 100% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.heritage-quote-wrapper {
  text-align: center;
  max-width: 360px;
}

.heritage-quote-text {
  font-size: clamp(13px, 1.2vw, 15px);
  font-style: italic;
  color: #9ca3b8;
  line-height: 1.6;
  margin-bottom: var(--sp-base);
  max-width: 28ch;
  margin-inline: auto;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.heritage__viz:hover .heritage-quote-text {
  opacity: 1;
}

@media (max-width: 768px) {
  .heritage__grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    gap: var(--sp-md);
  }
  .quote-circle {
    max-width: 280px;
  }
}

/* ══════════════════════════════════════════════════════════════
   CTA SECTION — Centrado, fricción mínima
   ══════════════════════════════════════════════════════════════ */

/* .section--cta, .cta__inner → components/cta.css */

/* ══════════════════════════════════════════════════════════════
   NOSOTROS — Timeline layout + Arturo grid + Equipo
   ══════════════════════════════════════════════════════════════ */

.timeline-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0 64px;
  align-items: start;
}

/* CRÍTICO: sin esto el track no cede ancho en el grid padre */
.timeline-track {
  min-width: 0;
}

.timeline-track h2 {
  margin-bottom: var(--sp-xl);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: 110px 48px 1fr;
  align-items: start;
  padding-bottom: 72px;
  position: relative;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__year {
  font-size: clamp(40px, 4.5vw, 68px);
  font-weight: 300;
  line-height: 1;
  text-align: right;
  color: var(--cyan);
  letter-spacing: -0.04em;
  opacity: 0.7;
  padding-top: 4px;
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline__dot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}

.timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(12, 93, 197, 0.45);
  flex-shrink: 0;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline__line {
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  flex: 1;
  min-height: 60px;
  margin-top: 6px;
}

.timeline__item:last-child .timeline__line {
  display: none;
}

/* CRÍTICO: sin esto el texto no envuelve bien dentro del grid */
.timeline__content {
  min-width: 0;
  padding-left: 28px;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  word-break: break-word;
}

.timeline__title {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  color: #e8e9f0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline__detail {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.8;
  color: #9ca3b8;
  font-weight: 300;
  margin: 0;
  word-break: break-word;
}

.timeline__item:hover .timeline__title {
  color: #0C5DC5;
}

.timeline__item:hover .timeline__year {
  opacity: 1;
}

/* Grid Arturo: foto izq + copy der */
.arturo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.arturo-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-lg);
}

.arturo-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-base);
}

/* Equipo section — grid centrado */
.equipo-inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.equipo-inner .eyebrow {
  justify-content: center;
}

/* Spec grid — celdas de especificaciones técnicas */
.spec-cell {
  padding: var(--sp-base) var(--sp-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
}

.spec-cell--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.spec-key {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-xs);
}

/* spec-val en contexto claro */
.spec-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

/* spec-val en contexto oscuro */
.spec-cell--dark .spec-key {
  color: rgba(176, 179, 198, 0.7);
}

.spec-cell--dark .spec-val {
  color: var(--color-text-inv);
}

/* spec-cell-grid: wrapper 2-col para el sistema de .spec-cell */
.spec-cell-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

/* En sección dark: agrupar con borde único */
.section--dark .spec-cell-grid {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
  gap: 0;
}

.section--dark .spec-cell-grid .spec-cell {
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
}

@media (max-width: 768px) {
  .timeline-layout {
    grid-template-columns: 1fr;
  }
  .timeline-sidebar {
    position: static;
  }
  .arturo-grid {
    grid-template-columns: 1fr;
  }
  .spec-cell-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════
   CLIENTES — ms-card, result-grid, client-card, also-list
   ══════════════════════════════════════════════════════════════ */

/* Tarjeta principal Microsoft — split 2 col */
.ms-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-base);
  overflow: hidden; /* clip interno necesario para dark side */
  margin-top: var(--sp-lg);
  /* Glow border Capa 6 — highlight del caso emblema */
  box-shadow: 0 0 24px rgba(12, 93, 197, 0.07),
              0 4px 16px rgba(6, 13, 31, 0.06);
  transition: box-shadow 250ms ease, border-color 250ms ease;
}

/* Para tech-corner: el wrapper necesita position:relative sin overflow */
.ms-card.tech-corner {
  overflow: visible;
}

/* Pero los hijos internos siguen siendo clıpped */
.ms-card.tech-corner .ms-card__context,
.ms-card.tech-corner .ms-card__data {
  overflow: hidden;
}

/* Mantener el border-radius visual con el overflow:visible del wrapper */
.ms-card.tech-corner .ms-card__context {
  border-radius: var(--radius-base) 0 0 var(--radius-base);
}

.ms-card.tech-corner .ms-card__data {
  border-radius: 0 var(--radius-base) var(--radius-base) 0;
}

.ms-card__context {
  background: var(--white);
  padding: var(--sp-xl);
  border-right: 1px solid var(--gray-200);
}

.ms-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-sm);
}

.ms-card__client {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-sm);
}

.ms-card__detail {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-md);
}

.ms-card__sep {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: var(--sp-md) 0;
}

.ms-card__sep--dark {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.ms-card__meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Lado oscuro de la card */
.ms-card__data {
  background: var(--dark-1);
  padding: var(--sp-xl);
  position: relative;
  overflow: hidden;
}

.ms-card__data .ghost-number--bg {
  font-size: clamp(80px, 14vw, 160px);
}

.ms-card__data-inner {
  position: relative;
  z-index: 1;
}

.ms-dato {
  font-size: clamp(64px, 10vw, 96px);
  font-weight: 300;
  color: var(--cyan);
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: var(--sp-xs);
}

.ms-dato-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(176, 179, 198, 0.7);
  line-height: 1.5;
  margin-bottom: var(--sp-md);
}

.ms-confidence-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(176, 179, 198, 0.6);
  margin-bottom: var(--sp-xs);
}

.ms-confidence-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--sp-sm);
}

.ms-confidence-bar__fill {
  height: 100%;
  width: 98%;
  background: var(--cyan);
  border-radius: 2px;
  animation: confidence-fill 1.2s var(--ease-in) forwards;
}

/* Grid de resultados verificables */
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-base);
  margin-top: var(--sp-lg);
}

.result-cell {
  padding: var(--sp-xl);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-base);
  text-align: center;
}

.result-cell__number {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300;
  color: var(--cyan);
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: var(--sp-sm);
}

.result-cell__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Grid de clientes */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-base);
  margin-top: var(--sp-lg);
}

.client-card {
  padding: var(--sp-lg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-base);
  background: var(--white);
  box-shadow: 0 0 12px rgba(12, 93, 197, 0.06),
              inset 0 0 16px rgba(12, 93, 197, 0.03);
  transition: border-color var(--duration-micro) var(--ease-smooth),
              box-shadow var(--duration-micro) var(--ease-smooth);
}

.client-card:hover {
  border-color: rgba(12, 93, 197, 0.3);
  box-shadow: 0 0 20px rgba(12, 93, 197, 0.12),
              inset 0 0 24px rgba(12, 93, 197, 0.05);
}

.client-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--sp-xs);
}

.client-card__detail {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Lista también */
.also-list {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.also-list__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}

.also-list__tags {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.also-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(12, 93, 197, 0.07);
  border: 0.5px solid rgba(12, 93, 197, 0.2);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

@media (max-width: 768px) {
  .ms-card {
    grid-template-columns: 1fr;
  }
  .ms-card__context {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
}

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

/* ══════════════════════════════════════════════════════════════
   SERVICIOS — anchor pills, service-anchor, waveform-lg
   ══════════════════════════════════════════════════════════════ */

/* Gap hero→S2: reducir el padding-top de la primera sección
   que sigue al hero para eliminar the doble-espacio visual.
   El hero ya tiene su propio padding-bottom grande. */
.section--hero + .section--base,
.section--hero + .section--alt {
  padding-top: clamp(40px, 6vw, 80px);
}

.anchor-pills {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
  flex-wrap: wrap;
}

.anchor-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  text-decoration: none;
  transition: color var(--duration-micro) var(--ease-smooth),
              border-color var(--duration-micro) var(--ease-smooth);
}

.anchor-pill:hover {
  color: var(--cyan);
  border-color: rgba(12, 93, 197, 0.3);
}

.service-anchor {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(12, 93, 197, 0.4);
  font-family: monospace;
  margin-bottom: var(--sp-base);
}

.case-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--sp-md);
  margin-top: calc(-1 * var(--sp-base));
}

/* .waveform--lg → components/waveform.css (fuente canónica) */

.tv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
  margin: var(--sp-lg) 0;
}

.tv-cell {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-gray);
  border: 1px solid var(--color-line-light);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.tv-cell__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--cyan);
}

.tv-cell__bar--full   { width: 100%; }
.tv-cell__bar--sixty  { width: 60%;  }
.tv-cell__bar--eighty { width: 80%;  }

/* ══════════════════════════════════════════════════════════════
   CONTACTO — form-wrap, arturo-mini
   ══════════════════════════════════════════════════════════════ */

.form-wrap {
  max-width: 600px;
  margin: 0 auto;
}

/* Sección de formulario: no duplicar padding del hero de arriba */
.section--form {
  padding-top: 0 !important;
}

.form-group {
  margin-bottom: var(--sp-lg);
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: var(--sp-sm);
}

.form-required {
  color: var(--cyan);
  margin-left: 3px;
}

.form-sep {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: var(--sp-xl) 0 var(--sp-lg);
}

.form-reassurance {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.form-reassurance li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: var(--sp-base);
  position: relative;
}

.form-reassurance li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 11px;
}

.form-promise {
  font-size: 12px;
  font-style: italic;
  color: var(--text-faint);
  margin-bottom: 0;
}

.feedback {
  padding: var(--sp-md);
  border-radius: var(--radius-base);
  margin-bottom: var(--sp-lg);
  font-size: 14px;
  font-weight: 600;
}

.feedback--success {
  background: rgba(12, 93, 197, 0.08);
  border: 1px solid rgba(12, 93, 197, 0.2);
  color: var(--cyan);
}

.feedback--error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #b91c1c; /* rojo sistémico — en línea con dark-0 gamut */
}

/* Mini bio de Arturo en contacto */
.arturo-mini {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  margin-top: var(--sp-md);
}

.arturo-mini__bio {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.arturo-mini__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--dark-1);
  border: 2px solid rgba(12, 93, 197, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.arturo-mini__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--sp-xs);
}

.arturo-mini__lead {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--sp-sm);
}

.arturo-mini__link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1px solid rgba(12, 93, 197, 0.3);
  padding-bottom: 2px;
}

@media (max-width: 480px) {
  .arturo-mini {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════════════════════════
   SR-ONLY — Accesibilidad texto oculto visualmente
   ══════════════════════════════════════════════════════════════ */

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* ══════════════════════════════════════════════════════════════
   PILARES — Sección tres columnas (nosotros.php)
   ══════════════════════════════════════════════════════════════ */

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 80px;
  align-items: start;
}

.pilar {
  padding-top: 8px;
}

.pilar .eyebrow {
  margin-bottom: 24px;
}

.pilar__title {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.pilar__title .acc {
  color: var(--cyan);
}

.pilar__body {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 36ch;
}

@media (max-width: 767px) {
  .pilares-grid {
    grid-template-columns: 1fr;
    gap: 48px 0;
  }

  .pilar__body {
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════
   ESTRUCTURA OPERATIVA — S4 nosotros.php
   ══════════════════════════════════════════════════════════════ */

.estructura__inner {
  padding-top: 8px;
}

.estructura__inner .eyebrow {
  margin-bottom: 48px;
}

.estructura__grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 96px;
  align-items: end;
  margin-bottom: 56px;
}

.estructura__heading {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

.estructura__body {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0;
  padding-bottom: 6px;
}

.estructura__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--gray-200);
}

.estructura__spec {
  padding: 28px 32px 0 0;
  border-right: 1px solid var(--gray-200);
}

.estructura__spec:last-child {
  padding: 28px 0 0 32px;
  border-right: none;
}

.estructura__spec:not(:first-child):not(:last-child) {
  padding: 28px 32px 0 32px;
}

.estructura__spec-number {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 300;
  color: var(--cyan);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 8px;
}

.estructura__spec-sup {
  font-size: 60%;
}

.estructura__spec-city {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 300;
  color: var(--cyan);
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 8px;
  padding-top: 6px;
}

.estructura__spec-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .estructura__grid-top {
    grid-template-columns: 1fr;
    gap: 32px 0;
  }

  .estructura__specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .estructura__spec:nth-child(2) {
    border-right: none;
  }

  .estructura__spec:nth-child(3) {
    border-right: 1px solid var(--gray-200);
    padding-left: 0;
  }

  .estructura__spec:last-child {
    padding-left: 32px;
  }
}

/* ══════════════════════════════════════════════════════════════
   WORDPRESS EDITOR — Estilos para contenido generado por Gutenberg
   ══════════════════════════════════════════════════════════════ */

/* Contenedor de entrada */
.entry-content {
  max-width: 72ch;
  margin-inline: auto;
}

/* Alineaciones de imagen nativas de WP */
.alignleft  { float: left;  margin: 0 var(--sp-lg) var(--sp-md) 0; }
.alignright { float: right; margin: 0 0 var(--sp-md) var(--sp-lg); }
.aligncenter { display: block; margin-inline: auto; }
.alignfull  { width: 100vw; margin-inline: calc(50% - 50vw); }
.alignwide  { width: calc(100% + var(--sp-xl)); margin-inline: calc(-1 * var(--sp-lg)); }

/* Caption de imágenes */
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  margin-top: var(--sp-sm);
}

/* Bloques de Gutenberg — reset de márgenes */
.wp-block-paragraph,
.wp-block-heading,
.wp-block-list,
.wp-block-image,
.wp-block-quote,
.wp-block-code,
.wp-block-preformatted {
  margin-bottom: var(--sp-md);
}

/* Quote */
.wp-block-quote {
  border-left: 3px solid var(--cyan);
  padding-left: var(--sp-md);
  box-shadow: inset 3px 0 20px rgba(12, 93, 197, 0.08);
}
.wp-block-quote p { color: var(--text-muted); font-style: italic; }
.wp-block-quote cite {
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--cyan);
}

/* Code */
.wp-block-code code,
.wp-block-preformatted pre {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-base);
  padding: var(--sp-md);
  display: block;
  overflow-x: auto;
  color: var(--text-main);
}

/* Separador */
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: var(--sp-xl) 0;
}

/* Cover block — reset de fuente */
.wp-block-cover { font-family: var(--font-sora); }

/* Tabla */
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.wp-block-table td,
.wp-block-table th {
  padding: var(--sp-sm) var(--sp-base);
  border: 1px solid var(--gray-200);
  text-align: left;
}
.wp-block-table th {
  font-weight: var(--font-weight-bold);
  background: var(--gray-100);
  font-size: 11px;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   GP LAYOUT RESET — Neutralizar wrappers de GeneratePress
   ══════════════════════════════════════════════════════════════ */

#page,
.site-content,
.inside-article,
.content-area,
.site-main {
  margin: 0;
  padding: 0;
  max-width: 100%;
  background: transparent;
}

/* ══════════════════════════════════════════════════════════════
   BLOG NAV — Header sticky del blog
   ══════════════════════════════════════════════════════════════ */

.blog-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(24px, 4vw, 96px);
}

.blog-nav__logo {
  display: flex;
  align-items: center;
  border-bottom: none;
}

.blog-nav__logo img {
  height: 28px;
  width: auto;
  display: block;
}

.blog-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-nav__link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: none;
  transition: color var(--duration-micro) var(--ease-smooth);
}

.blog-nav__link:hover {
  color: var(--cyan);
  border-bottom: none;
}

.blog-nav__link--active {
  color: var(--cyan);
}

@media (max-width: 768px) {
  .blog-nav__links {
    display: none;
  }
}


/* ══════════════════════════════════════════════════════════════
   BLOG FOOTER
   ══════════════════════════════════════════════════════════════ */

.blog-footer {
  background: var(--dark-0);
  padding: var(--sp-xl) 0;
}

.blog-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.blog-footer__logo {
  display: flex;
  align-items: center;
  border-bottom: none;
}

.blog-footer__logo img {
  height: 24px;
  width: auto;
  display: block;
}

.blog-footer__copy {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
}

@media (max-width: 480px) {
  .blog-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-sm);
  }
}


/* ══════════════════════════════════════════════════════════════
   POST DESTACADO (index.php — primer post)
   ══════════════════════════════════════════════════════════════ */

.featured-post {
  position: relative;
  border-radius: var(--radius-base);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: var(--dark-1);
  text-decoration: none;
  border-bottom: none;
  transition: transform 300ms var(--ease-smooth);
}

.featured-post:hover {
  transform: translateY(-2px);
  border-bottom: none;
}

.featured-post__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 600ms var(--ease-smooth);
}

.featured-post:hover .featured-post__bg {
  transform: scale(1.02);
}

.featured-post__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 13, 31, 0.96) 0%,
    rgba(6, 13, 31, 0.5) 50%,
    rgba(6, 13, 31, 0.1) 100%
  );
}

.featured-post__content {
  position: relative;
  z-index: 1;
  padding: var(--sp-xl);
  width: 100%;
}

.featured-post__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}

.featured-post__cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cyan);
}

.featured-post__sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}

.featured-post__date {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.featured-post__title {
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: #e8e9f0;
  margin-bottom: var(--sp-sm);
  max-width: 22ch;
}

.featured-post__excerpt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: var(--sp-md);
}

.featured-post__cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity 200ms var(--ease-smooth);
}

.featured-post:hover .featured-post__cta {
  opacity: 1;
}

/* Sección base (blanco) que envuelve el featured-post */
.section--base {
  background: var(--white);
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-xl);
}


/* ══════════════════════════════════════════════════════════════
   POST CARD (grid del archive)
   ══════════════════════════════════════════════════════════════ */

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-base);
  overflow: hidden;
  transition:
    transform 200ms var(--ease-smooth),
    border-color 200ms var(--ease-smooth),
    box-shadow 200ms var(--ease-smooth);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 93, 197, 0.4);
  box-shadow: 0 8px 32px rgba(6, 13, 31, 0.08),
              0 0 20px rgba(12, 93, 197, 0.08);
}

.post-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  border-bottom: none;
  color: inherit;
}

.post-card__link:hover {
  border-bottom: none;
}

.post-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease-smooth);
}

.post-card:hover .post-card__image img {
  transform: scale(1.04);
}

.post-card__body {
  padding: var(--sp-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.post-card__meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.post-card__cat {
  color: var(--cyan);
}

.post-card__title {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-main);
  margin: 0;
}

.post-card__excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.post-card__cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: var(--sp-xs);
  opacity: 0.7;
  transition: opacity 150ms var(--ease-smooth);
}

.post-card:hover .post-card__cta {
  opacity: 1;
}


/* ══════════════════════════════════════════════════════════════
   PAGINACIÓN
   ══════════════════════════════════════════════════════════════ */

.pagination {
  margin-top: var(--sp-xl);
  display: flex;
  justify-content: center;
}

.pagination ul {
  display: flex;
  gap: var(--sp-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--duration-micro) var(--ease-smooth);
}

.pagination .page-numbers:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.pagination .page-numbers.current {
  color: var(--white);
  background: var(--cyan);
  border-color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

.pagination .prev,
.pagination .next {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-width: auto;
  padding: 0 16px;
}


/* ══════════════════════════════════════════════════════════════
   SINGLE POST — HEADER
   ══════════════════════════════════════════════════════════════ */

.post-header {
  background: var(--white);
  padding-top: 80px;
  padding-bottom: 64px;
}

.post-header .container {
  padding-inline: clamp(24px, 6vw, 120px);
  max-width: 960px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  border-bottom: none;
  margin-bottom: var(--sp-xl);
  transition: color var(--duration-micro) var(--ease-smooth);
}

.post-back:hover {
  color: var(--cyan);
  border-bottom: none;
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.post-header__cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: none;
  transition: opacity var(--duration-micro) var(--ease-smooth);
}

.post-header__cat:hover {
  opacity: 0.75;
  border-bottom: none;
}

.post-header__sep {
  font-size: 10px;
  color: var(--gray-200);
}

.post-header__date {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.post-header__title {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--text-main);
  max-width: 18ch;
  margin: 0 0 var(--sp-md);
}

.post-header__lead {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   SINGLE POST — CONTENIDO
   ══════════════════════════════════════════════════════════════ */

.post-content {
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-xl);
}

.post-content .container {
  max-width: 800px;
}

/* entry-content ya tiene max-width: 72ch — se hereda */


/* ══════════════════════════════════════════════════════════════
   SINGLE POST — AUTOR
   ══════════════════════════════════════════════════════════════ */

.post-author {
  background: var(--gray-100);
  padding: var(--sp-xl) 0;
  border-top: 1px solid var(--gray-200);
}

.post-author .container {
  max-width: 800px;
}


/* ══════════════════════════════════════════════════════════════
   SINGLE POST — NAV ENTRE POSTS
   ══════════════════════════════════════════════════════════════ */

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-lg);
}

.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  max-width: 40ch;
  text-decoration: none;
  border-bottom: none;
  transition: color var(--duration-micro) var(--ease-smooth);
}

.post-nav__item:hover {
  border-bottom: none;
}

.post-nav__item--next {
  text-align: right;
  margin-left: auto;
}

.post-nav__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.post-nav__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.3;
  transition: color var(--duration-micro) var(--ease-smooth);
}

.post-nav__item:hover .post-nav__title {
  color: var(--cyan);
}

@media (max-width: 600px) {
  .post-nav {
    flex-direction: column;
  }

  .post-nav__item--next {
    text-align: left;
    margin-left: 0;
  }
}


/* ══════════════════════════════════════════════════════════════
   ALIASES — Variables del sitio principal ausentes en blog.css
   ══════════════════════════════════════════════════════════════ */

:root {
  --space-1: 4px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --z-sticky: 100;
  --z-modal:  200;
  --radius-full: 100px;
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION COMPONENT
   Header navigation with mobile menu (CSS-only fallback)
   
   PROGRESSIVE ENHANCEMENT:
   - CSS checkbox hack: funciona sin JS
   - JS enhancement: mejora accesibilidad (focus trap, aria-expanded)
   ══════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-line-light);
  z-index: var(--z-sticky);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  max-width: 1440px;
  margin: 0 auto;
}

/* Logo */
.site-nav__logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-main);
  text-decoration: none;
  border: none;
  display: flex;
  align-items: center;
}

.site-nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
  max-width: none;
}

.site-nav__logo-accent {
  color: var(--color-cyan);
}

/* Desktop Navigation */
.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}

.site-nav__link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  text-decoration: none;
  border: none;
  transition: color var(--transition-fast);
  padding: var(--space-1);
}

.site-nav__link:hover {
  color: var(--color-cyan);
}

.site-nav__link--active {
  color: var(--color-cyan);
}

/* CTA Button */
.site-nav__cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cyan);
  padding: 8px 16px;
  border: 1px solid var(--color-cyan-20);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.site-nav__cta:hover {
  background: var(--color-cyan);
  color: var(--color-bg-white);
  border-color: var(--color-cyan);
}

/* ══════════════════════════════════════════════════════════════
   MOBILE MENU — Checkbox Hack (CSS-only, no JS required)
   ══════════════════════════════════════════════════════════════ */

/* Hidden checkbox that controls menu state */
input#mobile-menu-toggle {
  display: none;
}

/* Label acts as the hamburger button */
.site-nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.site-nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-main);
  transition: all var(--transition-base);
}

/* Hamburger animation when checked */
#mobile-menu-toggle:checked ~ .site-nav .site-nav__mobile-toggle span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

#mobile-menu-toggle:checked ~ .site-nav .site-nav__mobile-toggle span:nth-child(2) {
  opacity: 0;
}

#mobile-menu-toggle:checked ~ .site-nav .site-nav__mobile-toggle span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* Mobile Menu Overlay */
.site-nav__mobile-menu {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-white);
  z-index: var(--z-modal);
  padding: var(--space-3);
  overflow-y: auto;
}

/* Show menu when checkbox is checked (CSS-only) */
#mobile-menu-toggle:checked ~ .site-nav__mobile-menu {
  display: block;
  animation: slideDown var(--transition-base) var(--ease-smooth);
}

/* JS enhancement: .site-nav__mobile-menu--open class for better control */
.site-nav__mobile-menu--open {
  display: block;
  animation: slideDown var(--transition-base) var(--ease-smooth);
}

@keyframes slideDown {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.site-nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-nav__mobile-link {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-main);
  text-decoration: none;
  border: none;
  padding: var(--space-2);
  display: block;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.site-nav__mobile-link--active {
  color: var(--color-cyan);
  background: var(--color-cyan-10);
  border-radius: var(--radius-sm);
}

/* Prevent body scroll when mobile menu is open (requires JS) */
body.mobile-menu-open {
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .site-nav__links {
    display: none;
  }
  
  .site-nav__cta {
    display: none;
  }
  
  .site-nav__mobile-toggle {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav__mobile-menu--open {
    animation: none;
  }
  
  #mobile-menu-toggle:checked ~ .site-nav__mobile-menu {
    animation: none;
  }
  
  .site-nav__mobile-toggle span {
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER — Strip compacto
   2 columnas · altura ≤ 80px · fondo #060d1f
   ══════════════════════════════════════════════════════════════ */

.site-footer {
  background: #060d1f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__strip {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* Col izquierda */
.site-footer__left {
  display: flex;
  align-items: center;
  gap: var(--space-4); /* Separación entre elementos */
}

/* ── LOGOTIPO "SIGNATURE" EN FOOTER ── */
.site-footer__logo {
  display: flex;
  align-items: center;
  border: none;
  transition: opacity var(--transition-fast);
}

.site-footer__logo:hover {
  opacity: 0.8;
}

.footer-logo-img {
  height: 22px; /* Un poco más alto para que la tipografía luzca mejor */
  width: auto;
  display: block;
  /* Mejora de renderizado para logos pequeños */
  image-rendering: -webkit-optimize-contrast;
}

.site-footer__copyright {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25); /* Un poco más tenue para dar protagonismo al logo */
  letter-spacing: 0.02em;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: var(--space-4);
  line-height: 1;
  margin-left: 2px; /* Ajuste fino de balance visual */
  white-space: nowrap;
}

/* Col derecha */
.site-footer__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-footer__link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  border: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.site-footer__link:hover {
  color: var(--color-cyan);
}

.site-footer__social-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  border: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.site-footer__social-link:hover {
  color: var(--color-cyan);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .site-footer__strip {
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    gap: var(--space-2);
    text-align: center;
  }

  .site-footer__left {
    flex-direction: column;
    gap: var(--space-3);
  }

  .site-footer__copyright {
    border-left: none;
    padding-left: 0;
    opacity: 0.5;
  }
}
