/* ==========================================================================
   B-HEALTH — ESTILOS GLOBALES Y SISTEMA DE DISEÑO
   ========================================================================== */

:root {
  /* Paleta de Colores de Marca */
  --blue: #033e8c;          /* Azul Corporativo */
  --bright: #066bb0;        /* Azul Brillante Interactivo (Ajustado para WCAG AA) */
  --navy: #071c33;          /* Azul Marino Oscuro (Fondos Oscuros) */
  --yellow: #e7bc0e;        /* Amarillo de Acento (CTAs y Acentos) */
  --cyan: #06dcff;
  --cyan-light: #e6faff;          /* Cian Claro (Fondos Claros de Apoyo) */
  --green: #43b89c;         /* Verde Esmeralda (Éxito / Estado Activo) */
  --white: #f7f9fb;         /* Blanco Nieve (Fondo General) */
  --gray: #4b5c6e;          /* Gris de Texto (Ajustado para WCAG AA) */
  --ink: #102338;           /* Tinta Oscura (Texto en Fondo Claro) */
  --line: rgba(3, 62, 140, 0.14);
  --white-trans: rgba(255, 255, 255, 0.08);
  --white-border: rgba(255, 255, 255, 0.15);

  /* Fuentes */
  --font-primary: 'Montserrat', sans-serif;
  --font-display: 'Montserrat', sans-serif;

  /* Escala Tipográfica (Responsiva con clamp) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);    /* 12px-13px */
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem); /* 14px-15px */
  --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);    /* 16px-17px */
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);    /* 18px-20px */
  --text-xl: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem);   /* 22px-26px */
  --text-2xl: clamp(1.75rem, 1.55rem + 1vw, 2.25rem);      /* 28px-36px */
  --text-3xl: clamp(2.25rem, 2rem + 1.8vw, 3.5rem);        /* 36px-56px */
  --text-hero: clamp(2.875rem, 2.5rem + 3.5vw, 5.5rem);     /* 46px-88px */

  /* Escala de Espaciado (Basada en 8px) */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem;  /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem;    /* 16px */
  --space-5: 1.5rem;  /* 24px */
  --space-6: 2rem;    /* 32px */
  --space-7: 3rem;    /* 48px */
  --space-8: 4rem;    /* 64px */
  --space-9: 6rem;    /* 96px */
  --space-10: 8rem;   /* 128px */
  
  /* Transiciones y Sombras */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 20px 50px rgba(7, 28, 51, 0.08);
  --shadow-card: 0 12px 30px rgba(3, 62, 140, 0.08);
  --border-radius-lg: 28px;
  --border-radius-md: 18px;
  --border-radius-sm: 12px;
}

/* ==========================================================================
   RESET Y ESTILOS BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Textura de Grano Digital Sutil */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

/* Navegación por Teclado Accesible */
*:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* ==========================================================================
   CABECERA (HEADER)
   ========================================================================== */

.site-header {
  position: fixed;
  left: 50%;
  top: var(--space-4);
  transform: translateX(-50%);
  width: min(1180px, calc(100% - var(--space-6)));
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4) 0 var(--space-5);
  background: rgba(247, 249, 251, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius-md);
  z-index: 50;
  box-shadow: var(--shadow-premium);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.85;
}

.brand img {
  width: 34px;
  height: 38px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.main-nav a {
  font-size: var(--text-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.main-nav a:not(.nav-cta):hover {
  color: var(--bright);
}

.main-nav .nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 13px var(--space-5);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 10px 20px rgba(7, 28, 51, 0.15);
}

.main-nav .nav-cta:hover {
  background: var(--bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(6, 107, 176, 0.25);
}

.main-nav .nav-cta:active {
  transform: translateY(1px);
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   SECCIÓN HERO (PROCESOS, DATOS Y MÉTRICAS)
   ========================================================================== */

.hero {
  min-height: 100vh;
  background: var(--navy);
  color: #fff;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-6);
  padding: 160px max(5vw, 40px) var(--space-9);
  overflow: hidden;
}

.hero:after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 35%;
  height: 70%;
  background: radial-gradient(circle, rgba(8, 124, 203, 0.28), transparent 65%);
  pointer-events: none;
}

#network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(216, 240, 250, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-a {
  width: 560px;
  height: 560px;
  right: -140px;
  top: 40px;
}

.orbit-b {
  width: 270px;
  height: 270px;
  right: 110px;
  top: 185px;
  border-color: rgba(231, 188, 14, 0.25);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.eyebrow, .kicker {
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b5d8ef;
  margin-bottom: var(--space-4);
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--yellow);
}

h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-5);
}

