/* =============================================================================
   OpenClaw · Auto-curso · Sistema de diseño compartido
   Paleta y tipografías idénticas al sitio oficial openclaw.ai
   Clash Display (títulos) + Satoshi (texto) + mono (código)
   ============================================================================= */

/* ---- Tipografías oficiales (Fontshare: Clash Display + Satoshi) ---- */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@400,500,700&display=swap');

/* ---- Tokens de color (dark = default, idénticos a openclaw.ai) ---- */
:root {
  --bg-deep: #050810;
  --bg-surface: #0a0f1a;
  --bg-elevated: #111827;

  --coral-bright: #ff4d4d;
  --coral-mid: #e63946;
  --coral-dark: #991b1b;

  --cyan-bright: #00e5cc;
  --cyan-mid: #14b8a6;
  --cyan-glow: rgba(0, 229, 204, .4);

  --text-primary: #f0f4ff;
  --text-secondary: #8892b0;
  --text-muted: #5a6480;

  --border-subtle: rgba(136, 146, 176, .15);
  --border-accent: rgba(255, 77, 77, .3);

  --surface-card: rgba(10, 15, 26, .65);
  --surface-card-strong: rgba(10, 15, 26, .8);
  --surface-interactive: rgba(255, 255, 255, .06);
  --surface-cyan-soft: rgba(0, 229, 204, .12);
  --surface-coral-soft: rgba(255, 77, 77, .12);

  --shadow-coral-mid: rgba(255, 77, 77, .25);
  --shadow-cyan-soft: rgba(0, 229, 204, .15);

  --logo-gradient-start: #ff4d4d;
  --logo-gradient-end: #991b1b;
  --hero-title-end: #00e5cc;

  --font-display: "Clash Display", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --sidebar-w: 300px;
  --maxw: 920px;
}

html[data-theme="light"] {
  --bg-deep: #fcfeff;
  --bg-surface: #ffffff;
  --bg-elevated: #f5f9ff;
  --coral-bright: #ef4b58;
  --coral-mid: #de3f4d;
  --coral-dark: #c43645;
  --cyan-bright: #008f87;
  --cyan-mid: #00766e;
  --text-primary: #0b1220;
  --text-secondary: #2e405c;
  --text-muted: #5f7290;
  --border-subtle: rgba(15, 23, 42, .16);
  --border-accent: rgba(239, 75, 88, .34);
  --surface-card: rgba(255, 255, 255, .88);
  --surface-card-strong: rgba(255, 255, 255, .95);
  --surface-interactive: rgba(15, 23, 42, .05);
  --surface-cyan-soft: rgba(0, 143, 135, .12);
  --surface-coral-soft: rgba(239, 75, 88, .12);
  --hero-title-end: #008f87;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}

::selection { background: var(--coral-bright); color: var(--bg-deep); }

a { color: var(--cyan-bright); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--coral-bright); }

/* ---- Fondo espacial: estrellas + nebulosa ---- */
.oc-stars {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
}
.oc-nebula {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px circle at 12% -8%, rgba(255,77,77,.10), transparent 55%),
    radial-gradient(1000px circle at 88% -4%, rgba(0,229,204,.08), transparent 55%),
    radial-gradient(800px circle at 50% 110%, rgba(153,27,27,.08), transparent 60%);
}
html[data-theme="light"] .oc-nebula { opacity: .5; }
html[data-theme="light"] .oc-stars { opacity: .25; }

/* ---- Tipografía base ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; color: var(--text-primary); }
.oc-prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 2.6rem 0 1rem; }
.oc-prose h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 2rem 0 .7rem; color: var(--text-primary); }
.oc-prose p { color: var(--text-secondary); margin: 0 0 1rem; }
.oc-prose ul, .oc-prose ol { color: var(--text-secondary); margin: 0 0 1.1rem 1.3rem; }
.oc-prose li { margin: .4rem 0; }
.oc-prose strong { color: var(--text-primary); font-weight: 700; }
.oc-prose em { color: var(--cyan-bright); font-style: normal; }
.oc-prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-interactive); border: 1px solid var(--border-subtle); padding: .12em .4em; border-radius: 5px; color: var(--coral-bright); }
.italic { font-style: italic; color: var(--coral-bright); }

/* ---- Top bar ---- */
.oc-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 62px;
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
  background: var(--surface-card-strong); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.oc-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text-primary); }
