/* Lúnula Estudio de Uñas — sitio de muestra.
   Paleta: lavanda clara, berenjena para el texto, rosa esmalte para acciones. El color fuerte lo pone el tono elegido. */
:root {
  --bg: #faf7fc;
  --tint: #efe6f5;
  --tint-2: #dccbe8;
  --ink: #2b1838;
  --ink-2: #5a3f66;
  --accent: #b3175a;
  --accent-2: #8f1047;
  --skin: #d9a88f;
  --wa: #0f7a3d;
  --tono: #ff6b6b;
  --r: 18px;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); }
svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 72px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { top: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(720px, 100% - 32px); }

/* Plaqueta de muestra */
.demo { background: var(--ink); color: var(--tint); font-size: 16px; }
.demo__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 8px 0; }
.demo b { color: #fff; }
.demo__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 2px solid var(--tint-2); border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; }
.demo__btn:hover { background: var(--ink-2); }
.demo__btn:focus-visible { outline-color: var(--tint); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; border: 0; border-radius: 999px; cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.btn:hover { background: var(--accent-2); }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 44px; padding: 8px 20px; font-size: 16px; }
.btn--wa { background: var(--wa); width: 100%; }
.btn--wa:hover { background: #0b6430; }
.btn--wa svg { width: 22px; height: 22px; }
.btn--wa[aria-disabled="true"] { background: #6e6275; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 252, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tint-2); }
.top__in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; }
.logo svg { width: 26px; height: 26px; color: var(--tono); transition: color .3s ease; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--accent); }

/* Portada: la mano con el tono elegido es el elemento protagonista */
.hero { background: var(--tint); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 56px 0 0; }
.hero__text { padding-bottom: 64px; }
.status { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--tint-2); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 16px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-2); flex: none; }
.status.is-open::before { background: var(--wa); box-shadow: 0 0 0 4px rgba(15, 122, 61, .2); }
.status.is-closed::before { background: var(--accent); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -.02em; margin: 20px 0 20px; max-width: 9em; }
.hero__lead { max-width: 32em; font-size: 19px; }
.tonos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 460px; }
.tono { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px var(--ink-2); transition: transform .15s ease, box-shadow .15s ease; }
.tono:hover { transform: translateY(-2px); }
.tono[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.08); }
@media (max-height: 720px) { .ticket { position: static; } }
.tono-nombre { margin-top: 12px; font-size: 17px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }

.mano { align-self: end; }
.mano svg { width: 100%; max-width: 460px; margin-inline: auto; overflow: hidden; }
.piel { fill: var(--skin); }
.una { fill: var(--tono); transition: fill .35s ease, d .35s ease; }
.luz { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; opacity: .5; transition: d .35s ease; }
.dedo { animation: sube .7s cubic-bezier(.2, .7, .2, 1) both; }
.dedo:nth-child(3) { animation-delay: .06s; }
.dedo:nth-child(4) { animation-delay: .12s; }
.dedo:nth-child(5) { animation-delay: .18s; }
@keyframes sube { from { opacity: 0; translate: 0 60px; } }

/* Secciones */
.sec { padding: 80px 0; }
.sec--tint { background: var(--tint); }
.sec--ink { background: var(--ink); color: #fff; }
.sec h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.2vw, 42px); letter-spacing: -.01em; margin-bottom: 14px; }
.sub { max-width: 36em; margin-bottom: 36px; font-size: 18px; }
.serv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 32px; }
.serv article { border-top: 6px solid var(--tono); padding-top: 18px; transition: border-color .35s ease; }
.serv h3 { font-size: 22px; margin-bottom: 8px; }

