/* ============================================================
   Caribbou v2 — "carta de color"
   Colores tomados del local: muro encalado, logo olivo, ratán.
   Títulos: Darker Grotesque · Texto: Instrument Sans · Etiquetas: DM Mono
   ============================================================ */
:root {
  /* paleta de marca (paleta de colores.png) */
  --arena: #dcd6c3;
  --rosa: #c3a8a0;       /* rosa empolvado */
  --coral: #e29f8f;
  --terracota: #d69474;
  --olivo: #75714d;      /* color del logo */
  --salvia: #a29d86;
  --arcilla: #ae9279;
  --cafe: #403722;
  --verde: #404c36;      /* verde del logo en el muro del salón */
  --verde-deep: #2c3524;

  /* roles */
  --cal: #f3f0e7;        /* fondo: arena muy clara */
  --cal-deep: var(--arena);
  --hoja: var(--verde);  /* acción y bandas oscuras */
  --ratan: var(--terracota); /* estrellas, anillo activo, detalles */
  --tinta: #222a1c;      /* texto: casi negro verdoso */
  --tinta-soft: #4b5440;   /* 4.5:1 o más sobre arena y rosa */
  --line: rgba(44, 53, 36, 0.16);

  --f-display: "Darker Grotesque", "Arial Narrow", sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", monospace;  /* solo números del catálogo (etiqueta de frasco) */

  --ease: cubic-bezier(0.23, 1, 0.32, 1);          /* entradas y respuestas */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);   /* hoja tipo iOS */
  --pad: clamp(16px, 4.5vw, 64px);
  --nail: 50% 50% 22px 22px / 34% 34% 22px 22px;  /* foto con forma de uña almendrada */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--cal); color: var(--tinta);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--hoja); color: var(--cal); padding: 10px 16px; border-radius: 999px; }