h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero-copy {
  max-width: 640px;
  font-size: var(--text-lg);
  line-height: 1.65;
  color: #c9d9e7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-sm);
  border: 0;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 10px 25px rgba(231, 188, 14, 0.2);
}

.btn-primary:hover {
  background: #f7d268;
  box-shadow: 0 12px 30px rgba(231, 188, 14, 0.35);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(1px);
}

.btn-outline {
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: rgba(3, 62, 140, 0.05);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(1px);
}

/* Dashboard del Hero */
.hero-dashboard {
  position: relative;
  z-index: 4;
  width: min(100%, 530px);
  justify-self: end;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--white-border);
  backdrop-filter: blur(22px);
  padding: var(--space-5);
  border-radius: var(--border-radius-lg);
  transform: rotate(1deg);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.28);
}

.dash-top {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 600;
}

.dash-top i {
  font-style: normal;
  color: #a9f1d7;
}

.dash-top i:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 7px;
  box-shadow: 0 0 15px var(--green);
}

.pulse-line {
  height: 110px;
  padding: var(--space-4) 0;
}

.pulse-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pulse-line path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 650;
  animation: pulse 4.5s linear infinite;
}

@keyframes pulse {
  from { stroke-dashoffset: 650; }
  to { stroke-dashoffset: 0; }
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dash-grid article {
  background: rgba(255, 255, 255, 0.07);
  padding: 16px var(--space-3);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-grid small, .dash-grid span {
  display: block;
  color: #9cb2c4;
  font-size: 11px;
  line-height: 1.3;
}

.dash-grid strong {
  font-family: var(--font-display);
  display: block;
  font-size: var(--text-xl);
  margin: 6px 0;
  color: var(--white);
}

.system-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.system-tags span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 500;
}

.scroll-cue {
  position: absolute;
  bottom: 25px;
  left: 5vw;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: #8ca3b6;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.scroll-cue span {
  width: 30px;
  height: 1px;
  background: #8ca3b6;
}

/* ==========================================================================
   SECCIONES GENERALES Y MAQUETACIÓN
   ========================================================================== */

.section-pad {
  padding: var(--space-10) max(5vw, 40px);
}

.section-head {
  max-width: 930px;
  margin-bottom: var(--space-7);
}

.kicker {
  color: var(--blue);
  margin-bottom: var(--space-3);
  display: inline-block;
}

.section-head h2, .method h2, .about h2, .contact h2, .diagnostic h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.section-head h2 span, .method h2 span, .about h2 span, .contact h2 span {
  color: var(--blue);
}

/* ==========================================================================
   SECCIÓN PROBLEMA: EL DESAFÍO REAL
   ========================================================================== */

.problem-stage {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-7);
  align-items: center;
}

.problem-map {
  position: relative;
  min-height: 520px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(145deg, #e9f5fb, #f9fcfe);
  border: 1px solid white;
  box-shadow: 0 30px 80px rgba(3, 62, 140, 0.11);
  overflow: hidden;
}

.problem-map:before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(3, 62, 140, 0.17);
  border-radius: 50%;
  pointer-events: none;
}

.problem-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 14px 20px;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.problem-node.active, .problem-node:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(231, 188, 14, 0.25);
}

.problem-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(7, 28, 51, 0.24);
}

.problem-core img {
  width: 38px;
  filter: brightness(0) invert(1);
  margin-bottom: 10px;
}

.problem-core span {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  line-height: 1.35;
  font-weight: 600;
}

.connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connectors path {
  stroke: rgba(3, 62, 140, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 7 7;
  fill: none;
}

.problem-detail {
  padding: var(--space-2);
}

.detail-no {
  color: var(--blue);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
}

.problem-detail h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  margin: var(--space-4) 0 var(--space-3);
  font-weight: 800;
}

.problem-detail > p:not(.detail-no) {
  color: var(--gray);
  font-size: var(--text-lg);
  line-height: 1.65;
}

.problem-detail ul {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0;
}

.problem-detail li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.problem-detail li:before {
  content: "+";
  color: var(--blue);
  font-size: var(--text-lg);
  font-weight: 800;
  margin-right: 12px;
}

.insight {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--navy);
  color: #fff;
  border-radius: var(--border-radius-md);
  font-size: var(--text-base);
  line-height: 1.6;
  border-left: 4px solid var(--yellow);
}

