/* ─────────────────────────────────────────────────────────────────────────────
   Guía de implantación · Recipok Integral · estilos de la edición web
   Misma identidad que los presupuestos y el PDF: Inter, teal / navy / rojo / ámbar.
   Todo cuelga de body.gi para no pisar nada del resto de la aplicación.
   ───────────────────────────────────────────────────────────────────────────── */
.gi {
  --teal: #00ABAC; --teal-tx: #00898A; --teal-sf: #E6F5F5;
  --navy: #204099; --navy-sf: #ECF0F9; --navy-2: #2F52B4;
  --red: #EC403C; --red-tx: #B8302D; --red-sf: #FDECEB;
  --amber: #F7A51B; --amber-tx: #A86D05; --amber-sf: #FDF2E0;
  --ink: #24303B; --body: #4E5A66; --mute: #8992A0;
  --card: #F5F7F9; --chipbox: #EFF1F4; --line: #E3E7EC; --line-2: #CDD4DC;
  --paper: #FFFFFF; --ground: #F7F9FA;
  --radius: 12px; --shadow: 0 1px 2px rgba(36,48,59,.06), 0 10px 30px -18px rgba(36,48,59,.28);
  --ease: cubic-bezier(.2,.7,.2,1);
  margin: 0; background: var(--ground); color: var(--body);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
.gi *, .gi *::before, .gi *::after { box-sizing: border-box; }
.gi h1, .gi h2, .gi h3, .gi h4, .gi p, .gi ul, .gi ol, .gi figure { margin: 0; }
.gi a { color: var(--teal-tx); text-decoration: none; }
.gi a:hover { text-decoration: underline; }
/* Los enlaces que son botones, tarjetas o navegación llevan su propio color: la regla general
   de arriba (.gi a) tiene más peso que la clase sola y los dejaba en teal sobre teal. */
.gi a.gi-btn-primary, .gi a.gi-btn-navy { color: #fff; }
.gi a.gi-btn-ghost { color: var(--navy); }
.gi .gi-cta a.gi-btn-primary { color: var(--navy); }
.gi a.gi-chap-card { color: var(--body); }
.gi a.gi-pager-link { color: var(--ink); }
.gi a.gi-brand { color: var(--ink); }
.gi a.gi-btn:hover, .gi a.gi-chap-card:hover, .gi a.gi-pager-link:hover, .gi a.gi-brand:hover { text-decoration: none; }
.gi b, .gi strong { color: var(--ink); font-weight: 600; }
.gi img { max-width: 100%; height: auto; }
.gi-wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.gi-skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.gi-skip:focus { left: 8px; }
.gi :focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ── Cabecera ─────────────────────────────────────────────────────────────── */
.gi-top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.gi-topbar { display: flex; height: 5px; }
.gi-topbar i { flex: 1; }
.gi-topbar i:nth-child(1) { background: var(--teal); }
.gi-topbar i:nth-child(2) { background: var(--navy); }
.gi-topbar i:nth-child(3) { background: var(--red); }
.gi-topbar i:nth-child(4) { background: var(--amber); }
.gi-top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.gi-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; font-size: 14px; }
.gi-brand:hover { text-decoration: none; }
.gi-brand img { height: 26px; width: auto; }
.gi-brand span { padding-left: 12px; border-left: 1px solid var(--line-2); color: var(--mute); font-weight: 500; }
.gi-top-actions { display: flex; align-items: center; gap: 8px; }
.gi-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; border: 1px solid transparent; transition: transform .15s var(--ease), background .15s, color .15s; }
.gi-btn:hover { text-decoration: none; transform: translateY(-1px); }
.gi-btn-primary { background: var(--teal); color: #fff; }
.gi-btn-primary:hover { background: var(--teal-tx); }
.gi-btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-2); }
.gi-btn-ghost:hover { background: var(--navy-sf); }
.gi-btn-navy { background: var(--navy); color: #fff; }
.gi-ico { font-size: 15px; }
.gi-toc { background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 30px -24px rgba(36,48,59,.5); }
.gi-toc-list { list-style: none; padding: 14px 0 18px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 18px; }
.gi-toc-list a { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.gi-toc-list a:hover { background: var(--teal-sf); text-decoration: none; }
.gi-toc-list .n { color: var(--teal); font-weight: 700; font-variant-numeric: tabular-nums; width: 24px; flex: none; }
.gi-toc-list li.is-current a { background: var(--navy-sf); font-weight: 600; }
@media (max-width: 640px) {
  .gi-brand span { display: none; }
  .gi-brand img { height: 22px; }
  .gi-top-row { height: 54px; gap: 8px; }
  .gi-top-actions .gi-btn { padding: 8px 10px; font-size: 13px; }
}
/* Avance de la checklist (solo con sesión) */
.gi-track { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--body); white-space: nowrap; }
.gi-track .bar { display: block; width: 120px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.gi-track .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--teal); transition: width .6s var(--ease); }
.gi-track .txt b { color: var(--navy); }
.gi-track.is-complete .bar i { background: var(--navy); }
@media (max-width: 860px) { .gi-track .bar { width: 70px; } }
@media (max-width: 640px) { .gi-track { font-size: 12px; } .gi-top-actions .gi-btn .lbl { display: none; } .gi-top-actions .gi-btn { padding-inline: 10px; } .gi-chk-badge { margin-left: 0; } }
/* Desplegable de la checklist (cabecera) */
.gi-chk { background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 30px -24px rgba(36,48,59,.5); }
.gi-chk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0 4px; }
.gi-chk-title { font-weight: 700; color: var(--navy); font-size: 16px; }
.gi-chk-body { padding: 0 0 18px; max-height: min(62vh, 560px); overflow-y: auto; }
.gi .gi-chk-body h3.gi-h3 { margin-top: 6px; font-size: 17px; }
.gi-chk-body .gi-cols2 { gap: 0 28px; }
.gi-chk-body ul.chk li { font-size: 14.5px; }
.gi-chk-summary { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; }
.gi-chk-summary a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.gi-chk-summary a:hover { background: var(--teal-sf); text-decoration: none; }
.gi-chk-summary .n { color: var(--teal); font-weight: 700; width: 24px; flex: none; font-variant-numeric: tabular-nums; }
.gi-chk-summary .c { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }
.gi-chk-summary .c.is-done { color: var(--teal-tx); }
.gi-chk-summary .mini { width: 46px; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; flex: none; }
.gi-chk-summary .mini i { display: block; height: 100%; background: var(--teal); }
.gi-chk-empty { padding: 14px 0 4px; font-size: 14.5px; color: var(--body); }
.gi-chk-badge { display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 700; color: var(--teal-tx); background: var(--teal-sf); border-radius: 20px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.gi-chk-badge.is-done { color: #fff; background: var(--teal); }
.gi-toc-list .c { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }
.gi-toc-list .c.is-done { color: var(--teal-tx); }
.gi-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--teal); transition: width .1s linear; }

