/* ============================================================================
   MAPA DEL TALENTO - ELITE RESPONSIVE DESIGN
   Mobile Reporting Style - 100% Responsive para todos los dispositivos
   ============================================================================ */

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

:root {
  /* Elite Colors */
  --navy-black: #0A0F1A;
  --blue-deep: #0F3E6A;
  --blue-primary: #1E5A8E;
  --blue-bright: #2B93D6;
  --white-pure: #FFFFFF;
  --gray-light: #F3F4F6;
  --gray-medium: #6B7280;
  --gray-dark: #374151;
  
  /* Capability Scale Colors */
  --level-1: #DC2626;
  --level-2: #F59E0B;
  --level-3: #FCD34D;
  --level-4: #10B981;
  --level-5: #3B82F6;
  
  /* Spacing (8pt grid) */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Typography */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-dark);
  position: relative;
}

/* ============================================================================
   LOGO FIXED - Esquina Superior Derecha
   ============================================================================ */
.logo-fixed {
  position: fixed;
  top: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 2rem);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: clamp(0.5rem, 1vw, 0.75rem);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-fixed:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.logo-fixed img {
  display: block;
  width: clamp(100px, 20vw, 180px);
  height: auto;
  max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-fixed {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem;
    border-radius: 8px;
  }
  
  .logo-fixed img {
    width: clamp(80px, 25vw, 120px);
  }
}

@media (max-width: 480px) {
  .logo-fixed {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem;
    border-radius: 6px;
  }
  
  .logo-fixed img {
    width: clamp(70px, 30vw, 100px);
  }
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: #F5F7FA;
}

/* ============================================================================
   TYPOGRAPHY - ULTRA BOLD HIERARCHY
   ============================================================================ */
.display-mega {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white-pure);
  margin-bottom: var(--space-md);
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.display-hero {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.display-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy-black);
  margin-bottom: var(--space-md);
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-black);
  margin-bottom: var(--space-sm);
}

.text-body {
  font-size: clamp(0.9375rem, 2vw, 1rem);
  line-height: 1.7;
  color: var(--gray-dark);
}

.text-caption {
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  line-height: 1.5;
  color: var(--gray-medium);
}

/* ============================================================================
   HERO SECTION - IMAGE BACKGROUND STYLE
   ============================================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(43,147,214,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(30,90,142,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10,15,26,0.85) 0%, rgba(15,62,106,0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-text {
  max-width: 700px;
}

.hero-tagline {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(43,147,214,0.2);
  border: 1px solid rgba(43,147,214,0.4);
  border-radius: 50px;
  color: #2B93D6;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

/* ============================================================================
   CONTAINER SYSTEM - RESPONSIVE
   ============================================================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 1200px;
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

/* ============================================================================
   CARDS - PREMIUM WITH DEPTH
   ============================================================================ */
.card {
  background: var(--white-pure);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 
    0 4px 6px rgba(0,0,0,0.05),
    0 12px 24px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.1),
    0 24px 48px rgba(0,0,0,0.15);
}

.card-glass {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.4);
}

.card-family {
  background: var(--white-pure);
  border-radius: 16px;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 2px solid var(--gray-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-family:hover {
  border-color: var(--blue-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30,90,142,0.2);
}

/* ============================================================================
   STATS - CONSULTING STYLE
   ============================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.stat-card {
  text-align: center;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--white-pure);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================================
   CAPABILITY SCALE - THERMOMETER
   ============================================================================ */
.scale-item {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1rem);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.scale-badge {
  width: clamp(32px, 6vw, 40px);
  height: clamp(32px, 6vw, 40px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.25rem);
  flex-shrink: 0;
}

.scale-bar-container {
  flex: 1;
  min-width: 0;
}

.scale-bar {
  display: flex;
  height: clamp(10px, 2vw, 14px);
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-light);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 0.5rem;
}

.scale-segment {
  flex: 1;
  transition: all 0.3s ease;
  opacity: 0.3;
}

.scale-segment.active {
  opacity: 1;
  box-shadow: 0 0 12px currentColor;
}

.scale-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.scale-title {
  font-weight: 700;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.scale-desc {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: var(--gray-medium);
}

/* ============================================================================
   ICON SYSTEM - FAMILY DIFFERENTIATION
   ============================================================================ */
.family-icon {
  width: clamp(44px, 8vw, 56px);
  height: clamp(44px, 8vw, 56px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.icon-directora { background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: white; }
.icon-gerente { background: linear-gradient(135deg, #3B82F6, #1E40AF); color: white; }
.icon-jefe-comercial { background: linear-gradient(135deg, #10B981, #059669); color: white; }
.icon-jefe-producto { background: linear-gradient(135deg, #F59E0B, #D97706); color: white; }
.icon-especialista { background: linear-gradient(135deg, #06B6D4, #0891B2); color: white; }
.icon-ejecutivo { background: linear-gradient(135deg, #6366F1, #4338CA); color: white; }
.icon-representante { background: linear-gradient(135deg, #EC4899, #BE185D); color: white; }

/* ============================================================================
   BUTTONS - HIGH-TICKET CTAs
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(0.875rem, 2vw, 1.125rem) clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2B93D6, #1E5A8E);
  color: white;
  box-shadow: 0 4px 16px rgba(43,147,214,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43,147,214,0.5);
}

/* ============================================================================
   BADGES
   ============================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-size: clamp(0.6875rem, 1.5vw, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.badge-pending {
  background: rgba(59,130,246,0.1);
  color: #3B82F6;
  border: 1px solid rgba(59,130,246,0.3);
}

.badge-completed {
  background: rgba(16,185,129,0.1);
  color: #10B981;
  border: 1px solid rgba(16,185,129,0.3);
}

/* ============================================================================
   GRID SYSTEMS - FULLY RESPONSIVE
   ============================================================================ */
.grid {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid-families {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-delay-1 { animation-delay: 0.15s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.45s; opacity: 0; }

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.text-center { text-align: center; }
.text-white { color: var(--white-pure); }

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

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */
@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: auto;
    padding: var(--space-2xl) 0;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .scale-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .scale-bar-container {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 1rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .card {
    border-radius: 16px;
  }
}