/* ==========================================================================
   SECCIÓN SOLUCIONES: ECOSISTEMA DE 360°
   ========================================================================== */

.solutions {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.section-head.light .kicker {
  color: var(--yellow);
}

.section-head.light h2 span {
  color: #8acbed;
}

.solution-wheel {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5); /* 24px */
  position: relative;
}

.wheel-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 0 28px rgba(231, 188, 14, 0.07);
  pointer-events: none;
}

.wheel-core strong {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1.3;
}

.wheel-core span {
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.solution-card {
  min-height: 270px;
  padding: var(--space-5) var(--space-5) var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.15s ease-out, border-color 0.3s, background 0.3s;
}

/* Resplandor gradiente interactivo para InnovationAgent */
.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(231, 188, 14, 0.13) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.solution-card:hover::before {
  opacity: 1;
}

.solution-card:hover {
  border-color: rgba(231, 188, 14, 0.5);
  background: rgba(8, 124, 203, 0.15);
}

.solution-card b {
  font-size: var(--text-xs);
  color: var(--yellow);
  font-weight: 700;
  display: block;
  letter-spacing: 0.05em;
  transform: translateZ(20px);
}

.solution-card h3 {
  font-size: var(--text-xl);
  margin: 60px 0 12px;
  font-weight: 700;
  transform: translateZ(25px);
}

.solution-card p {
  color: #c9d5e1;
  line-height: 1.55;
  font-size: var(--text-sm);
  transform: translateZ(20px);
}

/* Espacio para el núcleo de la rueda en pantallas de escritorio */
.s2, .s3 {
  padding-left: 70px;
}

.s4, .s5 {
  padding-right: 70px;
}

/* ==========================================================================
   SECCIÓN MÉTODO: CONECTA (Módulo de Pantalla Completa Premium)
   ========================================================================== */

.method {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.method-intro {
  text-align: center;
  max-width: 960px;
  margin-bottom: var(--space-8);
}

.method-lead {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--gray);
  margin-top: var(--space-4);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.method-container {
  width: 100%;
  max-width: 1180px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(3, 62, 140, 0.08);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.method-nav-tabs {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(3, 62, 140, 0.12);
  background: rgba(247, 249, 251, 0.5);
  backdrop-filter: blur(5px);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.method-nav-tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.method-tab {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) var(--space-2);
  border: 0;
  background: transparent;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition-smooth);
  color: var(--ink);
}

.method-tab span {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #aac1d6;
  transition: var(--transition-smooth);
  line-height: 1.1;
}

.method-tab small {
  font-family: var(--font-primary);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: var(--space-2);
  color: var(--gray);
  transition: var(--transition-smooth);
}

.method-tab:hover {
  background: rgba(3, 62, 140, 0.04);
}

.method-tab:hover span {
  color: var(--blue);
}

.method-tab.active {
  border-bottom-color: var(--yellow);
  background: rgba(3, 62, 140, 0.05);
}

.method-tab.active span {
  color: var(--blue);
  transform: scale(1.1);
}

.method-tab.active small {
  color: var(--blue);
}

.method-content-panel {
  position: relative;
  min-height: 380px;
  padding: var(--space-8);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.method-content-panel.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.method-watermark {
  position: absolute;
  right: -5%;
  bottom: -20%;
  font-family: var(--font-display);
  font-size: 32rem;
  font-weight: 900;
  color: rgba(3, 62, 140, 0.025);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.method-content-panel {
  position: relative;
  min-height: 420px;
  padding: 42px 48px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  overflow: hidden;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.method-content-panel.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.method-watermark {
  position: absolute;
  right: -2%;
  bottom: -22%;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 30rem;
  font-weight: 900;
  color: rgba(3, 62, 140, 0.03);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 1;
}

.method-panel-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  width: 100%;
  gap: 44px;
}

/* Columna Izquierda: Identidad y Narrativa */
.method-col-narrative {
  display: flex;
  flex-direction: column;
}

.method-stage-badge-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-letter-circle {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(8, 124, 203, 0.16), rgba(3, 62, 140, 0.06));
  border: 2px solid rgba(8, 124, 203, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--blue, #033e8c);
  box-shadow: 0 8px 24px rgba(3, 62, 140, 0.12);
  text-shadow: 0 2px 8px rgba(3, 62, 140, 0.15);
  transition: transform 0.3s ease;
}

.stage-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.panel-step-num {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--blue, #033e8c);
}

.panel-step-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #7b8e9f;
}

.method-stage-title {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--navy, #04213f);
  margin: 0 0 14px 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.method-stage-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4a5e71;
  margin: 0 0 26px 0;
  max-width: 560px;
}

/* Caja de Impacto Tangible (Columna Izquierda) */
.method-impact-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(8, 124, 203, 0.07), rgba(3, 62, 140, 0.02));
  border: 1px solid rgba(8, 124, 203, 0.2);
  box-shadow: 0 4px 14px rgba(3, 62, 140, 0.04);
}

.impact-indicator {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #033e8c, #087ccb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(3, 62, 140, 0.25);
}

.impact-spark {
  display: inline-block;
  line-height: 1;
}

.impact-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.impact-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #087ccb;
}