.oc-logo img { width: 26px; height: 26px; filter: drop-shadow(0 0 10px var(--shadow-coral-mid)); }
.oc-logo span { background: linear-gradient(135deg, var(--logo-gradient-start), var(--coral-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.oc-topbar-spacer { flex: 1; }
.oc-version-pill { font-family: var(--font-mono); font-size: .7rem; color: var(--cyan-bright); border: 1px solid var(--border-subtle); background: var(--surface-cyan-soft); padding: .25em .6em; border-radius: 999px; white-space: nowrap; }
.oc-icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--surface-card-strong); color: var(--text-secondary); cursor: pointer; transition: all .2s ease; }
.oc-icon-btn:hover { border-color: var(--border-accent); color: var(--text-primary); transform: translateY(-1px); }

/* ---- Shell: sidebar + contenido ---- */
.oc-shell { display: flex; padding-top: 62px; }
.oc-sidebar {
  position: fixed; top: 62px; bottom: 0; left: 0; width: var(--sidebar-w);
  overflow-y: auto; padding: 24px 16px 60px; border-right: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.oc-sidebar-title { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); margin: 18px 12px 8px; }
.oc-side-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--text-secondary); font-size: .9rem; font-weight: 500; transition: all .15s ease; }
.oc-side-link:hover { background: var(--surface-interactive); color: var(--text-primary); }
.oc-side-link.active { background: var(--surface-coral-soft); color: var(--text-primary); border-left: 2px solid var(--coral-bright); }
.oc-side-num { font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); min-width: 20px; }
.oc-side-link.done .oc-side-num { color: var(--cyan-bright); }
.oc-side-link.done .oc-side-num::after { content: " ✓"; }

.oc-main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; }
.oc-container { max-width: var(--maxw); margin: 0 auto; padding: 40px 28px 100px; }

/* ---- Breadcrumb + progreso ---- */
.oc-breadcrumb { font-family: var(--font-mono); font-size: .78rem; color: var(--text-muted); margin-bottom: 22px; }
.oc-breadcrumb a { color: var(--text-secondary); }
.oc-progress-track { height: 4px; background: var(--surface-interactive); border-radius: 999px; overflow: hidden; margin-bottom: 28px; }
.oc-progress-bar { height: 100%; background: linear-gradient(90deg, var(--coral-bright), var(--cyan-bright)); border-radius: 999px; transition: width .4s var(--ease); }

/* ---- Cabecera de clase ---- */
.oc-class-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan-bright); margin-bottom: 14px; }
.oc-class-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-bright); box-shadow: 0 0 10px var(--cyan-glow); }
.oc-class-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.05; margin-bottom: 16px; }
.oc-class-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 28px; }
.oc-class-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Bloque "qué vas a poder hacer" ---- */
.oc-goals { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 22px 24px; margin: 0 0 36px; }
.oc-goals h4 { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 12px; }
.oc-goals ul { list-style: none; margin: 0; }
.oc-goals li { position: relative; padding-left: 22px; color: var(--text-secondary); margin: .5rem 0; }
.oc-goals li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--coral-bright); font-weight: 700; }

