/* DN Estética Facial y Corporal · Daniela Bassano
   Estética de sus placas: crema satinado, gris carbón, moka y greige, líneas
   finas doradas, fotos en óvalos y arcos, hojas en las esquinas. */

:root {
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --char: #3E3B39; /* gris carbón (la D) */
  --gray: #6B6967; /* gris de los títulos */
  --mocha: #A68B7C; /* moka (la N) */
  --mocha-ink: #7A5B4E; /* moka oscuro para textos chicos */
  --greige: #C6BAB0;
  --gold: #C9AC82; /* líneas finas doradas */
  --paper: #FBF6F2;
  --screen: 100vh;
  --screen: 100svh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

strong {
  font-weight: 600;
  color: var(--mocha-ink);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--char);
  color: #fff;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--mocha-ink);
  outline-offset: 3px;
}

.ico {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Piezas comunes ---------- */

.script {
  font-family: var(--font-accent);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
  color: var(--mocha);
}

.title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
}

.lead {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--muted);
  font-weight: 300;
  font-size: 17px;
}

/* Línea con el puntito central */
.rule {
  position: relative;
  display: block;
  width: min(260px, 70%);
  height: 1px;
  margin: 18px auto;
  background: linear-gradient(90deg, transparent, var(--mocha) 18%, var(--mocha) 82%, transparent);
  opacity: 0.7;
}

.rule i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mocha);
  transform: translate(-50%, -50%);
}

.rule--small {
  width: 140px;
}

/* Los tres círculos de su paleta */
.swatches {
  display: inline-flex;
  gap: 8px;
}

.swatches i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gray);
}

.swatches i:nth-child(2) {
  background: var(--mocha);
}

.swatches i:nth-child(3) {
  background: var(--greige);
}

.head {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.head .script {
  margin-bottom: 6px;
}

/* Título en dos tonos, como en las placas */
.tt {
  display: grid;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tt__a {
  color: var(--gray);
}

.tt__b {
  color: var(--mocha);
}

/* Botones */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font: 500 13px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s;
}

.btn--solid {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 14px 30px -18px rgb(62 59 57 / 0.7);
}

@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover {
  background: var(--char);
  border-color: var(--char);
}
}

.btn--line {
  background: transparent;
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .btn--line:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
}

.btn--small {
  min-height: 40px;
  padding: 8px 18px;
  background: var(--accent);
  color: var(--accent-ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn--small:hover {
  background: var(--char);
}
}

.btn--big {
  min-height: 60px;
  padding-inline: 34px;
  font-size: 15px;
}

.btn .ico {
  width: 20px;
  height: 20px;
}

/* Hojas de eucalipto y espigas en las esquinas */
.leaf {
  position: absolute;
  z-index: 0;
  width: clamp(110px, 18vw, 250px);
  height: auto;
  pointer-events: none;
  transform-origin: var(--o, 0 0);
  user-select: none;
}

.leaf--tl { top: -10px; left: -14px; --o: 0 0; }
.leaf--tr { top: -10px; right: -14px; --o: 100% 0; }
.leaf--bl { bottom: -16px; left: -14px; --o: 0 100%; }
.leaf--br { bottom: -16px; right: -14px; --o: 100% 100%; }
.leaf--small { width: clamp(90px, 12vw, 160px); }

/* ---------- Barra de arriba ---------- */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  /* Logo a la izquierda, "Estética Facial y Corporal" al centro y "Reservar"
     a la derecha; en compu, el menú va en una segunda fila debajo */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 18px;
  padding: 10px var(--gutter);
  transition: background-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease);
}

.top.is-solid {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--gold) 50%, transparent);
}

.top__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.top__brand img {
  width: auto;
  height: 46px;
}

.top__brand {
  justify-self: start;
}

.top__words {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  justify-items: center;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.top > .btn--small {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.top__script {
  font-family: var(--font-accent);
  font-size: 24px;
  color: var(--mocha);
}

.top__place {
  margin-top: 3px;
  margin-right: -0.4em;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--char);
}

.top__nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  display: flex;
  gap: clamp(14px, 2.4vw, 32px);
  padding-top: 6px;
}

