/* ---------------------------------------
   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-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  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;
  padding: 8rem 2rem 4rem;
  text-align: center;
}

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

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

.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;
}

/* ---------------------------------------
   TARJETAS DE ESPECIALIDADES
   --------------------------------------- */
.esp-full-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--gray-100);
  border-radius: 0;
  background: var(--white);
  transition: all 0.4s var(--ease-out);
}

.esp-full-card:nth-child(even) {
  direction: rtl;
}

.esp-full-card:nth-child(even) > * {
  direction: ltr;
}

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

.esp-full-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
  overflow: hidden;
  background: var(--gray-100);
}

.esp-full-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.esp-full-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.2s var(--ease-out), transform 6s var(--ease-out);
}

.esp-full-slide.active {
  opacity: 1;
  transform: scale(1.06);
}

.esp-full-slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 14, 26, 0.25) 0%, rgba(6, 14, 26, 0.02) 60%);
  pointer-events: none;
  z-index: 1;
}

.esp-full-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.esp-full-content h3 {
  margin-bottom: 0.6rem;
  color: var(--navy-700);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.esp-full-content p {
  margin-bottom: 1rem;
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.8;
}

.esp-full-metric {
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  color: var(--gold-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  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;
}

/* ---------------------------------------
   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 {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

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

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

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

  .esp-full-card {
    grid-template-columns: 1fr;
  }

  .esp-full-media {
    height: auto;
    min-height: 280px;
    aspect-ratio: 16 / 10;
  }

  .esp-full-card:nth-child(even) {
    direction: ltr;
  }

  .esp-full-content {
    padding: 2rem;
  }

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

@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;
  }

  .esp-full-content {
    padding: 1.6rem;
  }
}