/* ---- Callouts (caso de uso / ejercicio / necesidad / seguridad / tip) ---- */
.oc-callout { border-radius: 14px; padding: 20px 22px 20px 56px; margin: 24px 0; position: relative; border: 1px solid var(--border-subtle); background: var(--surface-card); }
.oc-callout::before { position: absolute; left: 18px; top: 18px; font-size: 1.4rem; line-height: 1; }
.oc-callout h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 6px; }
.oc-callout p, .oc-callout li { color: var(--text-secondary); }
.oc-callout--case { border-color: rgba(0,229,204,.3); background: var(--surface-cyan-soft); }
.oc-callout--case::before { content: "🎯"; }
.oc-callout--case h4 { color: var(--cyan-bright); }
.oc-callout--exercise { border-color: var(--border-accent); background: var(--surface-coral-soft); }
.oc-callout--exercise::before { content: "🛠️"; }
.oc-callout--exercise h4 { color: var(--coral-bright); }
.oc-callout--security { border-color: rgba(255,179,0,.35); background: rgba(255,179,0,.08); }
.oc-callout--security::before { content: "🛡️"; }
.oc-callout--security h4 { color: #ffb300; }
.oc-callout--tip::before { content: "💡"; }
.oc-callout--tip { border-color: rgba(0,229,204,.25); }
.oc-callout--warn { border-color: rgba(214,40,40,.4); background: rgba(214,40,40,.08); }
.oc-callout--warn::before { content: "⚠️"; }
.oc-callout--new { border-color: rgba(0,229,204,.3); background: var(--surface-cyan-soft); }
.oc-callout--new::before { content: "✨"; }
.oc-callout--new h4 { color: var(--cyan-bright); }

/* ---- Bloque de código / prompts copiables ---- */
.oc-code { position: relative; background: #05070e; border: 1px solid var(--border-subtle); border-radius: 12px; margin: 20px 0; overflow: hidden; }
html[data-theme="light"] .oc-code { background: #0b1220; }
.oc-code-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-interactive); }
.oc-code-lang { font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.oc-copy-btn { font-family: var(--font-mono); font-size: .72rem; color: var(--cyan-bright); background: transparent; border: 1px solid var(--border-subtle); border-radius: 6px; padding: .25em .7em; cursor: pointer; transition: all .15s ease; }
.oc-copy-btn:hover { border-color: var(--cyan-bright); }
.oc-code pre { margin: 0; padding: 16px; overflow-x: auto; }
.oc-code code { font-family: var(--font-mono); font-size: .85rem; color: #cdd6f4; background: none; border: none; padding: 0; line-height: 1.7; }

/* Prompt box (lo que copiás al agente) */
.oc-prompt { background: var(--surface-card-strong); border: 1px dashed var(--border-accent); border-radius: 12px; padding: 16px 18px; margin: 18px 0; position: relative; }
.oc-prompt::before { content: "PROMPT PARA TU AGENTE"; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; color: var(--coral-bright); display: block; margin-bottom: 8px; }
.oc-prompt p { color: var(--text-primary); font-style: italic; margin: 0; }

/* ---- Tarjetas de clases (hub) ---- */
.oc-grid { display: grid; gap: 18px; }
.oc-grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.oc-grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.oc-card { display: block; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 22px; transition: all .2s var(--ease); color: inherit; }
.oc-card:hover { transform: translateY(-3px); border-color: var(--border-accent); box-shadow: 0 16px 40px rgba(0,0,0,.3); color: inherit; }
.oc-card .num { font-family: var(--font-mono); font-size: .75rem; color: var(--cyan-bright); }
.oc-card h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.oc-card p { color: var(--text-secondary); font-size: .9rem; margin: 0; }
.oc-card .need { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-subtle); font-size: .82rem; color: var(--text-muted); font-style: italic; }
.oc-card .need::before { content: "↓ "; color: var(--coral-bright); }
.oc-module-tag { display: inline-block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-bright); margin: 34px 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--border-subtle); width: 100%; }

/* ---- Puente al Manual de referencia ---- */
.oc-ref { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--border-subtle); border-left: 3px solid var(--cyan-bright); background: var(--surface-cyan-soft); border-radius: 12px; padding: 16px 18px; margin: 26px 0; }
.oc-ref .ico { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.oc-ref h4 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 5px; color: var(--cyan-bright); }
.oc-ref p { margin: 0; color: var(--text-secondary); font-size: .9rem; line-height: 1.6; }
.oc-ref a { font-weight: 600; }

/* ---- CTA siguiente clase ---- */
.oc-nextnav { display: flex; gap: 16px; margin-top: 56px; flex-wrap: wrap; }
.oc-nextnav a { flex: 1; min-width: 220px; border: 1px solid var(--border-subtle); border-radius: 14px; padding: 18px 20px; background: var(--surface-card); transition: all .2s var(--ease); }
.oc-nextnav a:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.oc-nextnav .label { font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); display: block; margin-bottom: 6px; }
.oc-nextnav .title { font-family: var(--font-display); font-weight: 600; color: var(--text-primary); }
.oc-nextnav .next { text-align: right; }
.oc-nextnav .next .title { color: var(--coral-bright); }

