/* SERVICE 360 — MSOFT GUIDE: asistente, tutoriales con spotlight y onboarding (solo tokens del tema, claro y oscuro) */

/* Botón flotante discreto */
.gd-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 0; height: 42px; padding: 0 4px;
  border: 1px solid var(--green-ring); border-radius: 999px; background: var(--card); color: var(--text); box-shadow: var(--shadow-lg);
  cursor: pointer; font: inherit; font-weight: 700; transition: gap .2s ease, padding .2s ease; }
.gd-fab__q { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad-btn); color: var(--green-ink); font-size: 17px; font-weight: 800; }
.gd-fab__t { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 13px; transition: max-width .2s ease; }
.gd-fab:hover, .gd-fab:focus-visible { gap: 8px; padding-right: 14px; }
.gd-fab:hover .gd-fab__t, .gd-fab:focus-visible .gd-fab__t { max-width: 80px; }
@media (max-width: 760px) { .gd-fab { bottom: 12px; right: 12px; } }
@media print { .gd-fab, .gd-layer, .gd-nudge, .gd-welcome { display: none !important; } }

/* Panel lateral */
.gd { display: flex; flex-direction: column; gap: 10px; }
.gd__tabs { align-self: flex-start; }
.gd__box { display: flex; flex-direction: column; gap: 10px; }
.gd-crumb { margin: 0; font-size: 12px; color: var(--muted); }
.gd-crumb b { color: var(--text); }
.gd-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.gd-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px; font-size: 15px; }
.gd-card h3 small { font-size: 12px; font-weight: 600; color: var(--muted); }
.gd-card h4 { margin: 12px 0 6px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.gd-card p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.gd-card--answer { position: relative; border-color: var(--green-ring); background: linear-gradient(180deg, var(--green-light), var(--card) 70%); }
.gd-kind { display: inline-block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green-darker); }
.gd-steps { margin: 0; padding: 0; list-style: none; counter-reset: gd; display: grid; gap: 6px; }
.gd-steps li { position: relative; padding-left: 30px; font-size: 13.5px; line-height: 1.45; counter-increment: gd; }
.gd-steps li::before { content: counter(gd); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%;
  background: var(--green-light); color: var(--green-darker); font-size: 11.5px; font-weight: 800; }
.gd-acts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.gd-list { display: grid; gap: 4px; }
.gd-list h4 { margin: 6px 2px 2px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.gd-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.gd-row:hover { border-color: var(--green-ring); background: var(--green-light); }
.gd-row > span:nth-child(2) { flex: 1; display: grid; min-width: 0; }
.gd-row b { font-size: 13.5px; }
.gd-row small { font-size: 12px; color: var(--muted); }
.gd-row__ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--green-light); color: var(--green-darker); }
.gd-ok, .gd-mid { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--green-darker); white-space: nowrap; }
.gd-mid { color: var(--warn); }
.gd-faq { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.gd-faq summary { padding: 10px 12px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.gd-faq > div { padding: 0 12px 12px; }
.gd-answer p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; }
.gd-news { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--green-ring); background: var(--green-light); }
.gd-news > svg { flex: none; color: var(--green-darker); }
.gd-news > div { flex: 1; display: grid; }
.gd-news span { font-size: 12.5px; color: var(--muted); }
.gd-empty { display: grid; justify-items: center; gap: 6px; padding: 24px 12px; text-align: center; color: var(--muted); }
.gd-empty > svg { color: var(--green-darker); }
.gd-empty b { color: var(--text); }
.gd-note { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); }
.gd-ask { display: flex; gap: 4px; }
.gd-ask__in { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--muted); }
.gd-ask__in:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-ring); }
.gd-ask__in input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); }
.gd-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.gd-chips button { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.gd-chips button:hover { border-color: var(--green); color: var(--green-darker); }
.gd-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--green-light); border: 1px solid var(--green-ring); }
.gd-hero > div { flex: 1 1 200px; display: grid; }
.gd-hero span { font-size: 12.5px; color: var(--muted); }
.gd-progress { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.gd-progress > div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.gd-progress > i { height: 8px; border-radius: 8px; background: var(--card-2); overflow: hidden; }
.gd-progress > i em { display: block; height: 100%; border-radius: 8px; background: var(--grad-bar); }
.gd-check { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gd-check button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.gd-check li.is-done button { border-color: var(--green-ring); background: var(--green-light); color: var(--green-darker); font-weight: 700; }
.gd-quick { display: grid; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.gd-quick li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--card-2); }
.gd-quick li > i { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); }
.gd-quick li.is-done > i { border-color: var(--green); background: var(--green); color: var(--green-ink); }
.gd-quick li > div { flex: 1; display: grid; min-width: 0; }
.gd-quick b { font-size: 13.5px; }
.gd-quick li.is-done b { color: var(--muted); text-decoration: line-through; }
.gd-quick span { font-size: 12px; color: var(--muted); }
.gd-novedad { display: grid; gap: 2px; padding: 10px 12px; border-left: 3px solid var(--green); border-radius: 8px; background: var(--card-2); }
.gd-novedad small { font-size: 11px; color: var(--faint); }
.gd-novedad b { font-size: 13.5px; }
.gd-novedad span { font-size: 12.5px; color: var(--muted); }
.gd-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gd-flow { display: grid; margin: 0; padding: 0; list-style: none; }
.gd-flow li { position: relative; display: flex; gap: 12px; padding: 0 0 16px; }
.gd-flow li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px; width: 2px; background: var(--green-ring); }
.gd-flow li > i { position: relative; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--green); color: var(--green-ink); font-style: normal; font-size: 12.5px; font-weight: 800; }
.gd-flow li > div { flex: 1; display: grid; gap: 3px; padding-top: 3px; min-width: 0; }
.gd-flow b { font-size: 14px; }
.gd-flow span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.gd-flow .btn { justify-self: start; margin-top: 4px; }

