/* =========================================================================
   AUVRYX · Estilos
   ========================================================================= */
:root {
  --bg: #0b0b0f;
  --bg-alt: #111116;
  --surface: #16161d;
  --surface-2: #1d1d26;
  --surface-3: #262633;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eeedf5;
  --muted: #a6a5b8;
  --faint: #8b8a9e;          /* AA sobre todas las superficies */

  --accent: #8b5cf6;         /* violeta eléctrico */
  --accent-strong: #7c3aed;
  --accent-text: #b9a2ff;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --accent-glow: rgba(139, 92, 246, 0.35);

  --client: #7dd3fc;
  --system: #b9a2ff;
  --team: #fcd34d;
  --ok: #86efac;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --container: 1160px;
  --gutter: 20px;
  --header-h: 68px;

  /* Movimiento: curvas y duraciones compartidas */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 140ms;
  --dur-ui: 220ms;
  --shift: 14px;            /* desplazamiento de las transiciones entre pasos */

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent-strong); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform var(--dur-press) var(--ease-out);
}
.btn:active:not([disabled]):not([aria-disabled="true"]) { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 8px 30px -10px var(--accent-glow); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #8b4cf7; box-shadow: 0 12px 36px -10px var(--accent-glow); }
}
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
}
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn[aria-disabled="true"] { background: var(--surface-3); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 15, 0.78);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: 0.18em; font-size: 18px; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
  box-shadow: 0 0 18px -2px var(--accent-glow);
  clip-path: polygon(50% 0, 100% 100%, 72% 100%, 50% 52%, 28% 100%, 0 100%);
}
.logo img { height: 28px; width: auto; }
.logo .logo-mark-img { height: 26px; width: auto; flex: none; }
.logo-sm .logo-mark-img { height: 22px; }
.logo-sm { font-size: 15px; }

.nav-toggle { display: none; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s, background-color .2s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--text); background: var(--surface-2); }

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #0b0b0f; border-bottom: 1px solid var(--line-strong); box-shadow: 0 30px 60px -10px rgba(0,0,0,.85);
    padding: 8px var(--gutter) 18px; display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 14px 12px; font-size: 17px; border-radius: 10px; }
  html:not(.js) .site-nav { display: block; position: static; padding: 0 0 10px; background: none; border: 0; }
}

/* ---------- Tipografía de secciones ---------- */
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent-text); margin-bottom: 12px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 44px); margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 18px; }
@media (max-width: 767px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* ---------- Portada ---------- */
.hero { position: relative; padding: 72px 0 80px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.28), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 750; letter-spacing: -0.035em; margin-bottom: 22px; text-wrap: balance; }
.lead { font-size: clamp(18px, 2vw, 20px); color: #cfcedd; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 36px; }
.founder { display: flex; gap: 14px; align-items: flex-start; max-width: 560px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(22, 22, 29, 0.6); }
.founder p { color: var(--muted); font-size: 15.5px; }
.founder-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(139, 92, 246, 0.4); }

.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 100%; max-width: 330px; border-radius: 34px; padding: 14px;
  background: linear-gradient(180deg, #1b1b24, #121218);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 80px -30px var(--accent-glow);
}
.phone-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); padding: 6px 10px 12px; }
.phone-top span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.phone-feed { display: grid; gap: 10px; }
.notif { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; line-height: 1.45; }
.notif b { display: block; font-size: 12px; font-weight: 600; color: var(--faint); margin-bottom: 3px; }
.notif.is-auto { background: var(--accent-soft); border-color: rgba(139, 92, 246, 0.45); }
.notif.is-auto b { color: var(--accent-text); }

