@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;700&display=swap');

/* VARIABLES DEL SISTEMA DE DISEÑO (PALETA EXACTA) */
:root {
  --color-bg: #F4F6F9;
  --color-navy: #1E3A8A;
  --color-navy-dark: #122252;
  --color-blue: #3B82F6;
  --color-blue-dark: #1D4ED8;
  --color-mustard: #F59E0B;
  --color-mustard-hover: #D97706;
  --color-mustard-soft: #FEF3C7;
  --color-text-dark: #1F2937;
  --color-text-light: #F9FAFB;
  --color-border: #E5E7EB;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-premium: 12px;
}

/* ESTILOS GLOBALES */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--color-navy);
}

/* CLAMP TYPOGRAPHY FLUIDA */
h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}
h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

/* HEADER & NAVBAR */
.bg-navy {
  background-color: var(--color-navy) !important;
}

.brand-logo {
  height: clamp(30px, 5vw, 45px);
  width: auto;
  object-fit: contain;
}

.navbar-nav .nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-text-light) !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.btn-loadtest {
  color: var(--color-mustard) !important;
}
.navbar-nav .nav-link.btn-loadtest:hover,
.navbar-nav .nav-link.btn-loadtest.active {
  background-color: rgba(245, 158, 11, 0.15) !important;
  color: #FFF !important;
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  min-height: 480px;
  border-bottom: 4px solid var(--color-mustard);
}

.hero-figure {
  display: inline-block;
  max-width: 100%;
}

.hero-image {
  max-height: 380px;
  width: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
  animation: floatIllustration 6s ease-in-out infinite;
}

@keyframes floatIllustration {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* BOTONES PERSONALIZADOS */
.btn-mustard {
  background-color: var(--color-mustard) !important;
  color: var(--color-navy) !important;
  font-family: var(--font-title);
  font-weight: 600;
  border: 1px solid var(--color-mustard);
  transition: var(--transition-smooth);
}

.btn-mustard:hover {
  background-color: var(--color-mustard-hover) !important;
  border-color: var(--color-mustard-hover);
  color: #FFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-outline-navy {
  border-color: var(--color-navy);
  color: var(--color-navy);
  transition: var(--transition-smooth);
}

.btn-outline-navy:hover {
  background-color: var(--color-navy);
  color: #FFF;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
}

/* METADATA/CACHE BAR */
.cache-bar {
  z-index: 1020;
}

/* CARDS PREMIUM (GLASSMORPHISM SUBTLE) */
.glass-card,
.simulator-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-premium);
  transition: var(--transition-smooth);
}

.simulator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(18, 34, 82, 0.08) !important;
}

/* GRAFICOS Y CONTENEDORES SVG */
.svg-chart-container,
.svg-funnel-container,
.gauge-container {
  height: 220px;
  position: relative;
}

svg {
  display: block;
}

/* GAUGES Y AARRR FUNNEL */
.aarrr-meter {
  background: #FFF;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem;
}

/* TABLEROS DE SIMULACIÓN DE FLUJO */
.kanban-simulation-board,
.scrum-simulation-board {
  min-height: 140px;
  overflow-x: auto;
}

.flow-card-item {
  background: #FFF;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-blue);
  border-radius: 6px;
  padding: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  cursor: grab;
}

.flow-card-item.scrum-item {
  border-left-color: var(--color-navy);
}

.flow-card-item.done {
  border-left-color: #10B981;
  text-decoration: line-through;
  opacity: 0.7;
}

/* CONSOLA DE LOGS */
#loadtest-console-logs,
#lean-console-log {
  max-height: 120px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
}

/* SECCIONES Y ANIMACIONES PREFERS-REDUCED-MOTION */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .hero-image {
    animation: none !important;
  }
}

/* RESPONSIVE DESIGN ADJUSTMENTS */
@media (max-width: 768px) {
  .hero-image {
    max-height: 240px;
    margin: 0 auto;
  }
  .app-footer {
    text-align: center !important;
  }
}

/* TEXT UTILITIES */
.text-xxs {
  font-size: 0.7rem;
}
.text-xs {
  font-size: 0.8rem;
}
.text-sm {
  font-size: 0.9rem;
}
.text-navy {
  color: var(--color-navy) !important;
}