/* Tutorial: spotlight y tarjeta */
.gd-layer { position: fixed; inset: 0; z-index: 400; }
.gd-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(5, 12, 18, .62), 0 0 0 3px var(--green); pointer-events: none;
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; }
.gd-tip { position: fixed; z-index: 401; display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--card); color: var(--text);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: gd-in .2s ease; }
.gd-tip.is-center { left: 50%; top: 50%; width: min(400px, calc(100vw - 24px)); transform: translate(-50%, -50%); animation: none; }
.gd-tip.is-sheet { left: 8px; right: 8px; bottom: 8px; top: auto; }
@keyframes gd-in { from { opacity: 0; transform: translateY(6px); } }
.gd-tip__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gd-tip__top small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green-darker); }
.gd-x { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.gd-x:hover { background: var(--hover); }
.gd-tip__bar { display: block; height: 4px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.gd-tip__bar em { display: block; height: 100%; background: var(--grad-bar); transition: width .25s ease; }
.gd-tip b { font-size: 15px; }
.gd-tip p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.gd-tip__miss, .gd-tip__demo { display: flex; align-items: center; gap: 6px; font-size: 12.5px !important; color: var(--muted); }
.gd-tip__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.gd-tip__nav > span { display: flex; gap: 4px; }
.gd-never { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.gd-never input { accent-color: var(--green); }

/* Avisos discretos (inactividad, primera vez, siguiente del recorrido) */
.gd-nudge { position: fixed; right: 18px; bottom: 72px; z-index: 61; display: grid; gap: 6px; width: min(320px, calc(100vw - 24px)); padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--green-ring); background: var(--card); box-shadow: var(--shadow-lg); animation: gd-in .25s ease; }
.gd-nudge b { font-size: 14px; }
.gd-nudge span { font-size: 12.5px; color: var(--muted); }
.gd-nudge > div { display: flex; gap: 4px; margin-top: 2px; }
@media (max-width: 760px) { .gd-nudge { right: 12px; bottom: 62px; } }

/* Bienvenida y elección de modo */
.gd-welcome { position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; padding: 16px; background: var(--overlay); backdrop-filter: blur(3px); }
.gd-welcome__card { width: min(620px, 100%); max-height: 100%; overflow: auto; padding: 24px 24px 20px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-lg);
  text-align: center; animation: gd-in .25s ease; }
.gd-welcome__ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--grad-btn); color: var(--green-ink); }
.gd-welcome h2 { margin: 12px 0 4px; font-size: 22px; letter-spacing: -.02em; }
.gd-welcome p { margin: 0 0 16px; color: var(--muted); }
.gd-welcome__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
@media (max-width: 560px) { .gd-welcome__opts { grid-template-columns: 1fr; } }
.gd-welcome__opts button { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.gd-welcome__opts button:hover { border-color: var(--green); background: var(--green-light); }
.gd-welcome__opts button > svg { grid-row: span 2; color: var(--green-darker); justify-self: center; }
.gd-welcome__opts b { font-size: 14px; }
.gd-welcome__opts span { font-size: 12.5px; color: var(--muted); }
.gd-welcome__opts button:first-child { border-color: var(--green); background: var(--green-light); }
.gd-mode__rem { justify-content: center; margin-top: 12px; }

/* Voz: controles y subtítulos */
.gd-s { border-radius: 4px; transition: background .2s ease; }
.gd-s.is-on { background: var(--green-light); box-shadow: 0 0 0 2px var(--green-light); }
.gd-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-top: 2px; }
.gd-ctl__b { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--muted); cursor: pointer; }
.gd-ctl__b:hover, .gd-ctl__b.is-on { border-color: var(--green); color: var(--green-darker); background: var(--green-light); }
.gd-ctl select { height: 32px; max-width: 170px; padding: 0 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; font-size: 12px; }
.gd-ctl select[data-cap] { flex: 1 1 100%; max-width: none; }
.gd-listen { position: absolute; top: 10px; right: 10px; }
.gd-modo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px dashed var(--green-ring); border-radius: 12px; }
.gd-modo > span { font-size: 13px; font-weight: 600; }
