/* dex.rendix.es — public website. Rebuilt 2026-11-12 at the owner's request: minimalist, not a "SaaS" page, but with
   the CRM's own type and colours (owner, same day): Plus Jakarta Sans 800 with tight tracking for headings (as on the
   login), slate ink, the DEX blue #2563eb (--brand-600 in the CRM) for actions and accents, the sidebar navy #0c1a33
   for the dark band. Real salon photos (Unsplash, img/fotos/) and real DEX screenshots.
   CSP: only this file, no inline styles; fonts are self-hosted. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/sitio/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

:root {
  /* Same values as the CRM (web/src/styles/base.css): ink-*, brand-*, sidebar navy. */
  --bg: #ffffff;
  --bone: #f8fafc;
  --paper: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --accent: #2563eb;
  --accent-700: #1d4ed8;
  --accent-50: #eff6ff;
  --navy: #0c1a33;
  --dark: #0f172a;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1160px;
  --gutter: 24px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p a, .contact-login a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-50); text-underline-offset: 3px; }
p a:hover, .contact-login a:hover { text-decoration-color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: #bfdbfe; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

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

/* ---------- Type ---------- */
h1, h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.04em; line-height: 1.08; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 140ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--accent); color: #fff; }
.btn-dark:hover { background: var(--accent-700); }
.btn-line { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn .ic { width: 17px; height: 17px; transition: transform 200ms var(--ease); }
.btn:hover .ic { transform: translateX(3px); }

/* ---------- Header ---------- */
.bar-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; }
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 300ms ease;
}
.bar.is-scrolled { border-bottom-color: var(--line); }
.brand-neg { display: none; }
.bar-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-by { font-size: 13px; color: var(--muted); }
.bar-links { display: flex; gap: 26px; margin-left: 18px; }
.bar-links a, .bar-login { font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color 160ms ease; }
.bar-links a:hover, .bar-login:hover { color: var(--ink); }
.bar-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.bar-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; align-items: center; justify-content: center; }
.bar-toggle .ic { width: 20px; height: 20px; }
.bar-menu { display: grid; gap: 2px; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); background: var(--bg); }
.bar-menu[hidden] { display: none; }
.bar-menu a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; }
.bar-menu .btn { margin-top: 14px; }

/* ---------- Sections ---------- */
.section { padding: 128px 0; } /* the CRM's own page grey */
.head { max-width: 760px; margin-bottom: 56px; }

/* ---------- Stage: the full-screen first view ---------- */
.stage {
  position: relative; overflow: hidden; isolation: isolate;
  display: block;
  padding: 60px 0 0;
  background: #0c1a33; color: #fff; /* the CRM sidebar navy, with the DEX logo drawn huge behind (.stage-bg) */
}
/* .sky: the blobs and the floating objects, only in the first view. It makes no stacking context of its own, so the
   blobs stay at the back (z -1), the objects under the title (z auto < 1) and only the object in the hand rises above
   it (z 2): the background never covers the text. */
/* the logo (white stem + blue bowl), cropped on the right, faint */ /* no light spots: a plain background */
.stage::before { /* a faint dot grid behind the title, like graph paper */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
}
/* The real-time clock (3D render) */
/* Sizes and starting spots (percent of the stage). They are secondary, like decoration: few, small, starting at the
   edges and leaving the middle to the title. The "far" ones are smaller and fainter, for depth. */
/* The new-booking notice: arrives a few seconds after the rest, like a phone notification */
/* Behind the text they turn grey and fade (site.js sets .is-under from the real text boxes) */
/* DEX cards: the same look as the CRM (white, hairline border, soft shadow), almost upright */
.fc-stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
/* The clock: same family as the cards (white face, hairline ring, navy hands, DEX-blue seconds that tick) */
.clock { display: block; width: 100%; height: 100%; overflow: visible; } /* objects behind it stay grabbable */
/* The first view, laid out like the sector's sites: everything centred, a plain headline, one line, two buttons, the
   three tags, and the real agenda peeking out at the bottom */