:focus-visible { outline: 2px solid var(--hoja); outline-offset: 3px; }
.hero :focus-visible, .close :focus-visible { outline-color: var(--coral); }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- tipografía ---------- */
/* etiquetas: Instrument Sans en versalitas con aire, más suave que la mono */
.label { font-family: var(--f-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tinta-soft); }
.label--light { color: rgba(243, 240, 231, 0.7); }
.h2 {
  text-wrap: balance;
  font-family: var(--f-display); font-weight: 400; line-height: 0.92; letter-spacing: -0.01em;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-family: var(--f-body); font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn--leaf { background: var(--hoja); color: var(--cal); }
.btn--cal { background: var(--cal); color: var(--hoja); }
.btn--coral { background: var(--coral); color: var(--verde-deep); }
.btn--line { border: 1px solid var(--hoja); color: var(--hoja); background: transparent; }
.btn--line-cal { border: 1px solid rgba(243, 240, 231, 0.55); color: var(--cal); background: transparent; }
.btn--icon { width: 48px; padding: 0; }
@media (hover: hover) and (pointer: fine) {
  .btn--leaf:hover { background: var(--tinta); }
  .btn--cal:hover { background: #fff; }
  .btn--coral:hover { background: #ebb4a6; }
  .btn--line:hover, .btn--line-cal:hover { background: rgba(214, 148, 116, 0.18); }
}

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link .i:last-child { transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .link:hover .i:last-child { transform: translateX(3px); } }
.link--light { color: var(--cal); border-color: rgba(243, 240, 231, 0.45); }

/* ---------- nav ---------- */
.nav {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px var(--pad);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__brand img { width: 46px; height: auto; }
.nav__brand span { font-family: var(--f-display); font-size: 1.7rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1; }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.92rem; }

/* ---------- foto con forma de uña ---------- */
.nail-frame { margin: 0; overflow: hidden; border-radius: var(--nail); background: var(--cal-deep); }
.nail-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- HERO: foto a sangre de fondo, texto y botones por delante ----------
   Foto propia del salón (1672 px escritorio / 940 px celular).
   Degradado café sólido a la izquierda para que el texto conserve el contraste
   sin enturbiar la foto: las manos y el logo quedan limpios a la derecha. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  color: var(--cal); background: var(--verde-deep);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; } /* el acercamiento inicial no se sale del recuadro */
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
/* escritorio: la foto se amplía desde la esquina superior izquierda para llevar las
   uñas hacia abajo y a la derecha, fuera del texto, los botones y las etiquetas */
@media (min-width: 721px) { .hero__bg img { scale: 1.16; transform-origin: 0 0; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(44, 53, 36, 0.94) 0%, rgba(44, 53, 36, 0.86) 30%, rgba(44, 53, 36, 0.45) 50%, rgba(44, 53, 36, 0) 66%),
    linear-gradient(0deg, rgba(44, 53, 36, 0.7) 0%, rgba(44, 53, 36, 0) 26%),
    linear-gradient(180deg, rgba(44, 53, 36, 0.55) 0%, rgba(44, 53, 36, 0) 14%);
}
.hero .nav { padding: 18px var(--pad); }
.nav__phone { color: inherit; }
.hero__copy { align-self: center; display: grid; gap: 20px; justify-items: start; min-width: 0; max-width: min(720px, 52vw); padding: clamp(24px, 5vh, 56px) 0 clamp(24px, 5vh, 56px) var(--pad); }
.hero__title {
  font-family: var(--f-display); font-weight: 400; letter-spacing: -0.015em;
  font-size: clamp(4rem, 8vw, 7.6rem); line-height: 0.82;
  max-width: 11ch; text-wrap: balance;
}
.hero__sub { font-family: var(--f-display); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.02; font-weight: 400; color: var(--coral); margin-top: -2px; max-width: 26ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; color: rgba(243, 240, 231, 0.85); }
.rating .i { color: var(--terracota); fill: var(--terracota); }
.rating strong { color: var(--cal); font-weight: 600; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; }
.trust li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(243, 240, 231, 0.3); font-size: 0.82rem; color: rgba(243, 240, 231, 0.9);
  background: rgba(44, 53, 36, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

/* ---------- CARTA DE COLOR (firma) ---------- */
.palette { display: grid; gap: 12px; width: min(720px, 52vw); margin: 0 0 clamp(24px, 4vw, 44px) var(--pad); padding-top: 18px; border-top: 1px solid rgba(243, 240, 231, 0.22); }
.palette__tips { display: flex; gap: clamp(8px, 1.2vw, 16px); align-items: end; padding-top: 14px; }
.tip { display: grid; justify-items: center; gap: 8px; }
.tip button {
  position: relative; width: clamp(30px, 3.4vw, 46px); aspect-ratio: 1 / 1.55; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  /* punta de uña almendrada */
  border-radius: 50% 50% 42% 42% / 64% 64% 36% 36%;
  background: var(--swatch);
  box-shadow: 0 6px 10px -8px rgba(44, 53, 36, 0.6), inset 0 -6px 8px -6px rgba(0, 0, 0, 0.25);
  transition: transform 240ms var(--ease), box-shadow 240ms ease;
}
/* brillo de esmalte */
.tip button::after {
  content: ""; position: absolute; left: 22%; top: 12%; width: 18%; height: 42%;
  border-radius: 50%; background: rgba(255, 255, 255, 0.5); filter: blur(1px);
}
.tip span { font-family: var(--f-mono); font-size: 0.62rem; color: rgba(243, 240, 231, 0.7); }
.tip button[aria-pressed="true"] { transform: translateY(-10px); box-shadow: 0 14px 16px -10px rgba(44, 53, 36, 0.55), 0 0 0 2px var(--verde-deep), 0 0 0 3.5px var(--coral); }
.tip button[aria-pressed="true"] + span { color: var(--cal); }
@media (hover: hover) and (pointer: fine) {
  .tip button:hover { transform: translateY(-8px) rotate(-4deg); }
}
.tip button:active { transform: translateY(-4px) scale(0.96); }

/* ---------- secciones ---------- */
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 16px 48px; align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.sec-head__side { color: var(--tinta-soft); max-width: 42ch; }

/* ---------- CATÁLOGO ---------- */
.catalog { padding: clamp(56px, 8vw, 112px) var(--pad); border-top: 1px solid var(--line); }
.catalog__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(14px, 2vw, 28px); }
.design { scroll-margin-top: 24vh; }
.design .design__btn { color: inherit;  display: grid; gap: 12px; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.design .nail-frame { aspect-ratio: 3 / 4.3; position: relative; transition: transform 300ms var(--ease), box-shadow 300ms ease; }
.design .nail-frame img { transition: transform 500ms var(--ease); }
.design__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.design__no { font-family: var(--f-mono); font-size: 0.72rem; color: var(--tinta-soft); }
.design__name { font-family: var(--f-display); font-size: 1.45rem; line-height: 1; font-weight: 500; }
.design__dot { width: 10px; height: 14px; border-radius: 50% 50% 42% 42% / 64% 64% 36% 36%; background: var(--swatch); flex: none; align-self: center; border: 1px solid rgba(44, 53, 36, 0.15); }
.design__book { font-size: 0.85rem; color: var(--hoja); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.design__book .i { width: 15px; height: 15px; transition: transform 200ms var(--ease); }
.design.is-picked .nail-frame { box-shadow: 0 0 0 3px var(--cal), 0 0 0 4.5px var(--coral); }
@media (hover: hover) and (pointer: fine) {
  .design .design__btn:hover .nail-frame { transform: translateY(-6px); box-shadow: 0 22px 34px -24px rgba(44, 53, 36, 0.55); }
  .design .design__btn:hover .nail-frame img { transform: scale(1.04); }
  .design .design__btn:hover .design__book .i { transform: translateX(3px); }
}
.design .design__btn:active .nail-frame { transform: scale(0.98); }

/* ---------- CARTA DEL SALÓN ---------- */
.menu { padding: clamp(56px, 8vw, 112px) var(--pad); background: var(--verde); color: var(--cal); }
.menu .sec-head__side, .menu .label { color: rgba(243, 240, 231, 0.78); }
.menu__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.menu__col { display: flex; flex-direction: column; }
.menu__col[data-match] { order: -1; }
.menu__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1.5px solid var(--salvia); }
.menu__head h3 { font-family: var(--f-display); font-weight: 500; font-size: 2.3rem; line-height: 1; }
.menu__col[data-match] .menu__head { border-bottom-color: var(--coral); }
.menu__col[data-match] .menu__head h3::after { content: " ·"; color: var(--coral); }
.menu__rows li { border-bottom: 1px solid rgba(243, 240, 231, 0.16); }
.row {
  position: relative; width: 100%; min-height: 56px; padding: 0; border: 0; background: none; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 1rem;
}
.row::before {
  content: ""; position: absolute; inset: 0 -10px; border-radius: 10px; background: rgba(243, 240, 231, 0.08);
  opacity: 0; transition: opacity 200ms ease;
}
.row span, .row .i { position: relative; transition: transform 250ms var(--ease); }
.row .i { color: var(--salvia); }
.menu .row { color: var(--cal); }
.menu :focus-visible { outline-color: var(--coral); }
.menu__fine { margin-top: 14px; font-size: 0.85rem; color: rgba(243, 240, 231, 0.75); }
@media (hover: hover) and (pointer: fine) {
  .row:hover::before { opacity: 1; }
  .row:hover span { transform: translateX(6px); }
  .row:hover .i { transform: translateX(-4px); color: var(--coral); }
}

/* ---------- FACIAL SPA ---------- */
.spa {
  padding: clamp(56px, 8vw, 112px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.spa__photo { aspect-ratio: 3 / 4.4; }
.spa__photo img { object-position: 40% 50%; }
.spa__body { display: grid; gap: 22px; justify-items: start; }
.steps { counter-reset: step; display: grid; width: 100%; }
.steps li {
  counter-increment: step; position: relative;
  padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line);
}
.steps li::before { content: counter(step); position: absolute; left: 0; top: 16px; font-family: var(--f-body); font-weight: 600; font-size: 0.85rem; font-variant-numeric: tabular-nums; color: var(--terracota); }
.steps strong { font-weight: 600; }

/* ---------- RESEÑAS ---------- */
.reviews {
  padding: clamp(56px, 8vw, 112px) var(--pad); background: color-mix(in srgb, var(--rosa) 38%, var(--cal));
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start;
}
.reviews__score { display: grid; gap: 14px; justify-items: start; }
.reviews__num { font-family: var(--f-display); font-weight: 300; font-size: clamp(7rem, 16vw, 13rem); line-height: 0.72; letter-spacing: -0.02em; color: var(--verde); }
.reviews__meta { display: grid; gap: 8px; color: var(--tinta-soft); max-width: 28ch; }
.stars { display: flex; gap: 2px; color: var(--ratan); }
.stars .i { fill: currentColor; width: 16px; height: 16px; }
.reviews__list { display: grid; }
.reviews__list li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.reviews__list li:first-child { padding-top: 0; }
.reviews__list blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.02; font-weight: 400; }
.reviews__list cite { font-style: normal; font-family: var(--f-body); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tinta-soft); }

/* ---------- AGENDA ---------- */
.close {
  margin: clamp(40px, 6vw, 72px) var(--pad); border-radius: 28px; overflow: hidden;
  background: var(--hoja); color: var(--cal);
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: inset 0 0 0 1px rgba(214, 148, 116, 0.35);
}
.close__text { padding: clamp(32px, 5vw, 64px); display: grid; gap: 22px; align-content: center; justify-items: start; }
.close__text > p:not(.label) { opacity: 0.85; }
.close__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.close__map { min-height: 400px; border-left: 1px solid rgba(214, 148, 116, 0.35); }
.close__map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; filter: grayscale(0.5) sepia(0.12); }

.footer {
  padding: 24px var(--pad) 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  font-family: var(--f-body); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tinta-soft);
}
.footer a { text-decoration: underline; text-underline-offset: 3px; }

