:root {
  --cream: #F1EEEA;
  --taupe: #C7BEB1;
  --mauve: #947D6E;
  --brown: #7D6A63;
  --dark: #564036;
  --font-title: "Playfair Display", "Higuen Elegant Serif", serif;
  --font-body: "Raleway", sans-serif;
  --radius: 14px;
  --gap: clamp(1rem, 4vw, 2.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  color: var(--dark);
  margin: 0 0 .5em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

h2 em,
h1 em {
  font-style: italic;
  color: var(--mauve);
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gap);
}

section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 6vw, 3rem);
}

.eyebrow {
  display: block;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--mauve);
  font-weight: 600;
  margin-bottom: .6em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .9em 1.8em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  font-size: .95rem;
}

.btn:active {
  transform: scale(.97) rotate(0);
}

.btn-primary {
  background: var(--dark);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--mauve);
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 10px 24px rgba(86, 64, 54, .35);
}

.btn-outline {
  background: transparent;
  border-color: var(--dark);
  color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--cream);
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 10px 24px rgba(86, 64, 54, .35);
}

.btn-light {
  background: var(--cream);
  color: var(--dark);
}

.btn-light:hover {
  background: var(--taupe);
}

/* Accent CTA: for buttons that must read clearly against *either* a light or dark
   container (nav "Sacar turno", footer "Reservar turno") — a flat --dark/--cream
   fill risks matching the surrounding section exactly, so this brightens on hover
   instead of swapping to another flat color. */
.btn-accent {
  background: var(--mauve);
  color: var(--cream);
}

.btn-accent:hover {
  filter: brightness(1.14);
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 10px 24px rgba(86, 64, 54, .35);
}

.btn-accent:active {
  transform: translateY(0) scale(.97);
}

/* Navbar: floating "liquid glass" pill — amber-tinted blur, specular top edge, elevation shadow.
   .navbar is just the fixed positioning shell; .navbar-glass is the pill itself and, on mobile,
   a grid whose second row (the menu) animates 0fr -> 1fr so the SAME pill grows downward to
   reveal the menu, iOS-sheet style, instead of a separate full-screen overlay. */
.navbar {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 100;
  max-width: 1180px;
  margin-inline: auto;
}

.navbar-glass {
  display: grid;
  grid-template-rows: auto 0fr;
  align-content: start;
  align-items: start;
  transition: grid-template-rows .45s cubic-bezier(.65, 0, .35, 1);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(148, 125, 110, .55), rgba(86, 64, 54, .55));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(241, 238, 234, .22);
  box-shadow:
    0 12px 32px rgba(86, 64, 54, .3),
    inset 0 1px 0 rgba(241, 238, 234, .35),
    inset 0 -1px 0 rgba(86, 64, 54, .3);
  overflow: hidden;
  padding: 5px 10px 5px 20px !important;
  /* fixed header is always on-screen at load, so it gets a plain on-load
     animation (reusing hero's keyframe) instead of the scroll-triggered
     .reveal system, which is for below-the-fold sections */
  animation: hero-up .7s .1s ease both;
}

.navbar-glass.menu-open {
  grid-template-rows: auto 1fr;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1.2rem;
}

.nav-logo img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

body.nav-open {
  overflow: hidden;
}

/* cream at rest too: the pill's amber glass is dark enough that --dark bars would blend in */
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  min-height: 0;
  overflow: hidden;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-links li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}

.navbar-glass.menu-open .nav-links li {
  opacity: 1;
  transform: none;
}

.navbar-glass.menu-open .nav-links li:nth-child(1) {
  transition-delay: .08s;
}

.navbar-glass.menu-open .nav-links li:nth-child(2) {
  transition-delay: .12s;
}

.navbar-glass.menu-open .nav-links li:nth-child(3) {
  transition-delay: .16s;
}

.navbar-glass.menu-open .nav-links li:nth-child(4) {
  transition-delay: .2s;
}