.top__nav a {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray);
}

.top__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--mocha);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .top__nav a:hover::after {
  transform: scaleX(1);
}
}

/* ---------- Portada ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: max(var(--screen), 720px);
  padding: 140px var(--gutter) 90px;
  overflow: hidden;
  isolation: isolate;
}

/* Satén: pliegues suaves de luz que se mueven despacio */
.hero__satin {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(60% 40% at 30% 30%, rgb(255 255 255 / 0.7), transparent 60%),
    radial-gradient(50% 35% at 75% 70%, rgb(255 255 255 / 0.55), transparent 60%),
    linear-gradient(115deg, #F7EFEA 0%, #EEE2D9 30%, #F8F1EC 48%, #EADDD3 66%, #F6EEE8 100%);
}

/* Marco dorado fino */
.hero__frame {
  position: absolute;
  inset: clamp(70px, 9vw, 84px) clamp(14px, 3vw, 34px) clamp(14px, 3vw, 34px);
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
  pointer-events: none;
}

.hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.logo {
  width: clamp(150px, 20vw, 230px);
  will-change: transform;
}

.logo img {
  width: 100%;
}

.hero__brand {
  display: grid;
  justify-items: center;
}

.hero__brand-in {
  display: grid;
  justify-items: center;
  transform-origin: 50% 50%;
  will-change: transform;
}

[data-fly-logo],
.top__brand img {
  transform-origin: 50% 50%;
  will-change: transform;
}

/* Barra: mientras la portada está arriba, el logo y el texto de la barra
   no se ven (los muestran los de la portada, que vuelan hasta acá) */
.top[data-fly] .top__brand img,
.top[data-fly] .top__words {
  opacity: 0;
}

/* Mientras vuelan, la barra queda sin fondo para que se vean pasar */
.top[data-fly]:not(.is-docked) {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.top[data-fly].is-docked .top__brand img,
.top[data-fly].is-docked .top__words {
  opacity: 1;
}

.hero__script {
  margin-top: 16px;
  font-family: var(--font-accent);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1;
  color: var(--mocha);
}

.hero__place {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.6em;
  margin-right: -0.6em;
  text-transform: uppercase;
  color: var(--char);
}

.hero__lotus {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  color: var(--gold);
}

.hero__lotus::before,
.hero__lotus::after {
  content: '';
  width: clamp(60px, 12vw, 150px);
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.hero__lotus .ico {
  width: 30px;
  height: 30px;
}

.hero__title {
  display: grid;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--char);
  font-size: clamp(38px, 6vw, 74px);
}

.hero__sub {
  margin-top: 8px;
  font-size: 0.42em;
  letter-spacing: 0.16em;
  color: var(--gray);
}

.hero__text {
  max-width: 34ch;
  margin-top: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.4;
  color: var(--gray);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* Quién es y qué hace: bien visible al entrar */
.hero__who {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mocha-ink);
}

.hero__who span {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--char);
}

.hero__down {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid var(--mocha);
  border-radius: 999px;
}

.hero__down span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--mocha);
  animation: down 1.8s var(--ease) infinite;
}

@keyframes down {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Cinta de la agenda ---------- */

.band {
  overflow: hidden;
  border-block: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
  background: var(--char);
  color: var(--paper);
}

.band__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: band 40s linear infinite;
}

.band__track i {
  font-style: normal;
  color: var(--gold);
}

@keyframes chips {
  to { transform: translateX(-50%); }
}

@keyframes band {
  to { transform: translateX(-50%); }
}

/* ---------- Tratamientos ---------- */

.treat,
.needs,
.space,
.hours,
.end {
  position: relative;
  padding-block: clamp(80px, 11vw, 140px);
  overflow: hidden;
}

.treat .wrap,
.needs .wrap,
.space .wrap,
.hours .wrap {
  position: relative;
  z-index: 1;
}

