/* ============================================
   PLAN PILOTO INSIGHT AI - STYLES MEJORADOS
   ============================================ */

/* ---- VARIABLES ---- */
:root {
  /* Colores principales */
  --color-navy: #02183d;
  --color-fuchsia: #f21651;
  --color-orange: #ff6b35;
  --color-purple: #9333ea;

  /* Colores de soporte */
  --color-bg-light: #f8f9fa;
  --color-bg-white: #ffffff;
  --color-text-primary: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-border: #e2e8f0;

  /* Colores de estado */
  --color-success: #00c853;
  --color-warning: #ff9800;
  --color-danger: #f44336;

  /* Tipografía */
  --font-display: "Outfit", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ---- RESET Y BASE ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.piloto-page {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--color-bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

/* ---- CONTENEDORES ---- */
.container-narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section-block {
  padding: var(--spacing-xl) 0;
}

/* ---- NAVEGACIÓN ---- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(2, 24, 61, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 4px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand-logo {
  height: 65px;
}

.nav-right-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-insightai-nav {
  display: inline-block;
  padding: 8px 14px;
  background: none;
  color: #ff4d7a;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: none;
}

.btn-insightai-nav:hover {
  color: #ff7da3;
  text-shadow: 0 0 12px rgba(255, 77, 122, 0.5);
}

.btn-home-nav {
  display: inline-block;
  padding: 8px 14px;
  background: none;
  color: #22c55e;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.4px;
  border: none;
  box-shadow: none;
}

.btn-home-nav:hover {
  color: #4ade80;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.btn-ecosystem-nav {
  display: inline-block;
  padding: 8px 14px;
  background: none;
  color: #f9921c;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: none;
}

.btn-ecosystem-nav:hover {
  color: #ffb347;
  text-shadow: 0 0 12px rgba(249, 146, 28, 0.5);
}

.btn-architecture-nav {
  display: inline-block;
  padding: 8px 14px;
  background: none;
  color: #0ea5e9;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: none;
}

.btn-architecture-nav:hover {
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
}

.btn-dashboard-nav {
  display: inline-block;
  padding: 8px 14px;
  background: none;
  color: #3b82f6;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: none;
}

.btn-dashboard-nav:hover {
  color: #60a5fa;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.btn-cta-nav {
  display: inline-block;
  padding: 8px 14px;
  background: none;
  color: #f9921c;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: none;
}

.btn-cta-nav:hover {
  color: #ffb347;
  text-shadow: 0 0 12px rgba(249, 146, 28, 0.5);
}

.btn-login-nav {
  display: inline-block;
  padding: 8px 14px;
  background: none;
  color: #f21651;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: none;
}

.btn-login-nav:hover {
  color: #ff4d7a;
  text-shadow: 0 0 12px rgba(242, 22, 81, 0.5);
}

/* ---- SECCIÓN HERO ---- */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #02183d 0%, #0a2351 50%, #02183d 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0; /* Removed padding to let flex center it better, or can use margin-top on container if needed */
    align-items: center; /* Keep centered vertically */
    overflow: hidden;
}

/* Canvas de partículas Three.js */
#hero-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

#hero-particles-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    z-index: 10;
}

/* Hero centrado sobre la animación */
.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: rgba(242, 22, 81, 0.12);
    border: 1px solid rgba(242, 22, 81, 0.35);
    border-radius: 50px;
    color: var(--color-fuchsia);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge-icon {
    font-size: 1.2rem;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(242, 22, 81, 0.25), 0 0 80px rgba(242, 22, 81, 0.1);
    letter-spacing: -1px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: revealLine 0.8s forwards;
}

.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.6s; }
.title-line:nth-child(3) { animation-delay: 0.9s; }

@keyframes revealLine {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight-gradient {
    background: linear-gradient(90deg, var(--color-fuchsia), var(--color-orange), var(--color-fuchsia));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerGradient 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(242, 22, 81, 0.5));
}

@keyframes shimmerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 650px;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle strong {
    color: white;
    font-weight: 700;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
    justify-content: center;
}

/* Botón con efecto glow */
.btn-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(242, 22, 81, 0.4), 0 0 60px rgba(242, 22, 81, 0.15);
    animation: pulseGlow 3s ease-in-out infinite;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    animation: shineBtn 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(242, 22, 81, 0.4), 0 0 60px rgba(242, 22, 81, 0.15); }
    50% { box-shadow: 0 0 30px rgba(242, 22, 81, 0.6), 0 0 80px rgba(242, 22, 81, 0.25); }
}

@keyframes shineBtn {
    0% { transform: translateX(-100%) rotate(45deg); }
    30%, 100% { transform: translateX(100%) rotate(45deg); }
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: bounceDown 2.5s ease-in-out infinite;
    z-index: 10;
}

.hero-scroll-hint svg {
    opacity: 0.5;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

.card-icon {
  font-size: 2.5rem;
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.card-metric {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-navy);
}

.hero-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-light));
  pointer-events: none;
}

/* ---- SECCIONES ---- */
.section-white {
  background: var(--color-bg-white);
}

.section-light {
  background: var(--color-bg-light);
}

.section-navy {
  background: var(--color-navy);
  color: white;
}

