/* ===================================
   HISTORIA PAGE
   =================================== */

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 50vh;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

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

.hero-section h1 {
  color: var(--white);
  font-size: 3.5rem;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  font-size: 1.4rem;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-box {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--card-radius);
  box-shadow: 0 8px 32px rgba(10, 36, 99, 0.08);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(10, 36, 99, 0.05);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--bright-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-box:hover::before {
  transform: scaleX(1);
}

.stat-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(10, 36, 99, 0.15);
  border-color: rgba(212, 175, 55, 0.2);
}

.stat-box h3 {
  background: linear-gradient(135deg, var(--accent-gold), var(--bright-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3rem;
  margin-bottom: 0.75rem;
  font-weight: 900;
  transition: transform 0.3s ease;
}

.stat-box:hover h3 {
  transform: scale(1.1);
}

.stat-box p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* MISSION AND VISION CARDS */
.mission-card,
.vision-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(10, 36, 99, 0.08);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(10, 36, 99, 0.05);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.mission-card::after,
.vision-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  transform: translate(50%, 50%);
  transition: all 0.4s ease;
}

.mission-card:hover::after,
.vision-card:hover::after {
  transform: translate(30%, 30%) scale(1.5);
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(10, 36, 99, 0.15);
  border-color: rgba(212, 175, 55, 0.2);
}

.icon-circle {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--accent-gold), var(--bright-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
  transition: all 0.4s ease;
}

.mission-card:hover .icon-circle,
.vision-card:hover .icon-circle {
  transform: rotate(360deg) scale(1.1);
}

.icon-circle i {
  font-size: 2.5rem;
  color: var(--white);
}

/* VALUE CARDS */
.value-card {
  background: var(--white);
  padding: 2.25rem 1.75rem;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 20px rgba(10, 36, 99, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid rgba(10, 36, 99, 0.05);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

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

.value-card > * {
  position: relative;
  z-index: 1;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(10, 36, 99, 0.15);
  border-color: rgba(212, 175, 55, 0.2);
}

.value-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--bright-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.15) rotate(-5deg);
  -webkit-text-fill-color: var(--white);
}

.value-card h5 {
  color: var(--primary-blue);
  margin-bottom: 0.875rem;
  transition: color 0.3s ease;
  font-weight: 700;
}

.value-card:hover h5 {
  color: var(--white) !important;
}

.value-card p {
  margin: 0;
  transition: color 0.3s ease;
  color: var(--text-muted);
  line-height: 1.6;
}

.value-card:hover p {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* MODERN TIMELINE */
.modern-timeline {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  padding: 4rem 0;
}

.modern-timeline::before {
  content: '';
  position: absolute;
  top: 5.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-blue), var(--accent-gold), transparent);
  z-index: 0;
}

.timeline-card-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.timeline-year {
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(10, 36, 99, 0.2);
  border: 2px solid var(--white);
  transition: all 0.3s ease;
}

.timeline-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(10, 36, 99, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(10, 36, 99, 0.05);
  position: relative;
  height: 100%;
}

.timeline-card.featured {
  border-color: var(--accent-gold);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
}

.timeline-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(10, 36, 99, 0.12);
  border-color: var(--accent-gold);
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: var(--light-bg);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  transition: all 0.4s ease;
}

.timeline-card:hover .timeline-icon {
  background: linear-gradient(135deg, var(--accent-gold), var(--bright-gold));
  color: var(--white);
  transform: rotateY(360deg);
}

.timeline-card h4 {
  color: var(--primary-blue);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.timeline-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* RESPONSIVE TIMELINE */
@media (max-width: 991px) {
  .modern-timeline {
    flex-direction: column;
    gap: 3rem;
  }
  
  .modern-timeline::before {
    top: 0;
    left: 2.5rem;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary-blue), var(--accent-gold), transparent);
  }
  
  .timeline-card-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
  
  .timeline-year {
    margin-bottom: 0;
    min-width: 80px;
  }
  
  .timeline-card {
    text-align: left;
  }
  
  .timeline-icon {
    margin: 0 0 1rem 0;
  }
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
}

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

/* RESPONSIVE */
@media (max-width: 991px) {
  .stats-grid {
    gap: 1.25rem;
  }

  .stat-box {
    padding: 2rem;
  }

  .stat-box h3 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 4.5rem);
    margin-left: 4.5rem;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-marker.active {
    width: 32px;
    height: 32px;
  }
}

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