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

:root {
  --gold: #d39a38;
  --gold-dark: #b98224;
  --text: #211913;
  --ink: #4b3427;
  --cream: #fff8ee;
  --panel: rgba(241, 230, 219, 0.78);
  --white: #ffffff;
  --shadow: 0 8px 16px rgba(63, 45, 28, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  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;
  gap: 10px;
  align-items: center;
  color: var(--gold-dark);
  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: var(--text);
  font-family: "Great Vibes", cursive;
  font-size: 36px;
  line-height: 1;
  text-decoration: none;
  transition: 0.3s;
}

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

.mesotherapy-page {
  min-height: calc(100vh - 96px);
  position: relative;
  overflow: hidden;
  padding: 32px 2.8% 0;
  background:
    linear-gradient(rgba(255, 250, 244, 0.62), rgba(255, 250, 244, 0.62)),
    url("../img/imagenesMesoterapia/fondo.png") center / cover no-repeat;
}

.back-link {
  position: absolute;
  top: 46px;
  left: 3.4%;
  width: 68px;
  height: 34px;
  z-index: 2;
  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(211, 154, 56, 0.42);
}

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

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(360px, 43%);
  gap: 18px;
  align-items: start;
}

.intro {
  padding: 22px 0 0 26px;
  text-align: center;
}

.intro h1 {
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(48px, 5vw, 66px);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 16px;
}

.title-divider {
  display: grid;
  grid-template-columns: 1fr 62px 1fr;
  align-items: center;
  gap: 20px;
  max-width: 460px;
  margin: 0 auto 26px;
}

.title-divider span {
  height: 2px;
  background: var(--gold);
}

.title-divider img {
  width: 60px;
  height: 36px;
  object-fit: contain;
}

.intro > p {
  max-width: 625px;
  margin: 0 auto 54px;
  color: #050505;
  font-family: "Playfair Display", serif;
  font-size: clamp(15px, 1.35vw, 17px);
  font-weight: 700;
  line-height: 1.12;
  text-align: left;
}

.benefits-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 42px;
  margin-bottom: 30px;
}

.benefits-heading span {
  height: 2px;
  background: var(--gold);
}

.benefits-heading h2,
.info-strip h2 {
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: clamp(25px, 2.6vw, 31px);
  font-weight: 600;
  line-height: 1;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: start;
}

.benefits-grid article {
  text-align: center;
}

.benefits-grid img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
}

.benefits-grid p {
  color: #050505;
  font-family: "Playfair Display", serif;
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 700;
  line-height: 1.08;
}

.treatment-photo {
  min-height: 470px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.treatment-photo img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.info-strip {
  min-height: 144px;
  margin-top: 48px;
  padding: 24px 16px;
  border-radius: 0 16px 16px 0;
  background: var(--panel);
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  box-shadow: 0 9px 22px rgba(63, 45, 28, 0.08);
}

.how-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 22px;
  padding-left: 22px;
}

.how-card img {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.how-card h2 {
  margin-bottom: 20px;
}

.how-card p {
  max-width: 395px;
  color: #060606;
  font-family: "Playfair Display", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.13;
}

.ideal-card {
  min-height: 96px;
  padding: 10px 0 8px 12px;
  border-left: 1px solid rgba(211, 154, 56, 0.65);
}

.ideal-card h2 {
  margin-bottom: 10px;
}

.ideal-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ideal-list article {
  min-height: 60px;
  padding: 8px 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ideal-list img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 25px;
}

.ideal-list span {
  color: #746a61;
  font-family: "Poppins", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.15;
}

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

  .intro {
    padding: 28px 4% 0;
  }

  .intro > p {
    text-align: center;
    margin-bottom: 36px;
  }

  .treatment-photo {
    width: min(650px, 100%);
    min-height: 360px;
    margin: 0 auto;
  }

  .treatment-photo img {
    height: 360px;
  }

  .info-strip {
    grid-template-columns: 1fr;
    gap: 24px;
    border-radius: 18px 18px 0 0;
  }

  .ideal-card {
    border-left: 0;
    border-top: 1px solid rgba(211, 154, 56, 0.65);
    padding-top: 22px;
  }

  .benefits-grid img {
    width: 76px;
    height: 76px;
  }
}

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

  .nav {
    flex: none;
    margin-left: 0;
    justify-content: flex-start;
    position: absolute;
    top: 72px;
    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;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
  }

  .ideal-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ideal-list article {
    min-height: 64px;
  }
}

@media (max-width: 640px) {
  .mesotherapy-page {
    padding: 26px 4.5% 0;
  }

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

  .intro {
    padding-top: 44px;
  }

  .intro h1 {
    font-size: 42px;
  }

  .title-divider {
    grid-template-columns: 1fr 40px 1fr;
    gap: 14px;
  }

  .benefits-heading {
    gap: 18px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid img {
    width: 72px;
    height: 72px;
  }

  .how-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding-left: 0;
  }

  .how-card img {
    margin: 0 auto;
  }

  .how-card p {
    margin: 0 auto;
  }

  .ideal-list {
    grid-template-columns: 1fr;
  }

  .ideal-list article {
    min-height: 68px;
    justify-content: center;
  }

  .ideal-list img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .ideal-list span {
    font-size: 12px;
  }
}