.impact-desc {
  font-size: 0.94rem;
  font-weight: 700;
  color: #052649;
  line-height: 1.4;
}

/* Columna Derecha: Tarjeta de Acciones y Entregables */
.method-col-deliverables {
  display: flex;
  flex-direction: column;
}

.method-deliverables-card {
  background: linear-gradient(145deg, #ffffff, #f7fafc);
  border: 1px solid rgba(3, 62, 140, 0.13);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 14px 32px rgba(3, 62, 140, 0.07);
  position: relative;
  overflow: hidden;
}

.method-deliverables-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #033e8c, #087ccb, #e7bc0e);
}

.deliv-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(3, 62, 140, 0.09);
}

.deliv-icon-pedestal {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(8, 124, 203, 0.14), rgba(3, 62, 140, 0.05));
  border: 1px solid rgba(8, 124, 203, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #033e8c;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(8, 124, 203, 0.12);
  transition: all 0.3s ease;
}

.deliv-icon-pedestal svg {
  display: block;
}

.deliv-header-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.deliv-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #7b8e9f;
}

.deliv-title {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.08rem;
  font-weight: 800;
  color: #04213f;
  margin: 0;
  line-height: 1.25;
}

.method-deliverables-list {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #243b53;
}

.deliv-check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  background: rgba(8, 124, 203, 0.12);
  color: #087ccb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.deliv-check svg {
  display: block;
}

.deliv-text {
  font-weight: 500;
}

.deliv-card-footer {
  padding-top: 15px;
  border-top: 1px dashed rgba(3, 62, 140, 0.14);
  display: flex;
  align-items: center;
}

.deliv-guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #087ccb;
  background: rgba(8, 124, 203, 0.06);
  padding: 6px 12px;
  border-radius: 20px;
}

.deliv-guarantee-pill svg {
  flex-shrink: 0;
}

/* Adaptación responsive */
@media (max-width: 1024px) {
  .method-nav-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  .method-content-panel {
    padding: 32px 24px;
    min-height: auto;
  }
  .method-panel-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .method-stage-title {
    font-size: 1.95rem;
  }
  .panel-letter-circle {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.8rem;
  }
  .method-watermark {
    display: none;
  }
}