.section-gradient {
  background: linear-gradient(135deg, var(--color-navy) 0%, #0a2351 100%);
  color: white;
}

.section-header {
  margin-bottom: var(--spacing-xl);
}

.section-header.centered {
  text-align: center;
}

.section-header.white {
  color: white;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(242, 22, 81, 0.1);
  color: var(--color-fuchsia);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-tag.light {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title.text-white {
  color: white;
}

.section-description {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 800px;
}

.section-header.centered .section-description {
  margin: 0 auto;
}

.section-description strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.section-white .section-description strong {
  color: var(--color-navy);
}

.section-gradient .section-description,
.section-navy .section-description {
  color: rgba(255, 255, 255, 0.8);
}

.section-gradient .section-description strong,
.section-navy .section-description strong {
  color: white;
}

/* ---- PROBLEMA ---- */
.problem-visualization {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.problem-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-10px);
}

.problem-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.problem-icon.red {
  background: rgba(244, 67, 54, 0.1);
}

.problem-icon.orange {
  background: rgba(255, 107, 53, 0.1);
}

.problem-icon.yellow {
  background: rgba(255, 152, 0, 0.1);
}

.problem-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
}

.problem-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.problem-stat {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: rgba(244, 67, 54, 0.1);
  color: var(--color-danger);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Gráfico comparativo */
.comparison-chart {
  background: white;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.chart-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 2rem;
}

.chart-container {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
}

.chart-bar-wrapper {
  flex: 1;
}

.chart-label {
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.chart-bar {
  height: 60px;
  background: var(--color-bg-light);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.chart-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 12px;
  transition: width 1.5s ease-out;
  width: 0;
}

.investment-bar::before {
  background: linear-gradient(90deg, var(--color-navy), #0a2351);
  width: 85%;
}

.value-bar::before {
  background: linear-gradient(90deg, var(--color-danger), #e53935);
  width: 25%;
}

.bar-value {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  color: white;
  z-index: 2;
}

.chart-insight {
  text-align: center;
  padding: 1.5rem;
  background: rgba(242, 22, 81, 0.05);
  border-radius: 12px;
  color: var(--color-text-primary);
}

.chart-insight strong {
  color: var(--color-fuchsia);
}

/* ---- SOLUCIÓN ---- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.solution-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-fuchsia), var(--color-orange));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.solution-card:hover::before {
  transform: scaleX(1);
}

.solution-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.12);
}

.solution-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
}

.solution-icon-bg {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.solution-icon-bg.purple {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
}

.solution-icon-bg.orange {
  background: linear-gradient(135deg, var(--color-orange), #ff8a50);
}

.solution-icon-bg.fuchsia {
  background: linear-gradient(135deg, var(--color-fuchsia), #ff1744);
}

.solution-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: white;
}

.solution-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.solution-benefit {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 200, 83, 0.2);
  color: #00e676;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.solution-cta {
  margin-top: 3rem;
}

.cta-box {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cta-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.cta-content {
  flex: 1;
}

.cta-content h4 {
  font-size: 1.6rem;
  color: white;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.btn-white {
  background: white;
  color: var(--color-navy);
}

.btn-white:hover {
  background: var(--color-bg-light);
  transform: translateY(-2px);
}

/* ---- METODOLOGÍA ---- */
.methodology-flow {
  max-width: 1000px;
  margin: 0 auto;
}

.method-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
}

.method-step.reverse {
  direction: rtl;
}

.method-step.reverse > * {
  direction: ltr;
}

.step-visual {
  background: var(--color-bg-light);
  border-radius: 20px;
  padding: 2.5rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Paso 1: DiD Chart — SVG animated
   ============================================ */
.visual-did-chart {
    width: 100%;
    position: relative;
}

.did-svg {
    width: 100%;
    height: auto;
    display: block;
    font-family: inherit;
}

/* Lines: draw with stroke-dashoffset */
.did-path-control,
.did-path-treated {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}

.visual-did-chart.animated .did-path-control {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.2s ease;
}

.visual-did-chart.animated .did-path-treated {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.4s ease 0.3s;
}

/* Dots scale in */
.did-dot {
    transform-origin: center;
    transform: scale(0);
    opacity: 0;
}

.visual-did-chart.animated .did-dot-start {
    transform: scale(1); opacity: 1;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.1s, opacity 0.3s ease 0.1s;
}

.visual-did-chart.animated .did-dot-mid-c,
.visual-did-chart.animated .did-dot-mid-t {
    transform: scale(1); opacity: 1;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.9s, opacity 0.3s ease 0.9s;
}

.visual-did-chart.animated .did-dot-end-c {
    transform: scale(1); opacity: 1;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1) 1.4s, opacity 0.3s ease 1.4s;
}

.visual-did-chart.animated .did-dot-end-t {
    transform: scale(1); opacity: 1;
    transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1) 1.6s, opacity 0.3s ease 1.6s;
    filter: drop-shadow(0 0 6px rgba(242, 22, 81, 0.5));
}

/* Bracket appears after lines draw */
.visual-did-chart.animated .did-bracket-line,
.visual-did-chart.animated .did-bracket-top,
.visual-did-chart.animated .did-bracket-bot {
    opacity: 1;
    transition: opacity 0.5s ease 1.8s;
}

/* Tags fade in */
.visual-did-chart.animated .did-tag-control {
    opacity: 1;
    transition: opacity 0.5s ease 1.5s;
}

.visual-did-chart.animated .did-tag-treated {
    opacity: 1;
    transition: opacity 0.5s ease 1.7s;
}

/* Impact text */
.visual-did-chart.animated .did-impact-text {
    opacity: 1;
    transition: opacity 0.5s ease 2s;
}

/* Noise zone fades in */
.visual-did-chart.animated .did-noise {
    opacity: 0.6;
    transition: opacity 0.8s ease 2.2s;
}

/* Subtle glow pulse on the treated end dot */
.visual-did-chart.animated .did-dot-end-t {
    animation: didDotPulse 2s ease-in-out 2.5s infinite;
}

@keyframes didDotPulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(242, 22, 81, 0.4)); }
    50% { filter: drop-shadow(0 0 10px rgba(242, 22, 81, 0.7)); }
}

/* ============================================
   Paso 2: Zero-Trust — shield + orbiting rings
   ============================================ */
