/* Estilos para la página Nosotros */

main {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  padding: 4rem 0;
  min-height: calc(100vh - 80px);
}

#container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Título principal */
.about-h1 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.about-h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35 0%, #1e3c72 100%);
  border-radius: 2px;
}

/* Secciones */
.about-section {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #ff6b35, #1e3c72);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-section:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.about-section:hover::before {
  opacity: 1;
}

/* Títulos de sección */
.about-h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-h2::before {
  content: '';
  width: 50px;
  height: 4px;
  background: #ff6b35;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.about-section:hover .about-h2::before {
  width: 80px;
}

/* Contenido de sección */
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Alternar posición de imagen en secciones */
.about-section:nth-child(even) .about-content {
  grid-template-columns: 1fr 1.2fr;
}

.about-section:nth-child(even) .about-text {
  order: 2;
}

.about-section:nth-child(even) .about-image {
  order: 1;
}

/* Texto */
.about-text {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #444;
  text-align: justify;
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border-left: 4px solid #ff6b35;
}

.about-text::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 4rem;
  color: #ff6b35;
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Imágenes */
.about-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-section:hover .about-image {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Iconos decorativos para cada sección */
.about-section:nth-child(2) .about-h2::after {
  content: '🏢';
  margin-left: auto;
  font-size: 2rem;
  opacity: 0.3;
}

.about-section:nth-child(3) .about-h2::after {
  content: '🎯';
  margin-left: auto;
  font-size: 2rem;
  opacity: 0.3;
}

.about-section:nth-child(4) .about-h2::after {
  content: '🚀';
  margin-left: auto;
  font-size: 2rem;
  opacity: 0.3;
}

/* Efecto parallax sutil en scroll */
@media (prefers-reduced-motion: no-preference) {
  .about-section {
    animation: fadeInUp 0.6s ease-out backwards;
  }

  .about-section:nth-child(2) {
    animation-delay: 0.1s;
  }

  .about-section:nth-child(3) {
    animation-delay: 0.2s;
  }

  .about-section:nth-child(4) {
    animation-delay: 0.3s;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sección de Valores */
.values-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
}

.value-card:hover {
  border-color: #ff6b35;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.15);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  color: #1e3c72;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.value-card p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Timeline */
.timeline-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.timeline {
  position: relative;
  padding: 2rem 0;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #ff6b35, #1e3c72);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(even) .timeline-year {
  order: 2;
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
  order: 1;
  text-align: right;
}

.timeline-year {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff6b35;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 3rem;
  position: relative;
}

.timeline-item:nth-child(even) .timeline-year {
  justify-content: flex-start;
  padding-left: 3rem;
  padding-right: 0;
}

.timeline-year::after {
  content: '';
  position: absolute;
  right: -8px;
  width: 16px;
  height: 16px;
  background: #ff6b35;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #ff6b35;
}

.timeline-item:nth-child(even) .timeline-year::after {
  right: auto;
  left: -8px;
}

.timeline-content {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.timeline-content h3 {
  color: #1e3c72;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.timeline-content p {
  color: #666;
  line-height: 1.7;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 968px) {
  .about-h1 {
    font-size: 2.2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-section:nth-child(even) .about-content {
    grid-template-columns: 1fr;
  }

  .about-section:nth-child(even) .about-text,
  .about-section:nth-child(even) .about-image {
    order: unset;
  }

  .about-image {
    height: 280px;
  }

  .about-section {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  main {
    padding: 2rem 0;
  }

  #container {
    padding: 0 1rem;
  }

  .about-h1 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .about-h2 {
    font-size: 1.6rem;
  }

  .about-h2::before {
    width: 30px;
  }

  .about-text {
    font-size: 1rem;
    padding: 1rem;
  }

  .about-image {
    height: 220px;
  }

  .about-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }

  .about-section:nth-child(2) .about-h2::after,
  .about-section:nth-child(3) .about-h2::after,
  .about-section:nth-child(4) .about-h2::after {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-h1 {
    font-size: 1.5rem;
  }

  .about-h2 {
    font-size: 1.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .about-h2::before {
    width: 40px;
  }

  .about-text {
    font-size: 0.95rem;
    text-align: left;
  }

  .about-image {
    height: 200px;
  }
}