@media (max-width: 600px) {
  .method-content-panel {
    padding: 24px 16px;
  }
  .method-stage-title {
    font-size: 1.65rem;
  }
  .method-deliverables-card {
    padding: 20px 18px;
  }
  .deliv-card-header {
    gap: 12px;
  }
  .deliv-icon-pedestal {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   SECCIÓN DIAGNÓSTICO (ORIENTADOR INTERACTIVO)
   ========================================================================== */

.diagnostic {
  padding-top: var(--space-2);
}

.diagnostic-card {
  background: linear-gradient(135deg, #0b345c, var(--navy));
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  color: #fff;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: var(--space-7);
  position: relative;
  overflow: hidden;
}

.diagnostic-card:after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  left: -120px;
  bottom: -190px;
  pointer-events: none;
}

.diag-copy .kicker {
  color: var(--yellow);
}

.diag-copy h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.diag-copy > p:last-child {
  color: #adc1d1;
  line-height: 1.65;
  font-size: var(--text-base);
}

.diag-ui {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.diag-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.diag-options button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 16px;
  text-align: left;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  transition: var(--transition-smooth);
}

.diag-options button:hover, .diag-options button.active {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
  box-shadow: 0 8px 20px rgba(231, 188, 14, 0.25);
  transform: translateY(-2px);
}

.diag-options button:active {
  transform: translateY(1px);
}

.diag-result {
  margin-top: var(--space-5);
  background: #fff;
  color: var(--ink);
  border-radius: var(--border-radius-md);
  padding: var(--space-5);
  border-left: 4px solid var(--yellow);
  box-shadow: var(--shadow-premium);
}

.diag-result span {
  font-size: 10px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.diag-result p {
  min-height: 48px;
  line-height: 1.6;
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.diag-result a {
  color: var(--bright);
  font-weight: 700;
  text-decoration: none;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.diag-result a:hover {
  color: var(--blue);
}

.diag-result a:hover span {
  transform: translateX(4px);
}

.diag-result a span {
  transition: transform 0.2s;
}

/* ==========================================================================
   SECCIÓN CASOS DE ÉXITO
   ========================================================================== */

.cases {
  background: #f7f9fb;
}

.case-grid {
  display: grid;
  grid-template-columns: 1.40fr 0.8fr 0.8fr;
  gap: var(--space-5); /* 24px */
}

.case-feature, .case-mini {
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  min-height: 450px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(3, 62, 140, 0.06);
}

.case-feature {
  background: var(--cyan-light, #e6faff);
  display: flex;
  flex-direction: column;
}

.case-label, .case-mini > span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: var(--space-4);
  display: block;
}

.case-feature h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin: var(--space-2) 0 var(--space-5);
  font-weight: 800;
  line-height: 1.25;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: white;
  padding: var(--space-4);
  border-radius: var(--border-radius-md);
  gap: var(--space-4);
  box-shadow: 0 8px 25px rgba(3, 62, 140, 0.04);
}

.before-after div small, .before-after div span {
  display: block;
  color: var(--gray);
  font-size: 11px;
}

.before-after i {
  font-style: normal;
  color: var(--blue);
  font-weight: 700;
}

.before-after strong {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--blue);
  line-height: 1;
  display: block;
  margin: 4px 0;
}

.case-feature > p {
  line-height: 1.65;
  color: var(--gray);
  margin: var(--space-5) 0 var(--space-4);
  font-size: var(--text-sm);
}

.case-feature > a, .article-card a {
  margin-top: auto;
  color: var(--bright);
  font-weight: 700;
  text-decoration: none;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.case-feature > a:hover, .article-card a:hover {
  color: var(--blue);
}

.case-feature > a:hover span {
  transform: translate(2px, -2px);
}

.case-feature > a span {
  transition: transform 0.2s;
}

.case-mini {
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.case-mini h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin: var(--space-2) 0 var(--space-4);
  font-weight: 800;
  line-height: 1.35;
}

.case-mini p {
  color: #a8bac9;
  line-height: 1.6;
  font-size: var(--text-sm);
}

.mini-metric {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: var(--space-4);
}

.mini-metric b {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--yellow);
  display: block;
  font-weight: 800;
}

.mini-metric small {
  color: #a8bac9;
  font-size: var(--text-xs);
}

/* ==========================================================================
   SECCIÓN NOSOTROS (ABOUT)
   ========================================================================== */

.about {
  background: #eaf5fa;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-7);
  align-items: center;
}

.about-visual {
  min-height: 520px;
  background-color: var(--blue);
  background-image: url("assets/health_tech_collaboration.jpg");
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.big-b {
  font-family: var(--font-display);
  font-size: 440px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  position: absolute;
  left: -35px;
  top: -25px;
  line-height: 1;
  pointer-events: none;
}

.about-tag {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: var(--yellow);
  color: var(--navy);
  padding: 13px 20px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 25px rgba(231, 188, 14, 0.25);
  backdrop-filter: blur(5px);
}

.about-copy > p {
  line-height: 1.7;
  color: var(--gray);
  font-size: var(--text-lg);
  margin-top: var(--space-4);
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: var(--space-5) 0 var(--space-6);
  gap: 0 var(--space-4);
}

.principles span {
  padding: 16px 0;
  border-bottom: 1px solid rgba(3, 62, 140, 0.17);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--navy);
  display: flex;
  align-items: center;
}

.principles span:before {
  content: "●";
  color: var(--yellow);
  font-size: var(--text-xs);
  margin-right: 12px;
}

.text-link {
  font-weight: 700;
  color: var(--bright);
  text-decoration: none;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--blue);
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link span {
  transition: transform 0.2s;
}

/* ==========================================================================
   SECCIÓN BLOG / PERSPECTIVAS B-HEALTH
   ========================================================================== */

.insights {
  background: var(--white);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5); /* 24px */
}

.article-card {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(3, 62, 140, 0.02);
  transition: var(--transition-smooth);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(3, 62, 140, 0.3);
  box-shadow: var(--shadow-card);
}

.article-img {
  height: 180px;
  width: calc(100% + var(--space-5) * 2);
  margin-top: calc(var(--space-5) * -1);
  margin-left: calc(var(--space-5) * -1);
  margin-bottom: var(--space-4);
  background-size: cover;
  background-position: center;
  background-color: var(--cyan);
}

.card-1-img {
  background-image: url("assets/data_science_health.jpg");
}

.card-2-img {
  background-image: url("assets/operational_efficiency.jpg");
}

.card-3-img {
  background-image: url("assets/Taller B-HEALTH_ innovación en salud.png");
  background-size: cover;
  background-position: center 20%;
}

.card-3-img:after {
  display: none;
}

.article-card > span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 700;
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin: var(--space-3) 0 var(--space-2);
  font-weight: 800;
  line-height: 1.3;
}

.article-card p {
  color: var(--gray);
  line-height: 1.6;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.tool-card {
  background: #fff;
  border-color: var(--line);
}

.tool-card:hover {
  border-color: rgba(3, 62, 140, 0.3);
}

.tool-card > span {
  color: var(--blue);
}

.tool-card h3 {
  color: var(--navy);
  margin-top: var(--space-4);
}

.tool-card p {
  color: rgba(7, 28, 51, 0.8);
}

.tool-card a {
  color: var(--navy);
}

.tool-card a:hover {
  color: var(--blue);
}

/* ==========================================================================
   SECCIÓN CONTACTO Y FORMULARIO
   ========================================================================== */

.contact {
  background: var(--navy);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-7);
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 70%, rgba(8, 124, 203, 0.28), transparent 28%),
              linear-gradient(120deg, transparent 55%, rgba(255, 255, 255, 0.02) 55%);
  pointer-events: none;
}