.visual-zero-trust {
    width: 100%;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zt-shield {
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.visual-zero-trust.animated .zt-shield {
    opacity: 1;
    transform: scale(1);
}

.zt-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.zt-ring-label {
    position: absolute;
    top: -8px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0 6px;
    white-space: nowrap;
}

.zt-ring-1 {
    width: 120px; height: 120px;
    border-color: rgba(16, 185, 129, 0.4);
}
.zt-ring-1 .zt-ring-label { color: #10b981; background: var(--color-bg-light, #f8fafc); }

.zt-ring-2 {
    width: 160px; height: 160px;
    border-color: rgba(14, 165, 233, 0.35);
}
.zt-ring-2 .zt-ring-label { color: #0ea5e9; background: var(--color-bg-light, #f8fafc); }

.zt-ring-3 {
    width: 200px; height: 200px;
    border-color: rgba(147, 51, 234, 0.3);
}
.zt-ring-3 .zt-ring-label { color: #9333ea; background: var(--color-bg-light, #f8fafc); }

.visual-zero-trust.animated .zt-ring-1 { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: 0.4s; }
.visual-zero-trust.animated .zt-ring-2 { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: 0.6s; }
.visual-zero-trust.animated .zt-ring-3 { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: 0.8s; }

.zt-data-particles {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.zt-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #0ea5e9;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    opacity: 0;
    box-shadow: 0 0 6px rgba(14, 165, 233, 0.5);
}

.visual-zero-trust.animated .zt-particle {
    animation: ztOrbit 4s linear infinite;
    animation-delay: calc(var(--angle) / 360 * 4s);
    opacity: 0.8;
}

@keyframes ztOrbit {
    0%   { transform: rotate(var(--angle)) translateX(90px) scale(1); opacity: 0.8; }
    50%  { transform: rotate(calc(var(--angle) + 180deg)) translateX(90px) scale(0.6); opacity: 0.4; }
    100% { transform: rotate(calc(var(--angle) + 360deg)) translateX(90px) scale(1); opacity: 0.8; }
}

/* ============================================
   Paso 3: Scalar — soft bars → hard bars
   ============================================ */
.visual-scalar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.scalar-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scalar-col-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    text-align: center;
}

.scalar-cols {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    height: 130px;
    width: 100%;
    justify-content: center;
}

.scalar-col {
    width: 32px;
    height: 0;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: height 1s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.scalar-col.hard {
    background: linear-gradient(180deg, #0ea5e9, #0284c7);
}

.visual-scalar.animated .scalar-col {
    height: var(--h);
}

.scalar-icon {
    position: absolute;
    top: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

.scalar-icon-num {
    position: absolute;
    top: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
}

.scalar-col::after {
    content: attr(data-label);
    position: absolute;
    bottom: -20px;
    font-size: 0.6rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.scalar-arrow-transform {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s ease 0.8s, transform 0.5s ease 0.8s;
}

.visual-scalar.animated .scalar-arrow-transform {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Resultado: Projection — past line + future dashed
   ============================================ */
.visual-projection {
    width: 100%;
}

.proj-chart {
    position: relative;
    height: 150px;
    border-left: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    margin: 0 0.5rem;
    overflow: visible;
}

.proj-area-past {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.06) 0%, rgba(14, 165, 233, 0.02) 100%);
}

.proj-area-future {
    position: absolute;
    left: 45%;
    bottom: 0;
    width: 55%;
    height: 100%;
    background: repeating-linear-gradient(90deg, transparent, transparent 6px, rgba(16, 185, 129, 0.04) 6px, rgba(16, 185, 129, 0.04) 12px);
}

.proj-line-real {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 0;
    height: 3px;
    background: #0ea5e9;
    border-radius: 2px;
    transform-origin: left;
    transform: rotate(-12deg);
    transition: width 1.2s ease;
}

.visual-projection.animated .proj-line-real {
    width: 45%;
}

.proj-line-predicted {
    position: absolute;
    bottom: 20%;
    left: 45%;
    width: 0;
    height: 3px;
    border-radius: 2px;
    border-top: 3px dashed #10b981;
    transform-origin: left;
    transform: rotate(-25deg);
    transition: width 1s ease 1s;
}

.visual-projection.animated .proj-line-predicted {
    width: 50%;
}

.proj-divider-now {
    position: absolute;
    left: 45%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(242, 22, 81, 0.3);
    z-index: 2;
}

.proj-divider-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 700;
    color: #F21651;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proj-value-badge {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    background: #10b981;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 1.8s, transform 0.5s ease 1.8s;
    z-index: 3;
}

.visual-projection.animated .proj-value-badge {
    opacity: 1;
    transform: translateY(0);
}

.proj-value-amount {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
}

.proj-value-desc {
    display: block;
    font-size: 0.6rem;
    opacity: 0.85;
    margin-top: 2px;
}

.proj-x-labels {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0.5rem 0;
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
}

.step-content {
  padding: 1.5rem;
}

.step-number {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(242, 22, 81, 0.1);
  color: var(--color-fuchsia);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.step-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
}

.step-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.method-divider {
  text-align: center;
  margin: 2rem 0;
}

.methodology-highlight {
  background: linear-gradient(135deg, #fffbf7 0%, #fff5ee 50%, #fef2f4 100%);
  border: 1px solid rgba(242, 22, 81, 0.12);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 6px 24px rgba(242, 22, 81, 0.06);
}

@media (min-width: 768px) {
  .methodology-highlight {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}

/* Text column */
.highlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 0.8rem;
}

.highlight-kicker-icon {
  font-size: 1.4rem;
}

.highlight-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.highlight-desc {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.highlight-desc strong {
  color: #0F172A;
}

.highlight-cta {
  font-size: 1.05rem;
  color: #F21651;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

/* Image column */
.highlight-img-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-nobel-img {
  width: 100%;
  max-width: 380px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.highlight-nobel-img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

/* ---- SEGURIDAD DE DATOS ---- */
.section-security-data {
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.16), transparent 45%),
    radial-gradient(circle at 82% 76%, rgba(242, 22, 81, 0.14), transparent 48%),
    linear-gradient(140deg, #02183d 0%, #031f4f 52%, #02122e 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.section-security-data .section-description {
  color: rgba(226, 232, 240, 0.95);
  max-width: 820px;
  margin: 0 auto;
}

.security-data-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: stretch;
}

.security-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-point-card {
  background: rgba(2, 24, 61, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.security-point-index {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #67e8f9;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-point-content h3 {
  font-size: 1.1rem;
  color: #f8fafc;
  margin-bottom: 0.4rem;
}

.security-point-content p {
  color: rgba(203, 213, 225, 0.9);
  font-size: 0.92rem;
  line-height: 1.55;
}

.security-demo-shell {
  border-radius: 20px;
  padding: 1.35rem;
  background: rgba(2, 24, 61, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 20px 40px rgba(2, 24, 61, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  min-height: 100%;
}

.security-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(224, 242, 254, 0.95);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(15, 23, 42, 0.55);
  margin-bottom: 0;
  align-self: flex-start;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.8);
  animation: securityPulse 1.8s ease-out infinite;
}

@keyframes securityPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.8);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(34, 211, 238, 0);
  }
}

.security-demo-stage {
  position: relative;
  height: clamp(390px, 47vh, 500px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.26);
  background: linear-gradient(
    180deg,
    rgba(2, 24, 61, 0.95) 0%,
    rgba(3, 31, 79, 0.92) 55%,
    rgba(15, 23, 42, 0.96) 100%
  );
}

.security-demo-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.security-card-stream {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 1rem;
}

.security-card-line {
  display: flex;
  align-items: center;
  gap: 24px;
  will-change: transform;
}

.security-card-wrapper {
  position: relative;
  width: 258px;
  height: 206px;
  flex-shrink: 0;
}

.security-card {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
}

.security-card-front {
  background: linear-gradient(
    155deg,
    rgba(15, 23, 42, 0.96) 0%,
    rgba(15, 23, 42, 0.9) 55%,
    rgba(2, 24, 61, 0.94) 100%
  );
  border: 1px solid hsla(var(--card-hue, 210), 80%, 72%, 0.42);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.4);
  clip-path: inset(0 0 0 var(--front-clip, 0%));
}

.security-card-front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    hsla(var(--card-hue, 210), 100%, 75%, 0.95),
    hsla(var(--card-hue, 210), 80%, 65%, 0.4)
  );
}

.security-card-front-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.7rem;
  padding: 0.95rem;
}

.security-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.security-card-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(186, 230, 253, 0.92);
  font-weight: 700;
}

.security-card-type {
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid hsla(var(--card-hue, 210), 100%, 75%, 0.45);
  background: hsla(var(--card-hue, 210), 80%, 35%, 0.22);
  color: rgba(224, 242, 254, 0.95);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  white-space: nowrap;
}

.security-card-dept {
  font-size: 1rem;
  line-height: 1.2;
  color: #f8fafc;
  font-weight: 700;
}

.security-card-data-grid {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.42rem;
}

.security-data-item {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.45);
  padding: 0.38rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.security-data-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(148, 163, 184, 0.95);
  font-weight: 600;
}

.security-data-value {
  font-size: 0.7rem;
  color: rgba(241, 245, 249, 0.98);
  font-weight: 600;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-card-back {
  background: #050a16;
  border: 1px solid rgba(148, 163, 184, 0.4);
  clip-path: inset(0 calc(100% - var(--code-clip, 0%)) 0 0);
}

.security-card-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(34, 211, 238, 0.14) 0%,
    rgba(34, 211, 238, 0.04) 50%,
    rgba(34, 211, 238, 0) 100%
  );
  pointer-events: none;
}

