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

:root {
  --gold: #d09a35;
  --gold-dark: #b98224;
  --ink: #060606;
  --soft-ink: #393536;
  --cream: #fffaf4;
  --panel: rgba(255, 253, 249, 0.82);
  --white: #ffffff;
  --shadow: 0 4px 14px rgba(58, 45, 31, 0.22);
}

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;
  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(--ink);
  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;
}

.facial-page {
  min-height: calc(100vh - 96px);
  padding-bottom: 34px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(255, 250, 244, 0.84) 0%,
      rgba(255, 250, 244, 0.58) 47%,
      rgba(255, 250, 244, 0.08) 100%
    ),
    #fff8ef;
}

.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(208, 154, 53, 0.42);
}

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

.hero {
  min-height: 454px;
  padding: 0 6.2%;
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(
      90deg,
      rgba(255, 250, 244, 0.95) 0%,
      rgba(255, 250, 244, 0.78) 46%,
      rgba(255, 250, 244, 0.02) 57%
    ),
    url("../img/armonisacionFacialImg/fondoARmonizacionFacial.png") center
      right / cover no-repeat;
}

.hero-panel {
  width: min(520px, 52vw);
  min-height: 454px;
  padding: 48px 38px 16px;
  background: var(--panel);
  border-left: 1px solid rgba(196, 174, 145, 0.45);
  border-right: 1px solid rgba(196, 174, 145, 0.24);
  border-bottom: 1px solid rgba(196, 174, 145, 0.55);
  border-radius: 0 0 18px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(2px);
}

.hero-copy h1 {
  max-width: 500px;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0;
}

.title-divider {
  width: min(384px, 100%);
  margin: 34px 0 28px 8px;
  display: grid;
  grid-template-columns: 1fr 62px 1fr;
  align-items: center;
  gap: 18px;
}

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

.title-divider img {
  width: 58px;
  height: 44px;
  object-fit: contain;
}

.hero-copy p {
  max-width: 452px;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(16px, 1.35vw, 18px);
  font-weight: 700;
  line-height: 1.16;
}

.quick-benefits {
  min-height: 138px;
  margin: 36px -22px 0 -16px;
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.74);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.quick-benefits article,
.why-grid article {
  min-width: 0;
  text-align: center;
}

.quick-benefits article {
  min-height: 114px;
  padding: 14px 18px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
}

.quick-benefits article + article,
.why-grid article + article {
  border-left: 1px solid rgba(208, 154, 53, 0.58);
}

.quick-benefits img,
.why-grid img {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.quick-benefits img {
  width: 68px;
  height: 68px;
}

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

.quick-benefits p,
.why-grid p {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.32;
}

.why-card {
  width: min(85%, 920px);
  min-height: 172px;
  margin: 46px auto 0;
  padding: 14px 26px 20px;
  position: relative;
  z-index: 1;
  border-radius: 0 16px 16px 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.why-card h2 {
  color: var(--gold-dark);
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.why-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}

.why-grid article {
  min-height: 132px;
  padding: 8px 18px 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
}

@media (max-width: 1050px) {
  .hero {
    padding: 0 4.5%;
    background:
      linear-gradient(
        90deg,
        rgba(255, 250, 244, 0.95) 0%,
        rgba(255, 250, 244, 0.76) 56%,
        rgba(255, 250, 244, 0.08) 100%
      ),
      url("../img/armonisacionFacialImg/fondoARmonizacionFacial.png") center
        right / cover no-repeat;
  }

  .hero-panel {
    width: min(540px, 62vw);
  }

  .why-card {
    width: 88%;
  }
}

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

  .hero {
    min-height: 640px;
    align-items: flex-start;
    background:
      linear-gradient(rgba(255, 250, 244, 0.18), rgba(255, 250, 244, 0.18)),
      url("../img/armonisacionFacialImg/fondoARmonizacionFacial.png") center /
        cover no-repeat;
  }

  .hero-panel {
    width: min(100%, 600px);
    min-height: auto;
    margin: 44px auto 0;
    padding: 40px 34px 22px;
    border-radius: 18px;
  }

  .quick-benefits {
    margin: 34px 0 0;
    border-radius: 14px;
  }

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

  .why-grid article:nth-child(4) {
    border-left: 0;
  }
}

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

  .logo img {
    width: 92px;
  }

  .nav {
    top: 82px;
  }

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

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

  .hero {
    min-height: auto;
    padding: 82px 4.5% 28px;
  }

  .hero-panel {
    margin-top: 0;
    padding: 32px 22px 22px;
  }

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

  .title-divider {
    margin: 26px auto 24px;
    grid-template-columns: 1fr 54px 1fr;
    gap: 12px;
  }

  .title-divider img {
    width: 52px;
    height: 40px;
  }

  .quick-benefits {
    grid-template-columns: 1fr;
  }

  .quick-benefits article + article {
    border-left: 0;
    border-top: 1px solid rgba(208, 154, 53, 0.58);
  }

  .why-card {
    width: 91%;
    margin-top: 34px;
    padding: 18px 18px 22px;
    border-radius: 16px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-grid article {
    min-height: 116px;
  }

  .quick-benefits img,
  .why-grid img {
    width: 70px;
    height: 70px;
  }

  .why-grid article + article {
    border-left: 0;
    border-top: 1px solid rgba(208, 154, 53, 0.58);
  }
}