.navbar-glass.menu-open .nav-links li:nth-child(5) {
  transition-delay: .24s;
}

.navbar-glass.menu-open .nav-links li:nth-child(6) {
  transition-delay: .28s;
}

.navbar-glass.menu-open .nav-links li:nth-child(7) {
  transition-delay: .32s;
}

.navbar-glass.menu-open .nav-links li:nth-child(8) {
  transition-delay: .36s;
}

/* :not(.btn) keeps this from out-specificity-ing .nav-cta's own color (it has a type
   selector, "a", which otherwise always wins a tie against a plain class like .btn-accent) */
.nav-links a:not(.btn) {
  display: block;
  padding: .7rem .2rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
  border-top: 1px solid rgba(241, 238, 234, .14);
}

.nav-links li:first-child a:not(.btn) {
  border-top: 0;
}

.nav-links a:not(.btn):hover {
  color: var(--taupe);
}

.nav-cta {
  margin-top: .6rem;
  padding: 7px 20px !important;
}

/* Hero — mobile-first: full-bleed photo behind, headline pinned to top,
   promo card pinned to bottom (same viewport, no scroll needed to see either).
   .hero-media/.hero-scrim are separate absolute layers (not a CSS background
   shorthand) so the image can swap per breakpoint without re-declaring the
   gradient, and the gradient can be tuned independently of the photo. */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  color: var(--cream);
  background-color: var(--brown);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url('public/hero-bg-mobile.jpg') center/cover no-repeat;
}


.hero-layout {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 6.5rem 2rem;
}

.hero-inner {
  max-width: 620px;
}

.hero h1 {
  color: var(--cream);
  animation: hero-up .8s ease both;
}

.hero p {
  font-size: 1.1rem;
  color: var(--taupe);
  max-width: 480px;
  animation: hero-up .8s .15s ease both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  animation: hero-up .8s .3s ease both;
}

/* mobile only: text hugs the right edge, CTAs shrink into a 2-up row instead
   of wrapping — desktop keeps the original left-aligned / auto-width layout */
@media (max-width: 859px) {
  .hero-inner {
    text-align: right;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
  }

  .hero-cta .btn {
    justify-content: center;
    padding: .65em .9em;
    font-size: .85rem;
  }
}

.hero-cta .btn-primary {
  background: #947D6E;
}

/* Promo card: floats over the hero photo, same treatment as the site's other
   light surfaces (.info-card / .booking-form bg) so it reads as "on top of"
   the photo rather than part of it. */
.hero-promo {
  background: linear-gradient(160deg, rgba(148, 125, 110, .55), rgba(86, 64, 54, .55));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(241, 238, 234, .22);
  box-shadow:
    0 12px 32px rgba(86, 64, 54, .3),
    inset 0 1px 0 rgba(241, 238, 234, .35),
    inset 0 -1px 0 rgba(86, 64, 54, .3);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: grid;
  gap: .5rem;
  max-width: 360px;
  animation: hero-up .8s .3s ease both;
}

.hero-promo-badge {
  justify-self: start;
  background: var(--mauve);
  color: var(--cream);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3em .7em;
  border-radius: 999px;
}

.hero-promo h3 {
  margin: .2em 0 0;
  font-size: 1.2rem;
  color: var(--cream);
}

.hero-promo p {
  margin: 0 0 .4em;
  font-size: .9rem;
  color: var(--taupe);
}

.hero-promo-btn {
  justify-content: center;
  width: fit-content;
}

.hero-promo-btn svg {
  width: 18px;
  height: 18px;
}

@keyframes hero-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Quienes somos */
.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  gap: var(--gap);
  align-items: center;
}

.about-values {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.about-values li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}

.about-values .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mauve);
  margin-top: .55em;
}

.about-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-media img {
  border-radius: var(--radius);
  width: 100%;
  opacity: .9;
  max-width: 80vw;
}

/* Tratamientos */
.treatments {
  background: var(--dark);
  color: var(--cream);
}