.pain-title { margin-top: 72px; margin-bottom: 18px; color: var(--muted); font-weight: 600; }
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain-list li { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: #d7d6e3; font-size: 16px; }
.pain-tag { display: block; font-size: 14px; font-weight: 600; color: var(--accent-text); margin-bottom: 6px; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-content: flex-start; }
  .pain-list { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hero { padding: 48px 0 64px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pain-title { margin-top: 56px; }
}

/* Animación de notificaciones */
.js .phone .notif { opacity: 0; transform: translateY(10px); animation: notif-in .6s cubic-bezier(.2,.7,.2,1) forwards; }
.js .phone .n1 { animation-delay: .3s; }
.js .phone .n2 { animation-delay: 1.1s; }
.js .phone .n3 { animation-delay: 1.9s; }
.js .phone .n4 { animation-delay: 3s; }
@keyframes notif-in { to { opacity: 1; transform: none; } }

/* ---------- Servicios ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.service-card:hover { border-color: rgba(139, 92, 246, 0.45); transform: translateY(-2px); }
.service-card h3 { font-size: 21px; margin: 22px 0 12px; }
.service-card p { color: var(--muted); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(139, 92, 246, 0.35); }
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 920px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- Demos ---------- */
.role-legend { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14.5px; }
.role-legend li { display: flex; align-items: center; gap: 8px; }
.role { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; font-weight: 600; border: 1px solid; }
.role-client { color: var(--client); border-color: rgba(125, 211, 252, 0.4); background: rgba(125, 211, 252, 0.08); }
.role-system { color: var(--system); border-color: rgba(185, 162, 255, 0.4); background: rgba(185, 162, 255, 0.08); }
.role-team { color: var(--team); border-color: rgba(252, 211, 77, 0.4); background: rgba(252, 211, 77, 0.08); }

.case { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 24px; align-items: start; margin-bottom: 56px; }
.case-card { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.case-card h3 { font-size: 26px; margin-top: 16px; }
.case-meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.case-dl { margin: 22px 0 26px; }
.case-dl dt { font-size: 14px; font-weight: 600; color: var(--accent-text); margin-top: 16px; }
.case-dl dd { margin: 6px 0 0; color: #d3d2df; font-size: 16px; }
.case-card .btn { width: 100%; }
.badge-fict, .badge-sim { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge-fict { color: var(--team); background: rgba(252, 211, 77, 0.1); border: 1px solid rgba(252, 211, 77, 0.35); }
.badge-sim { color: var(--accent-text); background: var(--accent-soft); border: 1px solid rgba(139, 92, 246, 0.4); }
.badge-sim::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.demo { border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line-strong); overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }
.demo.is-highlight { box-shadow: var(--shadow), 0 0 0 2px var(--accent); transition: box-shadow .4s; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.btn-reset { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.btn-reset:hover { color: var(--text); border-color: var(--accent); }
.btn-reset svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-body { padding: 18px; display: grid; gap: 18px; }
.demo-body-chat { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }

@media (max-width: 1020px) {
  .case { grid-template-columns: 1fr; }
  .case-card { position: static; }
  .demo-body-chat { grid-template-columns: 1fr; }
}
@media (max-width: 767px) { .demo-body { padding: 12px; } .case-card { padding: 22px; } }

/* Chat estilo mensajería (genérico) */
.wa { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0f1014; min-height: 520px; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.wa-head strong { display: block; font-size: 15px; }
.wa-head small { color: var(--faint); font-size: 12.5px; }
.wa-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: linear-gradient(135deg, #c2410c, #9a3412); color: #fff; }
.wa-log { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 440px; min-height: 300px;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 18px 18px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; white-space: pre-line; }
.msg-bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg-user { align-self: flex-end; background: #4c1d95; color: #fff; border-top-right-radius: 4px; }
.msg time { display: block; text-align: right; font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 3px; }
.js .msg { animation: msg-in .28s ease-out; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.summary { align-self: flex-start; width: min(100%, 320px); border-radius: 14px; background: var(--surface); border: 1px solid rgba(139, 92, 246, 0.45); padding: 14px; font-size: 14.5px; }
.summary h5 { margin: 0 0 10px; font-size: 13px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.summary dt { color: var(--faint); }
.summary dd { margin: 0; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill-pending { color: var(--team); background: rgba(252, 211, 77, 0.1); border: 1px solid rgba(252, 211, 77, 0.4); }
.pill-pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--team); }
.pill-draft { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-strong); }

.wa-options { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: var(--surface); min-height: 66px; }
.chip {
  min-height: 42px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid rgba(139, 92, 246, 0.55); color: var(--accent-text); font-size: 14.5px; font-weight: 600;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { background: var(--accent-soft); color: #fff; }
.chip[aria-pressed="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.chip-soft { border-color: var(--line-strong); color: var(--muted); }
.chip-soft:hover { color: var(--text); background: var(--surface-2); }
.options-label { width: 100%; font-size: 12.5px; color: var(--faint); }

/* Panel "Qué está pasando" */
.behind { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 18px; }
.behind h4 { font-size: 16px; margin-bottom: 4px; }
.status-line { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.status-line strong { color: var(--text); }
.status-line strong.is-pending { color: var(--team); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 360px; overflow-y: auto; }
.timeline li { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: #d3d2df; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .role { text-align: center; }
.js .timeline li { animation: msg-in .3s ease-out; }
.timeline .empty { display: block; color: var(--faint); grid-template-columns: none; }

.team-box { margin-top: 16px; padding: 16px; border-radius: 12px; border: 1px solid rgba(252, 211, 77, 0.35); background: rgba(252, 211, 77, 0.05); }
.team-box h5 { margin: 0 0 8px; font-size: 14px; color: var(--team); }
.team-box p { font-size: 14.5px; color: #d3d2df; }
.team-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.team-actions span { padding: 6px 12px; border-radius: 999px; border: 1px dashed rgba(252, 211, 77, 0.5); color: var(--team); font-size: 13.5px; }
.team-box small { display: block; color: var(--faint); font-size: 13px; }

/* Demo tatuajes */
.steps-indicator { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.steps-indicator li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.steps-indicator span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--surface-2); }
.steps-indicator li.is-current { color: var(--text); border-color: var(--accent); }
.steps-indicator li.is-current span { background: var(--accent-strong); color: #fff; }
.steps-indicator li.is-done { color: var(--muted); }
.steps-indicator li.is-done span { background: var(--accent-soft); color: var(--accent-text); }

.tattoo-stage { border-radius: 14px; border: 1px solid var(--line); background: #0f1014; padding: 20px; outline: none; }
.stage-title { font-size: 19px; margin-bottom: 6px; }
.stage-sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

.artists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.artist {
  text-align: left; padding: 12px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background-color .2s;
}
.artist:hover { border-color: rgba(139, 92, 246, 0.5); }
.artist[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.artist-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 10px; }
.artist-gallery svg { width: 100%; aspect-ratio: 1; border-radius: 6px; background: #1a1a22; }
.artist strong { display: block; font-size: 15.5px; }
.artist small { color: var(--muted); font-size: 13.5px; }
@media (max-width: 640px) { .artists { grid-template-columns: 1fr; } .artist { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; } .artist-gallery { margin: 0; } }

.field-group { border: 0; margin: 0 0 18px; padding: 0; }
.field-group legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.field-group .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-sample { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--surface); }
.ref-sample svg { width: 64px; height: 64px; border-radius: 8px; background: #1a1a22; flex: none; }
.ref-sample p { font-size: 14px; color: var(--muted); }
.ref-sample strong { color: var(--text); display: block; font-size: 14.5px; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.stage-actions .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.hint { font-size: 13.5px; color: var(--faint); }

.inbox { border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); overflow: hidden; }
.inbox-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.inbox-head strong { font-size: 15px; }
.inbox-head small { color: var(--faint); font-size: 13px; display: block; }
.inbox-body { padding: 16px; display: grid; grid-template-columns: 1fr 150px; gap: 18px; }
.inbox-body dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; margin: 0; font-size: 15px; }
.inbox-body dt { color: var(--faint); }
.inbox-body dd { margin: 0; font-weight: 600; }
.inbox-ref { text-align: center; font-size: 12.5px; color: var(--faint); }
.inbox-ref svg { width: 100%; aspect-ratio: 1; border-radius: 10px; background: #1a1a22; margin-bottom: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 16px; }
.tag { font-size: 12.5px; padding: 4px 9px; border-radius: 6px; background: rgba(185, 162, 255, 0.08); color: var(--system); border: 1px solid rgba(185, 162, 255, 0.3); }
.tag-ok::before { content: "✓ "; }
.inbox .team-box { margin: 0 16px 16px; }
@media (max-width: 640px) {
  .inbox-body { grid-template-columns: 1fr; }
  .inbox-ref { max-width: 140px; }
  .inbox-body dl { grid-template-columns: 1fr; gap: 2px; }
  .inbox-body dd { margin-bottom: 8px; }
}

.demos-cta { margin-top: 24px; padding: 40px 28px; text-align: center; border-radius: var(--radius); border: 1px solid rgba(139, 92, 246, 0.35);
  background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.18), transparent 70%), var(--surface); }
.demos-cta p { color: #d3d2df; font-size: 18px; margin-bottom: 20px; }

/* ---------- Cómo trabajo ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.process li { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.process-n { display: block; font-family: var(--mono); font-size: 14px; color: var(--accent-text); margin-bottom: 18px; letter-spacing: 0.1em; }
.process p { font-size: 18px; color: #dddcea; }
@media (max-width: 920px) { .process { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { padding-top: 40px; }
.contact-card { max-width: 860px; margin: 0 auto; text-align: center; padding: 64px 28px; border-radius: 24px; border: 1px solid rgba(139, 92, 246, 0.35);
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.25), transparent 65%), var(--surface); }
.contact-card h2 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 18px; text-wrap: balance; }
.contact-card .section-sub { max-width: 600px; margin: 0 auto; }
.contact-actions { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wa-note { max-width: 460px; font-size: 14.5px; color: var(--muted); }
.contact-line { color: var(--muted); font-size: 15px; }
.contact-line a { color: var(--accent-text); }
@media (max-width: 767px) { .contact-card { padding: 44px 20px; } .btn-wa { width: 100%; } }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 56px; }
.footer-inner { display: grid; gap: 10px; color: var(--faint); font-size: 14px; }
.footer-note { max-width: 640px; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Menos movimiento, no cero: se mantienen los fundidos que explican qué ha cambiado
     y se eliminan desplazamientos, rebotes y bucles. */
  :root { --shift: 0px; }
  *, *::before, *::after { animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .phone .notif { opacity: 1; transform: none; }
}

/* =========================================================================
   Cuestionario de la portada (asistente)
   ========================================================================= */
.hero-quiz { position: relative; scroll-margin-top: calc(var(--header-h) + 16px); }
.quiz {
  border-radius: 22px; background: linear-gradient(180deg, #1a1a23, #131319);
  border: 1px solid rgba(139, 92, 246, 0.4); box-shadow: var(--shadow), 0 0 80px -30px var(--accent-glow);
  overflow: hidden;
}
.quiz-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.quiz-avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, #a78bfa, #6d28d9);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.quiz-who { flex: 1; min-width: 0; }
.quiz-who strong { display: block; font-size: 15px; }
.quiz-who small { color: var(--faint); font-size: 13px; }
.quiz-restart { flex: none; }
.quiz-progress { padding: 12px 18px 0; }
.quiz-progress small { display: block; margin-top: 6px; color: var(--faint); font-size: 12.5px; }
.quiz-progress-bar { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.quiz-progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7c3aed, #a78bfa); transition: width .35s ease; }
.quiz-body { padding: 18px; outline: none; }
.quiz-bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; border-top-left-radius: 4px; padding: 14px 16px; font-size: 16px; }
.quiz-points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.quiz-points li { display: flex; gap: 10px; }
.quiz-points li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.quiz-say { font-size: 14px; color: var(--accent-text); margin-bottom: 6px; }
.quiz-q { font-size: 20px; margin-bottom: 14px; line-height: 1.25; }
.quiz-area .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-area .chip { font-size: 14px; }
.quiz-field { margin-top: 14px; }
.quiz-field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.quiz-input {
  width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); font: inherit; font-size: 16px; resize: vertical;
}
.quiz-input::placeholder { color: var(--faint); }
.quiz-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
.quiz-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.scale-btn {
  min-height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg);
  font-weight: 700; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.scale-btn:hover { border-color: var(--accent); }
.scale-btn[aria-pressed="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.scale-legend { display: flex; justify-content: space-between; margin-top: 8px; color: var(--faint); font-size: 13px; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 46px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; font-size: 15px;
  transition: border-color .2s, background-color .2s;
}
.quiz-option::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--faint); }
.quiz-option:hover { border-color: var(--accent); }
.quiz-option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.quiz-option[aria-pressed="true"]::before { border-color: var(--accent-text); background: radial-gradient(circle, var(--accent-text) 45%, transparent 50%); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.quiz-actions .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.quiz-actions .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.quiz-skip { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14.5px; padding: 8px; }
.quiz-privacy { margin-top: 12px; font-size: 13px; color: var(--faint); }
.quiz-privacy a, .quiz-demo-link a { color: var(--accent-text); }

.diag { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: diag; }
.diag li { counter-increment: diag; position: relative; padding: 12px 14px 12px 46px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.diag li::before { content: counter(diag); position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); }
.diag strong { font-size: 15px; }
.diag-issue { color: var(--muted); font-size: 14px; margin-top: 2px; }
.diag-fix { font-size: 14px; margin-top: 6px; color: #dddcea; }
.diag-fix span { color: var(--ok); font-weight: 600; }
.verdict { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.verdict strong { display: block; margin-bottom: 4px; }
.verdict p { font-size: 14.5px; color: var(--muted); }
.verdict-go { border-color: rgba(134, 239, 172, 0.4); background: rgba(134, 239, 172, 0.06); }
.verdict-go strong { color: var(--ok); }
.quiz-demo-link { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 480px) {
  .quiz-scale { grid-template-columns: repeat(5, 1fr); }
  .quiz-restart { padding: 6px 10px; }
  .quiz-restart-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .quiz-actions .btn { flex: 1 1 auto; }
}

/* =========================================================================
   Casos de éxito
   ========================================================================= */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cases-grid.is-empty { grid-template-columns: 1fr; }
.case-empty { padding: 40px 28px; text-align: center; border-radius: var(--radius); border: 1px dashed var(--line-strong); background: var(--surface); }
.case-empty h3 { font-size: 24px; margin: 16px 0 10px; }
.case-empty p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.case-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.success-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.success-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.success-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.success-card h3 { font-size: 22px; margin-top: 6px; }
.success-quote { margin: 18px 0 0; padding-left: 14px; border-left: 2px solid var(--accent); }
.success-quote p { font-style: italic; color: #dddcea; }
.success-quote footer { margin-top: 6px; color: var(--faint); font-size: 14px; }
.success-link { display: inline-block; margin-top: 16px; color: var(--accent-text); }

/* =========================================================================
   Multipágina: cabecera, móvil animado, accesos y contacto siempre visible
   ========================================================================= */
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.btn-sm svg { width: 17px; height: 17px; }
@media (min-width: 768px) { .site-nav { display: flex; align-items: center; gap: 14px; } }
.site-nav .header-cta { display: inline-flex; padding: 8px 16px; color: #fff; background: var(--accent-strong); }
.site-nav .header-cta:hover { background: #8b4cf7; color: #fff; }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-cta { margin-left: 6px; }
@media (max-width: 767px) {
  .site-nav.is-open { display: block; }
  .site-nav .header-cta { display: flex; margin: 12px 0 0; width: 100%; padding: 14px 16px; border-radius: 999px; }
}

/* Móvil del banner: entra en movimiento y se coloca en su sitio */
.hero-phone-wrap { position: relative; display: flex; justify-content: center; scroll-margin-top: calc(var(--header-h) + 12px); }
.hero-phone {
  position: relative; width: 100%; max-width: 430px; padding: 12px; border-radius: 46px;
  background: linear-gradient(160deg, #2a2a36, #101015 55%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255,255,255,0.03) inset, 0 0 100px -30px var(--accent-glow);
}
.phone-notch { width: 110px; height: 22px; margin: 0 auto 10px; border-radius: 0 0 14px 14px; background: #08080b; }
.hero-phone .quiz { border-radius: 34px; border-color: rgba(139, 92, 246, 0.3); box-shadow: none; }
.js .hero-phone { animation: phone-in .7s var(--ease-out) .1s both; }
@keyframes phone-in {
  0%   { opacity: 0; transform: translate(80px, 140px) rotate(9deg) scale(.9); }
  55%  { opacity: 1; }
  80%  { transform: translate(-4px, -8px) rotate(-1deg) scale(1.01); }
  100% { opacity: 1; transform: none; }
}
/* Mensajes que llegan alrededor del móvil (decorativo, solo escritorio) */
.float-notifs { position: absolute; left: 0; right: 0; top: 0; z-index: 3; pointer-events: none; display: grid; gap: 10px; padding: 64px 34px 0; }
.float-notifs .notif { background: rgba(29, 29, 38, 0.97); box-shadow: 0 12px 30px -8px rgba(0,0,0,.8); font-size: 14px; }
.js .float-notifs .notif { opacity: 0; animation: notif-pop .45s cubic-bezier(.2,.8,.2,1) forwards; }
.js .float-notifs .f1 { animation-delay: 1.05s; }
.js .float-notifs .f2 { animation-delay: 1.4s; }
.js .float-notifs .f3 { animation-delay: 1.75s; }
.js .float-notifs { animation: notif-clear .5s ease 3.1s forwards; }
html:not(.js) .float-notifs { display: none; }
/* El diagnóstico aparece cuando Alex "recoge" los mensajes */
.js .hero-phone .quiz { animation: quiz-in .5s ease 3.1s both; }
@keyframes quiz-in { from { opacity: .15; } to { opacity: 1; } }
@media (max-width: 520px) { .float-notifs { padding: 52px 22px 0; } }
@media (max-width: 920px) { .hero-phone-wrap { justify-content: center; } }
@media (max-width: 520px) {
  .hero-phone { padding: 8px; border-radius: 36px; }
  .hero-phone .quiz { border-radius: 28px; }
  .phone-notch { width: 90px; height: 18px; margin-bottom: 8px; }
  @keyframes phone-in {
    0% { opacity: 0; transform: translateY(90px) rotate(4deg) scale(.94); }
    80% { transform: translateY(-5px); }
    100% { opacity: 1; transform: none; }
  }
}

/* Secciones y cabeceras de página */
.section-tight { padding: 72px 0; }
.section-flush { padding-top: 8px; }
.page-hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 56px); letter-spacing: -0.03em; margin-bottom: 18px; max-width: 820px; text-wrap: balance; }
.page-hero .lead { max-width: 680px; }
.more-link { margin-top: 22px; }
.more-link a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.more-link a:hover { text-decoration: underline; }
.process-detail { margin-top: 10px; font-size: 15.5px !important; color: var(--muted) !important; }
.role-legend-page { margin: 0 0 28px; }

.link-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .25s; }
.link-card:hover { border-color: rgba(139, 92, 246, 0.5); transform: translateY(-2px); }
.link-card-k { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.link-card strong { font-size: 18px; line-height: 1.35; }
.link-card-go { margin-top: auto; color: var(--accent-text); font-weight: 600; font-size: 15px; }

.hint-card { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: var(--radius); border: 1px dashed rgba(139, 92, 246, 0.45); background: var(--accent-soft); }
.hint-card p { max-width: 640px; color: #dddcea; }

.contact-band-wrap { padding: 40px 0 72px; }
.contact-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 36px; border-radius: 24px; border: 1px solid rgba(139, 92, 246, 0.35); background: radial-gradient(ellipse at 0% 0%, rgba(124, 58, 237, 0.25), transparent 60%), var(--surface); }
.contact-band h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 8px; }
.contact-band p { color: var(--muted); max-width: 480px; }
.contact-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 767px) { .contact-band { padding: 26px 20px; } .contact-band-actions .btn { flex: 1 1 100%; } }

.contact-page { position: relative; overflow: hidden; padding-top: 64px; }
.contact-page h1 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 18px; text-wrap: balance; letter-spacing: -0.03em; }
.contact-alt { max-width: 860px; margin: 24px auto 0; display: grid; gap: 16px; }
.contact-alt-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.contact-alt-card h2 { font-size: 18px; margin-bottom: 4px; }
.contact-alt-card p { color: var(--muted); font-size: 15px; }
.contact-alt-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #a78bfa, #6d28d9); font-size: 15px; }
@media (max-width: 640px) { .contact-alt-card { grid-template-columns: auto 1fr; } .contact-alt-card .btn { grid-column: 1 / -1; } }

.footer-nav { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--text); }
.site-footer { padding-bottom: 48px; }

/* Botón flotante de contacto (todas las páginas salvo Contacto) */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 20px 12px 16px;
  border-radius: 999px; background: var(--accent-strong); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 40px -10px rgba(124, 58, 237, 0.75), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform .25s, opacity .25s, background-color .2s;
}
.fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fab:hover { background: #8b4cf7; transform: translateY(-2px); }
.fab.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.js .fab { animation: none; }
@keyframes fab-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .fab { right: 14px; bottom: 14px; padding: 12px 16px 12px 14px; } }

@media (prefers-reduced-motion: reduce) {
  .js .hero-phone, .js .fab, .js .hero-phone .quiz { animation: none; }
  .float-notifs { display: none; }
}

/* Mensajes que llegan al móvil del banner */
@keyframes notif-pop { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes notif-clear { to { opacity: 0; transform: translateY(-14px); visibility: hidden; } }

/* Móvil y tablet: el diagnóstico sube justo después de los botones */
@media (max-width: 920px) {
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero-phone-wrap { order: 1; margin: 4px 0 32px; }
  .founder { order: 2; }
  .hero-actions { margin-bottom: 32px; }
}
.fab.is-hidden { animation: none; opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (max-width: 520px) {
  .fab { width: 58px; height: 58px; min-height: 0; padding: 0; justify-content: center; }
  .fab svg { width: 26px; height: 26px; }
  .fab-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* =========================================================================
   Acceso al diagnóstico más visible
   ========================================================================= */
.promo-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 10px var(--gutter); text-align: center; text-decoration: none; font-size: 14.5px; color: #fff;
  background: linear-gradient(90deg, #5b21b6, #7c3aed 45%, #9333ea);
}
.promo-bar strong { font-weight: 700; }
.promo-go { display: inline-flex; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,0.18); font-weight: 700; white-space: nowrap; }
.promo-bar:hover .promo-go { background: rgba(255,255,255,0.3); }
.promo-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); flex: none; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (max-width: 600px) { .promo-bar { font-size: 13.5px; gap: 8px; padding: 9px 14px; } .promo-text { flex: 1 1 auto; text-align: left; } }

.site-nav .header-quiz { display: inline-flex; padding: 8px 14px; color: var(--accent-text); border-color: rgba(139, 92, 246, 0.6); }
.site-nav .header-quiz:hover { background: var(--accent-soft); color: #fff; }
@media (max-width: 1000px) and (min-width: 768px) { .site-nav .header-quiz { display: none; } }
@media (max-width: 767px) { .site-nav .header-quiz { display: flex; margin-top: 12px; width: 100%; padding: 14px 16px; border-radius: 999px; } }

.btn-quiz { position: relative; gap: 12px; background: linear-gradient(90deg, #7c3aed, #9333ea); box-shadow: 0 10px 40px -8px rgba(147, 51, 234, 0.8); }
.btn-quiz:hover { background: linear-gradient(90deg, #8b4cf7, #a855f7); }
.btn-quiz-ico { font-size: 15px; }
.btn-quiz-time { padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,0.2); font-size: 13px; font-weight: 700; }

@keyframes ring { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.12); } }
.hero-actions { align-items: center; }
@media (max-width: 767px) { .hero-actions .btn-quiz { flex: 1 1 100%; } .hero-actions .btn-ghost { flex: 1 1 calc(50% - 6px); } }

.quiz-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.quiz-badges span { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--ok); background: rgba(134, 239, 172, 0.08); border: 1px solid rgba(134, 239, 172, 0.35); }
.quiz-q-start { margin-top: 16px; font-size: 21px; }
.quiz-start-chips { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip-start { min-height: 52px; border-radius: 14px; font-size: 14.5px; background: var(--accent-soft); color: #fff; border-color: rgba(139, 92, 246, 0.6); text-align: left; padding: 10px 14px; }
.chip-start:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.quiz-inline { padding: 0; font-size: 13px; }
@media (max-width: 400px) { .quiz-start-chips { grid-template-columns: 1fr; } }

.hero-phone-wrap.is-spotlight .hero-phone { animation: spotlight 1.4s ease-out; }
@keyframes spotlight { 0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, .9), var(--shadow); } 100% { box-shadow: 0 0 0 28px rgba(167, 139, 250, 0), var(--shadow); } }

/* Móvil: el diagnóstico va justo debajo del titular */
@media (max-width: 920px) {
  .hero-phone-wrap { order: 1; margin: 0 0 28px; }
  .hero .lead { order: 2; margin-bottom: 0; }
  .hero-actions { order: 2; }
  .founder { order: 3; }
}

/* Entrada más rápida: el diagnóstico queda listo antes */
.js .float-notifs .f1 { animation-delay: .45s; }
.js .float-notifs .f2 { animation-delay: .6s; }
.js .float-notifs .f3 { animation-delay: .75s; }
.js .float-notifs { animation: notif-clear .3s var(--ease-out) 1.6s forwards; }
.js .hero-phone .quiz { animation: quiz-in .3s ease 1.6s both; }

@media (prefers-reduced-motion: reduce) {
  .promo-dot, .btn-quiz::after { animation: none; }
  .hero-phone-wrap.is-spotlight .hero-phone { animation: none; }
}
@media (max-width: 600px) {
  .promo-bar { flex-wrap: nowrap; justify-content: space-between; }
  .promo-long, .promo-dot { display: none; }
}

/* Demos con aspecto más real */
.badge-case { display: inline-flex; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--accent-text); background: var(--accent-soft); border: 1px solid rgba(139, 92, 246, 0.4); }
.wa-online { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.wa-date { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 12px; border-radius: 8px; }
.msg .ticks { color: #7dd3fc; letter-spacing: -3px; font-size: 11px; }

/* La barra del diagnóstico queda fija arriba, dentro de la cabecera */
html { scroll-padding-top: calc(var(--header-h) + 56px); }
.site-header .promo-bar { border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 767px) { .site-nav { top: 100% !important; } }
.hero-phone-wrap, .demo, .case { scroll-margin-top: calc(var(--header-h) + 56px); }

/* Agradecimiento y consentimiento del diagnóstico */
.quiz-thanks { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 16px; border-radius: 14px; border: 1px solid rgba(134, 239, 172, 0.4); background: rgba(134, 239, 172, 0.08); }
.quiz-thanks strong { display: block; font-size: 17px; color: var(--ok); }
.quiz-thanks p { font-size: 14.5px; color: #dddcea; margin-top: 2px; }
.quiz-thanks-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #0b0b0f; background: var(--ok); }
.quiz-thanks.is-error { border-color: rgba(252, 211, 77, 0.45); background: rgba(252, 211, 77, 0.07); }
.quiz-thanks.is-error strong { color: var(--team); }
.quiz-thanks.is-error .quiz-thanks-ico { background: var(--team); }
.js .quiz-thanks { animation: thanks-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes thanks-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.quiz-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.quiz-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.quiz-consent a { color: var(--accent-text); }

.contact-actions .btn-mail svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767px) { .btn-mail { width: 100%; } }
.quiz-say-sub { color: var(--muted); margin: -6px 0 14px; }
.quiz-send-box { margin-top: 18px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg); }
.quiz-send-title { font-weight: 700; font-size: 15px; }
.quiz-send-box .quiz-field:first-of-type { margin-top: 8px; }

/* =========================================================================
   Asistente de dudas (burbuja «¿Dudas?»)
   ========================================================================= */
.help-launcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; min-height: 48px;
  border-radius: 999px; border: 1px solid rgba(139, 92, 246, 0.55); background: rgba(22, 22, 29, 0.92);
  color: var(--text); font-weight: 700; font-size: 14.5px; cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.8); backdrop-filter: blur(8px);
  transition: border-color .2s, transform .2s;
}
.help-launcher:hover { border-color: var(--accent); transform: translateY(-1px); }
.help-launcher.is-open .help-launcher-text { display: none; }
.help-launcher.is-open { padding: 6px; }
.help-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.help-panel {
  position: fixed; right: 18px; bottom: 78px; z-index: 70; width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: #121218; border: 1px solid rgba(139, 92, 246, 0.45); box-shadow: 0 30px 70px -20px rgba(0,0,0,.9), 0 0 60px -30px var(--accent-glow);
}
.js .help-panel:not([hidden]) { animation: msg-in .25s ease-out; }
.help-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.help-who { flex: 1; min-width: 0; }
.help-who strong { display: block; font-size: 14.5px; }
.help-who small { color: var(--faint); font-size: 12.5px; }
.help-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.help-close:hover { color: var(--text); border-color: var(--line-strong); }
.help-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.help-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
.help-msg-bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-top-left-radius: 4px; }
.help-msg-user { align-self: flex-end; background: #4c1d95; color: #fff; border-top-right-radius: 4px; }
.help-msg a { color: var(--accent-text); }
.help-contact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.help-contact .btn { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
.help-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid var(--line); scrollbar-width: thin; }
.help-chip { flex: none; min-height: 34px; padding: 5px 12px; font-size: 13px; }
.help-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.help-input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.help-input:focus { outline: none; border-color: var(--accent); }
.help-send { width: 44px; border-radius: 12px; border: 0; background: var(--accent-strong); color: #fff; cursor: pointer; font-size: 16px; }
@media (max-width: 520px) {
  .help-launcher { right: 12px; bottom: 12px; }
  .help-panel { right: 8px; left: 8px; width: auto; bottom: 70px; max-height: calc(100vh - 100px); }
}
@media (max-width: 520px) {
  .help-launcher { padding: 5px; min-height: 0; }
  .help-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .help-avatar { width: 46px; height: 46px; font-size: 18px; }
}

/* Pregunta 2: problemas para marcar */
.quiz-checks { display: grid; gap: 8px; }
.quiz-check {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 48px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; font-size: 15px;
  transition: border-color .2s, background-color .2s;
}
.quiz-check::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--faint); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.quiz-check:hover { border-color: var(--accent); }
.quiz-check[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.quiz-check[aria-checked="true"]::before { content: "✓"; background: var(--accent-strong); border-color: var(--accent-strong); }

/* Diagnóstico: explicación del proceso bajo el móvil */
.hero-phone-wrap { flex-direction: column; align-items: center; }
.diag-process { width: 100%; max-width: 430px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(22, 22, 29, 0.7); }
.diag-process-k { font-size: 14px; font-weight: 600; color: var(--accent-text); margin-bottom: 4px; }
.diag-process p:last-child { color: #d3d2df; font-size: 15px; }

/* Presupuesto personalizado (Servicios) */
.budget { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border-radius: 22px;
  border: 1px solid rgba(139, 92, 246, 0.4); background: radial-gradient(ellipse at 100% 0%, rgba(124, 58, 237, 0.22), transparent 60%), var(--surface); }
.budget-copy { max-width: 620px; }
.budget-copy .eyebrow { margin-bottom: 10px; }
.budget h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 10px; }
.budget-copy p:last-child { color: #d3d2df; font-size: 17px; }
.budget-btn { flex: none; }
@media (max-width: 767px) { .budget { padding: 24px 20px; } .budget-btn { width: 100%; } }

/* Ilustración del proceso, al lado de «Cómo funciona el diagnóstico» */
.diag-illus { margin: 28px 0 0; padding: 18px 16px 8px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 40%, rgba(124, 58, 237, 0.16), transparent 70%), rgba(22, 22, 29, 0.5); }
.diag-illus svg { width: 100%; height: auto; }
.illus-flow { animation: illus-flow 1.2s linear infinite; }
@keyframes illus-flow { to { stroke-dashoffset: -20; } }
.illus-spin { transform-origin: 270px 112px; }
@keyframes illus-spin { to { transform: rotate(360deg); } }
@media (max-width: 920px) { .diag-illus { display: none; } }
@media (prefers-reduced-motion: reduce) { .illus-flow, .illus-spin { animation: none; } }

/* =========================================================================
   v2 · Portada más clara, cuestionario con transiciones y demos explorables
   ========================================================================= */

/* ---------- Botón principal: estados claros ---------- */
.btn-primary:focus-visible {
  outline: 2px solid #fff; outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.45), 0 8px 30px -10px var(--accent-glow);
}
.btn-ghost:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-color: var(--accent); }
.btn-primary:active:not([disabled]) { background: #6d28d9; box-shadow: 0 4px 16px -8px var(--accent-glow); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-arrow { transition: transform var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-hero:hover { background: #8b4cf7; box-shadow: 0 14px 40px -10px rgba(139, 92, 246, 0.75); }
  .btn-hero:hover .btn-arrow { transform: translateX(3px); }
  .service-card:hover, .link-card:hover { transform: translateY(-2px); }
}
@media (hover: none) { .service-card:hover, .link-card:hover, .fab:hover, .help-launcher:hover { transform: none; } }

/* ---------- Portada ---------- */
.hero-kicker { font-size: 15px; font-weight: 600; color: var(--accent-text); margin-bottom: 14px; }
.hero h1 { max-width: 14ch; }
.hero-offer { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-offer a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px 8px 10px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(22, 22, 29, 0.7);
  color: #dddcea; font-size: 15px; font-weight: 500; text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.hero-offer svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .hero-offer a:hover { border-color: rgba(139, 92, 246, 0.6); color: #fff; } }
.hero-actions { margin: 28px 0 10px; }
.hero-actions-note { font-size: 14.5px; color: var(--muted); margin-bottom: 32px; }
.hero-actions { gap: 10px; }
.hero-actions .btn-lg { padding-inline: 22px; }
.btn-hero { padding-inline: 24px 20px !important; }
.btn-hero .btn-arrow { width: 20px; height: 20px; }

/* Móvil y tablet: primero qué ofrece y los botones; después el cuestionario. */
@media (max-width: 920px) {
  .hero-kicker, .hero h1 { order: 0; }
  .hero .lead { order: 1; }
  .hero-offer { order: 2; }
  .hero-actions { order: 3; margin-bottom: 8px; }
  .hero-actions-note { order: 4; margin-bottom: 28px; }
  .founder { order: 5; margin-bottom: 32px; }
  .hero-phone-wrap { order: 6; margin: 0; }
  .hero h1 { max-width: none; }
}
@media (max-width: 767px) {
  .hero-offer { flex-direction: column; align-items: stretch; }
  .hero-offer a { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Móvil: el cuestionario se muestra como tarjeta, sin marco de teléfono ni espera inicial. */
@media (max-width: 920px) {
  .js .hero-phone { animation: none; }
  .js .hero-phone .quiz { animation: none; }
  .float-notifs { display: none; }
}
@media (max-width: 520px) {
  .hero-phone { padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
  .phone-notch { display: none; }
  .hero-phone .quiz { border-radius: 22px; border-color: rgba(139, 92, 246, 0.4); box-shadow: var(--shadow), 0 0 60px -30px var(--accent-glow); }
}

/* ---------- Cuestionario ---------- */
.quiz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quiz-steps li { display: grid; gap: 6px; }
.quiz-seg { position: relative; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.quiz-seg::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 320ms var(--ease-out);
}
.quiz-steps li.is-done .quiz-seg::after, .quiz-steps li.is-current .quiz-seg::after { transform: scaleX(1); }
.quiz-steps li.is-current .quiz-seg::after { background: linear-gradient(90deg, #8b5cf6, #c4b5fd); }
.quiz-steps small { font-size: 12px; color: var(--faint); transition: color .2s ease; }
.quiz-steps li.is-current small, .quiz-steps li.is-done small { color: var(--muted); }
.quiz-steps li.is-current small { color: var(--text); font-weight: 600; }
/* El texto «Pregunta X de 4» queda para lectores de pantalla; los segmentos ya lo muestran. */
.quiz-progress > small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
@media (max-width: 400px) { .quiz-steps small { font-size: 11px; } }

/* Cambio de pregunta: la nueva entra desde el lado hacia el que avanzas. */
.quiz-screen.is-enter-fwd  { animation: step-in-fwd var(--dur-ui) var(--ease-out); }
.quiz-screen.is-enter-back { animation: step-in-back var(--dur-ui) var(--ease-out); }
.quiz-screen.is-enter-fade, .stage-screen.is-enter-fade { animation: fade-in 180ms ease; }
@keyframes step-in-fwd  { from { opacity: 0; transform: translateX(var(--shift)); } to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(calc(var(--shift) * -1)); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.quiz-q:focus, .stage-title:focus { outline: none; }
.quiz-q:focus-visible, .stage-title:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }

/* Feedback inmediato al elegir */
.chip, .quiz-check, .quiz-option, .scale-btn, .artist {
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform var(--dur-press) var(--ease-out);
}
.chip:active, .quiz-check:active, .quiz-option:active, .scale-btn:active, .artist:active { transform: scale(0.97); }
.is-picked { animation: pick 260ms var(--ease-out); }
@keyframes pick { 0% { transform: scale(0.97); } 100% { transform: none; } }

.chip-start { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chip-start .tick {
  flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: grid; place-items: center; transition: background-color .18s ease, border-color .18s ease;
}
.chip-start .tick::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px; border: solid #fff; border-width: 0 0 2px 2px;
  transform: rotate(-45deg) scale(0.6); opacity: 0;
  transition: transform 200ms var(--ease-out), opacity 150ms ease;
}
.chip-start[aria-pressed="true"] .tick { background: #fff; border-color: #fff; }
.chip-start[aria-pressed="true"] .tick::after { border-color: var(--accent-strong); opacity: 1; transform: rotate(-45deg) scale(1); }
.chip-start[aria-pressed="true"] { box-shadow: 0 0 0 1px #c4b5fd inset; }
.quiz-check::before { transition: background-color .18s ease, border-color .18s ease; }

/* Escala 1–10: se rellena hasta el valor elegido */
.scale-btn.is-filled { background: rgba(139, 92, 246, calc(0.12 + var(--i) * 0.045)); border-color: rgba(139, 92, 246, 0.6); color: #fff; }
.scale-btn[aria-pressed="true"] { background: var(--accent-strong); border-color: #c4b5fd; color: #fff; box-shadow: 0 0 0 2px rgba(196, 181, 253, 0.35); }
@media (hover: hover) and (pointer: fine) { .chip-start:hover { background: rgba(124, 58, 237, 0.55); } }

.quiz-feedback { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14.5px; color: var(--ok); font-weight: 600; }
.quiz-feedback::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(134, 239, 172, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386efac' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.quiz-feedback.is-new { animation: feedback-in 240ms var(--ease-out); }
@keyframes feedback-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.quiz-actions { margin-top: 16px; }
.quiz-actions .btn-next { min-width: 140px; }
.quiz-budget-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.quiz-budget { margin-top: 12px; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(139, 92, 246, 0.5); background: var(--accent-soft); }
.quiz-budget strong { display: block; font-size: 15px; margin-bottom: 2px; }
.quiz-budget p { font-size: 14.5px; color: #dddcea; }
.quiz-review { margin-left: auto; }
@media (max-width: 480px) { .quiz-review { margin-left: 0; } }

/* ---------- Demos ---------- */
.case-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-fict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--team); }

/* Resumen de la reserva que se forma en vivo */
.res-card { padding: 16px; margin-bottom: 18px; border-radius: 12px; border: 1px solid rgba(139, 92, 246, 0.45); background: var(--bg); transition: border-color .3s ease; }
.res-card.is-pending { border-color: rgba(252, 211, 77, 0.5); }
.res-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.res-card-head h4 { font-size: 16px; margin: 0; }
.res-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-strong); }
.res-state.is-ready { color: var(--accent-text); border-color: rgba(139, 92, 246, 0.5); background: var(--accent-soft); }
.res-state.is-pending { color: var(--team); border-color: rgba(252, 211, 77, 0.45); background: rgba(252, 211, 77, 0.1); }
.res-state.is-pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--team); }
.res-state.is-updated { animation: fade-in 260ms ease; }
.res-card dl { margin: 0; display: grid; gap: 2px; }
.res-row { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 7px 10px; border-radius: 8px; font-size: 15px; }
.res-row dt { color: var(--faint); }
.res-row dd { margin: 0; color: var(--faint); font-style: italic; }
.res-row.is-set dd { color: var(--text); font-weight: 600; font-style: normal; }
.res-row::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(139, 92, 246, 0.22); opacity: 0; pointer-events: none; }
.res-row.is-updated::before { animation: row-flash 900ms ease-out; }
.res-row.is-updated dd { animation: value-in 260ms var(--ease-out); }
@keyframes row-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes value-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.behind-title { font-size: 16px; margin-bottom: 4px; }

/* Selector cliente / tatuador */
.view-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-strong); isolation: isolate;
}
.view-switch button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; transition: color .2s ease;
}
.view-switch button[aria-selected="true"] { color: #fff; }
.view-switch svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.view-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 10px; background: var(--accent-strong); box-shadow: 0 6px 20px -8px var(--accent-glow);
  transition: transform 280ms var(--ease-in-out);
}
.view-switch[data-active="artist"] .view-thumb { transform: translateX(100%); }
.view-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--team); box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.2); }
@media (max-width: 420px) { .view-switch button { font-size: 14px; gap: 6px; padding: 8px 6px; } }

.stage-screen.is-enter-fwd  { animation: step-in-fwd var(--dur-ui) var(--ease-out); }
.stage-screen.is-enter-back { animation: step-in-back var(--dur-ui) var(--ease-out); }
.tattoo-stage { overflow: hidden; }
.stage-step { font-size: 13.5px; color: var(--accent-text); font-weight: 600; margin-bottom: 4px; }
.stage-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.req-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.req-preview-k { width: 100%; font-size: 13.5px; color: var(--faint); }
.req-chip { padding: 4px 10px; border-radius: 8px; font-size: 13.5px; color: var(--faint); border: 1px dashed var(--line-strong); }
.req-chip.is-set { color: var(--text); border-style: solid; border-color: rgba(139, 92, 246, 0.5); background: var(--accent-soft); animation: fade-in 200ms ease; }
.inbox-empty { display: grid; justify-items: start; gap: 14px; padding: 22px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--surface); }
.inbox-empty p { color: var(--muted); }

/* ---------- Movimiento reducido: solo fundidos ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transition: opacity .3s ease; transform: none; }
  .js .hero-phone, .js .hero-phone .quiz { animation: none; }
  .js .msg, .js .timeline li, .js .help-panel:not([hidden]), .js .quiz-thanks { animation: fade-in .2s ease; }
  .is-picked, .res-row.is-updated dd { animation: none; }
  .view-thumb { transition: none; }
  .btn-arrow, .btn:active:not([disabled]) { transform: none !important; }
  .illus-flow, .typing span { animation: none; }
}

/* Móvil: los botones van justo después del texto; la lista de servicios, debajo. */
@media (max-width: 767px) {
  .hero .lead { margin-bottom: 0; }
  .hero-actions { order: 2; margin-top: 24px; }
  .hero-actions-note { order: 3; margin-bottom: 0; }
  .hero-offer { order: 4; margin: 24px 0 28px; }
  .founder { order: 5; }
}
@media (max-width: 400px) {
  .hero-actions .btn-lg { font-size: 16px; padding-inline: 18px; }
  .btn-hero { padding-inline: 20px 16px !important; gap: 8px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 17px; }
}

/* Botón «¿Dudas?»: se aparta en móvil cuando taparía el cuestionario o una demo */
.help-launcher { transition: border-color .2s ease, opacity 200ms ease, transform 200ms var(--ease-out), visibility 0s linear 0s; }
.help-launcher.is-tucked { opacity: 0; transform: translateY(12px) scale(0.96); pointer-events: none; visibility: hidden; transition: opacity 160ms ease, transform 160ms var(--ease-out), visibility 0s linear 160ms; }
@media (prefers-reduced-motion: reduce) { .help-launcher.is-tucked { transform: none; } }