.bar { display: none; }

/* ---------- tableta ---------- */
@media (max-width: 1000px) {
  .catalog__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu__cols { grid-template-columns: 1fr 1fr; }
  .sec-head { grid-template-columns: 1fr; }
}

/* ---------- teléfono ---------- */
@media (max-width: 720px) {
  .nav { padding-block: 12px; }
  .nav__phone span { display: none; }
  .nav__phone { width: 44px; justify-content: center; border: 1px solid rgba(243, 240, 231, 0.4); border-radius: 50%; }
  .nav__actions { gap: 8px; }

  .hero .nav { padding: 12px var(--pad); }
  /* en vertical: el texto va arriba, sobre la foto; las uñas y las flores
     quedan despejadas abajo, entre los botones y la carta de color */
  /* la foto se recorta: solo cubre hasta las uñas y se desvanece en café;
     la carta de color queda debajo, sobre color sólido */
  .hero { min-height: 100svh; }
  /* la foto llega hasta el fondo del hero y se funde en verde bajo la carta de color: sin bordes */
  .hero__bg, .hero::after { inset: 0; height: auto; }
  .hero__bg img { object-position: 50% 40%; scale: 1.12; transform-origin: 50% 0; } /* amplía desde arriba: las uñas bajan sin dejar hueco arriba */
  .hero::after {
    background: linear-gradient(180deg,
      rgba(44, 53, 36, 0.94) 0%, rgba(44, 53, 36, 0.86) 40%, rgba(44, 53, 36, 0.35) 56%,
      rgba(44, 53, 36, 0.08) 66%, rgba(44, 53, 36, 0.55) 76%, rgba(44, 53, 36, 0.9) 84%, var(--verde-deep) 92%);
  }
  .hero__copy { align-self: start; max-width: none; padding: 8px var(--pad) 18px; gap: 14px; }
  .hero__title { font-size: clamp(3rem, 14vw, 4.2rem); }
  .palette { width: auto; margin: 0 var(--pad) 24px; }
  .hero__title { font-size: clamp(3.4rem, 17vw, 5rem); }
  .trust li { font-size: 0.78rem; }
  .palette__tips { overflow-x: auto; padding: 14px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
  .palette__tips::-webkit-scrollbar { display: none; }
  .tip button { width: 34px; }

  .catalog__list {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
    margin: 0 calc(var(--pad) * -1); padding: 8px var(--pad) 4px; scrollbar-width: none;
  }
  .catalog__list::-webkit-scrollbar { display: none; }
  .design { scroll-snap-align: start; }

  .menu__cols, .spa, .reviews, .close { grid-template-columns: 1fr; }
  .spa__photo { aspect-ratio: 3 / 3.2; }
  .close__map { border-left: 0; border-top: 1px solid rgba(214, 148, 116, 0.35); min-height: 320px; }
  .close__map iframe { min-height: 320px; }
  .footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .bar {
    display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20;
    padding: 8px; border-radius: 999px; background: rgba(243, 240, 231, 0.92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 8px 26px rgba(44, 53, 36, 0.18);
    transform: translateY(140%); transition: transform 300ms var(--ease);
  }
  .bar.is-on { transform: none; }
  .bar .btn--leaf { flex: 1; }
}

/* ============================================================
   MOVIMIENTO (criterio Emil Kowalski)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* carga: el título y el botón llegan ya; las puntas se acomodan en el exhibidor */
  .hero__copy > :not(.palette) { animation: rise 450ms var(--ease) both; }
  .hero__bg img { animation: settle 1400ms var(--ease) both; }
  .tip { animation: tip-in 420ms var(--ease) both; animation-delay: calc(200ms + var(--n) * 40ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes settle { from { transform: scale(1.08); } }
@keyframes tip-in { from { opacity: 0; transform: translateY(14px); } }

/* entradas al hacer scroll: `translate` para no chocar con hover/presión (transform) */
.js [data-reveal] {
  opacity: 0; translate: 0 12px;
  transition: opacity 500ms var(--ease) var(--d, 0ms), translate 600ms var(--ease) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; translate: none; }

/* ---------- modal de agenda ---------- */
.is-locked { overflow: hidden; }
.sheet {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100%; height: 100%; background: transparent; color: var(--tinta); overflow: hidden;
}
.sheet[open] { display: grid; place-items: center; }
.sheet::backdrop { background: transparent; }
.sheet__overlay { position: fixed; inset: 0; background: rgba(44, 53, 36, 0.5); opacity: 0; transition: opacity 240ms ease-out; border: 0; padding: 0; margin: 0; cursor: default; -webkit-appearance: none; appearance: none; }
.sheet__panel {
  position: relative; width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain;
  background: var(--cal); border-radius: 24px; padding: 28px; display: grid; gap: 16px;
  box-shadow: 0 30px 60px -30px rgba(44, 53, 36, 0.55), inset 0 0 0 1px rgba(214, 148, 116, 0.4);
  opacity: 0; transform: translateY(10px) scale(0.97);
  transition: opacity 200ms ease-out, transform 280ms var(--ease);
}
.sheet[data-state="open"] .sheet__overlay { opacity: 1; }
.sheet[data-state="open"] .sheet__panel { opacity: 1; transform: none; }
.sheet[data-state="closing"] .sheet__overlay { transition-duration: 180ms; }
.sheet[data-state="closing"] .sheet__panel { transition: opacity 150ms ease-out, transform 180ms ease-out; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sheet__title { font-family: var(--f-display); font-weight: 500; font-size: 2.4rem; line-height: 1; }
.sheet__x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; transition: transform 160ms var(--ease); }
.sheet__x:active { transform: scale(0.94); }
.sheet__lead { color: var(--tinta-soft); font-size: 0.95rem; }
.field { display: grid; gap: 6px; font-family: var(--f-body); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tinta-soft); }
.field select, .field input {
  font-family: var(--f-body); font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--tinta);
  min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cal-deep);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.field select:focus-visible, .field input:focus-visible { outline: 2px solid var(--hoja); outline-offset: 2px; border-color: var(--hoja); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet__submit { width: 100%; min-height: 52px; margin-top: 4px; }
.sheet__fine { font-size: 0.8rem; color: var(--tinta-soft); text-align: center; }
@media (max-width: 720px) {
  .sheet[open] { place-items: end stretch; }
  .sheet__panel {
    width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    opacity: 1; transform: translateY(100%); transition: transform 420ms var(--ease-drawer);
  }
  .sheet[data-state="closing"] .sheet__panel { transition: transform 240ms var(--ease-drawer); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { translate: none; transition: opacity 300ms ease; }
  .tip button, .design .nail-frame, .design .nail-frame img, .row span, .row .i, .bar { transition: none; }
  .tip button[aria-pressed="true"] { transform: none; }
  .sheet__panel, .sheet[data-state="closing"] .sheet__panel { transform: none; transition: opacity 200ms ease; }
  .sheet:not([data-state="open"]) .sheet__panel { opacity: 0; }
}

/* ---------- barra fija: botón coral para resaltar sobre el verde ---------- */
.bar .btn--coral { flex: 1; box-shadow: 0 10px 22px -12px rgba(226, 159, 143, 0.95); }

/* ---------- catálogo: carrusel infinito con recorte animado (clip-path) ----------
   Movimiento con salida rápida y frenado suave (responde al instante), 520ms.
   El activo se abre a la forma de uña; los demás quedan más chicos y tenues. */
.catalog__stage {
  position: relative; overflow: hidden; margin: 0 calc(var(--pad) * -1);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.catalog__stage.is-dragging { cursor: grabbing; }
.catalog__list.is-clip {
  position: absolute; inset: 0; display: block; margin: 0; padding: 0;
  overflow: visible; grid-template-columns: none; scroll-snap-type: none;
}
.catalog__list.is-clip .design {
  position: absolute; top: 4px; left: 0; width: clamp(200px, 21vw, 290px);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.catalog__stage.is-dragging .design, .catalog__list.is-clip .design.no-anim { transition: none; }
.catalog__list.is-clip .design img { -webkit-user-drag: none; pointer-events: none; }
.catalog__list.is-clip .nail-frame {
  border-radius: 0;
  clip-path: inset(14% 9% 14% 9% round 18px);
  opacity: 0.6;
  transition: clip-path 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}
.catalog__list.is-clip .nail-frame img { transform: scale(1.06); transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1); }
.catalog__list.is-clip .design.is-active .nail-frame {
  clip-path: inset(0 0 0 0 round 50% 50% 22px 22px / 34% 34% 22px 22px);
  opacity: 1;
}
.catalog__list.is-clip .design.is-active .nail-frame img { transform: none; }
.catalog__list.is-clip :is(.design__cap, .design__name, .design__book) {
  opacity: 0; transform: translateY(6px);
  transition: opacity 160ms ease, transform 240ms var(--ease);
}
.catalog__list.is-clip .design.is-active :is(.design__cap, .design__name, .design__book) {
  opacity: 1; transform: none; transition-delay: 140ms;
}
.catalog__list.is-clip .design.is-picked .nail-frame { box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .catalog__list.is-clip .design:not(.is-active) .design__btn:hover .nail-frame { opacity: 0.9; transform: none; }
  .catalog__list.is-clip .design.is-active .design__btn:hover .nail-frame { transform: none; }
}

.catalog__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.catalog__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--tinta);
  display: grid; place-items: center; transition: background-color 200ms ease, transform 160ms var(--ease), opacity 200ms ease;
}
.catalog__arrow:active { transform: scale(0.94); }
.catalog__arrow:disabled { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .catalog__arrow:not(:disabled):hover { background: var(--cal-deep); } }
.catalog__dots { display: flex; gap: 2px; }
.catalog__dot { width: 22px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.catalog__dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--salvia);
  transition: width 300ms var(--ease), background-color 200ms ease;
}
.catalog__dot[aria-pressed="true"]::before { width: 18px; background: var(--verde); }

@media (max-width: 720px) {
  .catalog__list.is-clip .design { width: 62vw; }
  .catalog__dot { width: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog__list.is-clip .design, .catalog__list.is-clip .nail-frame, .catalog__list.is-clip .nail-frame img,
  .catalog__list.is-clip :is(.design__cap, .design__name, .design__book), .catalog__dot::before { transition: none; }
}

/* ============================================================
   TIPOGRAFÍA DE LA v2: Inter Tight en toda la página
   Más ancha que Darker Grotesque: tamaños de títulos reducidos y
   pesos ligeros con tracking negativo, como en la v2.
   ============================================================ */
:root {
  --f-display: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", monospace; /* segunda fuente: solo números del catálogo */
}
.h2 { font-weight: 300; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; }
.hero__title { font-weight: 300; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 12ch; }
.hero__sub { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.3; letter-spacing: -0.01em; max-width: 34ch; }
.design__name { font-size: 1.15rem; font-weight: 400; letter-spacing: -0.01em; }
.design__no, .tip span { letter-spacing: 0; }
.menu__head h3 { font-size: 1.75rem; font-weight: 300; letter-spacing: -0.02em; }
.reviews__num { font-size: clamp(5rem, 11vw, 9rem); line-height: 0.82; letter-spacing: -0.045em; }
.reviews__list blockquote { font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.28; font-weight: 300; letter-spacing: -0.015em; }
.sheet__title { font-size: 1.9rem; font-weight: 300; letter-spacing: -0.02em; }
@media (max-width: 720px) {
  .hero__title { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .hero__sub { font-size: 1.1rem; }
}

/* ---------- catálogo: entrada suave (título por palabras, texto y carrusel) ---------- */
.hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hw__in { display: inline-block; }
.anim-ready .hw__in { transform: translateY(108%); transition: transform 900ms var(--ease) calc(var(--w) * 70ms); }
.anim-ready .sec-head__side,
.anim-ready .catalog__stage,
.anim-ready .catalog__controls {
  opacity: 0; translate: 0 14px;
  transition: opacity 700ms var(--ease), translate 800ms var(--ease);
}
.anim-ready .sec-head__side { transition-delay: 220ms; }
.anim-ready .catalog__stage { transition-delay: 340ms; }
.anim-ready .catalog__controls { transition-delay: 460ms; }
.anim-ready.is-shown .hw__in { transform: none; }
.anim-ready.is-shown :is(.sec-head__side, .catalog__stage, .catalog__controls) { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  .anim-ready .hw__in { transform: none; transition: none; }
  .anim-ready :is(.sec-head__side, .catalog__stage, .catalog__controls) { translate: none; transition: opacity 300ms ease; transition-delay: 0ms; }
}

/* ---------- desenfoque progresivo en los bordes (estilo "Progressive Blur") ----------
   Seis capas con backdrop-filter, cada una con más desenfoque y una máscara
   en franja: el contenido se disuelve gradualmente al llegar a los bordes.
   Aparece al salir del hero para no desenfocar el menú ni la carta de color. */
.pblur {
  position: fixed; left: 0; right: 0; height: 88px; z-index: 15;
  pointer-events: none; opacity: 0; transition: opacity 500ms ease;
}
.pblur--top { top: 0; transform: scaleY(-1); }
.pblur--bottom { bottom: 0; }
.pblur-on .pblur { opacity: 1; }
.pblur i { position: absolute; inset: 0; }
.pblur i:nth-child(1) { -webkit-backdrop-filter: blur(0.5px); backdrop-filter: blur(0.5px); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); mask-image: linear-gradient(180deg, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); }
.pblur i:nth-child(2) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(180deg, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); mask-image: linear-gradient(180deg, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); }
.pblur i:nth-child(3) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(180deg, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); mask-image: linear-gradient(180deg, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); }
.pblur i:nth-child(4) { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); -webkit-mask-image: linear-gradient(180deg, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); mask-image: linear-gradient(180deg, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); }
.pblur i:nth-child(5) { -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); -webkit-mask-image: linear-gradient(180deg, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); mask-image: linear-gradient(180deg, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); }
.pblur i:nth-child(6) { -webkit-backdrop-filter: blur(11px); backdrop-filter: blur(11px); -webkit-mask-image: linear-gradient(180deg, transparent 62.5%, #000 75%, #000 100%); mask-image: linear-gradient(180deg, transparent 62.5%, #000 75%, #000 100%); }
/* al final de la página el pie queda por encima de la franja inferior */
.footer { padding-bottom: 96px; }
@media (max-width: 720px) {
  .pblur { height: 64px; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pblur { display: none; }
}

/* ---------- carta de color con 16 tonos ---------- */
.palette { width: min(1000px, 72vw); }
.tip button { width: clamp(28px, 2.6vw, 42px); }
.palette__tips { gap: clamp(8px, 0.9vw, 14px); }
@media (max-width: 720px) {
  .palette { width: auto; }
  .tip button { width: 32px; }
  .catalog__dot { width: 12px; }
  .catalog__controls { gap: 10px; }
}

/* ============================================================
   SERVICIOS: 3 tarjetas generales con foto
   ============================================================ */
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.svc-card {
  display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden;
  background: rgba(243, 240, 231, 0.06); border: 1px solid rgba(243, 240, 231, 0.14); color: var(--cal);
  transition: border-color 200ms ease, transform 300ms var(--ease);
}
.svc-card[data-match] { order: -1; border-color: var(--coral); }
.svc-card__media { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--verde-deep); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.svc-card__body { display: grid; gap: 12px; align-content: start; justify-items: start; padding: 22px 22px 24px; }
.svc-card h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.6rem, 2.2vw, 2rem); letter-spacing: -0.02em; line-height: 1.05; }
.svc-card p { font-size: 0.95rem; line-height: 1.5; color: rgba(243, 240, 231, 0.8); margin-bottom: 6px; }
.menu :focus-visible { outline-color: var(--coral); }
@media (hover: hover) and (pointer: fine) {
  .svc-card:hover { border-color: rgba(226, 159, 143, 0.6); transform: translateY(-3px); }
  .svc-card:hover .svc-card__media img { transform: scale(1.04); }
}
@media (max-width: 900px) {
  .svc-cards { grid-template-columns: 1fr; }
  .svc-card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: none; }
  .svc-card__media { aspect-ratio: auto; min-height: 100%; }
}
@media (max-width: 560px) {
  .svc-card { grid-template-columns: 1fr; }
  .svc-card__media { aspect-ratio: 16 / 10; }
  .svc-card__body { padding: 18px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-card, .svc-card__media img { transition: none; }
}

/* ---------- carrusel: botón de pausa del avance automático ---------- */
.catalog__play { margin-left: 6px; }
.catalog__play .i-play { display: none; }
.catalog__play.is-paused .i-play { display: block; }
.catalog__play.is-paused .i-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .catalog__play { display: none; } }
@media (max-width: 720px) { .catalog__play { margin-left: 0; } .catalog__controls { gap: 6px; } .catalog__dot { width: 11px; } }

