/* ───────────────────────────────────────────────────────────────────────────────
   PÁGINA: NOSOTROS
   ─────────────────────────────────────────────────────────────────────────────── */

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0a3a6a 60%, #0077cc 100%);
  padding: 180px 0 110px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-bg) center/cover;
  opacity: .18;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  margin-bottom: 1rem;
  line-height: 1.05;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 820px;
  margin: 0 auto;
  opacity: .95;
  line-height: 1.9;
}

.page-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.page-hero-wave svg {
  display: block;
  width: 100%;
  height: 70px;
}

/* ── Sección de introducción ── */
.intro-full {
  background: #fff;
  padding: 4rem 0;
}

.intro-full p {
  max-width: 1020px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #334155;
}

/* ── Timeline ── */
.timeline-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, .08);
}

.timeline-grid {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 2em 0;
}

.timeline-grid::-webkit-scrollbar {
  display: none;
}

.timeline-wrapper {
  position: relative;
  margin-top: 1rem;
}

.timeline-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: all .3s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .15);
}

.timeline-nav-btn:hover {
  background: #0a3a6a;
  transform: translateY(-50%) scale(1.1);
}

.timeline-nav-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.timeline-nav-btn.prev {
  left: -60px;
}

.timeline-nav-btn.next {
  right: -60px;
}

.timeline-item {
  background: #f8fafc;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.2rem;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 0.5rem;
  min-height: 160px;
  width: 200px;
  flex-shrink: 0;
  scroll-snap-align: start;
  overflow: hidden;
  align-content: start;
}

.timeline-item span {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #0f172a;
}

.timeline-item p {
  margin: 0;
  line-height: 1.5;
  color: #334155;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .timeline-nav-btn.prev {
    left: -48px;
  }

  .timeline-nav-btn.next {
    right: -48px;
  }
}

@media (max-width: 640px) {
  .timeline-nav-btn.prev {
    left: 8px;
  }

  .timeline-nav-btn.next {
    right: 8px;
  }
}