.treatments .section-head h2 {
  color: var(--cream);
}

.treatments .eyebrow {
  color: var(--taupe);
}

.tx-alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  width: fit-content;
  margin: 0 auto 1.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(241, 238, 234, .25);
  border-radius: var(--radius);
  background: rgba(241, 238, 234, .08);
  color: var(--cream);
}

.tx-alert svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: .1rem;
  color: var(--taupe);
}

.tx-alert p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
}

/* Tratamientos: tabs + accordion */
.tx-layout {
  display: grid;
  gap: 1.75rem;
}

.tx-tabs {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding-bottom: .3rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tx-tabs::-webkit-scrollbar {
  display: none;
}

.tx-tab {
  font: inherit;
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  cursor: pointer;
  color: var(--taupe);
  padding: .6rem .9rem;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.tx-tab span {
  font-size: .68rem;
  font-weight: 400;
  opacity: .55;
  font-family: var(--font-title);
  font-style: italic;
}

.tx-tab:hover {
  color: var(--cream);
}

.tx-tab.active {
  color: var(--cream);
  background: rgba(241, 238, 234, .06);
  border-left-color: var(--mauve);
}

.acc-list {
  border-top: 1px solid rgba(241, 238, 234, .14);
}

.acc-item {
  border-bottom: 1px solid rgba(241, 238, 234, .14);
}

.acc-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  padding: 1.05rem 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--cream);
}

.acc-index {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--mauve);
  font-size: 1.05rem;
}

.acc-name {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .01em;
  transition: color .2s ease, transform .2s ease;
}

.acc-trigger:hover .acc-name {
  color: var(--taupe);
  transform: translateX(3px);
}

.acc-plus {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.acc-plus::before,
.acc-plus::after {
  content: "";
  position: absolute;
  background: var(--mauve);
  border-radius: 1px;
}

.acc-plus::before {
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.acc-plus::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  transition: transform .25s ease, opacity .25s ease;
}

.acc-item.open .acc-plus::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.acc-item.open .acc-panel {
  grid-template-rows: 1fr;
}

.acc-panel-inner {
  overflow: hidden;
}

.acc-panel-inner p {
  margin: 0;
  padding: 0 0 1.2rem 3.4rem;
  max-width: 46em;
  color: var(--taupe);
  font-size: .93rem;
  line-height: 1.65;
}

.home-care {
  position: relative;
  margin-top: 3rem;
  border: 1px solid rgba(241, 238, 234, .18);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 5vw, 2.8rem);
  background: rgba(241, 238, 234, .03);
}

.home-care-spark {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  width: 32px;
  opacity: 1;
}

.home-care .eyebrow {
  margin-bottom: .5em;
}

.home-care h3 {
  color: var(--cream);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 0 0 .7em;
  max-width: 20em;
}

.home-care>p {
  color: var(--taupe);
  max-width: 42em;
  margin: 0 0 1.8rem;
}

.home-care-split {
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid rgba(241, 238, 234, .14);
  padding-top: 1.5rem;
}

.home-care-split>div {
  display: grid;
  gap: .5rem;
  align-content: start;
}

.home-care-split p {
  margin: 0;
  color: var(--taupe);
  font-size: .92rem;
  line-height: 1.55;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tag::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.tag-yes {
  color: var(--cream);
}

.tag-yes::before {
  background: var(--mauve);
}

.tag-no {
  color: var(--taupe);
}

.tag-no::before {
  border: 1px solid var(--taupe);
}

/* Turnos */
.booking {
  background: var(--cream);
}

.booking-wrap {
  display: grid;
  gap: var(--gap);
}

.booking-info {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}

.info-card {
  background: #F9F7F6;
  border: 1px solid #F9F7F6;
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-card .ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--mauve);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-card .ico svg {
  width: 20px;
  height: 20px;
}

.info-card h4 {
  margin: 0 0 .2em;
  font-family: var(--font-body);
  font-weight: 700;
}

.info-card p {
  margin: 0;
  font-size: .92rem;
  color: var(--brown);
}

.info-card p a {
  color: inherit;
  text-decoration: none;
}

.booking-form {
  background: #F9F7F6;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.2rem);
  border: 1px solid #F9F7F6;
  display: grid;
  gap: 1rem;
}

.booking-form .field {
  display: grid;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 600;
}

.booking-form input,
.booking-form textarea {
  font: inherit;
  padding: .75em .9em;
  border-radius: 10px;
  border: 1.5px solid var(--taupe);
  background: #fff;
  color: var(--dark);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.booking-form input:hover,
.booking-form textarea:hover {
  border-color: var(--mauve);
}

.booking-form input:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--mauve);
  box-shadow: 0 0 0 3px rgba(148, 125, 110, .25);
}