@media (max-width: 380px) { .catalog__dot { width: 9px; } .catalog__controls { gap: 4px; } }

/* entrada del catálogo sin espera cuando se llega desde la carta de color */
.anim-ready.is-quick .hw__in,
.anim-ready.is-quick :is(.sec-head__side, .catalog__stage, .catalog__controls) { transition-delay: 0ms; transition-duration: 300ms; }

/* ---------- entrada suave de títulos en toda la página (hero, servicios, facial, agenda) ---------- */
.anim-ready .aw {
  opacity: 0; translate: 0 14px;
  transition: opacity 700ms var(--ease) var(--ad, 220ms), translate 800ms var(--ease) var(--ad, 220ms);
}
.anim-ready.is-shown .aw { opacity: 1; translate: none; }
.hero.anim-ready .hero__title { animation: none; }
.hero.anim-ready .hw__in { transition-delay: calc(60ms + var(--w) * 45ms); }
@media (prefers-reduced-motion: reduce) {
  .anim-ready .aw { translate: none; transition: opacity 300ms ease; }
}

/* ---------- área táctil de los tonos (≥44px) y textos pequeños más legibles ---------- */
.tip button::before { content: ""; position: absolute; inset: -8px -6px; }
.label, .design__no, .reviews__list cite { font-size: 0.78rem; }
.tip span { font-size: 0.7rem; }

