/* ---------------------------------------
   HERO INTERIOR
   --------------------------------------- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-900);
}

.page-hero > .parallax-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: none !important;
  will-change: auto;
  z-index: 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 14, 26, 0.88) 0%, rgba(13, 43, 78, 0.75) 50%, rgba(6, 14, 26, 0.85) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.page-hero-content h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-content p {
  max-width: 550px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.breadcrumb a {
  color: var(--gold-300);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold-200);
}

/* ---------------------------------------
   SECCIONES
   --------------------------------------- */
.section {
  position: relative;
  padding: var(--section-pad) 0;
}

.section-light {
  background: var(--off-white);
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--gold-500);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 0.6rem;
  color: var(--navy-700);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
}

.section-heading em {
  color: var(--gold-500);
  font-style: italic;
}

.section-desc {
  max-width: 540px;
  margin: 0.5rem auto 0;
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.7;
}

#equipo {
  border-top: 1px solid var(--gray-200);
}

/* ---------------------------------------
   HISTORIA E IMAGEN DESTACADA
   --------------------------------------- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

.split-text .section-heading {
  margin-bottom: 1.5rem;
}

.split-text p {
  margin-bottom: 1rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.85;
}

.split-text p strong {
  color: var(--navy-700);
}

.split-visual,
.image-stack {
  position: relative;
}

.image-stack-item {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  background-position: center;
  background-size: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.image-stack-badge {
  position: absolute;
  right: -20px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 1.8rem;
  border-radius: 0;
  background: var(--gold-500);
  box-shadow: 0 8px 30px rgba(200, 147, 58, 0.4);
}

.badge-number {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.badge-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* ---------------------------------------
   PARALLAX BACKGROUNDS
   --------------------------------------- */
.parallax-divider {
  position: relative;
  height: 55vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-divider > .parallax-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: none !important;
  will-change: auto;
  z-index: 0;
}

.parallax-divider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 14, 26, 0.8) 0%, rgba(13, 43, 78, 0.7) 50%, rgba(6, 14, 26, 0.85) 100%);
  z-index: 1;
}

.parallax-divider-content {
  position: relative;
  max-width: 700px;
  padding: 0 2rem;
  text-align: center;
  z-index: 2;
}

.divider-tag {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--gold-300);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.parallax-divider-content h2 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
}

.parallax-divider-content h2 em {
  color: var(--gold-300);
  font-style: italic;
}

/* ---------------------------------------
   EQUIPO
   --------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.team-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
  border-radius: 0;
  background: var(--white);
  transition: all 0.4s var(--ease-out);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-400));
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.team-profile {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.team-photo {
  width: 180px;
  height: 180px;
  flex: 0 0 180px;
  overflow: hidden;
  margin: 0;
  padding: 5px;
  border: 2px solid var(--blue-400);
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(6, 14, 26, 0.14);
}

.team-photo.gold {
  border-color: var(--gold-500);
}

.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.team-identity {
  min-width: 0;
}

.team-name {
  margin-bottom: 0.3rem;
  color: var(--navy-700);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.team-role {
  margin-bottom: 0;
  color: var(--gold-500);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-bio {
  margin-bottom: 1rem;
  color: var(--gray-500);
  font-size: 0.88rem;
  line-height: 1.8;
}

.team-bio strong {
  color: var(--navy-700);
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.team-contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.team-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy-700);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.25s;
}

.team-contact a:hover {
  color: var(--gold-500);
}

.team-contact i {
  width: 18px;
  color: var(--gold-500);
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
}

.team-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 0;
  background: var(--sky-100);
  color: var(--blue-400);
  font-size: 0.7rem;
  font-weight: 600;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy-700);
  font-weight: 500;
  transition: color 0.25s;
}

.social-icon {
  flex: 0 0 auto;
  transition: transform 0.25s;
}

.social-link:hover {
  color: #0a66c2;
}

.social-link:hover .social-icon {
  transform: translateY(-2px);
}

/* ---------------------------------------
   TRAYECTORIA
   --------------------------------------- */
#trayectoria {
  background: var(--white);
}

.experience-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.experience-column {
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
  border-radius: 0;
  background: var(--off-white);
}

.experience-column-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.experience-column-header h3 {
  margin-bottom: 0.25rem;
  color: var(--navy-700);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.experience-column-header p {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.78rem;
  line-height: 1.5;
}

.experience-initials {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.experience-initials.blue {
  background: linear-gradient(135deg, var(--navy-700), var(--blue-400));
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.experience-column .timeline {
  max-width: none;
  margin: 0;
}

.experience-column .timeline-item:last-child {
  margin-bottom: 0;
}

.experience-column .timeline-dot {
  border-color: var(--off-white);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-500), var(--blue-400), var(--gold-500));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.2rem;
  padding-left: 1.5rem;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: calc(-2.5rem - 6px);
  width: 14px;
  height: 14px;
  border: 3px solid var(--off-white);
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 2px var(--gold-500);
}

.timeline-year {
  margin-bottom: 0.3rem;
  color: var(--gold-500);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.timeline-text {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.65;
}

.timeline-text strong {
  color: var(--navy-700);
}

/* ---------------------------------------
   ANIMACIONES
   --------------------------------------- */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--delay, 0s) var(--ease-out) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------------------------------------
   RESPONSIVE
   --------------------------------------- */
@media (max-width: 1024px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .experience-paths {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 420px;
  }

  .page-hero-content {
    padding: 7rem 1.5rem 3.5rem;
  }

  .parallax-divider {
    height: 40vh;
    min-height: 280px;
  }

  .image-stack-badge {
    right: 10px;
    bottom: -15px;
    padding: 1rem 1.3rem;
  }

  .badge-number {
    font-size: 1.6rem;
  }

  .team-card {
    padding: 2rem 1.5rem;
  }

  .team-photo {
    width: 160px;
    height: 160px;
    flex-basis: 160px;
  }

  .experience-column {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .page-hero-content h1 {
    font-size: 2.2rem;
  }

  .page-hero-content p {
    font-size: 0.95rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .team-profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .team-photo {
    width: 150px;
    height: 150px;
    flex-basis: 150px;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-dot {
    left: calc(-2rem - 6px);
  }

  .experience-column-header {
    align-items: flex-start;
  }
}