.booking-form textarea {
  resize: vertical;
  min-height: 90px;
}

.booking-form .btn {
  justify-content: center;
  margin-top: .3rem;
}

.form-note {
  font-size: .78rem;
  color: var(--brown);
  text-align: center;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom select (replaces native <select> UI, native select kept for form data) */
.custom-select {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  font: inherit;
  text-align: left;
  padding: .75em .9em;
  border-radius: 10px;
  border: 1.5px solid var(--taupe);
  background: #fff;
  color: var(--dark);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.custom-select-trigger:hover {
  border-color: var(--mauve);
}

.custom-select.open .custom-select-trigger,
.custom-date.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  outline: none;
  border-color: var(--mauve);
  box-shadow: 0 0 0 3px rgba(148, 125, 110, .25);
}

.custom-select-value[data-empty="true"] {
  color: var(--brown);
  opacity: .65;
  font-weight: 400;
}

.custom-select-arrow {
  flex: none;
  color: var(--mauve);
  transition: transform .2s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

/* Custom date picker (shares trigger/value/arrow styling with custom-select) */
.custom-date {
  position: relative;
}

.date-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: 280px;
  background: #fff;
  border: 1px solid var(--taupe);
  border-radius: 10px;
  padding: .8rem;
  box-shadow: 0 12px 28px rgba(86, 64, 54, .18);
}

.date-popover[hidden] {
  display: none;
}

.date-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
}

.date-popover-title {
  font-weight: 700;
  font-size: .9rem;
  text-transform: capitalize;
}

.date-nav {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--mauve);
  padding: .2rem .6rem;
  border-radius: 6px;
  line-height: 1;
}

.date-nav:hover {
  background: var(--cream);
}

.date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: .72rem;
  color: var(--brown);
  margin-bottom: .3rem;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.date-grid button {
  aspect-ratio: 1;
  border: none;
  background: none;
  border-radius: 7px;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  color: var(--dark);
}

.date-grid button:hover:not(:disabled) {
  background: var(--cream);
}

.date-grid button.today {
  font-weight: 700;
  color: var(--mauve);
}

.date-grid button.selected {
  background: var(--dark);
  color: var(--cream);
}

.date-grid button.other-month {
  opacity: .35;
}

.date-grid button:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.custom-select-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--taupe);
  border-radius: 10px;
  list-style: none;
  margin: 0;
  padding: .4rem;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 12px 28px rgba(86, 64, 54, .18);
}

.custom-select-list[hidden] {
  display: none;
}

.custom-select-list li {
  padding: .6em .7em;
  border-radius: 7px;
  font-weight: 500;
  font-size: .92rem;
  cursor: pointer;
}

.custom-select-list li:hover,
.custom-select-list li.active {
  background: var(--cream);
  color: var(--mauve);
}

.custom-select-list li[aria-selected="true"] {
  color: var(--mauve);
  font-weight: 700;
}

/* Gallery */
.gallery {
  background: var(--cream);
}

/* Carousel: photos are vertical phone shots, so cards stay portrait (aspect-ratio
   3/4) and scroll horizontally instead of stacking into a tall grid. Native
   scroll-snap does the swipe/paging on mobile for free; the arrow buttons below
   are the desktop (mouse) affordance, using the same scrollBy trick as no lib. */