/* ---- Botón marcar completada ---- */
.oc-complete-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font-family: var(--font-body); font-weight: 600; font-size: .95rem; padding: .7em 1.4em; border-radius: 999px; border: 1px solid var(--border-accent); background: var(--surface-coral-soft); color: var(--text-primary); cursor: pointer; transition: all .2s ease; }
.oc-complete-btn:hover { background: var(--coral-bright); color: var(--bg-deep); }
.oc-complete-btn.done { background: var(--surface-cyan-soft); border-color: var(--cyan-bright); color: var(--cyan-bright); }

/* ---- Botones / pills genéricos ---- */
.oc-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; padding: .8em 1.6em; border-radius: 999px; border: none; cursor: pointer; transition: all .2s var(--ease); }
.oc-btn--primary { background: linear-gradient(135deg, var(--coral-bright), var(--coral-dark)); color: #fff; box-shadow: 0 10px 30px var(--shadow-coral-mid); }
.oc-btn--primary:hover { transform: translateY(-2px); color: #fff; }
.oc-btn--ghost { background: var(--surface-interactive); color: var(--text-primary); border: 1px solid var(--border-subtle); }
.oc-btn--ghost:hover { border-color: var(--border-accent); color: var(--text-primary); }

/* ---- Tabla ---- */
.oc-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .9rem; }
.oc-table th, .oc-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
.oc-table th { font-family: var(--font-display); color: var(--text-primary); font-weight: 600; }
.oc-table td strong { color: var(--text-primary); }

/* ---- Repo / recurso externo ---- */
.oc-repo { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--surface-card); margin: 12px 0; }
.oc-repo .gh { font-family: var(--font-mono); font-size: 1.1rem; color: var(--text-primary); }
.oc-repo .info { flex: 1; min-width: 0; }
.oc-repo .info b { color: var(--text-primary); font-family: var(--font-display); }
.oc-repo .info small { display: block; color: var(--text-muted); font-size: .8rem; }

/* ---- Hero (hub) ---- */
.oc-hero { text-align: center; padding: 70px 20px 50px; }
.oc-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; line-height: 1.02; margin-bottom: 20px; }
.oc-hero h1 .grad { background: linear-gradient(135deg, var(--text-primary), var(--hero-title-end)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.oc-hero p { max-width: 620px; margin: 0 auto 30px; color: var(--text-secondary); font-size: 1.1rem; }
.oc-hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.oc-footer { border-top: 1px solid var(--border-subtle); padding: 40px 28px; text-align: center; color: var(--text-muted); font-size: .85rem; }
.oc-footer a { color: var(--text-secondary); }

/* ---- Bloque de autores (fotos circulares) ---- */
.oc-authors { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.oc-author { display: flex; align-items: center; gap: 11px; color: var(--text-secondary); transition: color .15s ease; }
.oc-author:hover { color: var(--text-primary); }
.oc-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--coral-bright); box-shadow: 0 0 0 3px var(--surface-coral-soft); transition: transform .25s var(--ease); }
.oc-author:hover img { transform: rotate(-4deg) scale(1.05); }
.oc-author b { font-family: var(--font-display); font-weight: 600; color: var(--text-primary); font-size: .98rem; display: block; line-height: 1.2; }
.oc-author small { font-family: var(--font-mono); font-size: .7rem; color: var(--cyan-bright); }

/* ---- Menú mobile ---- */
.oc-menu-btn { display: none; }
.oc-sidebar-backdrop { display: none; }

@media (max-width: 1000px) {
  .oc-menu-btn { display: grid; }
  .oc-sidebar { transform: translateX(-100%); transition: transform .25s var(--ease); z-index: 95; box-shadow: 0 0 60px rgba(0,0,0,.5); }
  .oc-sidebar.open { transform: translateX(0); }
  .oc-sidebar-backdrop.open { display: block; position: fixed; inset: 62px 0 0; background: rgba(0,0,0,.5); z-index: 90; }
  .oc-main { margin-left: 0; }
}
@media (max-width: 560px) {
  .oc-container { padding: 28px 18px 80px; }
  .oc-callout { padding: 18px 18px 18px 52px; }
  .oc-version-pill { display: none; }
}

/* ---- Tarjetas de caminos (comparativa de opciones) ---- */
.oc-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 30px 0 26px; }
.oc-path { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border-subtle); border-radius: 18px; padding: 26px 22px 20px; background: var(--surface-card); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease; }
.oc-path:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.oc-path--star { border-color: var(--border-accent); background: linear-gradient(180deg, var(--surface-coral-soft), var(--surface-card) 55%); }
.oc-path--star:hover { box-shadow: 0 18px 44px var(--shadow-coral-mid); }
.oc-path-badge { position: absolute; top: -12px; left: 18px; font-family: var(--font-mono); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .4em .9em; border-radius: 999px; white-space: nowrap; }
.oc-path-badge--coral { background: linear-gradient(135deg, var(--coral-bright), var(--coral-dark)); color: #fff; box-shadow: 0 6px 16px var(--shadow-coral-mid); }
.oc-path-badge--cyan { background: var(--cyan-bright); color: var(--bg-deep); box-shadow: 0 6px 16px var(--shadow-cyan-soft); }
.oc-path-icon { font-size: 1.9rem; line-height: 1; margin-bottom: 10px; display: block; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.oc-prose .oc-path h3 { font-size: 1.2rem; margin: 0; }
.oc-path h3 small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .76rem; color: var(--text-muted); margin-top: 3px; letter-spacing: 0; }
.oc-prose .oc-path ul { list-style: none; margin: 14px 0 16px; padding: 0; font-size: .88rem; }
.oc-path li { position: relative; padding-left: 24px; margin: .5rem 0; color: var(--text-secondary); }
.oc-path li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.oc-path li.si::before { content: "✓"; color: var(--cyan-bright); }
.oc-path li.no::before { content: "✗"; color: var(--coral-bright); }
.oc-path-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-subtle); font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); line-height: 1.5; }