/* Interruptor Faciales / Corporales */
.switch {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-top: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 10px 30px -22px rgb(62 59 57 / 0.6);
}

.switch__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.5s var(--ease);
}

.switch[data-on='1'] .switch__thumb {
  transform: translateX(100%);
}

.switch__btn {
  position: relative;
  min-width: 140px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: 500 13px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.4s;
}

.switch__btn[aria-selected='true'] {
  color: var(--accent-ink);
}

.panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.panel[hidden] {
  display: none;
}

.panel__side .tt {
  font-size: clamp(30px, 3.4vw, 44px);
}

.panel__side .rule {
  margin-inline: 0;
  width: 200px;
}

.menu {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu li + li {
  border-top: 1px solid var(--line);
}

.menu__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 6px;
  border: 0;
  background: none;
  text-align: left;
  font: 400 15px/1.3 var(--font-body);
  color: var(--ink);
  cursor: pointer;
  transition: color 0.3s, padding 0.4s var(--ease);
}

.menu__ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--mocha-ink);
  transition: background-color 0.35s, color 0.35s, transform 0.5s var(--ease);
}

.menu__go {
  color: var(--mocha);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.menu__go .ico {
  width: 18px;
  height: 18px;
}

.menu__item[aria-pressed='true'] {
  padding-left: 12px;
  color: var(--mocha-ink);
}

@media (hover: hover) and (pointer: fine) {
  .menu__item:hover {
  padding-left: 12px;
  color: var(--mocha-ink);
}
}

.menu__item[aria-pressed='true'] .menu__go {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .menu__item:hover .menu__go {
  opacity: 1;
  transform: none;
}
}

.menu__item[aria-pressed='true'] .menu__ico {
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-8deg) scale(1.05);
}

.menu__item[data-ask] {
  text-decoration: none;
}

.menu__item[data-ask] .menu__name::after {
  content: ' · consultá';
  font-size: 12px;
  color: var(--muted);
}

/* Ficha de cada tratamiento */
.ficha {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(160deg, var(--paper), #F3E9E2);
  box-shadow: 0 30px 60px -45px rgb(62 59 57 / 0.55);
}

.ficha + .ficha {
  margin-top: 24px;
}

.ficha__copy {
  grid-column: 1;
  grid-row: 1;
}

.ficha__media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  padding-top: 30px;
}

.ficha__cat {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mocha-ink);
}

.ficha .tt {
  font-size: clamp(34px, 4vw, 54px);
}

/* Palabras muy largas (Electroestimulación, Electroporación…): más chicas para que entren */
.ficha .tt--long {
  font-size: clamp(24px, 2.3vw, 33px);
  letter-spacing: 0.01em;
}

.ficha .rule {
  margin-inline: 0;
  width: 180px;
}

.ficha__intro,
.ficha__text {
  margin-bottom: 16px;
  font-weight: 400;
  color: var(--ink);
}

.ficha__text {
  font-size: 15px;
  color: var(--muted);
}

.ficha__hl {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mocha-ink);
}

.ficha__hl .ico {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: var(--mocha);
  color: #fff;
}

.ficha__points,
.ficha__list,
.ficha__tech,
.ficha__steps {
  display: grid;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.ficha__points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ficha__points li:last-child {
  border-bottom: 0;
}

.ficha__points .ico {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--mocha-ink);
}

.ficha__points p {
  font-size: 15px;
}

.ficha__lt {
  margin: 4px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mocha-ink);
}

.ficha__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}

.ficha__list .ico {
  width: 20px;
  height: 20px;
  color: var(--mocha);
}

.ficha__tech {
  grid-auto-flow: row;
  gap: 4px;
}

.ficha__tech li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.ficha__tech .ico {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--mocha-ink);
}

.ficha__tech b {
  color: var(--mocha);
  font-weight: 500;
}

.ficha__steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 8px 0;
  font-size: 14px;
}

.ficha__n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--mocha);
  border-radius: 50%;
  font-size: 13px;
  color: var(--mocha-ink);
}