.security-card-code {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0.75rem;
  overflow: hidden;
  white-space: pre;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 10px;
  line-height: 1.24;
  color: rgba(178, 231, 255, 0.75);
  animation: securityCodeFlicker 0.18s steps(2, end) infinite;
}

@keyframes securityCodeFlicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

.security-scanner-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: min(82%, 360px);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    to bottom,
    rgba(34, 211, 238, 0),
    rgba(34, 211, 238, 0.86),
    rgba(125, 211, 252, 1),
    rgba(34, 211, 238, 0.86),
    rgba(34, 211, 238, 0)
  );
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.65), 0 0 32px rgba(14, 116, 144, 0.4);
  z-index: 6;
  animation: securityScannerPulse 2.2s ease-in-out infinite;
}

@keyframes securityScannerPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scaleY(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleY(1.06);
  }
}

.security-scan-flash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(125, 211, 252, 0.65) 50%,
    transparent 100%
  );
  pointer-events: none;
  animation: securityScanFlash 0.42s ease-out;
  z-index: 4;
}

@keyframes securityScanFlash {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.security-demo-caption {
  margin-top: 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---- DASHBOARD ---- */
.dashboard-showcase {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--color-text-primary);
}

.dashboard-tabs {
  display: flex;
  background: var(--color-bg-light);
  border-bottom: 2px solid var(--color-border);
  overflow-x: auto;
}

.dash-tab {
  flex: 1;
  min-width: 180px;
  padding: 1.5rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.dash-tab:hover {
  background: rgba(242, 22, 81, 0.05);
}

.dash-tab.active {
  background: white;
  border-bottom-color: var(--color-fuchsia);
}

.tab-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.dash-tab.active .tab-number {
  color: var(--color-fuchsia);
}

.tab-name {
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.95rem;
}

.dashboard-content {
  position: relative;
  min-height: 0;
  color: var(--color-text-primary);
}

.dash-panel {
  display: none;
  padding: clamp(1.4rem, 2vw, 2rem);
  animation: fadeIn 0.4s ease;
}

.dash-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-header {
  margin-bottom: 1.4rem;
}

.panel-header h3 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  color: var(--color-navy);
  margin: 0 0 0.45rem;
}

.panel-header p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  margin: 0;
}

.panel-body {
  color: var(--color-text-primary);
}

.panel-body p {
  color: inherit;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: stretch;
}

.kpi-card {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: stretch;
  transition: transform 0.3s ease;
  min-height: 158px;
  height: 100%;
}

.kpi-card:hover {
  transform: translateY(-5px);
}

.kpi-card.primary {
  background: linear-gradient(
    135deg,
    rgba(242, 22, 81, 0.1),
    rgba(255, 107, 53, 0.1)
  );
  border: 2px solid rgba(242, 22, 81, 0.3);
}

.kpi-icon {
  font-size: 1rem;
  min-width: 2.45rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  background: rgba(2, 24, 61, 0.08);
  border: 1px solid rgba(2, 24, 61, 0.14);
  color: var(--color-navy);
  font-weight: 800;
  line-height: 1;
}

.kpi-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.12rem;
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1;
}

.kpi-change {
  font-size: 0.85rem;
  margin-top: auto;
}

.kpi-change.positive {
  color: var(--color-success);
}

.kpi-change.warning {
  color: var(--color-warning);
}

.kpi-change.neutral {
  color: var(--color-text-muted);
}

.panel-chart {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 2rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.chart-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.treated {
  background: var(--color-fuchsia);
}

.legend-dot.control {
  background: var(--color-text-muted);
}

.chart-visualization {
  height: 250px;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
}

.chart-lines {
  height: 100%;
  position: relative;
}

.line-treated,
.line-control {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
}

.line-treated {
  background: var(--color-fuchsia);
  height: 70%;
  clip-path: polygon(0 100%, 20% 80%, 40% 60%, 60% 40%, 80% 20%, 100% 0);
}

.line-control {
  background: var(--color-text-muted);
  height: 40%;
  clip-path: polygon(0 100%, 20% 95%, 40% 90%, 60% 85%, 80% 82%, 100% 80%);
}

/* Panel 2: Impacto */
.did-explanation {
  margin-bottom: 2.5rem;
}

.did-box {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: var(--color-navy);
}

.did-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

.did-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 1.1rem;
}

.did-formula span {
  color: var(--color-navy);
}

.did-formula .minus,
.did-formula .equals {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-fuchsia);
}

.did-formula .result {
  padding: 0.8rem 1.5rem;
  background: var(--color-fuchsia);
  color: white;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 900;
}

.impact-metrics {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 2rem;
}

.impact-item {
  margin-bottom: 2rem;
}

.impact-item:last-child {
  margin-bottom: 0;
}

.impact-label {
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.8rem;
}

.impact-bar {
  background: white;
  height: 50px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.impact-bar.positive .bar-fill {
  background: linear-gradient(90deg, var(--color-success), #00e676);
}

.impact-bar .bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-fuchsia), var(--color-orange));
  border-radius: inherit;
  transition: width 1s ease-out;
  min-width: 0;
}

.impact-bar .bar-value {
  position: relative;
  z-index: 1;
  margin-left: auto;
  margin-right: 0.9rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1;
}

/* Panel 3: Riesgo */
.risk-alert-box {
  background: rgba(244, 67, 54, 0.1);
  border: 2px solid rgba(244, 67, 54, 0.3);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.alert-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.alert-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-danger);
  margin-bottom: 0.5rem;
}

.alert-text {
  color: var(--color-text-primary);
  line-height: 1.6;
}

.risk-breakdown {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 2rem;
}