/* ---- Stepper (paso a paso numerado) ---- */
.oc-prose ol.oc-steps { list-style: none; margin: 26px 0 30px; padding: 0; counter-reset: ocstep; }
ol.oc-steps > li { position: relative; padding: 2px 0 28px 58px; margin: 0; counter-increment: ocstep; color: var(--text-secondary); }
ol.oc-steps > li:last-child { padding-bottom: 6px; }
ol.oc-steps > li::before { content: counter(ocstep); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; background: linear-gradient(135deg, var(--coral-bright), var(--coral-dark)); box-shadow: 0 6px 18px var(--shadow-coral-mid), inset 0 1px 0 rgba(255,255,255,.25); }
ol.oc-steps > li::after { content: ""; position: absolute; left: 18px; top: 44px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--border-accent), transparent); }
ol.oc-steps > li:last-child::after { display: none; }
ol.oc-steps--cyan > li::before { background: linear-gradient(135deg, var(--cyan-bright), var(--cyan-mid)); color: var(--bg-deep); box-shadow: 0 6px 18px var(--shadow-cyan-soft), inset 0 1px 0 rgba(255,255,255,.35); }
ol.oc-steps--cyan > li::after { background: linear-gradient(180deg, rgba(0,229,204,.35), transparent); }
.oc-prose ol.oc-steps ul { list-style: disc; margin: 8px 0 0 18px; }

/* ---- Flujo (chips con flechas, ej. onboarding) ---- */
.oc-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 22px 0; }
.oc-flow .chip { flex: 1; min-width: 150px; border: 1px solid var(--border-subtle); background: var(--surface-card); border-radius: 14px; padding: 14px 12px; text-align: center; transition: border-color .2s ease, transform .2s var(--ease); }
.oc-flow .chip:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.oc-flow .chip .k { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; color: var(--coral-bright); display: block; margin-bottom: 6px; }
.oc-flow .chip b { font-family: var(--font-display); font-weight: 600; color: var(--text-primary); font-size: .95rem; }
.oc-flow .chip small { display: block; color: var(--text-muted); margin-top: 5px; font-size: .73rem; line-height: 1.45; }
.oc-flow .chip--ok { border-color: rgba(0,229,204,.35); background: var(--surface-cyan-soft); }
.oc-flow .chip--ok .k { color: var(--cyan-bright); }
.oc-flow .arrow { align-self: center; color: var(--coral-bright); font-weight: 700; font-size: 1.1rem; }
@media (max-width: 640px) {
  .oc-flow { flex-direction: column; }
  .oc-flow .arrow { transform: rotate(90deg); align-self: center; }
}
