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

:root {
  --gold: #d59a22;
  --gold-dark: #b98224;
  --ink: #5a3a23;
  --cream: #fff8ef;
  --white: #ffffff;
  --panel: rgba(255, 255, 255, 0.76);
  --shadow: 0 7px 16px rgba(80, 55, 35, 0.24);
}

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: #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;
}

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

.back-link {
  position: absolute;
  top: 42px;
  left: 1.1%;
  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: 468px;
  display: grid;
  grid-template-columns: minmax(390px, 42%) minmax(0, 58%);
  align-items: start;
}

.hero-copy {
  padding: 56px 36px 0 54px;
  text-align: center;
}

.hero-copy h1 {
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(39px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy h1 span {
  color: var(--gold);
}

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

.hero-copy p {
  max-width: 450px;
  margin: 0 auto;
  color: #6a431d;
  font-family: "Playfair Display", serif;
  font-size: clamp(18px, 1.9vw, 23px);
  font-weight: 700;
  line-height: 1.14;
}

.hero-photo {
  min-height: 468px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  overflow: hidden;
  clip-path: ellipse(76% 86% at 78% 40%);
}

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

.info-card {
  width: min(448px, 43%);
  min-height: 142px;
  margin: -138px 0 0 2.9%;
  padding: 20px 26px 20px 24px;
  position: relative;
  z-index: 2;
  border-radius: 0 34px 34px 0;
  background: rgba(243, 232, 221, 0.82);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 20px;
}

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

.info-card p {
  padding-left: 14px;
  border-left: 1px solid rgba(213, 154, 34, 0.55);
  color: #6a431d;
  font-family: "Playfair Display", serif;
  font-size: clamp(15px, 1.28vw, 17px);
  font-weight: 700;
  line-height: 1.16;
}

.benefit-strip {
  width: min(1040px, 96%);
  min-height: 124px;
  margin: 24px auto 0;
  padding: 14px 26px;
  border-radius: 0 0 34px 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 14px rgba(80, 55, 35, 0.24);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.benefit-strip article {
  min-width: 0;
  min-height: 98px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

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

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

.benefit-strip h2 {
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 12px;
}

.benefit-strip p {
  color: #2e241d;
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 600;
  line-height: 1.32;
}

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

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

  .hero-copy {
    padding: 76px 5% 28px;
  }

  .hero-photo {
    width: min(760px, 100%);
    min-height: 360px;
    margin: 0 auto;
    border-left: 2px solid var(--gold);
    clip-path: ellipse(76% 94% at 54% 50%);
  }

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

  .info-card {
    width: min(620px, 92%);
    margin: 28px auto 0;
    border-radius: 0 28px 28px 0;
  }

  .benefit-strip {
    width: min(820px, 94%);
    margin-top: 24px;
  }
}

@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) {
  .bio-page {
    min-height: calc(100vh - 72px);
    padding-bottom: 36px;
  }

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

  .hero-copy {
    padding: 72px 5% 24px;
  }

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

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

  .hero-photo {
    min-height: 286px;
    clip-path: ellipse(78% 94% at 54% 50%);
  }

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

  .info-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 22px 22px;
    border-radius: 0 24px 24px 0;
  }

  .info-card p {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(213, 154, 34, 0.55);
  }

  .benefit-strip {
    grid-template-columns: 1fr;
    padding: 12px 18px;
  }

  .benefit-strip article {
    min-height: 126px;
    padding: 18px 8px;
  }

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