/* =========================================
   Tarjetas / estadísticas
========================================= */
.mission-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
  /* 4. Elevación al pasar el cursor */
  transform: translateY(-4px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  margin-top: 4px;
}

/* =========================================
   Espaciado global + “pelota” decorativa
   (aplícalo a secciones con .section-block)
========================================= */
:root {
  --section-gap: clamp(72px, 10vw, 128px);
  /* separación vertical entre secciones */
  --first-offset: clamp(96px, 14vh, 160px);
  /* extra por el header en la primera */
  --ball-size: clamp(140px, 24vw, 260px);
  /* tamaño de la “pelota” */
  --ball1: rgba(167, 139, 250, .28);
  /* #A78BFA */
  --ball2: rgba(139, 92, 246, .16);
  /* #8B5CF6 */
}

.section-block {
  position: relative;
  isolation: isolate;
  /* evita que el ::before quede por detrás de otras sections */
  margin-top: var(--section-gap);
  /* espaciado vertical */
}

/* más espacio en la primera sección tras el hero */
.section--first {
  margin-top: var(--first-offset);
}

/* “Pelota” para todas las secciones con .section-block,
   excepto la .timeline-section (ya tiene su propia decoración) */
.section-block:not(.timeline-section)::before {
  content: '';
  position: absolute;
  width: var(--ball-size);
  height: var(--ball-size);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 30% 30%, var(--ball1) 0%, var(--ball2) 42%, transparent 70%);
  opacity: .55;
  filter: blur(.2px);
}

/* Posiciones “bonitas” (elige con clases de ayuda) */
.decor-left::before {
  top: -40px;
  left: max(-8vw, -80px);
}

.decor-right::before {
  top: 18%;
  right: max(-8vw, -80px);
  left: auto;
}

.decor-bottom::before {
  bottom: -32px;
  left: 10%;
}

/* Móvil: reduce tamaño/opacidad para no tapar contenido */
@media (max-width: 640px) {
  :root {
    --ball-size: clamp(120px, 40vw, 180px);
  }

  .section-block:not(.timeline-section)::before {
    opacity: .45;
  }
}

/* Desactivar decoración en alguna sección concreta (opcional) */
.no-decor::before {
  display: none !important;
}

/* =========================================
   TIMELINE
========================================= */

/* --- Layout base --- */
.timeline-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  position: relative;
}

/* Elementos decorativos propios del timeline */
.timeline-section::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, .15) 0%, rgba(79, 70, 229, .08) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.timeline-section::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 8%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(79, 70, 229, .12) 0%, rgba(139, 92, 246, .06) 50%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* Header */
.header-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 160px;
}

@media (min-width: 1024px) {
  .header-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.main-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .main-title {
    font-size: 3.75rem;
  }
}

.main-description {
  line-height: 1.6;
  font-size: 1.125rem;
}

.team-image-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  ;
}

@media (min-width: 1024px) {
  .team-image-container {
    justify-content: flex-end;
    align-items: flex-start;
  }
}

.team-image {
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  width: 100%;
  max-width: 384px;
  height: 320px;
  object-fit: cover;
}

/* --- Timeline grid --- */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .timeline-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .timeline-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.timeline-item {
  position: relative;
}

/* Fecha + línea conectora */
.timeline-date-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}

.timeline-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #8B5CF6;
  /* morado */
  flex-shrink: 0;
}

.timeline-date {
  color: #8B5CF6;
  font-weight: 600;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Línea morada, fina y “pegada” al siguiente punto (desde md) */
@media (min-width: 768px) {
  .timeline-date-container::after {
    content: '';
    height: 1.5px;
    /* fina */
    background-color: #8B5CF6;
    /* morado */
    border-radius: 9999px;
    flex: 1 1 auto;
    margin-left: 10px;
    margin-right: -16px;
    /* se acerca al siguiente punto */
    opacity: .95;
  }
}

@media (min-width: 1024px) {
  .timeline-date-container::after {
    margin-right: -12px;
  }
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-description {
  line-height: 1.6;
}


.customers-section {
  background: linear-gradient(135deg, #1e293b 0%, #334155 30%, #475569 100%);
  padding: 80px 24px;
  border-radius: 24px;
  margin: 40px auto;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos con gradiente */
.customers-section::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 15%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(79, 70, 229, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.customers-section::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 10%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 24px;
}

.section-description {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 1.125rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .logos-container {
    gap: 32px;
  }

  .customers-section {
    padding: 60px 20px;
    margin: 20px;
  }
}

/* CSS ADICIONAL para añadir a tu archivo: */
.header-compensation {
  padding-top: calc(60px + 80px);
  /* altura header + espaciado extra */
}

@media (min-width: 1024px) {
  .header-compensation {
    padding-top: calc(68px + 80px);
    /* header + top:4px + espaciado extra */
  }
}

html,
body {
  overflow-x: hidden;
}

/* Animaciones CSS */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.is-animated {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.is-animated {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.is-animated {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.is-animated {
  opacity: 1;
  transform: scale(1);
}

.timeline-item {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.is-animated {
  opacity: 1;
  transform: translateX(0);
}

.logo-item {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-item.is-animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.logo-item:hover {
  transform: translateY(-5px) scale(1.05);
}

.stat-number {
  font-weight: bold;
  background: linear-gradient(135deg, #874EE3 0%, #c9b9e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 20px rgba(135, 78, 227, 0.3);
  }

  to {
    box-shadow: 0 0 30px rgba(201, 185, 224, 0.5);
  }
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.bounce-in {
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in.is-animated {
  opacity: 1;
  transform: scale(1);
}

.stagger-delay-1 {
  transition-delay: 0.1s;
}

.stagger-delay-2 {
  transition-delay: 0.2s;
}

.stagger-delay-3 {
  transition-delay: 0.3s;
}

.stagger-delay-4 {
  transition-delay: 0.4s;
}

.stagger-delay-5 {
  transition-delay: 0.5s;
}

.stagger-delay-6 {
  transition-delay: 0.6s;
}

/* En móvil desactiva animaciones/transform en la imagen */
@media (max-width: 768px) {
  .team-image {
    transform: none !important;
  }

  .floating {
    animation: none !important;
  }

  /* flotante off en móvil */
}