.ficha__note {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 14px;
  color: var(--muted);
}

.ficha__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 8px 0 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  color: var(--ink);
}

.pill .ico {
  width: 34px;
  height: 34px;
  padding: 6px;
  border: 1px solid var(--mocha);
  border-radius: 50%;
  color: var(--mocha-ink);
}

/* Foto en óvalo con línea fina, y el equipo encima */
.oval {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--mocha), 0 30px 50px -30px rgb(62 59 57 / 0.6);
}

.oval--wide {
  /* Foto apaisada entera (electroestimulación): recuadro redondeado en vez
     de óvalo, para que no se corten la cara ni los pies */
  aspect-ratio: 2 / 1;
  border-radius: 32px;
  margin-top: 12%;
}

.oval img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equipo {
  position: absolute;
  top: -6px;
  right: -12px;
  width: 42%;
  max-height: 62%;
  padding: 10px;
  border-radius: 20px;
  background: #F5EBE6;
  box-shadow: 0 20px 40px -26px rgb(62 59 57 / 0.7);
  transform: rotate(3deg);
}

.equipo img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Con JavaScript: se ve una ficha por vez (entra con un fundido suave) */
.js .panel__fichas > .ficha {
  display: none;
  margin: 0;
}

.js .panel__fichas > .ficha[data-current] {
  display: grid;
  animation: ficha 0.7s var(--ease) both;
}

@keyframes ficha {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.js .ficha[data-current] .oval img {
  animation: zoom 1.4s var(--ease) both;
}

@keyframes zoom {
  from { transform: scale(1.12); }
  to { transform: none; }
}

.js .ficha[data-current] .equipo {
  animation: equipo 1s var(--ease) 0.2s both;
}

@keyframes equipo {
  from { opacity: 0; transform: translate(20px, -10px) rotate(10deg); }
  to { opacity: 1; transform: rotate(3deg); }
}

/* ---------- ¿Qué querés mejorar? ---------- */

.needs {
  background:
    radial-gradient(60% 60% at 80% 10%, rgb(255 255 255 / 0.65), transparent 70%),
    var(--surface);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.chip {
  padding: 11px 20px;
  border: 1px solid var(--greige);
  border-radius: 999px;
  background: var(--paper);
  font: 500 14px/1 var(--font-body);
  color: var(--gray);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .chip:hover {
  transform: translateY(-2px);
  border-color: var(--mocha);
}
}

.chip[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.results {
  display: grid;
  /* Lista numerada, uno debajo del otro: del más recomendado al resto */
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
  margin-inline: auto !important;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result {
  display: grid;
  grid-template-columns: auto 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding-right: 26px;
  background: var(--paper);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  animation: pop 0.7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 280ms);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

@media (hover: hover) and (pointer: fine) {
  .result:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -28px rgb(62 59 57 / 0.7);
}
}

@keyframes pop {
  from { opacity: 0; transform: translateY(-14px) scale(0.96); clip-path: inset(0 0 100% 0 round 999px); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 999px); }
}

/* Título de cada grupo (Faciales / Corporales) en los resultados */
.results__group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mocha-ink);
  animation: pop 0.7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 280ms);
}

.results__group:first-child {
  margin-top: 0;
}

.results__group::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--greige);
}

/* Número de orden (1, 2, 3…) a la izquierda de cada tratamiento */
.result {
  position: relative;
}

.result__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--mocha);
  font: 600 12px/1 var(--font-body);
  color: var(--mocha-ink);
}

/* El más recomendado se destaca */
.result--top {
  border-color: var(--accent);
  box-shadow: 0 18px 36px -26px rgb(62 59 57 / 0.7);
}

.result--top .result__num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.result img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
}

.result__cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mocha-ink);
}

.result__name {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  color: var(--char);
}