.contact-copy, .contact-form-container {
  position: relative;
  z-index: 2;
}

.contact .kicker {
  color: var(--yellow);
}

.contact h2 span {
  color: #8acbed;
}

.contact-copy > p:last-child {
  color: #adbecd;
  line-height: 1.7;
  font-size: var(--text-lg);
  margin-top: var(--space-4);
  max-width: 500px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--space-5);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(15px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.contact-form label {
  font-size: var(--text-xs);
  color: #aec1d0;
  font-weight: 600;
  display: flex;
  flex-direction: column;
}

.contact-form label.full-width {
  grid-column: 1 / -1;
}

.contact-form select, .contact-form input {
  width: 100%;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--border-radius-sm);
  color: #fff;
  padding: 14px;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  outline: none;
  transition: var(--transition-smooth);
}

.contact-form select:focus, .contact-form input:focus {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(231, 188, 14, 0.15);
}

.contact-form option {
  color: #111;
  background: #fff;
}

.contact-form .btn {
  grid-column: 1 / -1;
  margin-top: var(--space-3);
  height: 52px;
}

.contact-form .form-checkbox-container,
.form-checkbox-container {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0 6px;
  box-sizing: border-box;
}

.contact-form .form-checkbox-container input[type="checkbox"],
.form-checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 3px;
  accent-color: var(--yellow, #e7bc0e);
  cursor: pointer;
  flex-shrink: 0;
}

.contact-form .form-checkbox-container label,
.form-checkbox-container label {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  color: #c0d1e0;
  cursor: pointer;
  margin: 0;
  display: inline;
  flex: 1 1 auto;
  text-align: left;
}

.contact-form .form-privacy-clause,
.form-privacy-clause {
  grid-column: 1 / -1;
  width: 100%;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #8faac1;
  text-align: justify;
  text-justify: inter-word;
  margin-top: 16px;
  margin-bottom: 0;
  box-sizing: border-box;
}