.risk-category {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.risk-category:last-child {
  margin-bottom: 0;
}

.risk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.risk-name {
  font-weight: 700;
  color: var(--color-navy);
}

.risk-amount {
  font-size: 1.3rem;
  font-weight: 900;
}

.risk-amount.high {
  color: var(--color-danger);
}

.risk-amount.medium {
  color: var(--color-warning);
}

.risk-amount.low {
  color: var(--color-success);
}

.risk-detail {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Panel 4: Prescripción */
.prescription-intro {
  margin-bottom: 2rem;
}

.prescription-intro p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.prescription-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.prescription-item {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border-left: 4px solid transparent;
}

.prescription-item.priority-high {
  border-left-color: var(--color-danger);
}

.prescription-item.priority-medium {
  border-left-color: var(--color-warning);
}

.prescription-item.priority-low {
  border-left-color: var(--color-success);
}

.prescription-rank {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-navy);
  flex-shrink: 0;
}

.prescription-content {
  flex: 1;
}

.prescription-content h4 {
  font-size: 1.3rem;
  color: var(--color-navy);
  margin-bottom: 0.8rem;
}

.prescription-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.meta-tag {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.priority-high .meta-tag {
  background: rgba(244, 67, 54, 0.1);
  color: var(--color-danger);
}

.priority-medium .meta-tag {
  background: rgba(255, 152, 0, 0.1);
  color: var(--color-warning);
}

.priority-low .meta-tag {
  background: rgba(0, 200, 83, 0.1);
  color: var(--color-success);
}

.meta-info {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.prescription-content p {
  color: var(--color-text-muted);
}

/* Panel 5: Calidad */
.quality-score {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  margin-bottom: 1.5rem;
}

.score-circle {
  position: relative;
  width: 300px;
  height: 300px;
}

.score-circle svg {
  width: 100%;
  height: 100%;
}

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-fuchsia);
}

.score-label {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.score-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.detail-item {
  background: var(--color-bg-light);
  padding: 1.5rem;
  border-radius: 12px;
}

.detail-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.detail-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-navy);
}

.quality-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge-item {
  background: rgba(0, 200, 83, 0.1);
  color: var(--color-success);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
}

.badge-icon {
  font-size: 1.5rem;
}

/* Dashboard extended panels */
.dashboard-split-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.5rem;
}

.summary-trend-visual {
  padding: 1rem 1rem 2.25rem;
  position: relative;
  overflow: hidden;
}

.summary-trend-visual::before {
  content: "";
  position: absolute;
  inset: 1rem 1rem 2.75rem;
  background-image: linear-gradient(
      to bottom,
      rgba(148, 163, 184, 0.25) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(148, 163, 184, 0.15) 1px, transparent 1px);
  background-size: 100% 25%, 12.5% 100%;
  border-radius: 10px;
  pointer-events: none;
}

.summary-trend-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 190px;
  display: block;
}

.trend-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-line.treated {
  stroke: var(--color-fuchsia);
}

.trend-line.control {
  stroke: #64748b;
}

.trend-points circle {
  stroke-width: 2;
}

.trend-points.treated circle {
  fill: #fff;
  stroke: var(--color-fuchsia);
}

.trend-points.control circle {
  fill: #fff;
  stroke: #64748b;
}

