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

:root {
  --gold: #dca32e;
  --gold-dark: #bd8426;
  --ink: #5a3b27;
  --text: #1c1713;
  --cream: #fff8ef;
  --white: #ffffff;
  --panel: rgba(255, 255, 255, 0.76);
  --shadow: 0 8px 18px rgba(80, 55, 35, 0.2);
}

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;
  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: #12100f;
  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: 0;
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 32px;
}

.facial-treatments-page {
  min-height: calc(100vh - 96px);
  position: relative;
  overflow: hidden;
  padding: 38px 4.4% 54px;
  background:
    linear-gradient(rgba(255, 250, 244, 0.78), rgba(255, 250, 244, 0.78)),
    url("../img/tratamientosFaciales/fondo.png") center / cover no-repeat;
}

.back-link {
  position: absolute;
  top: 40px;
  left: 1.2%;
  width: 86px;
  height: 34px;
  z-index: 3;
  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(220, 163, 46, 0.42);
}

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

.hero-treatment {
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(410px, 53%);
  align-items: start;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 46px 0 0 6%;
}

.hero-copy h1 {
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 4.8vw, 59px);
  font-weight: 700;
  line-height: 1.04;
  text-align: center;
  letter-spacing: 0;
}

.hero-copy h1 span {
  color: #d39418;
}

.title-rule {
  width: min(315px, 62%);
  height: 2px;
  margin: 22px auto 24px;
  background: var(--gold);
}

.hero-copy > p {
  max-width: 520px;
  color: #6b451d;
  font-family: "Playfair Display", serif;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.2px;
}

.mini-benefits {
  min-height: 146px;
  margin: 42px 0 0 -54px;
  padding: 18px 18px 16px;
  border-radius: 0 0 58px 58px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.mini-benefits article {
  min-width: 0;
  padding: 0 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.mini-benefits article + article {
  border-left: 1px solid rgba(220, 163, 46, 0.42);
}

.mini-benefits img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.mini-benefits p {
  color: #2b2926;
  font-family: "Playfair Display", serif;
  font-size: clamp(15px, 1.35vw, 17px);
  font-weight: 500;
  line-height: 1.12;
}

.hero-photo {
  min-height: 496px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  border-radius: 310px 0 0 310px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(220, 163, 46, 0.14);
}

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

.trust-strip {
  width: min(1060px, 92%);
  min-height: 126px;
  margin: 56px auto 0;
  padding: 22px 34px;
  border-radius: 0 0 34px 34px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0;
}

.trust-strip article {
  min-width: 0;
  min-height: 82px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 18px;
}

.trust-strip article:first-child {
  padding-left: 14px;
  padding-right: 44px;
}

.trust-strip article + article {
  border-left: 1px solid rgba(220, 163, 46, 0.45);
}

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

.trust-strip h2 {
  color: #4b3427;
  font-family: "Playfair Display", serif;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 12px;
}

.trust-strip p {
  color: #221a15;
  font-size: clamp(10px, 0.9vw, 12px);
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .back-link,
  .back-link::before,
  .back-link::after {
    transition: none;
  }
}

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

  .hero-copy {
    padding: 62px 3% 0;
  }

  .hero-copy > p {
    margin: 0 auto;
    text-align: center;
  }

  .mini-benefits {
    max-width: 760px;
    margin: 34px auto 0;
    border-radius: 0 0 34px 34px;
  }

  .hero-photo {
    width: min(760px, 100%);
    min-height: 380px;
    margin: 0 auto;
    border-right: 2px solid var(--gold);
    border-radius: 220px;
  }

  .hero-photo img {
    height: 380px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }

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

@media (max-width: 900px) {
  .header {
    min-height: 72px;
    padding: 8px 5%;
  }

  .logo img {
    width: 88px;
  }

  .menu-btn {
    display: block;
  }

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

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

  .nav a {
    font-size: 30px;
  }
}

@media (max-width: 680px) {
  .facial-treatments-page {
    min-height: calc(100vh - 72px);
    padding: 28px 4.5% 38px;
  }

  .back-link {
    top: 32px;
    left: 4.5%;
    width: 58px;
  }

  .hero-copy {
    padding-top: 52px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .title-rule {
    width: 72%;
  }

  .hero-copy > p {
    font-size: 18px;
  }

  .mini-benefits {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
  }

  .mini-benefits article {
    min-height: 120px;
  }

  .mini-benefits article + article {
    border-left: 0;
  }

  .mini-benefits article:nth-child(even) {
    border-left: 1px solid rgba(220, 163, 46, 0.42);
  }

  .mini-benefits article:nth-child(n + 3) {
    border-top: 1px solid rgba(220, 163, 46, 0.42);
  }

  .hero-photo {
    min-height: 295px;
    border-radius: 160px;
  }

  .hero-photo img {
    height: 295px;
  }

  .trust-strip {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 20px 20px;
    border-radius: 0 0 24px 24px;
  }

  .trust-strip article {
    padding: 18px 6px;
  }

  .trust-strip article + article,
  .trust-strip article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(220, 163, 46, 0.45);
  }
}