.result__time {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- Mi espacio en Terravista ---------- */

.space__in {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.space__text {
  text-align: center;
}

.space__text .title {
  font-size: clamp(30px, 3.6vw, 46px);
}

.space__line {
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--gray);
}

.arches {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
  gap: clamp(14px, 2.4vw, 30px);
  align-items: end;
}

.arch {
  position: relative;
  margin: 0;
  /* Lugar para el texto en curva sobre el arco */
  padding-top: 13%;
}

.arch--1 {
  transform: translateY(-40px);
}

/* Texto en curva: sigue el borde del arco, a la misma distancia en todo el
   recorrido (las medidas del dibujo son en "por ciento del ancho del arco") */
.arch__curve {
  position: absolute;
  left: -16%;
  top: 0;
  width: 132%;
  height: auto;
  overflow: visible;
  transform: translateY(-24.24%);
  pointer-events: none;
  font-family: var(--font-display);
  font-size: 6.2px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--gray);
}

.arch--wide .arch__curve {
  transform: translateY(-38.1%);
  font-size: 3.3px;
}

.arch__frame {
  position: relative;
  padding: 8px;
  border: 1px solid var(--mocha);
  border-radius: 999px 999px 10px 10px;
  background: var(--paper);
}

.arch__frame img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-radius: 999px 999px 6px 6px;
}

.arch__star {
  position: absolute;
  font-size: 14px;
  color: var(--mocha);
}

.arch__star--l {
  left: -6px;
  bottom: 30%;
}

.arch__star--r {
  right: -6px;
  top: 40%;
}

/* Collage del espacio: una sola imagen, marco con esquinas redondeadas y
   el texto en curva suave arriba */
.arches:has(.arch--collage) {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.arch--collage {
  width: min(100%, 560px);
  padding-top: 9%;
}

/* Texto en curva suave sobre el marco (mismo dibujo que el arco ancho) */
.arch--collage .arch__curve {
  transform: translateY(-38.1%);
  font-size: 3.3px;
}

.arch--collage .arch__frame,
.arch--collage .arch__frame img {
  border-radius: 22px;
}

.arch--collage .arch__frame img {
  aspect-ratio: 1122 / 1402;
  height: auto;
  object-fit: cover;
}

.motion .arch.arch--collage .arch__frame img {
  clip-path: inset(100% 0 0 0 round 22px);
}

.motion .arch.arch--collage.is-in .arch__frame img {
  clip-path: inset(0 0 0 0 round 22px);
}

/* Arco ancho para la foto apaisada de la sala */
.arch--wide {
  transform: none;
}

.arch--wide .arch__frame {
  border-radius: 50% 50% 10px 10px / 34% 34% 10px 10px;
}

.arch--wide .arch__frame img {
  aspect-ratio: 4 / 3;
  border-radius: 50% 50% 6px 6px / 33% 33% 6px 6px;
}

.motion .arch__frame img {
  clip-path: inset(100% 0 0 0 round 999px 999px 6px 6px);
  transition: clip-path 1.4s var(--ease);
}

.motion .arch.is-in .arch__frame img {
  clip-path: inset(0 0 0 0 round 999px 999px 6px 6px);
}

.motion .arch--wide .arch__frame img {
  clip-path: inset(100% 0 0 0);
}

.motion .arch--wide.is-in .arch__frame img {
  clip-path: inset(0 0 0 0);
}

/* ---------- Horarios ---------- */

.hours {
  background: var(--paper);
}

.hours__in {
  display: grid;
  justify-items: center;
  gap: 26px;
  text-align: center;
}

.hours {
  padding-block: clamp(60px, 8vw, 100px);
}

.hours__agenda {
  width: 100%;
}

/* Título de punta a punta */
.hours__big {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  text-wrap: balance;
}

.hours__agenda .rule {
  margin-bottom: 18px;
}

.card {
  position: relative;
  width: min(100%, 340px);
  padding: 34px 24px 20px;
  border: 1px solid var(--greige);
  border-radius: 20px;
  background: var(--bg);
}

.card__clock {
  position: absolute;
  left: 50%;
  top: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--mocha-ink);
  transform: translate(-50%, -50%);
}

.card__clock .ico {
  width: 32px;
  height: 32px;
}