.stage .actions { justify-content: center; margin-top: 26px; }
.stage .btn-line { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.stage .btn-line:hover { border-color: #fff; color: #fff; }
.stage .actions { margin-top: 26px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.notice {
  position: absolute; right: 32px; bottom: 32px;
  display: flex; align-items: center; gap: 14px;
  max-width: 380px; padding: 14px 18px 14px 14px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 12px 40px -18px rgba(30, 25, 15, 0.35);
}
.notice b { display: block; font-size: 14px; line-height: 1.3; }
.notice small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ---------- Trades: four photos ---------- */
.trades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.trades li { margin: 0; }
.trades img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--bone); }
.trades span { display: block; margin-top: 12px; font-size: 15px; color: var(--ink-2); }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.list { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.list li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.list li::before { content: ''; position: absolute; left: 2px; top: 24px; width: 12px; height: 2px; border-radius: 1px; background: var(--accent); }
.phone {
  width: min(340px, 82%);
  padding: 10px;
  border-radius: 38px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(30, 25, 15, 0.35);
}
.phone img { width: 100%; aspect-ratio: 780 / 1240; object-fit: cover; object-position: top; border-radius: 28px; }

/* ---------- Window chrome for desktop screenshots ---------- */
.window { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); box-shadow: 0 30px 80px -60px rgba(30, 25, 15, 0.4); }
.window img { width: 100%; }

.channels { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: -24px 0 40px; padding: 0; list-style: none; }
.channels li { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--ink-2); }
.channels .ic { width: 18px; height: 18px; color: var(--accent); }

/* ---------- Feature sections (2026-11-12): real captures, icon lists, cards ---------- */
.ticks { display: grid; gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 14px; }
.ticks .ic { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--accent-50); color: var(--accent); stroke-width: 2; }
.ticks b { display: block; margin-bottom: 2px; font-size: 16px; color: var(--ink); }
.ticks span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.split .phone { width: min(330px, 80%); margin: 0 auto; }
/* the WhatsApp reminder replica */
/* "Y además" cards */
/* how to start */
@media (max-width: 640px) {
  .ticks .ic { width: 34px; height: 34px; padding: 8px; }
}

/* the booking page on an iPhone screen: real size, no phone frame */

/* "Y además": a mosaic of real captures and small live-looking pieces of each feature */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
/* little pieces of the CRM, drawn in HTML */