/* ============================================================
   v5: acento blanco crema (en lugar del rosa coral)
   - Botones de acción en blanco crema con texto verde oscuro sobre verdes y fotos (8:1).
   - Sobre fondo claro (barra fija del celular) el botón va en verde oscuro.
   - El subtítulo del hero va en crema un poco más tenue que los botones.
   ============================================================ */
:root { --coral: #faf8f2; }
.btn--coral { box-shadow: 0 8px 20px -12px rgba(20, 26, 15, 0.7); }
@media (hover: hover) and (pointer: fine) { .btn--coral:hover { background: #ffffff; } }
.hero__sub { color: rgba(243, 240, 231, 0.88); }
.bar .btn--coral { background: var(--verde); color: var(--cal); box-shadow: 0 10px 22px -12px rgba(44, 53, 36, 0.9); }
@media (hover: hover) and (pointer: fine) { .bar .btn--coral:hover { background: var(--verde-deep); } }
.svc-card:hover { border-color: rgba(250, 248, 242, 0.55); }
.design.is-picked .nail-frame { box-shadow: 0 0 0 3px var(--cal), 0 0 0 4.5px var(--verde); }

/* ---------- botón "Llámanos" del menú: más grande, con contorno, visible también en celular ---------- */
.nav__phone {
  min-height: 44px; padding: 0 20px; gap: 9px; border: 1.5px solid rgba(243, 240, 231, 0.7); border-radius: 999px;
  font-size: 0.98rem; font-weight: 500; color: var(--cal);
  background: rgba(44, 53, 36, 0.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease);
}
.nav__phone .i { width: 18px; height: 18px; }
.nav__phone:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .nav__phone:hover { background: rgba(243, 240, 231, 0.16); border-color: var(--cal); } }
@media (max-width: 720px) {
  .nav__phone { width: auto; padding: 0 16px; border-radius: 999px; }
  .nav__phone span { display: inline; }
}
@media (max-width: 370px) { .nav__phone { padding: 0 12px; } .nav__actions { gap: 6px; } }
.nav .btn--sm { min-height: 44px; }

/* ---------- en computadora (mouse) el teléfono es solo texto; en celular y tablet sigue siendo botón para llamar ---------- */
.nav__phone-text { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav__phone { display: none; }
  .nav__phone-text { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 0.98rem; color: var(--cal); white-space: nowrap; }
  .nav__phone-text .i { width: 18px; height: 18px; }
  .nav__phone-text strong { font-weight: 500; letter-spacing: 0.01em; }
}

/* ---------- barra fija del celular: botones más grandes y "Llámanos" con texto ---------- */
.bar .btn { min-height: 54px; font-size: 1rem; }
.bar .bar__call {
  flex: none; padding: 0 18px; gap: 8px; border: 1.5px solid var(--verde); color: var(--verde-deep); background: transparent; font-weight: 500;
}
.bar .bar__call .i { width: 19px; height: 19px; }
@media (max-width: 370px) { .bar .btn { font-size: 0.92rem; } .bar .bar__call { padding: 0 13px; } .bar .btn--coral { padding-inline: 12px; } }
.bar .btn--coral { min-width: 0; padding-inline: 14px; gap: 8px; }
.bar .bar__call { padding: 0 16px; }
@media (max-width: 370px) { .bar .btn--coral { padding-inline: 10px; gap: 6px; } .bar .bar__call { padding: 0 12px; gap: 6px; } .bar { gap: 6px; } }