.gallery-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--gap));
  padding-inline: var(--gap);
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  gap: .8rem;
  width: max-content;
}

.gallery-track figure {
  margin: 0;
  flex: 0 0 auto;
  width: min(200px, 60vw);
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--taupe);
}

.gallery-item {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.gallery-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: 1rem;
}

.gallery-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--taupe);
  background: #fff;
  color: var(--dark);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

.gallery-arrow:hover {
  border-color: var(--mauve);
  color: var(--mauve);
}

.gallery-arrow svg {
  width: 18px;
  height: 18px;
}

.social-embeds {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.social-card {
  border: 1px solid #F9F7F6;
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  color: var(--dark);
  background: #F9F7F6;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-embeds .social-card {
  transition: transform .3s ease, box-shadow .3s ease;
}

/* .social-embeds-qualified: .reveal / .reveal.in (added by the scroll-reveal JS) share the
   same specificity as the plain rules above and sit later in this file, so they'd otherwise
   win the cascade and silently eat this transition/hover. */
.social-embeds .social-card:hover {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 8px 16px rgba(86, 64, 54, .2);
}

.social-avatar {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
}

.social-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
  border: 1px solid var(--taupe);
}

.social-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #564036;
  border: 2px solid #F9F7F6;
}

.social-badge svg {
  width: 13px;
  height: 13px;
}

.social-meta {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.social-meta strong {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
}

.social-meta span {
  font-size: .82rem;
  color: var(--brown);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Reseñas */
.reviews {
  background: var(--dark);
  color: var(--cream);
}

.reviews .section-head h2 {
  color: var(--cream);
}

.reviews .eyebrow {
  color: var(--taupe);
}

.reviews-viewport {
  overflow: hidden;
  margin-inline: calc(-1 * var(--gap));
  padding-inline: var(--gap);
}

.reviews-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: marquee var(--marquee-duration, 32s) linear infinite;
}

.reviews-viewport:hover .reviews-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(var(--marquee-distance, -50%));
  }
}

.review-card {
  flex: 0 0 min(320px, 82vw);
  background: rgba(241, 238, 234, .06);
  border: 1px solid rgba(241, 238, 234, .14);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: grid;
  gap: .8rem;
}

.review-card .stars {
  color: #E4C580;
  letter-spacing: .1em;
}

.review-card p {
  margin: 0;
  font-size: .95rem;
  color: var(--taupe);
}

.review-card .author {
  font-weight: 700;
  color: var(--cream);
  font-size: .9rem;
}

.review-card .author span {
  display: block;
  font-weight: 400;
  color: var(--taupe);
  font-size: .8rem;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: .8rem;
  justify-content: center;
  margin-top: 2rem;
  color: var(--taupe);
  flex-wrap: wrap;
}

.rating-summary strong {
  color: var(--cream);
  font-size: 1.4rem;
  font-family: var(--font-title);
}

/* Contacto */
.contact {
  background: var(--cream);
}

.contact-wrap {
  display: grid;
  gap: var(--gap);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--taupe);
  aspect-ratio: 4/3;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}