.contact-form .form-privacy-clause a,
.form-privacy-clause a {
  color: #38bdf8;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-form .form-privacy-clause a:hover,
.form-privacy-clause a:hover {
  color: var(--yellow, #e7bc0e);
}

.contact-form .form-feedback-success,
.contact-form .form-feedback-error,
.form-feedback-success,
.form-feedback-error {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
}

.form-success {
  display: none;
  grid-column: 1 / -1;
  color: #b8f1dc;
  font-weight: 600;
  text-align: center;
  background: rgba(67, 184, 156, 0.15);
  border: 1px solid rgba(67, 184, 156, 0.3);
  padding: 14px;
  border-radius: var(--border-radius-sm);
  margin-top: var(--space-3);
}

.form-success.show {
  display: block;
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */

footer {
  padding: var(--space-6) max(5vw, 40px);
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: var(--space-4);
  background: #041424;
  color: #a7b7c5;
}

footer .brand {
  color: #fff;
  margin-bottom: var(--space-2);
}

footer .brand img {
  filter: brightness(0) invert(1);
}

footer p {
  font-size: var(--text-sm);
  color: #8ca3b6;
}

footer > div {
  display: flex;
  gap: var(--space-5);
}

footer a {
  color: #c8d4dd;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--yellow);
}

footer small {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-5);
  font-size: var(--text-xs);
  color: #728495;
}

.footer-legal-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4, 1rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  margin-top: 14px;
  font-size: var(--text-xs, 0.8rem);
  color: #728495;
  width: 100%;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-legal-links a {
  color: #a7b7c5;
  text-decoration: none;
  font-size: var(--text-xs, 0.8rem);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--yellow, #e7bc0e);
  text-decoration: underline;
}

/* ==========================================================================
   TRANSICIONES DE APARICIÓN (REVEAL - SCROLL ANIMATION)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

/* ==========================================================================
   RESPONSIVIDAD Y MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .site-header {
    top: 12px;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 86px;
    right: 0;
    left: 0;
    background: #fff;
    padding: var(--space-5);
    flex-direction: column;
    gap: var(--space-4);
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(3, 62, 140, 0.08);
  }

  .main-nav.open a {
    color: var(--ink);
    padding: var(--space-2) 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(3, 62, 140, 0.05);
  }

  .main-nav.open .nav-cta {
    background: var(--navy);
    color: #fff;
    border-bottom: 0;
    margin-top: 10px;
  }

  /* Hamburguesa Interactiva Animada en CSS */
  .menu-toggle {
    display: flex;
    width: 48px;
    height: 48px;
    border: 0;
    background: var(--navy);
    border-radius: var(--border-radius-sm);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
    gap: var(--space-6);
  }

  .hero-dashboard {
    justify-self: start;
    width: 100%;
  }

  .problem-stage, .diagnostic-card, .about, .contact {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .solution-wheel {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .wheel-core {
    display: none;
  }

  .s2, .s3, .s4, .s5 {
    padding: var(--space-5);
  }

  .case-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .case-feature {
    grid-column: 1 / -1;
  }

  .insight-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .article-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .section-pad {
    padding: var(--space-8) 20px;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    height: 68px;
    padding: 0 var(--space-3) 0 var(--space-4);
  }

  .main-nav.open {
    top: 76px;
  }

  .hero {
    padding: 130px 20px var(--space-7);
  }

  .hero-dashboard {
    padding: var(--space-4);
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .problem-map {
    min-height: 420px;
  }

  .problem-node {
    font-size: 11px;
    padding: 10px 14px;
  }

  .problem-core {
    width: 135px;
    height: 135px;
  }

  .solution-wheel, .case-grid, .insight-grid {
    grid-template-columns: 1fr;
  }

  .case-feature {
    grid-column: auto;
  }

  .diagnostic-card {
    padding: var(--space-5) var(--space-4);
  }

  .diag-options, .contact-form, .principles {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 50px 1fr;
    padding: var(--space-4) 0;
  }

  .step small {
    display: none;
  }

  .about-visual {
    min-height: 360px;
  }

  .big-b {
    font-size: 310px;
  }

  .contact-form label {
    grid-column: 1 / -1;
  }

  footer {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  footer > div {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .scroll-cue {
    display: none;
  }
}

/* ==========================================================================
   ESTILOS DE BLOG Y VISTA DE ARTÍCULOS DETALLADOS
   ========================================================================== */

/* Main Blog Page Feed */
.blog-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-8);
}

.blog-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--border-radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-6);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* Individual Blog Article Layout */
.blog-post-wrapper {
  background: var(--white);
  min-height: 100vh;
}

.blog-hero {
  background: linear-gradient(135deg, #0b345c, var(--navy));
  color: #fff;
  padding: 10rem max(5vw, 40px) 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero-content {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.blog-category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: var(--space-3);
  display: inline-block;
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.8rem + 1.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  color: #fff;
}

.blog-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: #aac1d6;
  font-weight: 500;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-body-container {
  max-width: 850px;
  margin: 0 auto;
  padding: var(--space-8) max(5vw, 24px);
}

.blog-body-content {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--ink);
  font-family: var(--font-primary);
}

.blog-body-content p {
  margin-bottom: var(--space-6);
}

.blog-body-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--navy);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.blog-body-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--blue);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.blog-body-content ul, .blog-body-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-5);
}