/* Carta + ticket */
.book { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.book__menu { display: grid; gap: 28px; }
.menu { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu legend { font-family: var(--display); font-weight: 500; font-size: 18px; margin-bottom: 8px; padding: 0; }
.row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; cursor: pointer; background: rgba(255, 255, 255, .45); }
.row--qty { grid-template-columns: 28px 1fr auto auto; }
.row:hover { background: rgba(255, 255, 255, .8); }
.row input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.row:has(input:checked) { background: #fff; box-shadow: inset 4px 0 0 var(--accent); }
.row__n { font-weight: 600; font-size: 18px; }
.row__n small { display: block; font-weight: 400; font-size: 16px; color: var(--ink-2); }
.row__p { font-weight: 700; font-size: 18px; color: var(--accent); white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty output { min-width: 1.6em; text-align: center; font-weight: 700; }
.qty__b { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--tint-2); background: #fff; color: var(--ink); font-size: 20px; font-weight: 700; cursor: pointer; }
.qty__b:hover { border-color: var(--accent); }

.ticket { position: sticky; top: 88px; background: #fff; border-radius: var(--r); padding: 24px; display: grid; gap: 18px; border: 1px solid var(--tint-2); }
.ticket::before { content: ""; height: 10px; margin: -24px -24px 0; border-radius: var(--r) var(--r) 0 0; background: var(--tono); transition: background-color .35s ease; }
.ticket__line { font-size: 16px; color: var(--ink-2); min-height: 1.5em; }
.ticket__total { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; margin-top: 6px; }
.ticket__total small { font-family: var(--body); font-size: 17px; font-weight: 600; color: var(--ink-2); }
.ticket__total.bump { animation: bump .3s ease; }
@keyframes bump { 50% { transform: scale(1.06); } }
.ticket__pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 2px dashed var(--tint-2); padding-top: 18px; }
.ticket__pick > label { display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
.ticket__pick > label:first-child { grid-column: 1 / -1; }
select { font: inherit; font-size: 16px; color: var(--ink); min-height: 46px; padding: 8px 10px; border: 2px solid var(--tint-2); border-radius: 10px; background: #fff; width: 100%; }
.formas { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.formas legend { font-weight: 600; font-size: 16px; margin-bottom: 6px; padding: 0; }
.formas label { position: relative; }
.formas input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.formas span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 2px solid var(--tint-2); border-radius: 999px; font-weight: 600; font-size: 16px; }
.formas input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.formas input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.ticket__note { font-size: 16px; color: var(--ink-2); }

/* Galería */
.gal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.gal figure { margin: 0; background: var(--tint); border-radius: var(--r); padding: 18px 14px 14px; overflow: hidden; }
.gal svg { width: 100%; height: auto; aspect-ratio: 120 / 160; }
.gal figcaption { font-weight: 700; font-size: 16px; margin-top: 10px; text-align: center; }
.hint { margin-top: 18px; font-size: 16px; color: var(--ink-2); }

/* Opiniones */
.sample { max-width: 44em; margin-bottom: 32px; border: 2px dashed var(--tint-2); border-radius: 10px; padding: 12px 16px; font-size: 16px; }
.rev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rev__item { margin: 0; padding: 24px; border-radius: var(--r); background: #3d2550; display: grid; gap: 14px; align-content: start; }
.rev__item p { font-size: 18px; }
.badge { justify-self: start; background: #fff; color: var(--ink); font-weight: 700; font-size: 16px; padding: 3px 10px; border-radius: 999px; }

/* Preguntas */
details { border-bottom: 2px solid var(--tint-2); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 19px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-family: var(--display); font-size: 24px; color: var(--accent); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; max-width: 36em; }

/* Ubicación */
.loc { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.addr { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin-bottom: 26px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--tint-2); font-size: 17px; }
.hours th { font-weight: 500; }
.hours td { font-weight: 600; text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent); font-weight: 700; }
.loc__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.map { border-radius: var(--r); overflow: hidden; border: 3px solid var(--ink); background: var(--tint-2); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.foot { background: var(--ink); color: var(--tint); padding: 32px 0 96px; font-size: 16px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot b { color: #fff; font-size: 17px; }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -6px rgba(43, 24, 56, .5); }
.wa-float svg { width: 32px; height: 32px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .top__in .btn { margin-left: auto; }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .book, .loc { grid-template-columns: 1fr; }
  .ticket { position: static; }
  .serv, .rev { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .demo__q { display: none; }
  .demo__btn { padding: 4px 14px; }
  .hero__in { grid-template-columns: 1fr; padding-top: 32px; gap: 0; }
  /* En el teléfono la mano va justo encima de los tonos, para ver el cambio de color */
  .hero__text { display: contents; }
  .status { order: 1; justify-self: start; }
  .hero h1 { order: 2; }
  .hero__lead { order: 3; }
  .mano { order: 4; height: 210px; overflow: hidden; margin-top: 8px; }
  .tonos { order: 5; margin-top: 0; padding-top: 18px; }
  @media (max-height: 720px) { .ticket { position: static; } }
.tono-nombre { order: 6; }
  .hero__cta { order: 7; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 48px); }
  .hero__lead { font-size: 17px; }
  .hero__cta .btn { width: 100%; }
  .mano svg { max-width: 260px; }
  .sec { padding: 56px 0; }
  .row { padding: 12px 10px; gap: 8px; }
  .row--qty { grid-template-columns: 26px 1fr auto; }
  .row--qty .qty { grid-column: 2; }
  .row--qty .row__p { grid-column: 3; grid-row: 1; }
  .ticket { padding: 20px; }
  .ticket::before { margin: -20px -20px 0; }
  .ticket__pick { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .loc__btns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
