:root {
  --cream: #FBF6F4;
  --blush: #F3E4E6;
  --rose: #B17A89;
  --rose-deep: #7A3E4E;
  --rose-dark: #6B3A48;
  --nav-logo: 112px;
  --nav-pad: 0.7rem;
}

body {
  -webkit-font-smoothing: antialiased;
  background-color: var(--cream);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--rose);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rose-deep);
}

.modal-open {
  overflow: hidden;
}

#navbar {
  padding-top: var(--nav-pad);
  padding-bottom: var(--nav-pad);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-nav {
  background: rgba(251, 246, 244, 0.96);
}

#navbar.is-scrolled {
  --nav-logo: 76px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(122, 62, 78, 0.08);
}

.nav-logo {
  display: block;
  height: var(--nav-logo);
  width: auto;
  transition: height 0.3s ease;
}

#mobile-menu {
  top: calc(var(--nav-logo) + (var(--nav-pad) * 2));
}

.page-main {
  padding-top: calc(var(--nav-logo) + 2.75rem);
}

@media (max-width: 767px) {
  .page-main h1 {
    font-size: 2.15rem;
    line-height: 1.15;
  }

  .page-main .h-\[400px\] {
    height: 16rem;
  }

  .hero-copy {
    padding-top: calc(var(--nav-logo) + 1rem);
  }

  .hero-copy h1,
  .hero-copy .inline-block {
    margin-bottom: 0.55rem;
  }

  .hero-copy p {
    margin-bottom: 0.7rem;
  }

  .hero-copy .hero-reserve {
    background: #FBF6F4;
    box-shadow: 0 10px 24px rgba(78, 42, 52, 0.22);
  }
}

.hero {
  background: #E4A8B4;
  z-index: 1;
  overflow: visible;
}

.hero-woman {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -1rem;
  height: 46%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 18px 26px rgba(78, 42, 52, 0.32));
}

.hero-copy {
  z-index: 3;
}

#tratamientos {
  position: relative;
  z-index: 0;
}

.hero-chevron {
  display: none;
}

.hero-copy {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: calc(var(--nav-logo) + 1.75rem);
  padding-bottom: 4.5rem;
}

@media (max-width: 767px) {
  .hero {
    display: block;
    height: 100svh;
    min-height: 100svh;
    overflow-x: clip;
    overflow-y: visible;
  }

  .hero .hero-copy {
    width: 56%;
    max-width: none;
    margin-left: 0;
    margin-right: auto;
    min-height: 100svh;
    justify-content: center;
    padding-right: 0.35rem;
    padding-bottom: 1.25rem;
    z-index: 3;
  }

  .hero .hero-copy h1 {
    font-size: 2.6rem;
  }

  .hero-woman {
    position: absolute;
    z-index: 2;
    top: 6%;
    right: auto;
    bottom: auto;
    left: 20%;
    height: 100%;
    width: auto;
    max-width: none;
    margin: 0;
    transform: none;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 18px 26px rgba(78, 42, 52, 0.32));
    opacity: 1;
    pointer-events: none;
  }
}

#tratamientos .group,
#glow-tips .group {
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(122, 62, 78, 0.07);
}

footer.bg-primary {
  border-top-color: rgba(255, 255, 255, 0.12);
}

footer .text-stone-400,
footer .text-stone-600 {
  color: #F6EBE8;
}

footer a:hover {
  color: #fff;
}

.conocenos-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.75rem;
  align-items: start;
  max-width: 68rem;
  margin: 0 auto;
}

.conocenos-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #E4C9CE;
  box-shadow: 0 14px 32px rgba(122, 62, 78, 0.12);
  cursor: pointer;
}

.conocenos-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.conocenos-tile:hover img,
.conocenos-tile:focus-visible img {
  transform: scale(1.05);
}

.conocenos-tile:focus-visible {
  outline: 2px solid #7A3E4E;
  outline-offset: 3px;
}

.conocenos-tile:nth-child(1) {
  grid-column: 1 / -1;
  height: 15rem;
}

.conocenos-tile:nth-child(2) { height: 13.5rem; }
.conocenos-tile:nth-child(3) { height: 10.25rem; margin-top: 1.35rem; }
.conocenos-tile:nth-child(4) { height: 10rem; }
.conocenos-tile:nth-child(5) { height: 13rem; margin-top: -1rem; }
.conocenos-tile:nth-child(6) { height: 12rem; }
.conocenos-tile:nth-child(7) { height: 9.25rem; margin-top: 1.15rem; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(78, 42, 52, 0.84);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(960px, 100%);
  max-height: calc(100svh - 5.5rem);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #FBF6F4;
  color: #7A3E4E;
  cursor: pointer;
}

@media (min-width: 768px) {
  :root {
    --nav-logo: 128px;
    --nav-pad: 0.85rem;
  }

  #navbar.is-scrolled {
    --nav-logo: 92px;
  }

  .page-main {
    padding-top: calc(var(--nav-logo) + 3rem);
  }

  .hero {
    display: block;
  }

  .hero-copy {
    order: 0;
    flex: none;
    min-height: 100svh;
    justify-content: center;
    padding-top: calc(var(--nav-logo) + 1.25rem);
    padding-bottom: 3rem;
  }

  .hero-woman {
    position: absolute;
    order: 0;
    left: auto;
    right: 3%;
    bottom: -1.5rem;
    flex: none;
    height: 88%;
    width: auto;
    max-width: none;
    align-self: auto;
    transform: none;
    object-fit: fill;
    object-position: center;
    margin: 0;
  }

  .hero-chevron {
    display: block;
  }

  .conocenos-mosaic {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: 15rem 15rem 16rem;
    gap: 1rem;
    align-items: stretch;
  }

  .conocenos-tile {
    height: 100%;
    margin-top: 0;
  }

  .conocenos-tile:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .conocenos-tile:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    transform: translateY(0.85rem);
  }

  .conocenos-tile:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .conocenos-tile:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .conocenos-tile:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
    transform: translateY(0.85rem);
  }

  .conocenos-tile:nth-child(6) {
    grid-column: 1 / span 2;
    grid-row: 3;
  }

  .conocenos-tile:nth-child(7) {
    grid-column: 3;
    grid-row: 3;
    transform: translateY(-0.55rem);
  }
}