.card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  color: var(--mocha-ink);
}

.card__line {
  display: block;
  width: 60%;
  height: 1px;
  margin: 8px auto 10px;
  background: var(--greige);
}

.card__days {
  font-size: 16px;
  color: var(--gray);
}

.card__time {
  font-size: 21px;
  font-weight: 600;
  color: var(--mocha-ink);
}

.who {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.who__ico {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mocha);
}

.who__ico .ico {
  width: 46px;
  height: 46px;
}

.who__name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--char);
}

.who__job {
  font-size: 15px;
  color: var(--muted);
}

.who__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--mocha-ink);
}

.who__phone .ico {
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--mocha);
  border-radius: 50%;
}

/* ---------- Cierre ---------- */

.end__in {
  display: grid;
  justify-items: center;
  text-align: center;
}

.end__logo {
  width: 110px;
  margin-bottom: 10px;
}

.end .lead {
  margin-bottom: 28px;
}

.foot {
  padding: 30px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.foot__legal {
  margin-top: 6px;
  font-size: 12px;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 30px -14px rgb(62 59 57 / 0.8);
  transition: transform 0.4s var(--ease), opacity 0.4s;
}

.wa-float .ico {
  width: 28px;
  height: 28px;
}

@media (hover: hover) and (pointer: fine) {
  .wa-float:hover {
  transform: scale(1.08);
}
}

.wa-float.is-hidden {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

/* Títulos que se escriben: cada letra aparece de a una (main.js) */
.type__word {
  display: inline-block;
  white-space: nowrap;
}

.type__ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.25em);
  filter: blur(4px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease), filter 0.5s ease;
}

.type.is-typed .type__ch {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Apariciones al bajar ---------- */

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}

.motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Portada: el logo y los textos entran de a uno */
.motion .hero__in > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1.1s var(--ease) forwards;
}

.motion .hero__in > :nth-child(1) { animation-delay: 0.1s; }
.motion .hero__in > :nth-child(2) { animation-delay: 0.5s; }
.motion .hero__in > :nth-child(3) { animation-delay: 0.85s; }
.motion .hero__in > :nth-child(4) { animation-delay: 1s; }
.motion .hero__in > :nth-child(5) { animation-delay: 1.15s; }
.motion .hero__in > :nth-child(6) { animation-delay: 1.3s; }
.motion .hero__in > :nth-child(7) { animation-delay: 1.45s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* "Estética Facial y Corporal" se escribe de izquierda a derecha */
.motion .hero__script {
  clip-path: inset(0 100% 0 0);
  animation: write 1.8s ease-in-out 0.6s forwards;
}

@keyframes write {
  to { clip-path: inset(0 0 0 0); }
}

.motion .leaf {
  animation: sway 7s ease-in-out infinite alternate;
}

.motion .leaf--tr,
.motion .leaf--bl {
  animation-duration: 9s;
  animation-delay: -3s;
}

@keyframes sway {
  from { rotate: -2.5deg; }
  to { rotate: 2.5deg; }
}

/* ---------- Pantallas medianas y chicas ---------- */

@media (max-width: 1000px) {
  .top__nav {
    display: none;
  }

  .panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel__side {
    text-align: center;
  }

  .panel__side .rule {
    margin-inline: auto;
  }

  /* El listado: todos a la vista, en dos columnas (sin deslizar) */
  /* Si queda uno solo en la última fila, ocupa todo el ancho */
  .menu li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .menu__name {
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .menu li + li {
    border-top: 0;
  }

  .menu__item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    height: 100%;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    font-size: 13px;
    line-height: 1.25;
  }

  .menu__item:hover,
  .menu__item[aria-pressed='true'] {
    padding-left: 6px;
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent-soft) 60%, var(--paper));
  }

  .menu__ico {
    width: 32px;
    height: 32px;
  }

  .menu__ico .ico {
    width: 17px;
    height: 17px;
  }

  .menu__go {
    display: none;
  }

  .ficha {
    grid-template-columns: minmax(0, 1fr);
  }

  .ficha__media {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 360px);
    justify-self: center;
  }

  .ficha__copy {
    grid-row: 2;
  }

  .space__in {
    grid-template-columns: minmax(0, 1fr);
  }
}

