* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #d59a22;
  --gold-dark: #a56818;
  --brown: #5b391f;
  --ink: #4b2f1f;
  --cream: #fff8ef;
  --panel: rgba(255, 250, 244, 0.86);
  --white: #ffffff;
  --shadow: 0 7px 15px rgba(72, 50, 35, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream);
  font-family: "Poppins", sans-serif;
}

.header {
  width: 100%;
  min-height: 96px;
  padding: 0 5%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 112px;
  height: auto;
  display: block;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-left: 14px;
}

.nav a {
  color: #050505;
  font-family: "Great Vibes", cursive;
  font-size: 36px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--gold);
}

.nav a.active {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.menu-btn {
  margin-left: auto;
  display: none;
  background: none;
  border: none;
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 32px;
}

.therapy-page {
  min-height: calc(100vh - 96px);
  padding-bottom: 28px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.therapy-page::before {
  content: none;
}

.back-link {
  position: absolute;
  top: 18px;
  left: 1.2%;
  width: 72px;
  height: 34px;
  z-index: 4;
  transition: transform 0.28s ease;
}

.back-link::before,
.back-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  background: var(--gold);
}

.back-link::before {
  width: 100%;
  height: 4px;
  transform: translateY(-50%);
  transition:
    width 0.28s ease,
    box-shadow 0.28s ease;
}

.back-link::after {
  width: 23px;
  height: 23px;
  border-left: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  background: transparent;
  transform: translate(2px, -50%) rotate(45deg);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease;
}

.back-link:hover {
  transform: translateX(-6px);
}

.back-link:hover::before {
  width: 112%;
  box-shadow: 0 0 12px rgba(213, 154, 34, 0.42);
}

.back-link:hover::after {
  transform: translate(-2px, -50%) rotate(45deg) scale(1.08);
}

.hero {
  min-height: 476px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 43%) minmax(0, 57%);
  align-items: stretch;
  min-width: 0;
}

.hero-copy {
  min-height: 476px;
  padding: 30px 18px 128px 64px;
  position: relative;
  z-index: 2;
  min-width: 0;
  display: grid;
  grid-template-columns: 128px 1fr;
  align-content: start;
  gap: 22px 20px;
}

.hero-lotus {
  width: 160px;
  height: 160px;
  object-fit: contain;
  grid-row: span 2;
  transform: translate(-10px, -16px);
}

.title-block {
  align-self: center;
  transform: translateY(16px);
}

.title-block h1 {
  color: var(--brown);
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 3.7vw, 40px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.title-block h1 span {
  color: var(--gold);
  display: block;
}

.title-line {
  width: min(100%, 238px);
  height: 2px;
  margin-top: 12px;
  background: var(--gold);
}

.hero-copy p {
  max-width: 350px;
  grid-column: 1 / 0;
  color: var(--brown);
  font-family: "Playfair Display", serif;
  font-size: clamp(15px, 1.35vw, 16px);
  font-weight: 700;
  line-height: 1.16;
  overflow-wrap: break-word;
}

.hero-photo {
  min-height: 476px;
  border: 2px solid var(--gold);
  border-right: 0;
  border-radius: 80px 0 0 220px;
  background: url("../img/TratamientosTerapeuticosImg/TerapiasRelajacion.png")
    center / cover no-repeat;
  box-shadow: inset 16px 0 28px rgba(73, 47, 27, 0.12);
}

.benefit-strip {
  width: min(535px, 52%);
  min-height: 112px;
  margin: -146px 0 20px 18px;
  padding: 10px 0;
  position: relative;
  z-index: 3;
  border-radius: 0 24px 24px 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  backdrop-filter: blur(2px);
}

.benefit-strip article {
  min-height: 92px;
  padding: 4px 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.benefit-strip article + article {
  border-left: 1px solid rgba(213, 154, 34, 0.5);
}

.benefit-strip img {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.benefit-strip p {
  color: #5e5146;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.detail-grid {
  width: min(96.5%, 1060px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.detail-grid article {
  min-height: 176px;
  padding: 16px 16px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.detail-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 3px 9px rgba(72, 50, 35, 0.18);
}

.detail-icon.gold {
  background: rgba(255, 255, 255, 0.78);
}

.detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.18);
}

.detail-grid article:not(:last-child) .detail-icon img {
  transform: scale(1.52);
}

.detail-grid h2 {
  color: var(--gold-dark);
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 5px;
}

.detail-grid p {
  color: var(--brown);
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.16;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
    padding: 54px 5% 30px;
  }

  .hero-photo {
    min-height: 380px;
    border-right: 2px solid var(--gold);
    border-radius: 80px 0 0 80px;
  }

  .benefit-strip {
    width: min(92%, 650px);
    margin: 24px auto 24px;
    border-radius: 24px;
  }

  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 780px;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }

  .nav {
    flex: none;
    margin-left: 0;
    justify-content: flex-start;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }

  .nav.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .header {
    min-height: 82px;
  }

  .logo img {
    width: 92px;
  }

  .nav {
    top: 82px;
  }

  .therapy-page {
    min-height: calc(100vh - 82px);
    padding-bottom: 30px;
  }

  .back-link {
    top: 22px;
    left: 5%;
    width: 58px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 78px 6% 26px;
    text-align: center;
    width: 100%;
  }

  .hero-lotus {
    width: 112px;
    height: 112px;
    margin: 0 auto;
    grid-row: auto;
    transform: none;
  }

  .title-block {
    transform: none;
  }

  .title-block h1 {
    font-size: 40px;
  }

  .title-line {
    margin: 12px auto 0;
  }

  .hero-copy p {
    width: 100%;
    max-width: 276px;
    justify-self: center;
    margin: 0 auto;
    font-size: 13px;
  }

  .hero-photo {
    min-height: 300px;
    border-radius: 50px 0 0 50px;
  }

  .benefit-strip {
    grid-template-columns: 1fr 1fr;
    width: 91%;
    padding: 8px 0;
  }

  .benefit-strip article:nth-child(3) {
    border-left: 0;
  }

  .benefit-strip article:nth-child(n + 3) {
    border-top: 1px solid rgba(213, 154, 34, 0.5);
  }

  .detail-grid {
    width: 91%;
    grid-template-columns: 1fr;
  }

  .detail-grid article {
    min-height: 0;
  }
}