/* ── Portada ───────────────────────────────────────────────────────────────── */
.gi-hero { padding: 64px 0 40px; }
.gi-kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-tx); }
.gi-hero h1 { margin-top: 14px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.02em; color: var(--navy); max-width: 820px; }
.gi-hero .gi-lead { margin-top: 20px; max-width: 720px; font-size: 19px; }
.gi-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.gi-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .gi-hero-grid { grid-template-columns: 1fr; } .gi-hero { padding: 40px 0 24px; } }
.gi-lead { font-size: 18px; color: var(--body); line-height: 1.6; }
.gi-lead b { color: var(--ink); }

/* El camino de cuatro semanas (portada) */
.gi-path { position: relative; display: grid; gap: 10px; }
.gi-path-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); position: relative; }
.gi-path-step .wk { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; line-height: 1; text-align: center; }
.gi-path-step:nth-child(1) .wk { background: var(--teal); }
.gi-path-step:nth-child(2) .wk { background: var(--navy); }
.gi-path-step:nth-child(3) .wk { background: var(--red); }
.gi-path-step:nth-child(4) .wk { background: var(--amber); }
.gi-path-step h3 { font-size: 15px; color: var(--navy); }
.gi-path-step p { font-size: 14px; margin-top: 3px; color: var(--body); }
.gi-path-step a { font-size: 13px; font-weight: 600; }
.gi-path-step::after { content: ""; position: absolute; left: 37px; bottom: -11px; width: 2px; height: 11px; background: var(--line-2); }
.gi-path-step:last-child::after { display: none; }

