/* Hero compartido por las páginas internas de Caminos del Alma. */

.shared-hero {
  position: relative;
  min-height: 526px;
  overflow: hidden;
  background: #2f4d4d;
  color: #f8eedb;
}

.shared-hero__images,
.shared-hero__shade {
  position: absolute;
  inset: 0;
}

.shared-hero__images {
  pointer-events: none;
}

.shared-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  opacity: 0;
  transition: opacity 1s ease;
}

.shared-hero__photo.is-active {
  opacity: 1;
}

.shared-hero__shade {
  background: linear-gradient(
    90deg,
    #2f4d4df5 0%,
    #2f4d4de8 32%,
    #2f4d4d50 59%,
    transparent 78%
  );
}

.shared-hero__content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  padding: 35px 6.4% 32px;
}

.shared-hero__eyebrow {
  margin: 0 0 12px;
  color: #f0d699;
  font: 600 14px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: 2.2px;
}

.shared-hero__flourish {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px 228px;
  color: #cca04b;
}

.shared-hero__flourish span {
  width: 35px;
  height: 1px;
  background: #cca04b;
}

.shared-hero h1 {
  margin: 0;
  color: #f8eedb;
  font: 400 clamp(46px, 4.6vw, 73px)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -1.3px;
}

.shared-hero h1 em {
  color: #c79a43;
  font-style: normal;
}

.shared-hero__rule {
  width: 80px;
  height: 2px;
  margin: 22px 0;
  background: #c59c4e;
}

.shared-hero__text {
  max-width: 720px;
  margin: 0 0 26px;
  color: #f8eedb;
  font: 22px/1.5 Arial, Helvetica, sans-serif;
}

.shared-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
}

.shared-hero__button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 13px 24px;
  border-radius: 7px;
  text-decoration: none;
  font: 21px/1.3 Georgia, serif;
  transition: filter .2s, transform .2s;
}

.shared-hero__button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.shared-hero__button--whatsapp {
  border: 1.5px solid #d0a554;
  background: #103d23d9;
  box-shadow: inset 0 0 0 2px #1c472d;
  color: #fff7e8;
}

.shared-hero__button--cream {
  border: 4px double #a3997c;
  background: #f5ecd9;
  color: #142a20;
}

.shared-hero__button svg {
  flex: 0 0 auto;
}

.shared-hero__controls {
  position: absolute;
  top: 18px;
  right: 3.5%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  border: 1px solid #f0d69980;
  border-radius: 30px;
  background: #2f4d4de8;
  color: #f0d699;
}

.shared-hero__controls[hidden] {
  display: none;
}

.shared-hero__dot {
  display: grid;
  width: 36px;
  min-height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: inherit;
}

.shared-hero__dot:hover {
  background: #f0d6991f;
}

.shared-hero__dot:disabled {
  cursor: default;
  opacity: .35;
}

.shared-hero__dot span {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.shared-hero__dot[aria-pressed="true"] span {
  background: currentColor;
}

@media (max-width: 900px) {
  .shared-hero {
    min-height: 590px;
  }

  .shared-hero__photo {
    object-position: 63% center;
  }

  .shared-hero__shade {
    background: linear-gradient(90deg, #2f4d4df5, #2f4d4db8 48%, #2f4d4d40);
  }

  .shared-hero__content {
    max-width: 680px;
    padding: 50px 6% 40px;
  }

  .shared-hero__flourish {
    margin-left: 160px;
  }

  .shared-hero h1 {
    font-size: 56px;
  }

  .shared-hero__text {
    font-size: 19px;
  }
}

@media (max-width: 540px) {
  .shared-hero {
    min-height: 650px;
  }

  .shared-hero__photo {
    object-position: 68% center;
  }

  .shared-hero__shade {
    background: linear-gradient(0deg, #2f4d4d 3%, #2f4d4de8 38%, #2f4d4d80 100%);
  }

  .shared-hero__content {
    padding-top: 70px;
  }

  .shared-hero__flourish {
    margin-bottom: 24px;
    margin-left: 90px;
  }

  .shared-hero h1 {
    font-size: 44px;
    line-height: 1.13;
    letter-spacing: -1px;
  }

  .shared-hero__text {
    font-size: 18px;
    line-height: 1.55;
  }

  .shared-hero__actions {
    gap: 12px;
  }

  .shared-hero__button {
    width: 100%;
    padding: 14px 16px;
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shared-hero__photo,
  .shared-hero__button {
    transition: none;
  }
}