/* "Cómo se empieza": three steps, each with what you will see that day */
.dot { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Band: full-width photo with one sentence ---------- */
.band { position: relative; overflow: hidden; background: var(--navy); }
.band img { width: 100%; height: clamp(380px, 46vw, 620px); object-fit: cover; object-position: 50% 50%; opacity: 0.55; }
.band h2 { max-width: 760px; color: #fff; font-size: clamp(36px, 5vw, 64px); }
.band h2 em { color: #93c5fd; }

/* ---------- Features: a quiet definition list ---------- */

/* ---------- Plans ---------- */
.plan-switch { display: flex; width: fit-content; margin: 0 auto 48px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.plan-switch [role="tab"] { min-height: 42px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 600; transition: background-color 180ms ease, color 180ms ease; }
.plan-switch [role="tab"][aria-selected="true"] { background: var(--accent); color: #fff; }
.plan-switch [role="tab"]:not([aria-selected="true"]):hover { color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.plan h3 { margin: 0; font-size: 19px; }
.plan ul { flex: 1; margin: 0 0 28px; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 11px; padding: 6px 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.plan li .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); stroke-width: 2.4; }
.plan li.off { color: var(--muted); }
.plan li.off .ic { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: block; padding: 24px 44px 24px 0;
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 14px; height: 1.5px; background: var(--accent); transition: transform 240ms var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { margin: -6px 0 26px; max-width: 620px; font-size: 16px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-login { margin: 20px 0 0; font-size: 15px; color: var(--ink-2); }
.form { padding: 40px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper);
  font-size: 16px; line-height: 1.4;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }
.field [aria-invalid="true"] { border-color: #9f2f2d !important; }
.field-error { margin: 6px 0 0; font-size: 14px; color: #9f2f2d; }
.field-error:empty { display: none; }
.check { display: flex !important; align-items: flex-start; gap: 12px; font-weight: 400 !important; font-size: 14px !important; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 0 16px; padding: 12px 14px; border-radius: 6px; background: #fdebec; color: #9f2f2d; font-size: 15px; }
.privacy-info { margin-top: 18px; font-size: 14px; color: var(--muted); }
.privacy-info summary { cursor: pointer; font-weight: 600; }
.privacy-info dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 14px 0 0; }
.privacy-info dt { font-weight: 600; color: var(--ink-2); }
.privacy-info dd { margin: 0; }
.legal-more { margin: 12px 0 0; }
.form-done { padding: 40px 0; text-align: center; }
.form-done:focus { outline: none; }
.done-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #dcfce7; color: #15803d; }
.done-icon .ic { width: 24px; height: 24px; }
.form-done h3 { margin: 18px 0 6px; font-weight: 800; font-size: 30px; letter-spacing: -0.04em; }
.form-done p { margin: 0; color: var(--ink-2); }

/* ---------- "Pide información" in steps ---------- */
.wiz { min-height: 560px; }
.wiz .form-fields { display: flex; flex-direction: column; }
.wiz-steps { display: flex; gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; }
.wiz-steps li { flex: 1; display: flex; align-items: center; gap: 7px; padding-top: 10px; border-top: 3px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.wiz-steps li span { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: 11px; font-weight: 800; }
.wiz-steps li[hidden] { display: none; }
.wiz-steps li.is-on { border-top-color: var(--accent); color: var(--ink); }
.wiz-steps li.is-on span { background: var(--accent); color: #fff; }
.wiz-steps li.is-done { border-top-color: #93c5fd; }
.wiz-steps li.is-done span { background: #dbeafe; color: var(--accent); }
.wiz-count { margin: 0 0 18px; font-size: 12px; color: var(--muted); }
.wiz-step h3 { margin: 0 0 16px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.wiz-step h3:focus { outline: none; }
.wiz-help { margin: -8px 0 14px; font-size: 14px; color: var(--muted); }
.q { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.q legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input, .svc-card input, .pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease; }
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-50); color: var(--accent-700); font-weight: 600; }
.chip input:focus-visible + span, .svc-card input:focus-visible + span, .pick input:focus-visible ~ span { outline: 2px solid var(--accent); outline-offset: 2px; }
.svc-cards { display: grid; gap: 10px; }
.svc-card { position: relative; cursor: pointer; }
.svc-card span { display: block; padding: 16px 18px 16px 50px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease; }
.svc-card span::before { content: ''; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; }
.svc-card b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.svc-card small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.svc-card:hover span { border-color: var(--accent); }
.svc-card input:checked + span { border-color: var(--accent); background: var(--accent-50); box-shadow: 0 0 0 1px var(--accent); }
.svc-card input:checked + span::before { border: 6px solid var(--accent); }
.plan-pick { display: grid; gap: 8px; }
.pick { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.pick[hidden] { display: none; }
.pick span { flex: 1; min-width: 0; }
.pick b { display: block; font-size: 15px; }
.pick small { display: block; font-size: 12.5px; color: var(--muted); }
.pick em { font-style: normal; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.pick:hover { border-color: var(--accent); }
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-50); box-shadow: 0 0 0 1px var(--accent); }
.pick.is-rec b::after { content: 'Recomendado'; margin-left: 8px; padding: 2px 7px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; vertical-align: 2px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.wiz-nav .btn[hidden] { display: none; }
.wiz-nav #wiz-next, .wiz-nav #f-submit { margin-left: auto; }
.wiz .privacy-info { margin-top: 14px; }

/* "Así funciona": facts and button under the three points */
#como-funciona h2 { text-wrap: balance; }

/* "Así funciona": the collage of DEX pieces */
.mx { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45); font-size: 13px; color: var(--ink-2); }
.mx p { margin: 0; }
.mx b { color: var(--ink); }
@media (max-width: 640px) {
  .mx { padding: 12px; font-size: 12px; }
}

/* form step 2: business type as tiles, team size as a segmented control */
.biz-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.biz { position: relative; cursor: pointer; }
.biz input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.biz span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 84px; padding: 10px 6px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 13px; font-weight: 600; line-height: 1.25; text-align: center; color: var(--ink-2); transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease; }
.biz .ic { width: 22px; height: 22px; color: var(--accent); stroke-width: 1.8; }
.biz:hover span { border-color: var(--accent); }
.biz input:checked + span { border-color: var(--accent); background: var(--accent-50); color: var(--accent-700); box-shadow: 0 0 0 1px var(--accent); }
.biz input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.seg label { cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 40px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background-color 150ms ease, color 150ms ease; }
.seg input:checked + span { background: var(--accent); color: #fff; }
.seg label:hover input:not(:checked) + span { background: var(--accent-50); }
.wiz-step .row-2 { align-items: start; gap: 0 16px; }
.wiz-step .row-2 .q { margin-bottom: 20px; }
.q legend .opt { font-weight: 400; }
@media (max-width: 640px) {
  .biz-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz span { flex-direction: row; justify-content: flex-start; min-height: 52px; padding: 10px 12px; text-align: left; }
}

/* ---------- «Así funciona»: the four moments of one appointment, each with its piece of DEX ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 56px 0 0; padding: 0; list-style: none; counter-reset: none; }
/* the number sits on a line that joins the four steps */
@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (max-width: 760px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 36px; }
}

/* ---------- «Funciones» page ---------- */
.bar-links a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-cookies { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-cookies:hover { color: var(--ink); }
.footer-cookies { padding: 0; border: 0; background: none; }

/* ---------- Cookie settings (built by site.js, shared key with the CRM) ---------- */
.ck-root { position: fixed; left: 16px; bottom: 16px; z-index: 100; width: min(440px, calc(100% - 32px)); color: var(--ink); }
.ck-root .ck-card { padding: 22px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(30, 25, 15, 0.35); }
.ck-root .ck-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.ck-root .ck-text { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ck-root .ck-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.ck-root .ck-btn { min-height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); font-weight: 600; font-size: 14px; transition: border-color 160ms ease, transform 140ms ease; }
.ck-root .ck-btn:hover { border-color: var(--ink); }
.ck-root .ck-btn:active { transform: scale(0.98); }
.ck-root .ck-btn-primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.ck-root .ck-btn-primary:hover { background: var(--accent-700); }
.ck-root .ck-options { display: grid; gap: 8px; margin-bottom: 14px; }
.ck-root .ck-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); cursor: pointer; }
.ck-root .ck-option b { display: block; font-size: 14px; }
.ck-root .ck-option span { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.ck-root .ck-always { flex: none; font-size: 12px !important; font-weight: 600; color: #346538 !important; }
.ck-root .ck-switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 13px; background: var(--line-2); cursor: pointer; transition: background-color 160ms ease; }
.ck-root .ck-switch::before { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); transition: transform 200ms var(--ease); }
.ck-root .ck-switch:checked { background: var(--accent); }
.ck-root .ck-switch:checked::before { transform: translateX(18px); }

/* ---------- Entrance: fade + 12px rise, only with JS and when motion is welcome ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .trades li:nth-child(2) { transition-delay: 80ms; }
  .js .trades li:nth-child(3) { transition-delay: 160ms; }
  .js .trades li:nth-child(4) { transition-delay: 240ms; }
  .ck-root .ck-card { animation: ck-in 320ms var(--ease); }
  @keyframes ck-in { from { opacity: 0; transform: translateY(10px); } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bar-links { display: none; }
  .split { gap: 56px; }
}
@media (max-width: 900px) {
  .section { padding: 96px 0; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plans { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .bar-row { height: 60px; gap: 12px; }
  .bar-login, .bar-actions .btn-small { display: none; }
  .bar-toggle { display: inline-flex; }
  .actions .btn { flex: 1 1 100%; }
  .stage { min-height: calc(100svh - 60px); padding: 104px 0 136px; }
  .stage { padding-top: 84px; }
  /* Phones: fewer, smaller objects along the top and bottom edges, away from the text */
  .notice { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .trades { gap: 10px; }
  .trades span { font-size: 14px; margin-top: 8px; }
  .section { padding: 80px 0; }
  .head { margin-bottom: 40px; }
  .window { width: min(320px, 86%); margin: 0 auto; padding: 8px; border-radius: 32px; }
  .window img { border-radius: 24px; aspect-ratio: 780 / 1300; object-fit: cover; object-position: top; }
  .channels { margin-top: -12px; gap: 10px 20px; }
  .plan-switch { width: 100%; }
  .plan-switch [role="tab"] { flex: 1; padding: 0 10px; font-size: 14px; }
  .plan { padding: 30px 22px 24px; }
  .faq summary { font-size: 17px; padding: 20px 40px 20px 0; }
  .form { padding: 24px 18px; }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .wiz { min-height: 0; }
  .wiz-steps li { font-size: 0; gap: 0; justify-content: center; }
  .wiz-steps li span { font-size: 11px; }
  .wiz-nav .btn { flex: 1; }
  .privacy-info dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .privacy-info dd { margin-bottom: 8px; }
  .ck-root { left: 0; right: 0; bottom: 0; width: 100%; }
  .ck-root .ck-card { border-radius: 14px 14px 0 0; border-bottom: 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
  .ck-root .ck-actions { grid-template-columns: 1fr 1fr; }
}

/* Phones: no zoom and nothing moves sideways, like the CRM (owner, 2026-11-04). The viewport says no zoom; iPhone
   ignores it for a pinch, so touch-action leaves only scrolling and boot.js cancels the pinch gesture. */
@media (pointer: coarse) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  /* on every element: touch-action is not inherited past a box that clips (overflow), and iPhone zoomed there */
  html, html * { touch-action: pan-x pan-y; }
  html, body { overflow-x: clip; overscroll-behavior-x: none; }
}

/* Less text (owner, 2026-11-12: «la gente no lee; imágenes y títulos»): lists and steps carry only their titles. */
.ticks li { align-items: center; }
.ticks b { margin-bottom: 0; }

/* Trades in the first view, with their icons (feedback 2026-11-12: «que se sepa que es para pelus, esteticistas…») */
/* «Hecho para salones»: one photo per trade, its icon and three usual services */
/* Contact, centred */

/* Contact: the title over both columns; below, the photo and the form side by side, same width, same top and bottom
   (owner: «la imagen simétrica al módulo de la derecha y el texto por encima de ambos»). */
/* the photo never sets the height: the form does, and the photo fills it */
/* their booking page on two phones without the frame: the top of the page (cover, logo, «Reservar ahora») and the
   services, bonos and products */
.contact .contact-login { margin-top: 20px; }

/* the three services of each trade always fit on one line */

/* ---------- Polish pass (2026-11-12, «mejóralo, ya sabes mis gustos») ---------- */
/* first view on phones: the agenda as a phone, centred, rising from the bottom */
@media (max-width: 640px) {
  /* the phone agenda fills the rest of the first view, down to its bottom edge (it used to be a 200 px strip with
     136 px of empty navy under it) */
  .stage { display: flex; flex-direction: column; padding-bottom: 0; }
  .stage { padding-top: 64px; }
  .stage .actions { flex-wrap: nowrap; gap: 10px; margin-top: 22px; }
  .stage .actions .btn { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; }
}
/* «Así funciona» on phones: the four steps slide sideways (one and a bit in view) instead of a long column */
@media (max-width: 760px) {
  .flow { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .flow::-webkit-scrollbar { display: none; }
}
/* «Funciones»: the short feature names as tiles (icon + name), two per row */
/* «Funciones» › Productos: real product photos */

/* ---------- Animations and containers outside the first view (2026-11-12, «más animaciones en el resto, contenedores,
   el logo de vez en cuando en el fondo») ---------- */
/* the DEX logo, faint, in the background of some sections; it drifts a little as the page scrolls */
/* the navy logo panels breathe very slowly (not in the first view) */

/* «Así funciona» footer as a navy container */
/* FAQ inside a container */

@media (prefers-reduced-motion: no-preference) {
  /* cards of a row arrive one after another (delays set by site.js) */
  .js .stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .js .stagger.is-in > * { opacity: 1; transform: none; }
  /* the trade photos zoom out slowly as they arrive */

  /* «Así funciona» plays like a short film when it comes into view: the line draws itself and each step does its thing */
  /* 1: the 11:30 gets picked */
  /* 2: the notice drops in and the new appointment lights up */
  /* 3: the WhatsApp arrives */
  /* 4: paid by card, then five stars one after another */

  /* «Funciones»: small pieces come alive when their block arrives */
  .js [data-reveal].is-in .stars { animation: stars 900ms steps(5, end) 300ms both; }
  /* buttons and cards respond a little */
  .plan { transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); }
  .plan:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(15, 23, 42, 0.45); }
}
@keyframes stars { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Antes / con DEX (drag to compare) ---------- */

/* ---------- Footer in navy, with the brand and a last call to action ---------- */

/* ---------- First view on phones: fewer floating cards, so the title is clear ---------- */