.trend-axis-labels {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.8rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.summary-program-board {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-program-board h4 {
  font-size: 1.05rem;
  color: var(--color-navy);
}

.summary-program-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.program-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.program-meta strong {
  color: var(--color-navy);
  font-size: 0.9rem;
}

.program-meta span {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.program-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.program-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.program-bar-fill.high {
  background: linear-gradient(90deg, #f21651, #ff6b35);
}

.program-bar-fill.medium {
  background: linear-gradient(90deg, #fb7185, #f59e0b);
}

.program-bar-fill.low {
  background: linear-gradient(90deg, #f59e0b, #facc15);
}

.did-formula .plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-fuchsia);
}

.impact-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.impact-side-panel {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 1.5rem;
}

.impact-side-panel h4 {
  font-size: 1.05rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.did-area-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.did-area-table th,
.did-area-table td {
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.84rem;
}

.did-area-table th {
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.did-area-table td {
  color: var(--color-navy);
  font-weight: 600;
}

.did-note {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.did-note code,
.risk-note code {
  color: var(--color-navy);
  background: #e2e8f0;
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
}

.risk-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
}

.risk-individual-card {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 1.5rem;
}

.risk-individual-card h4 {
  color: var(--color-navy);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.risk-person-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.risk-person-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.risk-person-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.risk-person-main strong {
  color: var(--color-navy);
  font-size: 0.9rem;
}

.risk-person-main span {
  color: var(--color-text-muted);
  font-size: 0.76rem;
}

.risk-person-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.risk-person-score {
  color: var(--color-danger);
  font-size: 0.78rem;
  font-weight: 700;
}

.risk-person-amount {
  color: var(--color-navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.risk-note {
  margin-top: 0.9rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.prescription-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pres-overview-card {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
}

.pres-overview-card .overview-label {
  display: block;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.pres-overview-card strong {
  font-size: 1.8rem;
  color: var(--color-navy);
  line-height: 1;
}

.pres-overview-card.selected {
  border-color: rgba(0, 200, 83, 0.35);
}

.pres-overview-card.waitlist {
  border-color: rgba(255, 152, 0, 0.35);
}

.pres-overview-card.rejected {
  border-color: rgba(244, 67, 54, 0.35);
}

.prescription-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.prescription-analytics {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 1.5rem;
}

.prescription-analytics h4 {
  color: var(--color-navy);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.prescription-donut {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  position: relative;
  background: conic-gradient(
    var(--color-success) 0deg 170deg,
    var(--color-warning) 170deg 204deg,
    var(--color-danger) 204deg 360deg
  );
}

.prescription-donut::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: white;
}

.prescription-donut-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.prescription-donut-center strong {
  font-size: 2rem;
  color: var(--color-navy);
  line-height: 1;
}

.prescription-donut-center span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.prescription-mini-stats {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mini-stat-row {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.mini-stat-row span {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.mini-stat-row strong {
  color: var(--color-navy);
  font-size: 0.86rem;
}

.model-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.model-quality-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.model-quality-card span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.model-quality-card strong {
  color: var(--color-navy);
  font-size: 1.05rem;
}

.dash-panel[data-panel="3"] .panel-header,
.dash-panel[data-panel="4"] .panel-header,
.dash-panel[data-panel="5"] .panel-header {
  margin-bottom: 1rem;
}

.dash-panel[data-panel="3"] .risk-alert-box {
  margin-bottom: 1.2rem;
}

.dash-panel[data-panel="4"] .prescription-overview-grid {
  margin-bottom: 1rem;
}

/* ---- MÉTRICAS ---- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.metric-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-10px);
}

.metric-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.metric-card h3 {
  font-size: 1.6rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.metric-description {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.metric-example {
  background: var(--color-bg-light);
  border-radius: 12px;
  padding: 1.5rem;
}

.example-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.example-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.example-money {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-fuchsia);
}

.metrics-note {
  background: linear-gradient(
    135deg,
    rgba(242, 22, 81, 0.05),
    rgba(255, 107, 53, 0.05)
  );
  border: 2px solid rgba(242, 22, 81, 0.2);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.note-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.note-content {
  flex: 1;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.note-content strong {
  color: var(--color-navy);
}

/* ---- CRONOGRAMA ---- */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line-progress {
  position: absolute;
  left: 50px;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--color-border);
}

.timeline-phase {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.phase-marker {
  position: relative;
  text-align: center;
}

.marker-dot {
  width: 24px;
  height: 24px;
  background: white;
  border: 4px solid var(--color-navy);
  border-radius: 50%;
  margin: 0 auto 0.5rem;
}

.phase-training .marker-dot {
  background: var(--color-fuchsia);
  border-color: var(--color-fuchsia);
  box-shadow: 0 0 0 8px rgba(242, 22, 81, 0.2);
}

.marker-label {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.95rem;
}

.phase-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.phase-training .phase-content {
  border: 2px solid var(--color-fuchsia);
  box-shadow: 0 10px 30px rgba(242, 22, 81, 0.15);
}

.phase-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(2, 24, 61, 0.1);
  color: var(--color-navy);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.phase-badge.primary {
  background: rgba(242, 22, 81, 0.15);
  color: var(--color-fuchsia);
}

.phase-content h3 {
  font-size: 1.6rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.phase-tasks {
  list-style: none;
  margin-bottom: 1.5rem;
}

.phase-tasks li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.phase-tasks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-fuchsia);
  font-weight: 700;
}

.phase-deliverable {
  background: var(--color-bg-light);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.phase-deliverable strong {
  color: var(--color-navy);
}

.timeline-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.summary-box {
  background: linear-gradient(
    135deg,
    rgba(242, 22, 81, 0.05),
    rgba(255, 107, 53, 0.05)
  );
  border: 2px solid rgba(242, 22, 81, 0.2);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.summary-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.summary-content h4 {
  font-size: 1.3rem;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.summary-content p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---- BENEFICIOS POR ROL ---- */
.stakeholder-grid {
  display: grid;
  gap: 2rem;
}

.stakeholder-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
}

.stakeholder-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.stakeholder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stakeholder-avatar.cfo {
  background: linear-gradient(135deg, #ff6b35, #ff8a50);
}

.stakeholder-avatar.hr {
  background: linear-gradient(135deg, #f21651, #ff1744);
}

.stakeholder-avatar.ops {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
}

.stakeholder-header h3 {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 0.3rem;
}

.role-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.stakeholder-questions {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.question-item,
.answer-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.q-icon,
.a-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.q-icon {
  background: rgba(255, 255, 255, 0.1);
}

.a-icon {
  background: rgba(0, 200, 83, 0.2);
}

.q-text,
.a-text {
  flex: 1;
  padding-top: 0.5rem;
}

.q-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
}

.a-text {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

/* ---- CASOS DE ÉXITO ---- */
.cases-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.case-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.case-card:hover {
  transform: translateY(-10px);
}

.case-card.featured {
  border: 3px solid var(--color-fuchsia);
  box-shadow: 0 20px 50px rgba(242, 22, 81, 0.2);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.case-industry {
  padding: 0.5rem 1rem;
  background: rgba(2, 24, 61, 0.1);
  color: var(--color-navy);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
}

.case-size {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.case-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text-primary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.case-author {
  margin-bottom: 2rem;
}

.author-name {
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.3rem;
}

.author-company {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
}

.result-item {
  text-align: center;
}

.result-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-fuchsia);
}

.cases-cta {
  text-align: center;
  padding: 3rem;
  background: var(--color-bg-light);
  border-radius: 24px;
}

.cta-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

/* ---- INVERSIÓN ---- */
.pricing-wrapper {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.pricing-card {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  border: 3px solid var(--color-fuchsia);
}

.pricing-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--color-fuchsia);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-title {
  font-size: 2rem;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.pricing-amount {
  text-align: center;
  margin-bottom: 2.5rem;
}

.currency {
  font-size: 2rem;
  color: var(--color-text-muted);
  vertical-align: top;
}

.price {
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-navy);
  margin: 0 0.5rem;
}

.period {
  display: block;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.pricing-features {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-item:last-child {
  border-bottom: none;
}

.check-icon {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.feature-item span {
  color: var(--color-text-primary);
  line-height: 1.6;
}

.pricing-guarantee {
  background: rgba(0, 200, 83, 0.1);
  border: 2px solid rgba(0, 200, 83, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.guarantee-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.guarantee-text {
  flex: 1;
  color: var(--color-text-primary);
  line-height: 1.6;
}

.guarantee-text strong {
  color: var(--color-success);
}

.pricing-note {
  background: var(--color-bg-light);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.roi-comparison {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.comparison-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 2.5rem;
}

.comparison-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.comparison-col {
  flex: 1;
  text-align: center;
}

.col-label {
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.col-bar {
  background: var(--color-bg-light);
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.investment .col-bar {
  background: linear-gradient(
    135deg,
    rgba(2, 24, 61, 0.1),
    rgba(10, 35, 81, 0.1)
  );
}

.return .col-bar {
  background: linear-gradient(
    135deg,
    rgba(242, 22, 81, 0.1),
    rgba(255, 107, 53, 0.1)
  );
}

.bar-amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-navy);
}

.comparison-arrow {
  flex-shrink: 0;
}

.comparison-insight {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

.comparison-insight strong {
  color: var(--color-fuchsia);
  font-weight: 700;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: left;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--color-bg-light);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 2rem 2rem;
}

.faq-answer p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.faq-answer ul,
.faq-answer ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.faq-answer li {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* ---- CTA FINAL ---- */
.section-cta-final {
  background: linear-gradient(135deg, #02183d 0%, #0a2351 50%, #02183d 100%);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.section-cta-final::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(242, 22, 81, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.section-cta-final .container-narrow {
  position: relative;
  z-index: 2;
}

/* Botones base del landing */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  border: 2px solid transparent;
  background: linear-gradient(90deg, var(--color-fuchsia), var(--color-orange));
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(90deg, #ff4f79 0%, #ff8740 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #ff3f6d 0%, #ff7b32 100%);
}

.btn-xl {
  padding: 1rem 1.8rem;
  font-size: 1.03rem;
  border-radius: 14px;
}

.btn-block {
  width: 100%;
}

.cta-final-content {
  text-align: center;
  margin-bottom: 3rem;
}

.cta-badge {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: rgba(0, 200, 83, 0.2);
  border: 2px solid rgba(0, 200, 83, 0.4);
  border-radius: 50px;
  color: #00e676;
  font-weight: 700;
  margin-bottom: 2rem;
}

.cta-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(90deg, var(--color-fuchsia), var(--color-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-description {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 2.2rem;
  max-width: 920px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.btn-secondary-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: white;
  box-shadow: none;
}

.btn-secondary-outline:hover {
  background: white;
  color: var(--color-navy);
  border-color: white;
}

.cta-contact-note {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.6rem;
}

.cta-features-mini {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mini-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.95rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.cta-proof-header {
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 820px;
}

.cta-proof-header h3 {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 0.35rem;
}

.cta-proof-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
  line-height: 1.5;
}

.cta-visual-final {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
  align-items: stretch;
}

.final-stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.final-stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.35);
}

.stat-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.stat-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.stat-number-big {
  font-size: 2.3rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin: 0;
}

.stat-label-small {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.stat-context {
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cta-proof-note {
  margin: 3.4rem auto 0;
  max-width: 1000px;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ---- FOOTER ---- */
.main-footer {
  background: #01142a;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: white;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
  .hero-visual {
    display: none;
  }

  .hero-title {
    font-size: 4rem;
  }

  .security-data-grid {
    grid-template-columns: 1fr;
  }

  .security-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-split-grid,
  .impact-layout,
  .risk-layout,
  .prescription-layout {
    grid-template-columns: 1fr;
  }

  .model-quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .security-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .landing-nav-inner {
    padding: 0.8rem 1rem;
  }

  .nav-right-actions {
    gap: 0.45rem;
    max-width: 72vw;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-right-actions::-webkit-scrollbar {
    display: none;
  }

  .btn-login-nav,
  .btn-home-nav,
  .btn-ecosystem-nav,
  .btn-architecture-nav,
  .btn-dashboard-nav {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .container-narrow,
  .container-wide {
    padding: 0 1.5rem;
  }

  .section-block {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn-large,
  .btn-xl {
    width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .problem-visualization,
  .solution-grid,
  .metrics-grid,
  .stakeholder-grid,
  .footer-grid,
  .cta-visual-final {
    grid-template-columns: 1fr;
  }

  .method-step,
  .method-step.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .dashboard-tabs {
    flex-direction: column;
  }

  .dash-tab {
    min-width: auto;
    border-left: 3px solid transparent;
    border-bottom: none;
  }

  .dash-tab.active {
    border-left-color: var(--color-fuchsia);
  }

  .kpi-grid,
  .case-results {
    grid-template-columns: 1fr;
  }

  .prescription-overview-grid,
  .model-quality-grid {
    grid-template-columns: 1fr;
  }

  .quality-score {
    grid-template-columns: 1fr;
  }

  .score-circle {
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }

  .timeline-wrapper {
    padding-left: 2rem;
  }

  .timeline-line-progress {
    left: 12px;
  }

  .timeline-phase {
    grid-template-columns: 24px 1fr;
    gap: 1.5rem;
  }

  .marker-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.75rem;
  }

  .timeline-summary {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-description {
    font-size: 1.05rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-contact-note {
    font-size: 0.92rem;
  }

  .cta-proof-header h3 {
    font-size: 1.2rem;
  }

  .cta-proof-header p {
    font-size: 0.92rem;
  }

  .final-stat-card {
    padding: 1.4rem;
  }

  .stat-number-big {
    font-size: 2rem;
  }

  .stat-context {
    font-size: 0.9rem;
  }

  .security-demo-stage {
    height: 340px;
  }

  .security-card-wrapper {
    width: 228px;
    height: 178px;
  }

  .security-card-type {
    font-size: 0.58rem;
    padding: 0.18rem 0.4rem;
  }

  .security-card-dept {
    font-size: 0.9rem;
  }

  .security-data-value {
    font-size: 0.64rem;
  }

  .security-card-code {
    font-size: 9px;
    line-height: 1.22;
  }

  .security-scanner-line {
    height: min(78%, 290px);
  }

  .summary-trend-svg {
    height: 170px;
  }

  .trend-axis-labels {
    font-size: 0.68rem;
  }

  .risk-person-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .risk-person-metrics {
    align-items: flex-start;
  }

  .prescription-donut {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .landing-nav-inner {
    padding: 0.75rem 0.8rem;
  }

  .nav-right-actions {
    max-width: 76vw;
  }

  .hero-title {
    font-size: 2rem;
  }

  .stat-item {
    text-align: center;
    flex: 1 1 100%;
  }

  .comparison-visual {
    flex-direction: column;
  }

  .comparison-arrow {
    transform: rotate(90deg);
  }

  .mini-feature {
    width: 100%;
    justify-content: flex-start;
  }

  .cta-badge {
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
  }
}

/* ---- UTILIDADES ---- */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   MODIFICACIÓN HERO TITLE BOX
   ============================================ */
/* ============================================
   MODIFICACIÓN HERO TITLE BOX
   ============================================ */
/* ============================================
   HERO MESSAGE BLOCK — unified container
   ============================================ */
.hero-message-block {
    background: rgba(2, 24, 61, 0.32);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 2.8rem 3.5rem 2.2rem;
    margin-top: 8vh;
    margin-bottom: 2rem;
    max-width: 820px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
                inset 0 0 60px rgba(2, 24, 61, 0.15);
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 4.2rem;
    margin: 0 0 1.2rem 0;
    line-height: 1.05;
}

.highlight-red-potent {
    color: #ff0033;
    text-shadow: 0 0 25px rgba(255, 0, 51, 0.8), 0 0 50px rgba(255, 0, 51, 0.4);
    font-weight: 900;
    display: block;
    margin-top: 0.15rem;
    opacity: 1;
    transform: translateY(0);
    animation: pulseRed 2s infinite alternate;
}

@keyframes pulseRed {
    from { text-shadow: 0 0 25px rgba(255, 0, 51, 0.8), 0 0 50px rgba(255, 0, 51, 0.4); }
    to { text-shadow: 0 0 35px rgba(255, 0, 51, 1), 0 0 70px rgba(255, 0, 51, 0.6); }
}

/* Subtitles — integrated, no separate backgrounds */
.hero-subtitle-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
}

.subtitle-divider {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.6), transparent);
    margin: 0.2rem 0;
}

.subtitle-line {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    background: none;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
}

.subtitle-line.primary {
    font-size: 1.45rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    border-left: none;
}

.subtitle-line.secondary {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    line-height: 1.6;
}

.subtitle-line strong {
    color: white;
    font-weight: 700;
}

.copilot-accent {
    color: #00c8ff !important;
    font-weight: 800 !important;
    text-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
}

/* Scroll Indicator — pulsing circle */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    z-index: 10;
}

.hero-scroll-indicator:hover .scroll-inner {
    background: rgba(0, 200, 255, 0.2);
    border-color: rgba(0, 200, 255, 0.7);
}

.scroll-inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.scroll-inner .scroll-chevron {
    color: rgba(255, 255, 255, 0.8);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-pulse-ring {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 200, 255, 0.4);
    animation: scrollPulse 2.5s ease-out infinite;
    z-index: 1;
}

@keyframes scrollPulse {
    0% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    100% { transform: translateX(-50%) scale(2.2); opacity: 0; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.scroll-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 400;
}

/* old scroll-arrows removed — replaced by scroll-inner + scroll-pulse-ring */

/* =========================================
   ENTERPRISE DESIGN SYSTEM - "EL DESAFÍO"
   ========================================= */

/* Section Background */
.section-enterprise-gray {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

/* Header Styling */
.enterprise-header-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4rem;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .enterprise-header-group {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: center;
        gap: 3rem;
    }
}

.productivity-chart-mini {
    flex-shrink: 0;
}

/* Animated SVG Lines */
.chart-line-inv {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 2s ease-out forwards;
    animation-delay: 0.5s;
    animation-play-state: paused; /* Controlled by JS */
}

.chart-line-prod {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1.5s;
    animation-play-state: paused; /* Controlled by JS */
}

.animate-chart .chart-line-inv,
.animate-chart .chart-line-prod {
    animation-play-state: running;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.text-left-align {
    text-align: center;
}

@media (min-width: 768px) {
    .text-left-align {
        text-align: left;
        margin-bottom: 0;
    }
}

.text-gradient-enterprise {
    background: linear-gradient(90deg, #02183d 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
    font-weight: 800;
}

.section-subtitle-enterprise {
    font-size: 1.25rem;
    color: #475569; /* Slate 600 */
    line-height: 1.6;
    max-width: 600px;
    margin-top: 1rem;
}

.badge-zero {
    background: #fee2e2;
    color: #ef4444;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9em;
}

/* Dynamic Counter */
.counter-wrapper-enterprise {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.counter-wrapper-enterprise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ef4444;
}

.counter-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.counter-value-group {
    font-size: 4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.2rem;
}

.currency {
    font-size: 2rem;
    color: #94a3b8;
    font-weight: 400;
}

.unit {
    font-size: 1.5rem;
    color: #64748b;
    font-weight: 600;
}

.counter-caption {
    margin-top: 0.5rem;
    color: #ef4444;
    font-weight: 500;
}

/* Cards Grid */
.enterprise-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 700px) {
    .enterprise-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .enterprise-cards-grid.enterprise-cards-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card-enterprise {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0; /* JS Reveal */
    transform: translateY(20px);
}

.card-enterprise.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-enterprise:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.card-icon-box {
    width: 48px;
    height: 48px;
    background: #f0f9ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #0ea5e9; /* Sky 500 */
    transition: all 0.3s ease;
}

.card-enterprise:hover .card-icon-box {
    background: #0ea5e9;
    color: white;
}

.icon-enterprise {
    stroke-width: 2px;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.card-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s ease;
}

/* Hover Effects */
.card-enterprise:hover .card-badge {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0284c7;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.pulse-badge {
    position: relative;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.card-enterprise:hover .pulse-badge {
    animation: pulse-blue 2s infinite;
    border-color: #38bdf8;
    color: #0284c7;
}

/* Dark Enterprise Cards — redesigned */
.card-enterprise-dark {
    background: linear-gradient(165deg, rgba(6, 28, 66, 0.95) 0%, rgba(2, 18, 48, 0.98) 100%);
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: 18px;
    padding: 2rem 1.8rem 1.8rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-top-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #22d3ee, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-enterprise-dark:hover .card-top-accent {
    opacity: 1;
}

.card-enterprise-dark:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
    background: linear-gradient(165deg, rgba(8, 34, 78, 0.98) 0%, rgba(3, 22, 56, 1) 100%);
}

.card-icon-box-dark {
    width: 48px;
    height: 48px;
    background: rgba(34, 211, 238, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: all 0.35s ease;
    border: 1px solid rgba(34, 211, 238, 0.1);
}

.card-enterprise-dark:hover .card-icon-box-dark {
    background: rgba(34, 211, 238, 0.15);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.25);
}

.icon-enterprise-cyan {
    stroke: #22d3ee;
    stroke-width: 2px;
}

.card-content-dark {
    flex: 1;
}

.card-content-dark h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-content-dark p {
    color: #8b9dc3;
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.card-number-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1.2rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(34, 211, 238, 0.06);
    line-height: 1;
    pointer-events: none;
    transition: color 0.4s ease;
}

.card-enterprise-dark:hover .card-number-indicator {
    color: rgba(34, 211, 238, 0.12);
}

/* Blur to Sharp Animation */
.card-enterprise-dark.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    animation: blurToSharp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes blurToSharp {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* =========================================
   GLASSMORPHISM SOLUTION SECTION
   ========================================= */

.section-dark-navy {
    background: #02183d;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.text-white { color: white; }
.text-gray-300 { color: #cbd5e1; }

/* ============================================
   BLOQUE 3 — Light Glassmorphism Z-Pattern
   ============================================ */
.section-light-glass {
    background: linear-gradient(180deg, #f0f4f8 0%, #e8eef5 100%);
    position: relative;
    overflow: hidden;
}

.section-light-glass::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.section-light-glass::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Z-Pattern layout: text left, visual right */
.solution-z-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

@media (min-width: 900px) {
    .solution-z-layout {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Text column */
.solution-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #0ea5e9;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 20px;
}

.solution-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.solution-intro {
    font-size: 1.06rem;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.solution-intro strong {
    color: #0F172A;
    font-weight: 700;
}

/* Benefits list */
.solution-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.solution-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.benefit-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 2px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.benefit-text {
    font-size: 1rem;
    color: #334155;
    line-height: 1.65;
}

.benefit-text strong {
    color: #0F172A;
    font-weight: 700;
}

.benefit-text em {
    font-style: italic;
    color: #475569;
}

/* Visual column — Dashboard image */
.solution-visual-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-placeholder {
    width: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s ease;
}

.dashboard-placeholder:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13),
                0 8px 20px rgba(14, 165, 233, 0.08);
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Animaciones de entrada — Bloque 3
   ============================================ */

/* Contenedor glass: fade in + escala */
.solution-z-layout {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.solution-z-layout.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Texto: slide desde la izquierda */
.solution-text-col {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease 0.3s,
                transform 0.7s ease 0.3s;
}

.solution-z-layout.visible .solution-text-col {
    opacity: 1;
    transform: translateX(0);
}

/* Imagen: slide desde la derecha */
.solution-visual-col {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease 0.5s,
                transform 0.7s ease 0.5s;
}

.solution-z-layout.visible .solution-visual-col {
    opacity: 1;
    transform: translateX(0);
}

/* Benefits: stagger desde abajo */
.solution-benefits li {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease,
                transform 0.5s ease;
}

.solution-z-layout.visible .solution-benefits li:nth-child(1) {
    opacity: 1; transform: translateY(0); transition-delay: 0.6s;
}
.solution-z-layout.visible .solution-benefits li:nth-child(2) {
    opacity: 1; transform: translateY(0); transition-delay: 0.75s;
}
.solution-z-layout.visible .solution-benefits li:nth-child(3) {
    opacity: 1; transform: translateY(0); transition-delay: 0.9s;
}

/* Responsive adjustments */
@media (max-width: 899px) {
    .solution-z-layout {
        padding: 2rem 1.5rem;
    }

    .solution-title {
        font-size: 1.8rem;
    }

    .solution-intro {
        font-size: 1rem;
    }
}
