/* =========================================================================
   AUVRYX · v5 «escritorio luminoso»
   VOICE   cercano, rápido, con ganas de enseñarte cómo funciona
   IDEA    un escritorio: la portada es la mesa y cada demo es una ventana que se abre
   PICTURE el panel del asistente, una superficie clara que destaca sobre el grafito
   COLOUR  grafito + blanco; violeta eléctrico para actuar; cian para «algo está pasando»
   TYPE    Archivo Black grande para titulares; DM Sans para leer y usar
   Se carga la última y manda sobre styles.css, v3.css y app.css.
   ========================================================================= */
:root {
  --desk: #08080b;
  --win: #121217;              /* grafito de la app */
  --win-line: rgba(255, 255, 255, 0.1);
  --paper: #f7f5ff;            /* superficies iluminadas */
  --paper-2: #eeeaff;
  --paper-line: #dcd6f5;
  --ink: #17131f;
  --ink-2: #4f4a63;            /* texto secundario sobre claro (AA) */
  --cyan: #5ee7ff;             /* actividad */
  --cyan-ink: #0b7285;         /* cian legible sobre claro */
  --cyan-soft: rgba(94, 231, 255, 0.22);
  --violet: #7c3aed;
  --violet-hi: #8b5cf6;
}
html { scrollbar-gutter: stable; }
html.win-locked { overflow: hidden; }
body {
  background:
    radial-gradient(1000px 620px at 88% -12%, rgba(124, 58, 237, 0.3), transparent 60%),
    radial-gradient(800px 520px at -8% 112%, rgba(94, 231, 255, 0.1), transparent 60%),
    var(--desk);
}
.app { background: var(--win); }
.topbar { background: rgba(18, 18, 23, 0.86); }

/* Una sola entrada a «Dudas»: el icono de la barra (como el menú Ayuda de una app). */
.topbar-help { display: grid !important; }
.help-launcher { display: none !important; }
.help-panel { top: calc(var(--bar-h) + var(--win-gap) + 8px); bottom: auto !important; right: calc(var(--win-gap) + 12px); }
@media (max-width: 767px) { .help-panel { top: 62px; right: 8px; left: 8px; } }

/* ---------- Botón grande ---------- */
.btn-xl { min-height: 64px; padding: 0 30px 0 32px; font-size: 19px; border-radius: 999px; gap: 12px; }
.btn-xl .btn-arrow { width: 22px; height: 22px; }
.btn-primary { background: var(--violet); box-shadow: 0 16px 40px -14px rgba(124, 58, 237, 0.95), 0 1px 0 rgba(255, 255, 255, 0.2) inset; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--violet-hi); }
  .btn-xl:hover .btn-arrow { transform: translateX(4px); }
}

/* =========================================================================
   PORTADA — mensaje + demo compacta, juntos en el primer pantallazo
   ========================================================================= */