.blog-body-content li {
  margin-bottom: var(--space-2);
}

.blog-body-content blockquote {
  border-left: 4px solid var(--yellow);
  background: rgba(3, 62, 140, 0.04);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  font-style: italic;
  color: var(--navy);
}

.blog-body-content blockquote p {
  margin-bottom: 0;
}

/* Callout Box inside Blog */
.blog-callout {
  background: linear-gradient(135deg, var(--cyan-light, #e6faff), rgba(216, 240, 250, 0.3));
  border: 1px solid rgba(3, 62, 140, 0.12);
  border-radius: var(--border-radius-md);
  padding: var(--space-6);
  margin: var(--space-7) 0;
}

.blog-callout h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: var(--space-2);
}

.blog-callout p {
  margin-bottom: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--gray);
}

/* Article footer / Navigation */
.blog-post-footer {
  border-top: 1px solid var(--line);
  padding-top: var(--space-6);
  margin-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.back-blog-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition-smooth);
}

.back-blog-btn:hover {
  transform: translateX(-4px);
}

.blog-share {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.blog-share span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--gray);
}

.share-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: var(--transition-smooth);
}

.share-link:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Related articles section */
.related-posts {
  background: rgba(3, 62, 140, 0.02);
  border-top: 1px solid var(--line);
  padding: var(--space-8) max(5vw, 24px);
}

.related-container {
  max-width: 1180px;
  margin: 0 auto;
}

.related-container h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--space-6);
  text-align: center;
}

.blog-cta-box {
  background: linear-gradient(135deg, #0b345c, var(--navy));
  border-radius: var(--border-radius-md);
  padding: var(--space-7);
  text-align: center;
  color: #fff;
  margin-top: var(--space-8);
  box-shadow: var(--shadow-premium);
}

.blog-cta-box h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-3);
}

.blog-cta-box p {
  color: #aac1d6;
  font-size: var(--text-base);
  max-width: 600px;
  margin: 0 auto var(--space-5);
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 8rem var(--space-4) 4rem;
  }
  
  .blog-body-container {
    padding: var(--space-6) var(--space-4);
  }
  
  .blog-post-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ESTILOS DEL HERO SLIDER DE IMÁGENES (INDEX-V2)
   ========================================================================== */

.hero-slider {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--navy);
}

.slider-track {
  height: 100%;
  width: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out, transform 1.2s ease-in-out;
  transform: scale(1.04);
}

.slide.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 28, 51, 0.7) 0%, rgba(7, 28, 51, 0.1) 40%, transparent 100%);
  z-index: 3;
}

.slide-content {
  position: absolute;
  bottom: 12%;
  left: 8%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: calc(100% - 16%);
  max-width: 600px;
}

.hero-slider .hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  background: rgba(7, 28, 51, 0.6);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
  user-select: none;
}

.slider-arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.slider-arrow.prev {
  left: var(--space-6);
}

.slider-arrow.next {
  right: var(--space-6);
}

.slider-dots {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  gap: 10px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dots .dot.active {
  background: var(--yellow);
  width: 28px;
  border-radius: 6px;
}

@media (max-width: 1024px) {
  .slider-arrow.prev {
    left: var(--space-4);
  }
  .slider-arrow.next {
    right: var(--space-4);
  }
}

@media (max-width: 768px) {
  .slide {
    background-size: contain;
    background-position: top center;
    background-color: #071c33;
  }
  
  .slide::after {
    background: linear-gradient(to top, rgba(7, 28, 51, 0.95) 0%, rgba(7, 28, 51, 0.6) 60%, transparent 100%);
  }

  .slide-content {
    bottom: 8%;
    left: 5%;
    right: 5%;
    width: 90%;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .hero-slider .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-slider .hero-actions .btn {
    width: 100%;
  }

  .slider-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

/* Toggle Badge for Versions */
.version-toggle-badge {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  background: var(--navy);
  border: 1.5px solid var(--yellow);
  border-radius: var(--border-radius-sm);
  color: #fff;
  padding: 10px 16px;
  font-size: var(--text-xs);
  font-family: var(--font-primary);
  font-weight: 700;
  text-decoration: none;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(7, 28, 51, 0.3);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-toggle-badge:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: translateY(-3px);
}