/* Rejilla de capítulos */
.gi-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }
.gi-chap-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; color: var(--body); box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s; position: relative; overflow: hidden; }
.gi-chap-card:hover { text-decoration: none; transform: translateY(-3px); border-color: #BDE6E6; }
.gi-chap-card .n { font-size: 26px; font-weight: 800; color: var(--teal); letter-spacing: -.02em; line-height: 1; }
.gi-chap-card .k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-top: 10px; }
.gi-chap-card h3 { font-size: 16px; color: var(--navy); margin-top: 4px; line-height: 1.3; }
.gi-chap-card p { font-size: 14px; margin-top: 8px; }
.gi-chap-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--teal); opacity: 0; transition: opacity .2s; }
.gi-chap-card:hover::before { opacity: 1; }

/* ── Secciones ─────────────────────────────────────────────────────────────── */
.gi-section { padding: 36px 0; }
.gi-section + .gi-section { border-top: 1px solid var(--line); }
.gi-section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gi h2.gi-h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; color: var(--navy); letter-spacing: -.015em; }
.gi h3.gi-h3 { font-size: 21px; color: var(--navy); line-height: 1.25; margin-top: 36px; margin-bottom: 10px; scroll-margin-top: 84px; }
.gi h3.gi-h3 .no { color: var(--teal); margin-right: 8px; font-variant-numeric: tabular-nums; }
.gi h4.gi-h4 { font-size: 17px; color: var(--ink); margin-top: 22px; margin-bottom: 8px; }
.gi .gi-prose p + p { margin-top: 12px; }
.gi .gi-prose ul, .gi .gi-prose ol { padding-left: 22px; margin-top: 10px; }
.gi .gi-prose li { margin-top: 6px; }
.gi .ui { display: inline-block; font-weight: 600; color: var(--navy); background: var(--navy-sf); border-radius: 5px; padding: 0 6px; font-size: .92em; white-space: nowrap; }
.gi .path { color: var(--navy); font-weight: 600; white-space: nowrap; }
.gi .path i { font-style: normal; color: var(--mute); font-weight: 400; margin: 0 4px; }
/* Enlaces a la pantalla correspondiente de la aplicación */
.gi a.gi-app { color: var(--navy); border-bottom: 1px dashed #B8C4E0; text-decoration: none; }
.gi a.gi-app:hover { color: var(--teal-tx); border-bottom-color: var(--teal); text-decoration: none; }
.gi a.gi-app .ext { font-size: .72em; margin-left: 3px; color: var(--teal); vertical-align: super; }
.gi td.k a.gi-app { border-bottom: 0; }
.gi td.k a.gi-app .ext { opacity: 0; transition: opacity .15s; }
.gi td.k:hover a.gi-app .ext { opacity: 1; }

/* Cabecera de capítulo */
.gi-chap-head { padding: 48px 0 18px; }
.gi-chap-head .row { display: flex; align-items: baseline; gap: 18px; }
.gi-chap-head .bignum { font-size: clamp(44px, 6vw, 64px); font-weight: 800; color: var(--teal); letter-spacing: -.03em; line-height: 1; }
.gi-chap-head h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; color: var(--navy); letter-spacing: -.02em; margin-top: 4px; }
.gi-chap-head .gi-lead { margin-top: 18px; max-width: 760px; }
.gi-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
@media (max-width: 720px) { .gi-goals { grid-template-columns: 1fr; } }
.gi-goal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.gi-goal.t { border-left: 5px solid var(--teal); background: var(--card); }
.gi-goal.a { border-left: 5px solid var(--amber); }
.gi-goal .lbl { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.gi-goal ul { padding-left: 18px; font-size: 15px; }
.gi-goal li + li { margin-top: 4px; }

/* Pasos numerados */
.gi-steps { display: grid; gap: 10px; margin: 16px 0 8px; counter-reset: step; }
.gi-step { display: grid; grid-template-columns: 52px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gi-step .sq { background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.gi-step:nth-child(even) .sq { background: var(--navy-2); }
.gi-step .sl { padding: 14px 18px; }
.gi-step h4 { font-size: 16px; color: var(--navy); margin: 0 0 4px; }
.gi-step p { font-size: 15px; }
.gi-step p + p { margin-top: 6px; }
.gi-step .aside { margin-top: 8px; padding: 8px 12px; background: var(--card); border-radius: 8px; font-size: 14px; }
.gi-step .aside .lbl { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: block; margin-bottom: 2px; }

/* Avisos */
.gi-note { margin: 18px 0; background: var(--navy-sf); border-left: 5px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; font-size: 15px; }
.gi-note .lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--navy); margin-bottom: 4px; }
.gi-note.teal { background: var(--teal-sf); border-left-color: var(--teal); } .gi-note.teal .lbl { color: var(--teal-tx); }
.gi-note.amber { background: var(--amber-sf); border-left-color: var(--amber); } .gi-note.amber .lbl { color: var(--amber-tx); }
.gi-note.red { background: var(--red-sf); border-left-color: var(--red); } .gi-note.red .lbl { color: var(--red-tx); }
.gi-note.grey { background: var(--card); border-left-color: var(--mute); } .gi-note.grey .lbl { color: var(--mute); }
.gi-note p + p { margin-top: 6px; }

/* Etiquetas de estado */
.gi .tag { display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; margin-left: 6px; white-space: nowrap; }
.gi .tag.inc { background: var(--teal-sf); color: var(--teal-tx); }
.gi .tag.act { background: var(--navy-sf); color: var(--navy); }
.gi .tag.opt { background: var(--amber-sf); color: var(--amber-tx); }
.gi .tag.beta { background: var(--amber); color: #fff; }
.gi .tag.san { background: var(--red-sf); color: var(--red-tx); }

/* Listas */
.gi ul.chk { list-style: none; padding: 0; margin: 12px 0; }
.gi ul.chk li { position: relative; padding-left: 32px; margin-top: 8px; font-size: 15px; }
.gi ul.chk li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 5px; background: #fff; }
.gi ul.chk li::after { content: "✓"; position: absolute; left: 3px; top: 1px; color: var(--teal); font-weight: 800; font-size: 14px; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .3s var(--ease); }
.gi ul.chk.is-in li::after { opacity: 1; transform: scale(1); }
.gi ul.chk.is-in li:nth-child(n)::after { transition-delay: calc(var(--i, 0) * 120ms); }
/* Con sesión, las casillas son reales: el estado manda, no la animación decorativa */
.gi.is-tracking ul.chk li[data-check] { cursor: pointer; border-radius: 8px; transition: background .2s; }
.gi.is-tracking ul.chk li[data-check]:hover { background: var(--teal-sf); }
.gi.is-tracking ul.chk li[data-check]:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.gi.is-tracking ul.chk li::after { opacity: 0; transform: scale(.5); transition-delay: 0s !important; }
.gi.is-tracking ul.chk li.is-checked::after { opacity: 1; transform: scale(1); }
.gi.is-tracking ul.chk li.is-checked::before { border-color: var(--teal); background: var(--teal-sf); }
.gi.is-tracking ul.chk li.is-checked > :not(.gi-by) { color: var(--mute); }
.gi.is-tracking ul.chk li.is-auto::before { border-color: var(--navy); background: var(--navy-sf); }
.gi.is-tracking ul.chk li.is-auto::after { color: var(--navy); }
.gi.is-tracking ul.chk li.is-auto { cursor: default; }
.gi.is-tracking ul.chk li.is-auto:hover { background: transparent; }
.gi .gi-by { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }
.gi .gi-by.auto { color: var(--navy); font-weight: 600; }
.gi .gi-track-hint { margin: 10px 0 0; font-size: 13.5px; color: var(--mute); padding-left: 32px; }
.gi .gi-track-hint a { font-weight: 600; }
.gi .gi-chk-done { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 700; color: var(--teal-tx); background: var(--teal-sf); border-radius: 20px; padding: 2px 10px; vertical-align: middle; }
.gi ul.tick { list-style: none; padding: 0; margin: 10px 0; }
.gi ul.tick li { position: relative; padding-left: 26px; margin-top: 6px; }
.gi ul.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.gi ul.dot { list-style: none; padding: 0; margin: 10px 0; }
.gi ul.dot li { position: relative; padding-left: 20px; margin-top: 6px; }
.gi ul.dot li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.gi-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .gi-cols2 { grid-template-columns: 1fr; } }

/* Tablas */
.gi table.tbl { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gi table.tbl th { text-align: left; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); padding: 10px 14px; background: var(--card); border-bottom: 2px solid var(--navy); }
.gi table.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gi table.tbl td.k { color: var(--navy); font-weight: 600; }
.gi table.tbl tr:last-child td { border-bottom: 0; }
.gi .tbl-wrap { overflow-x: auto; }

/* Tarjetas, chips, hechos */
.gi-grid2, .gi-grid3, .gi-grid4 { display: grid; gap: 14px; margin: 14px 0; }
.gi-grid2 > *, .gi-grid3 > *, .gi-grid4 > *, .gi-cols2 > *, .gi-goals > *, .gi-step > *, .mgrid > * { min-width: 0; }
.gi-grid2 { grid-template-columns: repeat(2, 1fr); }
.gi-grid3 { grid-template-columns: repeat(3, 1fr); }
.gi-grid4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .gi-grid3, .gi-grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gi-grid2, .gi-grid3, .gi-grid4 { grid-template-columns: 1fr; } }
.gi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.gi-card h4 { font-size: 16px; color: var(--navy); margin: 0 0 6px; }
.gi-card p { font-size: 14.5px; }
.gi-card.t { border-left: 5px solid var(--teal); }
.gi-card.n { border-left: 5px solid var(--navy); }
.gi-card.a { border-left: 5px solid var(--amber); }
.gi-card.r { border-left: 5px solid var(--red); }
.gi-card .big { font-size: 28px; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 6px; }
.gi-chips { background: var(--chipbox); border-radius: var(--radius); padding: 14px 16px 8px; margin: 14px 0; }
.gi-chips .lbl { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.gi .chip { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; font-size: 13.5px; margin: 0 6px 6px 0; }
.gi .chip.t { color: var(--teal-tx); border-color: #BDE6E6; }
.gi .chip.a { background: var(--amber-sf); border-color: #F4DDB0; color: var(--amber-tx); }
.gi .chip.n { background: var(--navy-sf); border-color: #C9D3EE; color: var(--navy); }

/* Flujo */
.gi-flow { display: flex; align-items: stretch; gap: 0; margin: 16px 0; }
.gi-flow .fb { flex: 1 1 0; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.gi-flow .ar { flex: 0 0 26px; }
@media (max-width: 860px) { .gi-flow { flex-direction: column; } .gi-flow .ar { flex-basis: auto; transform: rotate(90deg); padding: 4px 0; } }
.gi-flow .fb.t { background: var(--teal-sf); border-color: #BDE6E6; }
.gi-flow .fb.n { background: var(--navy-sf); border-color: #C9D3EE; }
.gi-flow .fb.a { background: var(--amber-sf); border-color: #F4DDB0; }
.gi-flow .fb .st { font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.gi-flow .fb .tt { font-size: 15px; font-weight: 700; color: var(--navy); margin-top: 2px; }
.gi-flow .fb p { font-size: 13.5px; margin-top: 4px; }
.gi-flow .ar { display: grid; place-items: center; color: var(--teal); font-size: 22px; font-weight: 700; padding: 0 2px; }

/* ── Pantallas recreadas (figuras) ────────────────────────────────────────── */
.gi-fig { margin: 22px 0 26px; }
.gi-fig.half { max-width: 560px; }
.gi-fig.narrow { max-width: 420px; }
.gi-fig figcaption { font-size: 14px; color: var(--mute); margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--teal-sf); line-height: 1.5; }
.gi-fig-tools { display: flex; justify-content: flex-end; margin-top: 6px; }
.gi-replay { background: none; border: 1px solid var(--line-2); color: var(--mute); font-size: 12px; padding: 4px 10px; border-radius: 20px; cursor: pointer; }
.gi-replay:hover { color: var(--teal-tx); border-color: var(--teal); }
.gi .shot { position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font-size: 13px; color: var(--ink); line-height: 1.4; }
.gi .shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.gi .shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.gi .shot-bar span { margin-left: 8px; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi .shot-bar .crumb { margin-left: auto; font-size: 12px; color: var(--navy); font-weight: 600; }
.gi .shot-body { padding: 16px 18px; }
.gi .shot-title { font-weight: 700; font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gi .shot-title .btn { margin-left: auto; }
.gi .shot-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 0 0 14px; font-size: 13px; overflow-x: auto; }
.gi .shot-tabs span { padding: 6px 0; color: var(--mute); white-space: nowrap; }
.gi .shot-tabs span.on { color: var(--teal-tx); border-bottom: 2px solid var(--teal); font-weight: 700; }
.gi .shot-app { display: flex; }
.gi .shot-side { width: 170px; flex: 0 0 170px; background: #1E2A44; color: #B9C3DA; padding: 12px 0; font-size: 12px; }
.gi .shot-side .brand { padding: 0 14px 10px; color: #fff; font-weight: 700; font-size: 13px; }
.gi .shot-side .it { padding: 5px 14px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi .shot-side .it i { width: 8px; height: 8px; border-radius: 2px; background: #4A5A80; display: inline-block; flex: none; }
.gi .shot-side .it.on { background: rgba(0,171,172,.22); color: #fff; border-left: 3px solid var(--teal); }
.gi .shot-side .it.on i { background: var(--teal); }
.gi .shot-side .it.sub { padding-left: 30px; color: #8E9BB8; }
.gi .shot-side .grp { padding: 10px 14px 3px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6F7D9E; }
.gi .shot-main { flex: 1; padding: 16px 18px; min-width: 0; }
@media (max-width: 640px) { .gi .shot-side { display: none; } }
.gi .shot-aside { flex: 0 0 300px; padding: 14px; background: var(--card); border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
@media (max-width: 760px) { .gi .shot-app.stack { flex-direction: column; } .gi .shot-aside { flex-basis: auto; border-left: 0; border-top: 1px solid var(--line); } }
.gi .lab { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin: 10px 0 4px; display: flex; align-items: center; gap: 6px; }
.gi .lab:first-child { margin-top: 0; }
.gi .fld { border: 1px solid var(--line-2); border-radius: 7px; background: #fff; padding: 7px 10px; font-size: 13px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; line-height: 1.3; transition: border-color .3s, box-shadow .3s; }
.gi .fld .ph { color: var(--mute); font-weight: 400; }
.gi .fld .cue { color: var(--mute); font-size: 11px; flex: none; }
.gi .fld.on { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-sf); }
.gi .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.gi .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }
@media (max-width: 560px) { .gi .three { grid-template-columns: 1fr 1fr; } }
.gi .row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.gi .row:last-child { border-bottom: 0; }
.gi .row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi .row .dim, .gi .dim { color: var(--mute); font-size: 12px; }
.gi .row .r { margin-left: auto; text-align: right; white-space: nowrap; }
.gi .btn { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 7px; background: var(--teal); color: #fff; white-space: nowrap; line-height: 1.3; }
.gi .btn.ghost { background: #fff; color: var(--teal-tx); border: 1px solid var(--teal); }
.gi .btn.navy { background: var(--navy); }
.gi .btn.grey { background: var(--chipbox); color: var(--body); }
.gi .btn.red { background: var(--red); }
.gi .ck { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: transparent; background: #fff; flex: none; vertical-align: middle; margin-right: 6px; transition: background .25s, border-color .25s, color .25s; }
.gi .ck.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.gi .sw { display: inline-block; width: 26px; height: 14px; border-radius: 10px; background: var(--line-2); position: relative; vertical-align: middle; margin-right: 6px; flex: none; transition: background .25s; }
.gi .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: left .25s var(--ease); }
.gi .sw.on { background: var(--teal); } .gi .sw.on::after { left: 14px; }
.gi .stag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.gi .stag.ok { background: var(--teal-sf); color: var(--teal-tx); }
.gi .stag.wait { background: var(--amber-sf); color: var(--amber-tx); }
.gi .stag.off { background: var(--chipbox); color: var(--mute); }
.gi .stag.bad { background: var(--red-sf); color: var(--red-tx); }
.gi .stag.nav { background: var(--navy-sf); color: var(--navy); }
.gi .mcard { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: #fff; font-size: 13px; }
.gi .mcard + .mcard { margin-top: 8px; }
.gi .mcard .h { font-weight: 700; color: var(--navy); font-size: 13.5px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gi .mcard .h .stag { margin-left: auto; }
.gi .mcard p { font-size: 12.5px; color: var(--body); margin: 0; }
.gi .mgrid { display: grid; gap: 8px; }
.gi .mgrid.c2 { grid-template-columns: 1fr 1fr; }
.gi .mgrid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .gi .mgrid.c2, .gi .mgrid.c3 { grid-template-columns: 1fr; } }
.gi .mtable { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.gi .mtable th { text-align: left; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 6px 8px; border-bottom: 1px solid var(--line); font-weight: 700; background: var(--card); }
.gi .mtable td { padding: 6px 8px; border-bottom: 1px solid var(--line); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi .mtable td.r, .gi .mtable th.r { text-align: right; }
.gi .mtable tr:last-child td { border-bottom: 0; }
.gi .chip-s { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2px 9px; font-size: 12px; color: var(--body); margin: 0 4px 4px 0; }
.gi .chip-s.n { background: var(--navy-sf); border-color: #C9D3EE; color: var(--navy); }
.gi .chip-s.a { background: var(--amber-sf); border-color: #F4DDB0; color: var(--amber-tx); }
/* etiqueta impresa */
.gi .label { border: 1px solid var(--ink); border-radius: 5px; padding: 10px 12px; background: #fff; color: #000; font-size: 12px; line-height: 1.35; max-width: 320px; }
.gi .label .ln { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.gi .label .ing { font-size: 11px; }
.gi .label .ing b { color: #000; text-transform: uppercase; }
.gi .label .nut { margin-top: 6px; border-top: 1px solid #000; padding-top: 4px; font-size: 10.5px; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; }
.gi .label .bc { margin-top: 7px; height: 28px; background: repeating-linear-gradient(90deg, #000 0 1.6px, #fff 1.6px 2.8px, #000 2.8px 5.5px, #fff 5.5px 7px, #000 7px 8.2px, #fff 8.2px 11px); }
.gi .label .bct { font-size: 10px; text-align: center; letter-spacing: .06em; margin-top: 2px; }
.gi .label .lote { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 11px; flex-wrap: wrap; }

/* Marcas de guía, resaltado y flecha */
.gi .mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--amber); color: #fff; font-size: 11px; font-weight: 800; flex: none; vertical-align: middle; margin-right: 6px; line-height: 1; box-shadow: 0 0 0 0 rgba(247,165,27,.55); }
.gi .is-playing .mark, .gi .is-done .mark { animation: gi-pulse 1.8s ease-out infinite; }
.gi .is-done .mark { animation-iteration-count: 3; }
@keyframes gi-pulse { 0% { box-shadow: 0 0 0 0 rgba(247,165,27,.55); } 70% { box-shadow: 0 0 0 9px rgba(247,165,27,0); } 100% { box-shadow: 0 0 0 0 rgba(247,165,27,0); } }
.gi .hl { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 8px; }
.gi .pt { display: inline-block; color: var(--amber); font-weight: 800; font-size: 16px; line-height: 1; margin-right: 4px; vertical-align: middle; animation: gi-nudge 1.2s ease-in-out infinite; }
@keyframes gi-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.gi .callouts { list-style: none; padding: 0; margin: 12px 0 0; }
.gi .callouts li { position: relative; padding-left: 28px; font-size: 14.5px; margin-top: 6px; line-height: 1.5; color: var(--body); }
.gi .callouts li .mark { position: absolute; left: 0; top: 2px; }
/* Escenas */
.gi [data-step] { opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.gi [data-step].is-on, .gi .is-done [data-step] { opacity: 1; transform: none; }
.gi .shot:not(.is-playing) [data-step]:not(.is-on) { opacity: 1; transform: none; } /* sin JS o antes de empezar: todo visible */
.gi .is-playing [data-step]:not(.is-on) { opacity: 0; }
.gi [data-type].is-typing::after { content: ""; display: inline-block; width: 1px; height: 1em; background: var(--teal); margin-left: 1px; vertical-align: -2px; animation: gi-caret .8s steps(1) infinite; }
@keyframes gi-caret { 50% { opacity: 0; } }

/* Aparición al hacer scroll */
.gi [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.gi [data-reveal].is-in { opacity: 1; transform: none; }
.gi [data-reveal="2"] { transition-delay: .1s; } .gi [data-reveal="3"] { transition-delay: .2s; } .gi [data-reveal="4"] { transition-delay: .3s; }

/* Acordeones (referencia) */
.gi-acc details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 10px; overflow: hidden; }
.gi-acc summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; color: var(--navy); font-size: 16px; display: flex; align-items: center; gap: 12px; }
.gi-acc summary::-webkit-details-marker { display: none; }
.gi-acc summary::before { content: "+"; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-sf); color: var(--teal-tx); display: grid; place-items: center; font-weight: 800; flex: none; }
.gi-acc details[open] summary::before { content: "–"; }
.gi-acc summary .n { color: var(--teal); font-variant-numeric: tabular-nums; }
.gi-acc .acc-body { padding: 0 18px 18px; font-size: 15px; border-top: 1px solid var(--line); }
.gi-acc .acc-body > :first-child { margin-top: 14px; }

/* Paginador y pie */
.gi-pager { display: flex; justify-content: space-between; gap: 12px; padding: 28px 0 8px; }
.gi-pager-link { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); min-width: 180px; box-shadow: var(--shadow); }
.gi-pager-link:hover { text-decoration: none; border-color: #BDE6E6; }
.gi-pager-link.next { margin-left: auto; text-align: right; }
.gi-pager-link .lbl { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-tx); }
.gi-pager-link .ttl { font-weight: 600; font-size: 14px; }
@media (max-width: 520px) {
  .gi-pager { flex-direction: column; }
  .gi-pager-link { min-width: 0; }
  .gi-pager-link.next { margin-left: 0; }
  .gi .path, .gi .ui { white-space: normal; }
}
.gi-footer { margin-top: 40px; border-top: 1px solid var(--line); background: #fff; }
.gi-footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 18px 0; font-size: 13px; color: var(--mute); }
.gi-footer-links { display: flex; gap: 18px; }
.gi-cta { margin: 30px 0 0; border-radius: var(--radius); padding: 24px 26px; color: #fff; background: linear-gradient(100deg, #204099 0%, #2C58C6 100%); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.gi-cta h3 { font-size: 20px; color: #fff; margin: 0; }
.gi-cta p { font-size: 14.5px; color: #D7E0F6; margin-top: 4px; }
.gi-cta .gi-btn-primary { background: #fff; color: var(--navy); }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .gi *, .gi *::before, .gi *::after { animation: none !important; transition: none !important; }
  .gi [data-reveal], .gi [data-step] { opacity: 1 !important; transform: none !important; }
}

/* ── Videotutorial ─────────────────────────────────────────────────────────── */
.gi-vt-head { padding-bottom: 8px; }
.gi-vt-head h1 { margin-top: 6px; }
.gi-vt-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 14px; }
.gi-vt-meta span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.gi-vt { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 18px 0 56px; align-items: start; }
@media (max-width: 960px) { .gi-vt { grid-template-columns: 1fr; } }
.gi-vt-main { min-width: 0; }
.gi-vt-player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #0f1b2d; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gi-vt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gi-vt-now { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.gi-vt-now h2 { font-size: clamp(22px, 2.6vw, 28px); color: var(--navy); letter-spacing: -.01em; line-height: 1.2; text-wrap: balance; }
.gi-vt-now .gi-lead { font-size: 16px; }
.gi-vt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gi-vt-actions .gi-btn-ghost[aria-pressed="true"] { background: var(--teal-sf); border-color: var(--teal); color: var(--teal-tx); }
.gi-vt-note { background: var(--amber-sf); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--ink); }
.gi-vt-anon { font-size: 14px; color: var(--mute); }
.gi-vt-rail { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 960px) { .gi-vt-rail { position: static; max-height: none; } }
.gi-vt-progress { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.gi-vt-progress .bar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gi-vt-progress .bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .3s var(--ease); }
.gi-vt-list { list-style: none; padding: 0; margin: 0; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.gi-vt-group { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding: 10px 8px 4px; }
.gi-vt-item { width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px; font: inherit; font-size: 14px; line-height: 1.35; color: var(--body); cursor: pointer; }
.gi-vt-item:hover { background: var(--card); }
.gi-vt-item.is-now { background: var(--teal-sf); color: var(--ink); font-weight: 600; }
.gi-vt-item .st { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 11px; color: #fff; }
.gi-vt-item.is-now .st { border-color: var(--teal); }
.gi-vt-item.is-done .st { background: var(--teal); border-color: var(--teal); }
.gi-vt-item.is-done .st::after { content: "✓"; }
.gi-vt-item .d { font-variant-numeric: tabular-nums; color: var(--mute); font-size: 13px; }

/* Tarjeta «Míralo en vídeo» al principio de cada capítulo */
.gi .gi-vt-card { float: right; display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 8px 8px; margin: 0 0 12px 24px; color: var(--ink); box-shadow: var(--shadow); max-width: 100%; }
.gi .gi-vt-card:hover { text-decoration: none; border-color: var(--teal); }
.gi-vt-card .thumb { width: 88px; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--navy); display: grid; place-items: center; flex: none; }
.gi-vt-card .thumb::after { content: ""; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.gi-vt-card b { display: block; font-size: 15px; }
.gi-vt-card small { color: var(--mute); font-size: 13px; }
@media (max-width: 720px) { .gi .gi-vt-card { float: none; margin: 0 0 14px; } }
.gi-top-actions .gi-btn.is-active { background: var(--teal-sf); border-color: var(--teal); color: var(--teal-tx); }