.view-home { max-width: 1440px; padding-top: clamp(14px, 2.2vw, 32px); padding-bottom: clamp(16px, 2vw, 28px); }
.desk {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(24px, 3.6vw, 64px); align-items: center;
  min-height: calc(100vh - var(--win-gap) * 2 - var(--bar-h) - 64px);
}
.desk-copy { container-type: inline-size; min-width: 0; }
.brand-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(14px, 2vw, 24px); }
.brand-lockup img { width: clamp(38px, 3.4vw, 52px); height: auto; filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.55)); }
.brand-lockup span { font-weight: 800; font-size: clamp(17px, 1.6vw, 23px); letter-spacing: 0.34em; }
/* Titular en tres líneas fijas: «estar pendiente» es la más larga (≈8,1 em) y siempre cabe en su columna. */
.desk-title {
  font-size: clamp(34px, 5vw, 76px); font-size: clamp(32px, 11.6cqi, 78px);
  line-height: 0.93; letter-spacing: -0.035em; color: #fff; margin-bottom: clamp(12px, 1.6vw, 20px); outline: none; max-width: none; text-wrap: initial;
}
.desk-title .hl { display: block; white-space: nowrap; }
.desk-line { font-size: clamp(16.5px, 1.4vw, 19.5px); color: #d9d6e8; max-width: 32ch; }
.desk-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: clamp(18px, 2.4vw, 28px) 0 10px; }
.desk-diag {
  display: inline-flex; align-items: center; gap: 9px; min-height: 64px; padding: 0 22px; border-radius: 999px; text-decoration: none;
  color: #fff; font-weight: 700; font-size: 16.5px; border: 1.5px solid rgba(196, 181, 253, 0.55); background: rgba(124, 58, 237, 0.12);
  transition: background-color .18s ease, border-color .18s ease, transform var(--dur-press) var(--ease-out);
}
.desk-diag svg { width: 20px; height: 20px; fill: none; stroke: #c4b5fd; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.desk-diag:active { transform: scale(0.97); }
.desk-diag:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .desk-diag:hover { background: rgba(124, 58, 237, 0.24); border-color: #c4b5fd; } }
.desk-note { font-size: 14px; color: var(--muted); margin-bottom: clamp(16px, 2vw, 24px); }
.desk-foot { display: none; }

/* Lanzadores: las otras dos demos, compactas */
.launchers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 540px; }
.launcher {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 12px 8px 8px; min-height: 64px;
  border-radius: 16px; border: 1px solid var(--win-line); background: rgba(255, 255, 255, 0.035); color: var(--text); text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform var(--dur-press) var(--ease-out), opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.launch-art { position: relative; height: 48px; border-radius: 10px; background: var(--paper); overflow: hidden; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9); }
.launch-txt { display: grid; gap: 1px; min-width: 0; }
.launch-txt strong { font-size: 15px; line-height: 1.25; }
.launch-txt small { font-size: 13px; color: var(--muted); line-height: 1.3; }
.launcher:active { transform: scale(0.97); }
.launcher:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .launcher:hover { border-color: rgba(94, 231, 255, 0.55); background: rgba(94, 231, 255, 0.06); }
  .launcher:hover .la-node { box-shadow: 0 0 0 4px var(--cyan-soft); }
  .launcher:hover .lw-btn { background: var(--violet-hi); }
}
.lw-bar { position: absolute; left: 0; right: 0; top: 0; height: 9px; background: #fff; border-bottom: 1px solid var(--paper-line); display: flex; gap: 3px; align-items: center; padding-left: 5px; }
.lw-bar i { width: 3px; height: 3px; border-radius: 50%; background: var(--paper-line); }
.lw-hero { position: absolute; left: 7px; top: 14px; width: 36px; height: 6px; border-radius: 3px; background: var(--ink); }
.lw-btn { position: absolute; left: 7px; top: 24px; width: 24px; height: 7px; border-radius: 4px; background: var(--violet); transition: background-color .2s ease; }
.lw-row { position: absolute; left: 7px; right: 7px; bottom: 5px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.lw-row i { height: 8px; border-radius: 2px; background: var(--paper-2); border: 1px solid var(--paper-line); }
.launch-auto { display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.la-node { flex: none; width: 11px; height: 11px; border-radius: 4px; background: var(--ink); transition: box-shadow .2s ease; }
.la-mid { background: var(--cyan); width: 15px; height: 15px; }
.la-end { background: var(--violet); }
.la-wire { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-2) 0 4px, transparent 4px 7px); }

/* ---------- Demo compacta (superficie iluminada) ---------- */
.desk-stage { position: relative; min-width: 0; }
.desk-stage::before {
  content: ""; position: absolute; inset: -6% -4% -8% 6%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.42), transparent 75%); filter: blur(10px);
}
.demo-panel {
  position: relative; z-index: 1; display: flex; flex-direction: column; max-width: 560px; margin-left: auto; border-radius: 24px; overflow: hidden;
  background: var(--paper); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 44px 100px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(124, 58, 237, 0.35), 0 0 0 7px rgba(255, 255, 255, 0.04);
  transition: opacity 120ms ease, box-shadow 220ms ease;
}
.demo-panel.is-lifted, .launcher.is-lifted, .svc3-try.is-lifted, .btn.is-lifted { opacity: 0; }
.dp-bar, .win-bar {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px 10px 16px;
  background: #fff; border-bottom: 1px solid var(--paper-line); color: var(--ink);
}
.dp-avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ea580c, #9a3412); }
.dp-who { display: grid; line-height: 1.2; min-width: 0; margin-right: auto; }
.dp-who strong { font-size: 15.5px; }
.dp-who small { font-size: 13px; color: var(--ink-2); }
.tag-demo {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--violet);
}
.tag-demo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(94, 231, 255, 0.35); }
.dp-expand {
  position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink);
  border: 1px solid var(--paper-line); background: #fff; transition: background-color .16s ease, border-color .16s ease, transform var(--dur-press) var(--ease-out);
}
.dp-expand svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dp-expand:active { transform: scale(0.94); }
.dp-expand:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dp-expand:hover { background: var(--paper-2); border-color: var(--violet-hi); } }
.dp-chat {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: clamp(150px, 22vh, 200px); padding: 16px 16px 12px; overflow: hidden;
  background: radial-gradient(rgba(23, 19, 31, 0.07) 1px, transparent 1px) 0 0 / 16px 16px, var(--paper-2);
}
.dp-msg { flex: none; max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 15.5px; line-height: 1.38; box-shadow: 0 6px 16px -12px rgba(23, 19, 31, 0.5); transition: opacity 240ms ease, transform 280ms var(--ease-out); }
.dp-in { align-self: flex-end; background: var(--violet); color: #fff; border-top-right-radius: 4px; }
.dp-bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--paper-line); border-top-left-radius: 4px; }
.dp-bot b { color: var(--violet); }
.dp-new { animation: msg-in 240ms var(--ease-out); }
.dp-typing, .as-typing { flex: none; align-self: flex-start; display: inline-flex; gap: 5px; padding: 11px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--paper-line); }
.dp-typing i, .as-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-ink); animation: blink 1s infinite; }
.dp-typing i:nth-child(2), .as-typing i:nth-child(2) { animation-delay: .15s; }
.dp-typing i:nth-child(3), .as-typing i:nth-child(3) { animation-delay: .3s; }
.dp-wait { opacity: 0; transform: translateY(8px); }
.dp-gone { display: none !important; }
/* Respuestas rápidas: dos horas de ejemplo */
.dp-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--paper-line); transition: opacity 240ms ease; }
.dp-quick-k { font-size: 13.5px; font-weight: 750; color: var(--ink-2); margin-right: 2px; }
.dp-quick button {
  min-height: 44px; min-width: 84px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-weight: 750; font-size: 16px;
  border: 1.5px solid var(--paper-line); background: #fff; color: var(--ink); font-variant-numeric: tabular-nums;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform var(--dur-press) var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.dp-quick button[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18); }
.dp-quick button:active { transform: scale(0.95); }
.dp-quick button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dp-quick button:not([aria-pressed="true"]):hover { border-color: var(--violet-hi); background: var(--paper-2); } }
/* Resumen: se actualiza al elegir */
.dp-sum { display: grid; grid-template-columns: 1fr 1fr 1.5fr; margin: 0; background: #fff; border-top: 1px solid var(--paper-line); }
.dp-sum > div { padding: 10px 16px; border-left: 1px solid var(--paper-2); }
.dp-sum > div:first-child { border-left: 0; }
.dp-sum dt { font-size: 12.5px; color: var(--ink-2); font-weight: 650; }
.dp-sum dd { margin: 0; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.dp-sum dd.is-empty { color: var(--ink-2); font-weight: 600; font-style: italic; }
.dp-sum dd.is-ready { color: var(--violet); }
.dp-sum dd.is-pending { color: #8a5a00; }
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; padding: 10px 12px 10px 16px; background: var(--ink); color: #fff; }
.dp-hint { font-size: 13.5px; color: #d9d6e8; min-width: 0; flex: 1 1 180px; }
.dp-open {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  background: #fff; color: var(--ink); font-weight: 750; font-size: 15px; transition: background-color .16s ease, transform var(--dur-press) var(--ease-out);
}
.dp-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-ui) var(--ease-out); }
.dp-open:active { transform: scale(0.97); }
.dp-open:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dp-open:hover { background: var(--paper-2); } .dp-open:hover svg { transform: translateX(3px); } }
/* Destello cian: «esto acaba de cambiar» */
.is-flash { animation: flash-cyan 900ms ease-out; }
@keyframes flash-cyan { 0% { background-color: rgba(94, 231, 255, 0.55); } 100% { background-color: transparent; } }
.dp-cta, .dp-body, .dp-sum-k, .dp-row { display: none; }

/* Ventana en transformación: el contenido ya está a su tamaño final y se revela al crecer el marco */
.win-frame.is-morphing { display: block; }
.win-frame.is-morphing > .win-bar { width: var(--win-w); }
.win-frame.is-morphing > .win-body { width: var(--win-w); height: var(--win-bh); flex: none; }
.win-ghost { position: absolute !important; left: 0; top: 0; z-index: 5; margin: 0 !important; max-width: none !important; pointer-events: none; transform: none !important; box-shadow: none !important; }

/* Tableta: dos columnas más apretadas */
@media (max-width: 1100px) {
  .launchers { grid-template-columns: 1fr 1fr; }
  .launch-txt small { display: none; }
}
@media (max-width: 1100px) and (min-width: 760px) {
  .desk { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .desk-cta .btn-xl, .desk-diag { min-height: 54px; font-size: 16px; padding: 0 18px; }
  .dp-who small { display: none; }
}
/* Móvil: mensaje, acciones y la demo compacta justo debajo */
@media (max-width: 759px) {
  .view-home { padding-top: 14px; }
  .desk { grid-template-columns: 1fr; min-height: 0; gap: 18px; }
  .brand-lockup { margin-bottom: 12px; }
  .desk-title { font-size: clamp(32px, 11.6cqi, 48px); }
  .desk-line { font-size: 16.5px; }
  .desk-cta { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; margin: 16px 0 6px; }
  .desk-cta .btn-xl { min-height: 54px; font-size: 16.5px; padding: 0 14px; gap: 8px; }
  .desk-cta .btn-xl .btn-arrow { width: 18px; height: 18px; }
  .desk-diag { min-height: 54px; justify-content: center; font-size: 15.5px; padding: 0 10px; }
  .desk-diag svg { display: none; }
  .desk-note { margin-bottom: 0; }
  .desk-copy { display: contents; }
  .brand-lockup, .desk-title, .desk-line, .desk-cta, .desk-note { order: 0; }
  .desk-stage { order: 1; }
  .launchers { order: 2; grid-template-columns: 1fr; max-width: none; }
  .demo-panel { max-width: none; border-radius: 20px; }
  .dp-who small { display: none; }
  .dp-chat { height: 158px; padding: 12px; }
  .dp-quick { padding: 10px 12px; }
  .dp-quick button { flex: 1 1 0; min-width: 0; }
  .dp-quick-k { flex-basis: 100%; }
  .dp-sum > div { padding: 8px 12px; }
  .dp-foot { padding: 10px 12px; }
  .dp-open { flex: 1 1 auto; justify-content: center; }
}


/* =========================================================================
   VENTANAS
   ========================================================================= */
.win {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--ink); overflow: hidden;
}
.win::backdrop { background: rgba(6, 5, 12, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity 260ms ease; }
.win.is-open::backdrop { opacity: 1; }
.win.is-closing::backdrop { opacity: 0; transition-duration: 200ms; }
.win-frame {
  position: fixed; top: max(24px, 5vh); bottom: max(24px, 5vh); left: max(24px, calc(50vw - 580px)); right: max(24px, calc(50vw - 580px));
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--paper);
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(124, 58, 237, 0.45), 0 0 90px -30px rgba(94, 231, 255, 0.35);
}
.win-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.win-back { display: none; }
.win-x, .win-tool {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--paper-line); background: #fff; color: var(--ink); font-weight: 650; font-size: 14.5px; cursor: pointer; position: relative;
  transition: background-color .18s ease, border-color .18s ease, transform var(--dur-press) var(--ease-out);
}
.win-x { width: 40px; padding: 0; }
.win-tool.icon-only { width: 40px; padding: 0; }
.win-x svg, .win-tool svg, .win-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.win-x:active, .win-tool:active, .win-back:active { transform: scale(0.95); }
.win-tool:disabled { opacity: 0.4; cursor: not-allowed; }
.win-x:focus-visible, .win-tool:focus-visible, .win-back:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .win-x:hover, .win-tool:not(:disabled):hover { background: var(--paper-2); border-color: var(--violet-hi); } }
.win [data-tip]::after { top: auto; bottom: calc(100% + 8px); }
.win-bar [data-tip]::after { top: calc(100% + 8px); bottom: auto; }
.win-title { font-weight: 800; font-size: 16px; margin-right: auto; }

