/**
 * About V2 Page Styles
 * Estilos específicos para la página "Sobre Nosotros" moderna
 * Basado en design tokens y componentes reutilizables
 */

/* ===== HERO SECTION ===== */
.about-hero {
  position: relative;
  /* Top padding accounts for fixed navbar (118px = 42px top bar + 76px nav) + design spacing */
  padding: calc(118px + var(--space-3xl)) 0 var(--space-4xl) 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.12) 100%);
  overflow: hidden;
}

/* Decorative background elements */
.about-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(99, 102, 241, 0.06) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.about-hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle,
    rgba(139, 92, 246, 0.1) 0%,
    transparent 60%
  );
  border-radius: 50%;
  pointer-events: none;
}

.about-hero__container {
  position: relative;
  z-index: 1;
}

.about-hero__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.about-hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-lg);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.about-hero__title-highlight {
  display: block;
  font-weight: var(--weight-bold);
  background: var(--gradient-full);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 8px;
  font-size: var(--text-3xl);
}

.about-hero__subtitle {
  font-size: 22px;
  font-weight: var(--weight-medium);
  color: #1e293b;
  margin: 0;
  line-height: 1.6;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Stats Pills - REMOVED to eliminate duplication with trust bar */
/* Metrics are now exclusively shown in the trust-bar section below */

/* ===== QUIÉNES SOMOS SECTION ===== */
.about-who {
  padding: var(--space-5xl) 0;
  background: white;
}

.about-who__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-who__image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.about-who__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-2xl);
}

.about-who__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.about-who__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-who__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-who__text p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.about-who__text strong {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
}

/* Stats Cards Grid - NOW WITH UNIQUE METRICS (no duplication with trust bar) */
.about-who__stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.12);
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.2);
}

.stat-card__icon {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.2));
}

.stat-card__value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-full-primary);
  font-family: var(--font-family-numbers);
  line-height: 1;
}

.stat-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
}

/* ===== VALORES SECTION ===== */
.about-values {
  padding: var(--space-5xl) 0;
  background: var(--color-bg-secondary);
}

.about-values__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.about-values__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-values__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
}

/* Value Card */
.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-3xl) var(--space-2xl);
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-bg-muted);
  text-align: center;
  transition: all var(--transition-base);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  border-color: var(--color-full-primary);
}

.value-card__icon {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 8px 20px rgba(99, 102, 241, 0.25));
}

.value-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.2;
}

.value-card__description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== PROCESO SECTION (Timeline) ===== */
.about-process {
  padding: var(--space-5xl) 0;
  background: white;
  position: relative;
}

.about-process__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.about-process__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-process__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Timeline */
.about-process__timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  max-width: 900px;
  margin: 0 auto var(--space-4xl);
  position: relative;
}

/* Connecting line */
.about-process__timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 60px;
  bottom: 60px;
  width: 2px;
  background: linear-gradient(180deg,
    var(--color-full-primary) 0%,
    var(--color-secondary) 50%,
    var(--color-accent) 100%
  );
  opacity: 0.3;
}

/* Process Step */
.process-step {
  display: flex;
  gap: var(--space-2xl);
  align-items: flex-start;
  position: relative;
}

.process-step__number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-full);
  color: white;
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  position: relative;
  z-index: 1;
}

.process-step__content {
  flex: 1;
  padding: var(--space-lg) var(--space-xl);
  background: rgba(248, 250, 252, 0.7);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-bg-muted);
  transition: all var(--transition-base);
}

.process-step:hover .process-step__content {
  background: white;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.process-step__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
}

.process-step__description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* CTA Section - REMOVED: Using footer_home_v2 pre-footer CTA instead */
/* This eliminates duplication and maintains consistency with other v2 pages */

/* ===== RESPONSIVE ===== */

/* Tablet and small desktops */
@media (max-width: 992px) {
  .about-hero {
    padding: calc(64px + var(--space-2xl)) 0 var(--space-3xl) 0;
  }

  .about-hero__title {
    font-size: 36px;
  }

  .about-hero__title-highlight {
    font-size: var(--text-2xl);
  }

  .about-who__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .about-who__image {
    order: -1;
  }

  .about-values__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-process__timeline::before {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .about-hero__title {
    font-size: 32px;
  }

  .about-hero__title-highlight {
    font-size: var(--text-xl);
  }

  .about-hero__subtitle {
    font-size: 18px;
  }

  .about-who__stats-grid {
    grid-template-columns: 1fr;
  }

  .about-values__title,
  .about-process__title {
    font-size: 32px;
  }

  .process-step {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .process-step__number {
    align-self: flex-start;
  }
}

/* Small phones */
@media (max-width: 576px) {
  .about-hero__title {
    font-size: 28px;
  }

  .about-hero__title-highlight {
    font-size: var(--text-lg);
    margin-top: 6px;
  }

  .about-hero__subtitle {
    font-size: 16px;
  }

  .value-card {
    padding: var(--space-2xl) var(--space-lg);
  }

  .value-card__icon {
    font-size: 48px;
  }

  .about-who__text p {
    font-size: var(--text-base);
  }

  .process-step__content {
    padding: var(--space-md) var(--space-lg);
  }
}

/* Large desktops */
@media (min-width: 1400px) {
  .about-hero__title {
    font-size: 56px;
  }

  .about-hero__title-highlight {
    font-size: var(--text-4xl);
  }
}