.contact-socials {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.contact-socials a {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .6em 1.1em;
  border-radius: 999px;
  background: var(--dark);
  color: var(--cream);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-socials svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.contact-socials a:hover {
  background: var(--mauve);
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 10px 24px rgba(86, 64, 54, .35);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--taupe);
}

.footer-top {
  display: grid;
  gap: 2.4rem;
  padding-block: clamp(3rem, 7vw, 4.5rem) 3rem;
}

.footer-brand {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.footer-logo {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.footer-brand p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--taupe);
  max-width: 30em;
}

.footer-socials {
  display: flex;
  gap: .6rem;
  margin-top: .3rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(241, 238, 234, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--taupe);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.footer-socials svg {
  width: 17px;
  height: 17px;
}

.footer-socials a:hover {
  background: var(--mauve);
  border-color: var(--mauve);
  color: var(--cream);
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 10px 24px rgba(86, 64, 54, .35);
}

.footer-col h4 {
  font-family: var(--font-body);
  color: var(--cream);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

/* :not(.btn) keeps this from fighting .btn-accent's colors on the "Reservar turno" CTA below */
.footer-col a:not(.btn) {
  color: var(--taupe);
  text-decoration: none;
  font-size: .9rem;
  transition: color .15s ease;
}

.footer-col a:not(.btn):hover {
  color: var(--cream);
}

.footer-contact-list li {
  font-size: .9rem;
  color: var(--taupe);
}

.footer-cta {
  margin-top: 1.3rem;
  font-size: .85rem;
  padding: .7em 1.4em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid rgba(241, 238, 234, .12);
  padding-block: 1.4rem;
  font-size: .78rem;
  color: var(--brown);
}

.footer-bottom p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.whatsapp-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

/* Gallery lightbox: mobile-first — full-bleed image, thumb-reachable close/nav
   buttons pinned to the viewport edges so they work one-handed on a phone. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(35, 24, 19, .92);
  padding: 1rem;
  animation: lightbox-in .2s ease;
}

.lightbox[hidden] {
  display: none;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(241, 238, 234, .14);
  color: var(--cream);
  cursor: pointer;
  transition: background .15s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(241, 238, 234, .28);
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 20px;
  height: 20px;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive — ordered by breakpoint; each block's rules always come after
   their base declaration above, so cascade order is preserved. */
@media (max-width: 639px) {
  .contact-socials {
    display: none !important;
  }

  .footer-logo {
    width: 200px;
    height: auto;
  }

  /* extra breathing room beyond the container edge so the first/last card
     isn't flush against the screen edge — padding-inline here is bigger than
     the negative margin-inline it's paired with (see base rule), so it adds
     real space instead of just re-canceling it back to the container edge */
  .gallery-viewport {
    padding-inline: calc(var(--gap) + 1rem);
    margin:5px !important;
  }

  /* size cards so exactly 2 fit fully inside the viewport padding, instead of
     the base min(200px, 60vw) cropping the second card mid-frame */
  .gallery-track figure {
    width: calc((100vw - 2 * (var(--gap) + 1rem) - .8rem) / 2);
  }
}

@media (min-width: 640px) {
  .home-care-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--gap);
  }
}

@media (min-width: 860px) {
  .hero-media {
    background-image: url('public/hero-bg-desktop.jpeg');
  }

  .hero-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-block: 8rem;
  }

  .hero-promo {
    align-self: center;
  }

  .nav-toggle {
    display: none;
  }

  .navbar-glass {
    grid-template-rows: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-inner {
    padding: .6rem 0;
  }

  .nav-menu {
    min-height: auto;
    overflow: visible;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
  }

  .nav-links li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* glass pill is dark/amber at every width now, so links stay cream here too (no more light-navbar variant) */
  .nav-links a:not(.btn) {
    padding: 0;
    border-top: 0;
    font-size: .95rem;
  }

  .nav-links a:not(.btn):hover {
    color: var(--taupe);
  }

  .nav-cta {
    margin-top: 0;
  }

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

  .about-grid.reverse {
    direction: rtl;
  }

  .about-grid.reverse>* {
    direction: ltr;
  }

  .tx-layout {
    grid-template-columns: 210px 1fr;
    align-items: start;
    gap: var(--gap);
  }

  .tx-tabs {
    flex-direction: column;
    gap: .2rem;
    position: sticky;
    top: 6.5rem;
  }
}

.booking-info-wa {
  justify-self: center;
  margin-block: 30px;
}

@media (min-width: 900px) {
  .booking-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .contact-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .booking-info-wa {
    justify-self: start;
    margin-block: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    animation: none;
    overflow-x: auto;
  }

  .reviews-viewport {
    overflow-x: auto;
  }
}