/* iNails · web
   Concepto: una carta de colores de salón. Titulares grandes y apretados en ciruela,
   fotos sobre el mismo rosa empolvado que la app, y muestras de esmalte con forma de uña
   como único adorno (con su número y nombre, como en el expositor del salón). */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dmmono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #fff8f7;      /* fondo: blanco con un punto de rosa */
  --blush: #f5dcdc;      /* el rosa de las fotos */
  --ink: #2a1119;        /* texto */
  --muted: #7a5862;      /* texto secundario */
  --plum: #7a1e3e;       /* titulares (BrandDeep de la app) */
  --rosa: #e0406a;       /* botones y acentos (AccentColor de la app) */
  --on-rosa: #ffffff;
  --line: rgba(122, 30, 62, .16);
  --card: #ffffff;
  --band: #5c1630;       /* franja de manicuristas */
  --band-ink: #fbe9ee;
  --band-muted: #e5b9c6;
  --ok: #1f7a4d;
  --error: #b3261e;

  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.4vw, 3.75rem);
  --step-4: clamp(2.9rem, 1.6rem + 5.6vw, 6.25rem);

  --wrap: 72rem;
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #170c11; --blush: #2a1720; --ink: #fbeef2; --muted: #c4a2ad; --plum: #f7b7c8;
    --rosa: #f2668b; --on-rosa: #2a0a15; --line: rgba(247, 183, 200, .16); --card: #22131a;
    --band: #2e0f1d; --band-ink: #fbe9ee; --band-muted: #d9a8b8; --ok: #7fd3a6; --error: #ffb4ab;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--plum); text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 750; line-height: .94; letter-spacing: -.035em; }
h2 { font-size: var(--step-3); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
h3 { font-size: var(--step-1); font-weight: 650; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.label {
  font: 400 .78rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 34rem; }

/* ─── Cabecera ─────────────────────────────────────────────── */
.top { padding-block: 18px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font: 750 1.4rem/1 var(--display); letter-spacing: -.03em; color: var(--plum); }
.top nav { display: flex; align-items: center; gap: 22px; font-size: var(--step--1); font-weight: 550; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--plum); }
.top nav .pill {
  color: var(--plum); border: 1.5px solid var(--line); padding: 8px 14px; border-radius: 999px;
}
.top nav .pill:hover { border-color: var(--plum); }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* ─── Portada ──────────────────────────────────────────────── */
.hero { padding-block: clamp(16px, 4vw, 56px) clamp(48px, 7vw, 96px); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--rosa); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .compare { max-width: 440px; justify-self: center; width: 100%; }
}

/* Antes / después */
.compare {
  position: relative; aspect-ratio: 1200 / 1607; max-width: 100%;
  border-radius: 200px 200px var(--radius) var(--radius);  /* arco, como un espejo de tocador */
  overflow: hidden; background: var(--blush); isolation: isolate;
  box-shadow: 0 30px 60px -30px rgba(122, 30, 62, .35);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px;
  background: #fff; pointer-events: none;
}
.compare .knob {
  position: absolute; top: 58%; left: var(--pos, 50%); width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: #fff; color: #7a1e3e; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(42, 17, 25, .25); pointer-events: none;
}
.compare .knob svg { width: 22px; height: 22px; }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; touch-action: pan-y;
}
.compare input[type="range"]:focus-visible ~ .knob { outline: 3px solid var(--rosa); outline-offset: 3px; }
.compare .tag {
  position: absolute; bottom: 16px; font: 400 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .86); color: #7a1e3e; padding: 7px 10px; border-radius: 999px; pointer-events: none;
}
.compare .tag.l { left: 16px; }
.compare .tag.r { right: 16px; background: #7a1e3e; color: #fff; }
.compare-note { margin-top: 12px; text-align: center; }
.compare-note b { font-family: var(--body); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--plum); font-size: .9rem; }

/* ─── Formulario de la lista de espera ─────────────────────── */
.join { display: grid; gap: 12px; max-width: 32rem; }
.who { display: flex; gap: 8px; flex-wrap: wrap; border: 0; margin: 0; padding: 0; }
.who legend { padding: 0; margin-bottom: 8px; }
.who label {
  position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: var(--step--1); font-weight: 550;
  color: var(--muted); background: var(--card);
}
.who input { position: absolute; opacity: 0; pointer-events: none; }
.who label:has(input:checked) { border-color: var(--plum); color: var(--plum); background: var(--blush); }
.who label:has(input:focus-visible) { outline: 3px solid var(--rosa); outline-offset: 2px; }
.who .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; }
.who label:has(input:checked) .dot { background: var(--rosa); border-color: var(--rosa); }
.field { display: flex; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px; }
.field:focus-within { border-color: var(--plum); }
.field input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 500 var(--step-0) var(--body); padding: 10px 14px; outline: none;
}
.field input::placeholder { color: var(--muted); opacity: .8; }
.btn {
  border: 0; border-radius: 999px; background: var(--rosa); color: var(--on-rosa); cursor: pointer;
  font: 650 var(--step-0)/1 var(--body); padding: 14px 22px; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: progress; }
.fine { font-size: .85rem; color: var(--muted); }
.fine a { color: var(--plum); }
.msg { font-size: .95rem; font-weight: 550; min-height: 1.5em; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 460px) {
  .field { flex-direction: column; border-radius: 20px; }
  .btn { width: 100%; }
}