/* ---------- Asistente ---------- */
.as-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); overflow: hidden; }
.as-chat { display: flex; flex-direction: column; min-height: 0; }
.as-log {
  flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 22px;
  background: radial-gradient(rgba(23, 19, 31, 0.07) 1px, transparent 1px) 0 0 / 16px 16px, var(--paper-2);
}
.as-date { align-self: center; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--paper-line); padding: 3px 12px; border-radius: 8px; }
.as-msg { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 16px; line-height: 1.42; animation: msg-in 240ms var(--ease-out); }
.as-msg time { display: block; text-align: right; font-size: 11.5px; margin-top: 2px; opacity: 0.7; }
.as-in { align-self: flex-end; background: var(--violet); color: #fff; border-top-right-radius: 4px; }
.as-bot { align-self: flex-start; background: #fff; border: 1px solid var(--paper-line); border-top-left-radius: 4px; }
.as-controls { display: grid; grid-template-columns: 1fr auto; gap: 14px 18px; align-items: end; padding: 16px 20px 18px; background: #fff; border-top: 1px solid var(--paper-line); }
.as-field { display: grid; gap: 8px; }
.as-label { font-size: 13.5px; font-weight: 750; color: var(--ink-2); }
.as-times { display: flex; flex-wrap: wrap; gap: 8px; }
.as-times button, .auto-cases button, .site-chips button {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 15.5px;
  border: 1.5px solid var(--paper-line); background: #fff; color: var(--ink);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform var(--dur-press) var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.as-times button[aria-pressed="true"], .auto-cases button[aria-pressed="true"], .site-chips button[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18); }
.as-times button:active, .auto-cases button:active, .site-chips button:active, .stepper button:active { transform: scale(0.95); }
.as-times button:disabled { opacity: 0.45; cursor: not-allowed; }
.as-times button:focus-visible, .auto-cases button:focus-visible, .site-chips button:focus-visible, .stepper button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .as-times button:not([aria-pressed="true"]):not(:disabled):hover, .auto-cases button:not([aria-pressed="true"]):hover, .site-chips button:not([aria-pressed="true"]):hover { border-color: var(--violet-hi); background: var(--paper-2); }
}
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; border: 1.5px solid var(--paper-line); background: #fff; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink); font-size: 22px; font-weight: 700; cursor: pointer; line-height: 1; transition: background-color .16s ease, transform var(--dur-press) var(--ease-out); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .stepper button:not(:disabled):hover { background: var(--paper-line); } }
.stepper output { min-width: 34px; text-align: center; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.as-confirm { grid-column: 1 / -1; justify-self: start; min-height: 50px; padding: 0 24px; }
.as-confirm:disabled { opacity: 0.45; box-shadow: none; }
.as-hint { grid-column: 1 / -1; margin-top: -6px; font-size: 14px; color: var(--ink-2); }
.as-summary { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: #fff; border-left: 1px solid var(--paper-line); overflow-y: auto; }
.as-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.as-sum-head h2 { font-size: 18px; color: var(--ink); }
.as-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 750; color: var(--ink-2); background: var(--paper-2); }
.as-state.is-ready { color: #fff; background: var(--violet); }
.as-state.is-pending { color: #5c3d00; background: #fde68a; }
.as-state.is-pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b45309; }
.as-rows { margin: 0; display: grid; }
.as-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 10px; margin: 0 -10px; border-radius: 10px; border-bottom: 1px solid var(--paper-2); font-size: 16px; }
.as-rows dt { color: var(--ink-2); }
.as-rows dd { margin: 0; font-weight: 750; color: var(--ink-2); font-style: italic; }
.as-rows > div.is-set dd, .as-rows > div[data-as-row="day"] dd, .as-rows > div[data-as-row="channel"] dd, .as-rows > div[data-as-row="people"] dd { color: var(--ink); font-style: normal; }
.as-done { padding: 16px; border-radius: 16px; background: #ecfeff; border: 1.5px solid #67e8f9; outline: none; }
.as-done:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.as-done-k { font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.as-done ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; color: var(--ink); }
.as-done-team { font-size: 14px; color: var(--ink-2); }

/* ---------- Web de muestra ---------- */
.web-nav-btns { display: inline-flex; gap: 6px; }
.web-url {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px;
  background: var(--paper-2); color: var(--ink-2); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.web-url svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.web-site { display: flex; flex-direction: column; background: #fff; }
.site-tabs { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 12px 22px; background: #fff; border-bottom: 1px solid var(--paper-line); flex-wrap: wrap; }
.site-logo { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; margin-right: auto; }
.site-tabs button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color .16s ease, color .16s ease; }
.site-tabs button[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.site-tabs .site-tabs-cta { background: var(--ink); color: #fff; }
.site-tabs .site-tabs-cta[aria-current="page"] { background: var(--violet); color: #fff; }
.site-tabs button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .site-tabs button:not(.site-tabs-cta):hover { background: var(--paper-2); color: var(--ink); } }
.site-page { padding: 28px clamp(20px, 4vw, 48px) 36px; outline: none; display: grid; gap: 16px; align-content: start; }
.site-page.is-enter { animation: step-in-fwd var(--dur-ui) var(--ease-out); }
.site-hero { display: grid; gap: 14px; padding: 28px; border-radius: 20px; background: linear-gradient(135deg, #1c1530, #3b1d78); color: #fff; }
.site-kicker { font-weight: 700; color: #c4b5fd; }
.site-h { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 0.98; letter-spacing: -0.03em; max-width: 14ch; }
.site-h-s { font-size: clamp(26px, 3vw, 38px); color: var(--ink); }
.site-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-btn {
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--violet); color: #fff; font-weight: 750; font-size: 15.5px; cursor: pointer; justify-self: start;
  transition: background-color .16s ease, transform var(--dur-press) var(--ease-out); position: relative;
}
.site-btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.site-hero .site-btn-ghost { color: #fff; }
.site-page > .site-btn-ghost { color: var(--ink); }
.site-btn:active { transform: scale(0.97); }
.site-btn:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .site-btn:not(.site-btn-ghost):hover { background: var(--violet-hi); } }
.site-sub { font-weight: 750; color: var(--ink); }
.site-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.site-artist { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; text-align: left; padding: 10px; border-radius: 14px; border: 1px solid var(--paper-line); background: #fff; cursor: pointer; color: var(--ink); transition: border-color .16s ease, transform var(--dur-press) var(--ease-out); }
.site-artist strong { display: block; }
.site-artist small { color: var(--ink-2); }
.site-artist:active { transform: scale(0.97); }
.site-artist:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .site-artist:hover { border-color: var(--violet-hi); } }
.site-art { display: block; aspect-ratio: 1; border-radius: 10px; background: var(--paper-2); }
.site-art svg { width: 100%; height: 100%; }
.site-art-s { width: 48px; flex: none; }
.site-info { font-size: 14.5px; color: var(--ink-2); }
.site-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.site-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.site-work { margin: 0; display: grid; gap: 6px; }
.site-work figcaption { font-size: 13.5px; color: var(--ink-2); }
.site-field { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-field legend { font-weight: 750; margin-bottom: 8px; padding: 0; color: var(--ink); }
.site-progress-wrap { display: flex; align-items: center; gap: 12px; }
.site-bar { flex: 1; max-width: 260px; height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.site-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); transform-origin: left; transform: scaleX(0); transition: transform 320ms var(--ease-out); }
.site-progress { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.site-ref { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--paper-line); color: var(--ink-2); font-size: 14.5px; }
.site-err { color: #b91c1c; font-weight: 650; }
.site-ok { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: #ecfdf5; border: 1.5px solid #6ee7b7; color: #065f46; }
.site-ok strong { font-size: 18px; }
.site-inbox { margin: 0; display: grid; border-radius: 16px; border: 1px solid var(--paper-line); overflow: hidden; }
.site-inbox > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--paper-2); }
.site-inbox > div:last-child { border-bottom: 0; }
.site-inbox dt { color: var(--ink-2); }
.site-inbox dd { margin: 0; font-weight: 750; color: var(--ink); }
.site-note { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Automatización ---------- */
.auto { display: flex; flex-direction: column; gap: 20px; padding: 24px clamp(18px, 3vw, 32px) 28px; background: #fff; }
.auto-pick { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; }
.auto-pick .as-label { flex-basis: 100%; }
.auto-cases { display: flex; flex-wrap: wrap; gap: 8px; }
.auto-run { min-height: 48px; padding: 0 22px; }
.auto-run svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.auto-run:disabled { opacity: 0.6; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.pipe-col { position: relative; display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 18px; background: var(--paper); border: 1.5px solid var(--paper-line); margin: 0 14px; transition: border-color .3s ease, box-shadow .3s ease, opacity .3s ease; opacity: 0.6; }
.pipe-col:first-child { margin-left: 0; }
.pipe-col:last-child { margin-right: 0; }
.pipe-col:not(:last-child)::after {
  content: ""; position: absolute; right: -16px; top: 50%; width: 18px; height: 2px; background: var(--paper-line);
}
.pipe-k { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.pipe-card { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--paper-line); color: var(--ink); }
.pipe-card small { font-size: 13px; color: var(--ink-2); font-weight: 650; }
.pipe-card p { margin-top: 4px; font-size: 15.5px; }
.pipe-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pipe-steps li { position: relative; padding: 9px 10px 9px 34px; border-radius: 10px; background: #fff; border: 1px solid var(--paper-line); font-size: 14.5px; color: var(--ink-2); transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.pipe-steps li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid var(--paper-line); background: #fff; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pipe-steps li.is-on { color: var(--ink); border-color: #67e8f9; background: #ecfeff; }
.pipe-steps li.is-on::before { border-color: var(--cyan-ink); background: var(--cyan); box-shadow: 0 0 0 5px var(--cyan-soft); }
.pipe-steps li.is-done { color: var(--ink); }
.pipe-steps li.is-done::before { border-color: #059669; background: #059669 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
.pipe-out-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.pipe-state { font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #fde68a; color: #5c3d00; }
.pipe-card dl { margin: 0; display: grid; }
.pipe-card dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--paper-2); font-size: 14.5px; }
.pipe-card dt { color: var(--ink-2); }
.pipe-card dd { margin: 0; font-weight: 750; text-align: right; }
.pipe[data-stage="1"] .pipe-in, .pipe[data-stage="2"] .pipe-in, .pipe[data-stage="3"] .pipe-in { opacity: 1; }
.pipe[data-stage="1"] .pipe-in { border-color: #67e8f9; box-shadow: 0 0 0 5px var(--cyan-soft); }
.pipe[data-stage="2"] .pipe-proc { opacity: 1; border-color: #67e8f9; box-shadow: 0 0 0 5px var(--cyan-soft); }
.pipe[data-stage="3"] .pipe-proc { opacity: 1; }
.pipe[data-stage="3"] .pipe-out { opacity: 1; border-color: var(--violet-hi); box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.16); }
.pipe[data-stage="3"] .pipe-out .pipe-card { animation: sc-up 280ms var(--ease-out); }
.pipe[data-stage="2"] .pipe-col:first-child::after, .pipe[data-stage="3"] .pipe-col::after { background: var(--cyan-ink); }
.auto-status { font-weight: 700; color: var(--ink); min-height: 1.6em; }

/* =========================================================================
   OTRAS SECCIONES
   ========================================================================= */
.svc3 { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line-strong); }
.svc3-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; padding: clamp(18px, 2.4vw, 28px) 4px; border-bottom: 1px solid var(--line-strong); }
.svc3-name { font-family: var(--display); font-size: clamp(36px, 5vw, 76px); line-height: 0.95; letter-spacing: -0.04em; }
.svc3-item p { color: #d9d6e8; font-size: 17.5px; max-width: 34ch; }
.svc3-try {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 999px; white-space: nowrap;
  background: var(--paper); color: var(--ink); font-weight: 750; text-decoration: none;
  transition: background-color .18s ease, box-shadow .18s ease, transform var(--dur-press) var(--ease-out), opacity .12s ease;
}
.svc3-try::after { content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='3'/%3E%3Cpath d='M4 9h16'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='3'/%3E%3Cpath d='M4 9h16'/%3E%3C/svg%3E") center / contain no-repeat; }
.svc3-try:active { transform: scale(0.97); }
.svc3-try:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .svc3-try:hover { box-shadow: 0 0 0 3px var(--cyan), 0 12px 30px -12px rgba(94, 231, 255, 0.6); } }
.steps3 li { display: grid; gap: 8px; align-content: start; }
.steps3 strong { font-size: 21px; color: #fff; }
.steps3 p { font-size: 17px; color: #d9d6e8; max-width: 28ch; }

/* =========================================================================
   MÓVIL
   ========================================================================= */
.tabbar { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 767px) {
  /* Ventanas a pantalla completa con «Volver» siempre visible */
  .win-frame { top: 0; bottom: 0; left: 0; right: 0; border-radius: 0; box-shadow: none; }
  .win-back {
    display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 14px 0 10px; border-radius: 12px;
    border: 0; background: var(--ink); color: #fff; font-weight: 750; font-size: 15px; cursor: pointer;
  }
  .win-x { display: none; }
  .win-bar { gap: 8px; padding: 8px 10px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .win-bar .tag-demo { font-size: 12px; padding: 4px 9px; }
  .win-bar .dp-avatar { display: none; }
  .win-tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .win-tool { width: 44px; height: 44px; padding: 0; }
  #win-asistente .tag-demo { max-width: 92px; white-space: normal; line-height: 1.15; }
  .as-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .as-summary { order: -1; border-left: 0; border-bottom: 1px solid var(--paper-line); padding: 10px 14px; gap: 8px; max-height: 44vh; }
  .as-sum-head h2 { font-size: 15px; }
  .as-rows { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .as-rows > div { flex-direction: column; gap: 0; margin: 0; padding: 4px; border: 0; font-size: 13px; }
  .as-rows dd { font-size: 15px; }
  .as-log { padding: 14px; }
  .as-controls { grid-template-columns: 1fr; gap: 12px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); }
  .as-confirm { justify-self: stretch; }
  .as-times button { flex: 1 1 calc(25% - 8px); padding: 8px 6px; }
  .web-url { display: none; }
  .web-nav-btns { margin-right: auto; }
  .site-tabs { padding: 8px 12px; overflow-x: auto; flex-wrap: nowrap; }
  .site-logo { display: none; }
  .site-tabs button { flex: none; }
  .site-strip { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr; gap: 12px; }
  .pipe-col { margin: 0 !important; }
  .pipe-col:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -13px; width: 2px; height: 12px; }
  .auto-run { flex: 1 1 100%; }
  .svc3-item { grid-template-columns: 1fr; }
  .svc3-try { justify-self: start; }
}

/* =========================================================================
   MOVIMIENTO REDUCIDO
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .demo-panel, .launcher { transition: opacity .12s ease; }
  .demo-panel:hover { transform: none; }
  .dp-wait { transform: none; }
  .as-msg, .site-page.is-enter, .pipe[data-stage="3"] .pipe-out .pipe-card { animation: fade-in 160ms ease; }
  .is-flash { animation: none; }
  .dp-typing i, .as-typing i { animation: none; }
  .site-bar i { transition: none; }
}
@media (max-width: 767px) { .win-bar .dp-who small { display: none; } .win-bar .dp-who strong { font-size: 15px; } }
@media (max-width: 767px) {
  html { scrollbar-gutter: auto; }
  .win-title { flex: 1; min-width: 0; font-size: 15px; line-height: 1.2; }
  .win-bar .tag-demo { flex-shrink: 1; min-width: 0; max-width: 96px; white-space: normal; line-height: 1.15; }
}

/* =========================================================================
   APERTURA — un ordenador visto de frente
   Se ve desde el primer pintado (la clase boot-run la pone el script del <head>).
   ========================================================================= */
.boot { display: none; }
html.boot-run .boot {
  display: block; position: fixed; inset: 0; z-index: 90; background: #030305;
  /* Por seguridad: si algo falla, el escritorio desaparece solo. */
  animation: boot-safety 0s linear 3s forwards;
}
@keyframes boot-safety { to { visibility: hidden; opacity: 0; } }
/* La pantalla: marco fino y escritorio oscuro con un brillo violeta y cian */
.boot-screen {
  position: absolute; inset: 14px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 6px #0b0b0f, 0 0 0 7px rgba(255, 255, 255, 0.06), 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(124, 58, 237, 0.42), transparent 62%),
    radial-gradient(700px 480px at 12% 100%, rgba(94, 231, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #14121d, #0a0a0f);
  transform-origin: 50% 50%;
}
.boot-menubar {
  position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, 0.82); letter-spacing: 0.04em;
}
.boot-mb-logo { width: 12px; height: 11px; background: url("../assets/logo-mark.png") center / contain no-repeat; opacity: 0.85; }
.boot-clock { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
/* El icono de la app: la «A» original de AUVRYX con su nombre debajo */
.boot-icon { position: absolute; left: 50%; top: 46%; display: grid; justify-items: center; gap: 8px; transform: translate(-50%, -50%); }
.boot-icon-tile {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 24px;
  background: linear-gradient(160deg, #241c3d, #0f0d17); border: 1px solid rgba(196, 181, 253, 0.35);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: box-shadow 160ms ease;
}
.boot-icon-tile img { width: 56px; height: auto; }
.boot-icon-name { padding: 2px 8px; border-radius: 6px; font-size: 13.5px; font-weight: 700; color: #fff; letter-spacing: 0.06em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.boot-icon.is-pressed .boot-icon-tile { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.9), 0 0 34px -2px rgba(139, 92, 246, 0.8); }
.boot-icon.is-pressed .boot-icon-name { background: var(--violet); }
.boot-cursor { position: fixed; left: 0; top: 0; z-index: 99; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); transform-origin: 4px 2px; }
.boot-tap { position: fixed; left: 0; top: 0; z-index: 99; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); border: 2px solid rgba(255, 255, 255, 0.85); opacity: 0; pointer-events: none; }
/* La portada real es la ventana: está cargada desde el inicio y se abre desde el icono. */
html.boot-run .app { opacity: 0; position: relative; z-index: 95; pointer-events: none; will-change: transform; }
html.boot-run .tabbar { opacity: 0; }
html.boot-done .tabbar { transition: opacity 200ms ease; }
@media (max-width: 767px) {
  .boot-screen { inset: 8px; border-radius: 26px; }
  .boot-menubar { height: 26px; font-size: 11.5px; }
  .boot-icon-tile { width: 80px; height: 80px; border-radius: 21px; }
  .boot-icon-tile img { width: 48px; }
}
@media (prefers-reduced-motion: reduce) { .boot { display: none !important; } }
html:not(.boot-run) .boot-cursor, html:not(.boot-run) .boot-tap { display: none; }

/* Servicios: el nombre grande va en su propia fila, encima del texto, para que nunca se monte sobre él */
.svc3-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "text try"; align-items: end; gap: 10px 28px; }
.svc3-name { grid-area: name; overflow-wrap: anywhere; }
.svc3-item p { grid-area: text; }
.svc3-try { grid-area: try; }
@media (max-width: 767px) {
  .svc3-item { grid-template-columns: 1fr; grid-template-areas: "name" "text" "try"; }
}
/* Pie de la portada: el símbolo de AUVRYX en lugar de una inicial */
.desk-foot-logo { width: 26px; height: auto; flex: none; opacity: 0.9; }

/* Foco visible solo con teclado en elementos que reciben el foco por programa (títulos, paneles) */
html:not(.kbd) [tabindex="-1"]:focus, html:not(.kbd) [tabindex="-1"]:focus-visible { outline: none !important; box-shadow: none; }
html.kbd .desk-title:focus, html.kbd .view-head h1:focus, html.kbd .contact-hero h1:focus { outline: 2px solid var(--accent-text); outline-offset: 6px; border-radius: 6px; }
.topbar-cta { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 768px) { .topnav a { padding: 7px 10px; } .topbar { gap: 10px; } }

/* =========================================================================
   RESULTADO DE NORA — problema, propuesta y una acción clara
   ========================================================================= */
.res-h { margin-bottom: 10px; }
.res-told { display: grid; gap: 8px; margin-bottom: 14px; }
.res-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.res-chips li { padding: 6px 12px; border-radius: 999px; background: rgba(124, 58, 237, 0.2); border: 1px solid rgba(196, 181, 253, 0.45); color: #fff; font-size: 14.5px; font-weight: 600; }
.res-quote { color: #e4e1f1; font-size: 15.5px; }
.res-meta { color: var(--muted); font-size: 14px; }
.res-prop { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px rgba(196, 181, 253, 0.5), 0 18px 40px -20px rgba(0, 0, 0, 0.9); }
.res-prop-k { font-size: 13px; font-weight: 800; color: var(--violet); }
.res-prop-t { font-size: 18px; line-height: 1.25; }
.res-prop p:not(.res-prop-k) { font-size: 15.5px; color: var(--ink-2); }
.res-prop-demo { justify-self: start; color: var(--violet); font-weight: 750; text-underline-offset: 4px; }
.res-prop-demo:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
.btn-wa-big { width: 100%; min-height: 56px; font-size: 17px; }
.btn-wa-big svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quiz-actions-result { margin-top: 16px; }
.res-edit { margin-top: 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.res-edit summary { cursor: pointer; padding: 11px 14px; font-weight: 650; font-size: 14.5px; color: var(--accent-text); border-radius: 12px; }
.res-edit summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.res-edit[open] summary { border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.res-edit-l { display: block; padding: 10px 14px 6px; font-size: 13.5px; color: var(--muted); }
.res-msg { margin: 0 14px 14px; width: calc(100% - 28px); font-size: 15px; line-height: 1.5; }
.res-secondary { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; }
.res-link { padding: 8px 0; min-height: 40px; background: none; border: 0; color: var(--accent-text); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.res-link:hover { color: #fff; }
.res-link:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }
.quiz-budget { margin-top: 12px; padding: 12px 14px; font-size: 14px; color: #dddbe9; }
@media (max-width: 1100px) and (min-width: 760px) {
  .launcher { grid-template-columns: 44px minmax(0, 1fr); gap: 9px; padding: 8px 10px 8px 8px; }
  .launch-art { height: 40px; }
  .launch-txt strong { font-size: 14.5px; }
}
/* Móvil: más espacio para la demo en el primer pantallazo */
@media (max-width: 759px) {
  .view-home .brand-lockup { display: none; }
  .desk-cta { grid-template-columns: 1fr 1fr; }
  .desk-cta .btn-xl { font-size: 16px; padding: 0 12px; }
  .desk-cta .btn-xl .btn-arrow { display: none; }
  .desk-diag { font-size: 14.5px; padding: 0 8px; white-space: nowrap; }
  .dp-chat { height: 128px; }
  .desk-note { font-size: 13.5px; }
}
@media (max-width: 380px) {
  .desk-cta .btn-xl { font-size: 15px; padding: 0 8px; min-height: 50px; }
  .desk-diag { font-size: 14px; padding: 0 6px; min-height: 50px; }
  .dp-quick-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dp-chat { height: 116px; }
}
/* Móvil: el titular se ajusta al ancho real disponible («estar pendiente» ≈ 8,1 em) */
@media (max-width: 759px) { .desk-title { font-size: min(48px, calc((100vw - 34px) / 8.3)); } }
.res-secondary .res-link, .res-secondary button.res-link { color: var(--accent-text); }
.res-secondary .res-link:hover { color: #fff; }