.top .btn--small .ico {
  display: none;
}

@media (max-width: 640px) {
  /* "¿Qué querés mejorar?": dos filas que se mueven solas (main.js) */
  .chips.is-moving {
    display: grid;
    gap: 8px;
    margin: 0 calc(var(--gutter) * -1) 26px;
    padding: 2px 0 6px;
    overflow: hidden;
  }

  .chips__row {
    display: flex;
    gap: 8px;
    width: max-content;
    padding-right: 8px;
    animation: chips 26s linear infinite;
  }

  .chips__row--1 {
    animation-duration: 30s;
    animation-direction: reverse;
  }

  /* Al apoyar el dedo se frena, para poder elegir tranquila */
  .chips.is-moving:active .chips__row {
    animation-play-state: paused;
  }

  /* Sin restricción a propósito: en el celu, después de tocar una opción
     las filas quedan quietas para elegir otra con tranquilidad */
  .chips.is-moving:hover .chips__row {
    animation-play-state: paused;
  }

  .chip {
    flex: none;
    padding: 9px 15px;
    font-size: 13px;
    scroll-snap-align: start;
  }

  /* Celular: "Reservar" pasa a ser un botón redondo con el ícono de
     WhatsApp, así entra "Estética Facial y Corporal" en el centro */
  .top .btn--small {
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 50%;
  }

  .top .btn--small span {
    display: none;
  }

  .top .btn--small .ico {
    display: block;
  }

  .top__script {
    font-size: 18px;
  }

  .top__brand img {
    height: 40px;
  }

  .hero {
    padding-top: 96px;
  }

  .hero__frame {
    inset: 76px 10px 10px;
  }

  .leaf {
    width: 110px;
  }

  .switch__btn {
    min-width: 0;
    padding-inline: 18px;
  }

  .arches {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .arch--0 {
    width: 70%;
    justify-self: center;
  }

  .arch--wide .arch__curve {
    font-size: 4.2px;
  }

  .arch--1 {
    transform: none;
  }

  .result {
    grid-template-columns: auto 64px minmax(0, 1fr);
  }

  .result img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 380px) {
  .menu__item {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .menu__ico {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===================== Celular: ajustes finos =====================
   Botones cómodos para el dedo (mínimo ~44 px), letras legibles y el
   botón flotante de WhatsApp sin tapar textos ni otros botones. */
html {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
summary {
  touch-action: manipulation;
}

@media (max-width: 1000px) {
  .switch__btn {
    min-height: 46px;
  }

  .menu__item {
    min-height: 54px;
  }

  .menu__name {
    font-size: 13.5px;
    line-height: 1.25;
  }

  .ficha__cat {
    font-size: 12px;
  }

  .top__place {
    font-size: 11px;
  }

  .hero__down::before {
    content: '';
    position: absolute;
    inset: -12px -16px;
  }

  /* Lugar libre abajo para que el botón flotante no tape el pie */
  .foot {
    padding-bottom: 96px;
  }

  .foot__legal {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .chip {
    min-height: 42px;
    padding: 11px 16px;
    font-size: 14px;
  }

  .result__cat {
    font-size: 11px;
  }

  .result__time,
  .result__num {
    font-size: 13px;
  }

  .wa-float {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .menu__item {
    font-size: 13px;
  }

  .menu__name {
    font-size: 13px;
  }
}

@media (max-width: 1000px) {
  .top__brand {
    min-width: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
  }
}

/* Los textos de los botones no se seleccionan al mantener apretado y
   responden apenas se apoya el dedo */
button,
summary,
[role='button'],
[role='tab'],
.btn,
.chip,
.menu__item {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

@media (pointer: coarse) {
  .btn:active,
  .chip:active,
  .menu__item:active,
  .switch__btn:active,
  .wa-float:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
  }
}
