/* BeautyOS · landing. Mismos tokens que apps/web/src/app/globals.css. */
:root {
  --bg: oklch(0.98 0.007 70);
  --fg: oklch(0.22 0.02 50);
  --card: oklch(1 0 0);
  --primary: oklch(0.48 0.1 35);
  --primary-fg: oklch(0.99 0.005 70);
  --primary-soft: oklch(0.94 0.03 45);
  --secondary: oklch(0.94 0.025 65);
  --muted: oklch(0.95 0.008 60);
  --muted-fg: oklch(0.52 0.02 50);
  --border: oklch(0.9 0.012 60);
  --success: oklch(0.58 0.13 155);
  --warning: oklch(0.72 0.15 75);
  --wa: #1f9d55;
  --shadow: 0 1px 2px oklch(0.3 0.03 45 / 0.06), 0 12px 32px -12px oklch(0.3 0.05 40 / 0.18);
  --font-sans: 'Avenir Next', Avenir, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
  --radius: 18px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.16 0.012 45);
    --fg: oklch(0.94 0.008 70);
    --card: oklch(0.2 0.014 45);
    --primary: oklch(0.72 0.1 45);
    --primary-fg: oklch(0.17 0.02 40);
    --primary-soft: oklch(0.26 0.04 45);
    --secondary: oklch(0.27 0.025 45);
    --muted: oklch(0.22 0.012 45);
    --muted-fg: oklch(0.7 0.018 55);
    --border: oklch(0.3 0.014 45);
    --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 16px 40px -16px oklch(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--font-sans);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; overflow: hidden; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.7em 1.15em; border-radius: 999px; border: 1px solid transparent;
  background: var(--primary); color: var(--primary-fg);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease, background-color .15s ease;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid color-mix(in oklab, var(--primary) 45%, transparent); outline-offset: 3px; }
.btn-sm { padding: 0.5em 0.95em; font-size: 0.9rem; }
.btn-lg { padding: 0.9em 1.5em; font-size: 1.02rem; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--muted); filter: none; }
.btn-light { background: var(--primary-fg); color: var(--primary); }

/* Cabecera */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.3rem var(--font-display); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--primary); color: var(--primary-fg); }
.brand-mark svg { width: 18px; height: 18px; }
.nav { display: none; gap: 26px; margin-left: auto; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted-fg); }
.nav a:hover { color: var(--fg); }
.top .btn { margin-left: auto; }
@media (min-width: 860px) { .nav { display: flex; } .top .btn { margin-left: 8px; } }

/* Portada */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; max-width: 820px; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(closest-side, var(--primary-soft), transparent 70%);
  z-index: -1;
}
.hero-in { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 88px 0 104px; } .hero-in { grid-template-columns: 1.05fr 0.95fr; } }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-size: clamp(2.35rem, 6.2vw, 3.9rem); }
.lead { margin-top: 20px; font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--muted-fg); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 420px) { .cta-row .btn { width: 100%; } }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--muted-fg); font-size: 0.95rem; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks svg { color: var(--success); stroke-width: 2.4; width: 1.1em; height: 1.1em; }

/* Maqueta de la app */
.hero-art { position: relative; padding: 18px 0 40px; }
.mock { background: var(--card); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.mock-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-url { margin-left: 10px; font-size: 0.78rem; color: var(--muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-body { padding: 18px; display: grid; gap: 10px; }
.mock-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.mock-title strong { font-family: var(--font-display); font-size: 1.15rem; }
.mock-title span { font-size: 0.8rem; color: var(--muted-fg); }
.appt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; background: var(--bg); border-left: 4px solid var(--c); }
.appt time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.85rem; color: var(--muted-fg); }
.appt b { display: block; font-size: 0.93rem; }
.appt small { color: var(--muted-fg); font-size: 0.78rem; }
.a1 { --c: oklch(0.65 0.15 350); } .a2 { --c: var(--primary); } .a3 { --c: oklch(0.62 0.1 200); }
.st { font-style: normal; font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--muted); color: var(--muted-fg); }
.st.ok { background: color-mix(in oklab, var(--success) 16%, transparent); color: var(--success); }
.st.on { background: var(--primary-soft); color: var(--primary); }
@media (max-width: 400px) { .appt { grid-template-columns: auto 1fr; } .appt .st { display: none; } }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.float-card small { display: block; font-size: 0.74rem; color: var(--muted-fg); }
.float-card strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.fc-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.fc-icon.warn { background: color-mix(in oklab, var(--warning) 20%, transparent); color: oklch(0.55 0.13 70); }
.cash { left: -18px; bottom: 0; }
.stock { right: -14px; top: -6px; }
@media (max-width: 560px) { .stock { display: none; } .cash { left: auto; right: 8px; } }

/* Secciones */
.section { padding: 80px 0; }
.band { background: var(--muted); border-block: 1px solid var(--border); }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.7rem); max-width: 20em; }
.section-lead { margin-top: 14px; color: var(--muted-fg); font-size: 1.08rem; max-width: 38em; }
.grid { display: grid; gap: 16px; margin-top: 44px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card.flat:hover { transform: none; box-shadow: none; }
.card h3 { font-size: 1.2rem; margin: 16px 0 8px; }
.card p { color: var(--muted-fg); font-size: 0.96rem; }
.ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); }
.sec { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

.roles { display: grid; gap: 16px; margin-top: 44px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.role { padding: 22px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--primary); }
.role h3 { font-size: 1.25rem; margin-bottom: 8px; }
.role p { color: var(--muted-fg); font-size: 0.96rem; }

.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: s; }
.steps li { position: relative; padding-top: 4px; }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); font: 600 1.2rem var(--font-display); margin-bottom: 16px; }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: var(--muted-fg); }
.steps b { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }

/* Contacto */
.contact { background: var(--primary); color: var(--primary-fg); position: relative; overflow: hidden; }
.contact::before, .contact::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.contact::before { width: 420px; height: 420px; left: -140px; top: -180px; background: oklch(1 0 0 / 0.07); }
.contact::after { width: 560px; height: 560px; right: -200px; bottom: -320px; border: 1px solid oklch(1 0 0 / 0.14); }
.contact-in { position: relative; text-align: center; display: grid; justify-items: center; gap: 18px; }
.contact h2 { margin: 0 auto; }
.contact p { opacity: 0.85; font-size: 1.1rem; max-width: 32em; }
.contact .btn { margin-top: 8px; white-space: normal; }
.muted-light { font-size: 0.92rem !important; opacity: 0.75 !important; }
.muted-light b { overflow-wrap: anywhere; }

/* Pie */
.foot { padding: 28px 0 96px; font-size: 0.9rem; color: var(--muted-fg); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.brand.small { font-size: 1.05rem; color: var(--fg); }
.brand.small .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
.brand.small .brand-mark svg { width: 14px; height: 14px; }
@media (min-width: 640px) { .foot { padding-bottom: 32px; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 10px 28px -8px oklch(0.4 0.12 150 / 0.6);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; stroke-width: 1.7; }