/* ─── Muestras de esmalte ──────────────────────────────────── */
.swatches { border-block: 1px solid var(--line); padding-block: 22px; overflow: hidden; }
.swatches ul {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px 12px;
}
.swatches li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nail {
  flex: none; width: 22px; height: 32px; background: var(--c);
  border-radius: 50% 50% 42% 42% / 62% 62% 38% 38%;   /* forma almendra */
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .08), inset 3px 4px 0 rgba(255, 255, 255, .35);
}
.swatches .n { display: block; font: 400 .7rem/1.2 var(--mono); color: var(--muted); letter-spacing: .06em; }
.swatches .name { display: block; font-size: .9rem; font-weight: 600; line-height: 1.2; }

/* ─── Secciones ────────────────────────────────────────────── */
section { padding-block: clamp(64px, 9vw, 120px); }
.head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 44rem; }

/* Cómo funciona: pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.steps li { display: grid; gap: 14px; align-content: start; min-width: 0; }
.steps .no { font: 700 3.2rem/1 var(--display); color: var(--rosa); letter-spacing: -.04em; }
.steps p { color: var(--muted); }
.steps .pic { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--blush); position: relative; }
.steps .pic img { width: 100%; height: 100%; object-fit: cover; }
.prompt {
  position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--card); color: var(--ink);
  border-radius: 16px; padding: 12px 14px; font-size: .92rem; box-shadow: 0 10px 30px -12px rgba(42, 17, 25, .35);
}
.prompt .label { display: block; margin-bottom: 4px; }
.prompt .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--rosa); vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps .pic { aspect-ratio: 4 / 3; } }

/* La ficha */
.ficha-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ficha {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  display: grid; grid-template-columns: 42% minmax(0, 1fr); overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(122, 30, 62, .4); transform: rotate(-1.5deg);
}
.ficha img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.ficha .body { padding: 22px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.ficha dl { margin: 0; display: grid; gap: 12px; }
.ficha dt { font: 400 .7rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ficha dd { margin: 2px 0 0; font-weight: 550; }
.ficha .colors { display: flex; gap: 10px; flex-wrap: wrap; }
.ficha .colors span { display: grid; justify-items: center; gap: 4px; font: 400 .68rem/1 var(--mono); color: var(--muted); }
.ficha .colors i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 1px solid var(--line); }
.ficha .stamp { font: 400 .7rem/1.3 var(--mono); color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.ticks li::before {
  content: ""; width: 14px; height: 20px; margin-top: 3px; background: var(--rosa);
  border-radius: 50% 50% 42% 42% / 62% 62% 38% 38%;
}
@media (max-width: 820px) {
  .ficha-wrap { grid-template-columns: 1fr; }
  .ficha { transform: none; }
}
@media (max-width: 460px) { .ficha { grid-template-columns: 1fr; } .ficha img { min-height: 0; aspect-ratio: 4 / 3; } }

/* Comunidad */
.community { background: var(--blush); }
.community .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.community figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.community figure img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.facts div { display: grid; gap: 6px; border-top: 1.5px solid var(--line); padding-top: 14px; }
.facts p { color: var(--muted); font-size: .98rem; }
@media (max-width: 820px) { .community .wrap { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }

/* Manicuristas */
.pros { background: var(--band); color: var(--band-ink); }
.pros h2 { color: var(--band-ink); }
.pros .label, .pros .lede, .pros .fine { color: var(--band-muted); }
.pros .fine a { color: var(--band-ink); }
.pros .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pros .ticks li::before { background: #f2668b; }
.pros .who label { background: transparent; border-color: rgba(251, 233, 238, .25); color: var(--band-muted); }
.pros .who label:has(input:checked) { background: rgba(251, 233, 238, .1); border-color: var(--band-ink); color: var(--band-ink); }
.pros .field { background: rgba(251, 233, 238, .08); border-color: rgba(251, 233, 238, .25); }
.pros .field input { color: var(--band-ink); }
.pros .field input::placeholder { color: var(--band-muted); }
.pros .btn { background: #f2668b; color: #2a0a15; }
.pros .msg.ok { color: #9be0bb; }
.pros .msg.err { color: #ffb4ab; }
.pro-visual { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.pro-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pro-card {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 12px;
  background: rgba(255, 255, 255, .9); color: #2a1119; border-radius: 18px; padding: 14px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.pro-card .who-row { display: flex; align-items: center; gap: 10px; }
.pro-card .avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; }
.pro-card .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(2.2); transform-origin: 50% 10%; }
.pro-card strong { display: block; font-size: .98rem; }
.pro-card small { color: #7a5862; font-size: .8rem; }
.pro-card .actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pro-card .actions span {
  display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px;
  background: #f5dcdc; color: #7a1e3e; font-size: .74rem; font-weight: 600;
}
.pro-card svg { width: 18px; height: 18px; }
@media (max-width: 820px) { .pros .wrap { grid-template-columns: 1fr; } .pro-visual { max-width: 440px; } }

/* Preguntas */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  padding-block: 20px; font: 600 var(--step-1)/1.3 var(--display); color: var(--plum); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--rosa); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 40rem; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* Cierre y pie */
.closing { text-align: left; padding-block: clamp(64px, 9vw, 120px) 48px; }
.closing .wrap { display: grid; gap: 24px; }
.closing h2 { font-size: var(--step-4); line-height: .95; max-width: 14ch; }
.foot { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--plum); text-decoration: underline; }

/* ─── Páginas legales ──────────────────────────────────────── */
.doc { padding-block: 24px 96px; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: var(--step-3); margin: 24px 0 12px; }
.doc h2 { font-size: var(--step-2); margin: 48px 0 12px; }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 8px; }
.doc a { color: var(--plum); }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font: 400 .72rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc .scroll { overflow-x: auto; }
.doc .updated { color: var(--muted); }
.mail { font-family: var(--mono); font-size: 1.05em; color: var(--plum); }

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