/* GoSoft · tutoriales y teoría — estilo macOS / Apple, claro y oscuro (27/11/2026) */
:root {
  --bg: #f5f5f7; --sup: #ffffff; --sup2: #fbfbfd; --txt: #1d1d1f; --txt2: #6e6e73; --txt3: #86868b;
  --linea: rgba(0, 0, 0, .1); --linea2: rgba(0, 0, 0, .05);
  --acento: #6d28d9; --acento-txt: #6d28d9; --acento-suave: rgba(109, 40, 217, .09); --boton: #6d28d9;
  --barra: rgba(245, 245, 247, .74);
  --sombra: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .06);
  --sombra-h: 0 6px 16px rgba(0, 0, 0, .07), 0 24px 56px rgba(0, 0, 0, .12);
  --ok: #1a7f37; --ok-bg: #ebf8ef; --aviso: #b25000; --aviso-bg: #fff5e8; --peligro: #c9001a; --peligro-bg: #fff0f1; --info: #0066cc; --info-bg: #ecf4ff;
  --radio: 18px; --barra-alto: 52px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="light"]) {
    --bg: #000000; --sup: #1c1c1e; --sup2: #161617; --txt: #f5f5f7; --txt2: #a1a1a6; --txt3: #8e8e93;
    --linea: rgba(255, 255, 255, .12); --linea2: rgba(255, 255, 255, .07);
    --acento: #a78bfa; --acento-txt: #c4b5fd; --acento-suave: rgba(167, 139, 250, .16); --boton: #7c3aed;
    --barra: rgba(22, 22, 23, .74);
    --sombra: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px rgba(0, 0, 0, .35);
    --sombra-h: 0 6px 16px rgba(0, 0, 0, .5), 0 24px 56px rgba(0, 0, 0, .55);
    --ok: #30d158; --ok-bg: rgba(48, 209, 88, .12); --aviso: #ff9f0a; --aviso-bg: rgba(255, 159, 10, .12); --peligro: #ff6961; --peligro-bg: rgba(255, 69, 58, .13); --info: #64b5ff; --info-bg: rgba(10, 132, 255, .14);
    color-scheme: dark;
  }
  :root:not([data-tema="light"]) .tema .i-luna { display: none; }
  :root:not([data-tema="light"]) .tema .i-sol { display: block; }
}
:root[data-tema="dark"] {
  --bg: #000000; --sup: #1c1c1e; --sup2: #161617; --txt: #f5f5f7; --txt2: #a1a1a6; --txt3: #8e8e93;
  --linea: rgba(255, 255, 255, .12); --linea2: rgba(255, 255, 255, .07);
  --acento: #a78bfa; --acento-txt: #c4b5fd; --acento-suave: rgba(167, 139, 250, .16); --boton: #7c3aed;
  --barra: rgba(22, 22, 23, .74);
  --sombra: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px rgba(0, 0, 0, .35);
  --sombra-h: 0 6px 16px rgba(0, 0, 0, .5), 0 24px 56px rgba(0, 0, 0, .55);
  --ok: #30d158; --ok-bg: rgba(48, 209, 88, .12); --aviso: #ff9f0a; --aviso-bg: rgba(255, 159, 10, .12); --peligro: #ff6961; --peligro-bg: rgba(255, 69, 58, .13); --info: #64b5ff; --info-bg: rgba(10, 132, 255, .14);
  color-scheme: dark;
}
:root[data-tema="dark"] .tema .i-luna { display: none; }
:root[data-tema="dark"] .tema .i-sol { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -.011em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background .3s, color .3s;
}
h1, h2, h3, h4 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif; font-weight: 700; color: var(--txt); }
a { color: var(--acento-txt); }
img { max-width: 100%; }
kbd { font: 600 11.5px/1 -apple-system, "Inter", sans-serif; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--linea); background: var(--sup2); color: var(--txt3); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--acento) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ── Barra superior (vidrio esmerilado) ── */
.barra { position: sticky; top: 0; z-index: 60; background: var(--barra); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--linea2); }
.barra-in { max-width: 1440px; margin: 0 auto; height: var(--barra-alto); display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.marca { display: flex; align-items: center; gap: 9px; font-weight: 650; color: var(--txt); text-decoration: none; font-size: 17px; white-space: nowrap; }
.marca img { border-radius: 7px; }
.marca em { font-style: normal; color: var(--txt2); font-weight: 500; }
.secciones { display: flex; gap: 2px; margin-left: 14px; }
.secciones a { padding: 6px 13px; border-radius: 999px; color: var(--txt2); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.secciones a:hover { color: var(--txt); background: var(--linea2); }
.secciones a[aria-current] { background: var(--acento-suave); color: var(--acento-txt); }
.espacio { flex: 1; }
.buscar-btn { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; border-radius: 10px; border: 1px solid var(--linea2); background: var(--linea2); color: var(--txt3); font: inherit; font-size: 14px; cursor: pointer; min-width: 210px; transition: background .2s; }
.buscar-btn:hover { background: var(--linea); }
.buscar-btn svg { width: 16px; height: 16px; flex: none; }
.buscar-btn span { flex: 1; text-align: left; }
.banderas { display: flex; gap: 2px; background: var(--linea2); padding: 3px; border-radius: 10px; }
.banderas a { display: flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 7px; text-decoration: none; color: var(--txt2); font-size: 11.5px; font-weight: 650; transition: background .2s; }
.banderas a:hover { background: var(--linea2); }
.banderas a[aria-current] { background: var(--sup); color: var(--txt); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.banderas svg { width: 21px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25); display: block; }
.icono { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: var(--txt2); border-radius: 10px; cursor: pointer; flex: none; transition: background .2s, color .2s; }
.icono:hover { background: var(--linea2); color: var(--txt); }
.icono svg { width: 20px; height: 20px; }
.tema .i-sol { display: none; }
.boton-menu { display: none; }
.progreso { position: fixed; top: var(--barra-alto); left: 0; height: 2px; background: var(--acento); width: 0; z-index: 61; transition: width .1s linear; }

/* ── Inicio ── */
.ancho { max-width: 1160px; margin: 0 auto; padding: 0 20px 72px; }
.kicker { font-size: 14px; font-weight: 600; color: var(--acento-txt); margin: 0; letter-spacing: 0; }
.bajada { font-size: 21px; color: var(--txt2); line-height: 1.45; letter-spacing: -.015em; }
.heroe { text-align: center; padding: 76px 0 44px; }
.heroe h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.04; letter-spacing: -.045em; margin: 10px 0 18px;
  background: linear-gradient(100deg, var(--txt) 30%, #7c3aed 62%, #0d9488 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.heroe .bajada { max-width: 740px; margin: 0 auto; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
/* (28/11/2026) Tres tarjetas en el inicio: Tutoriales, Teoría y Curso de contabilidad. */
.dos.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.inicio .ancho { max-width: 1480px; }
/* Tarjetas anchas y cuadradas: el contenido se compacta para que las tres queden parejas. */
.tres .grande { aspect-ratio: 1 / 1.12; min-height: 0; padding: 30px 32px 28px; gap: 11px; border-radius: 28px; }
.tres .grande .ico svg { width: 50px; height: 50px; }
.tres .grande h2 { font-size: clamp(24px, 2.1vw, 30px); }
.tres .grande p { font-size: 15.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tres .chips span { font-size: 12.5px; padding: 4px 11px; }
.tres .temario { gap: 6px; max-height: 70px; overflow: hidden; }
.tres .temario span { font-size: 12.5px; padding: 5px 10px; }
.tres .apilado { aspect-ratio: 2.7 / 1; margin: 4px 0 0; }
.tres .apilado img { width: 56%; }
.tres .grande > * { flex-shrink: 0; }
.tres .grande > .apilado, .tres .grande > .temario { flex: 1 1 auto; min-height: 0; }
.tres .grande > .apilado { aspect-ratio: auto; max-height: 200px; min-height: 110px; overflow: visible; }
/* Las capturas se miden por el alto del espacio libre: nunca tapan el enlace del pie. */
.tres .apilado img { width: auto; height: 78%; max-width: 62%; object-fit: cover; object-position: top left; }
.tres .apilado img:nth-child(1) { left: 0; top: 14%; }
.tres .apilado img:nth-child(2) { left: 50%; top: 2%; transform: translateX(-50%); }
.tres .apilado img:nth-child(3) { left: auto; right: 0; top: 16%; }
.tres .grande:hover .apilado img:nth-child(2) { transform: translateX(-50%) translateY(-3px); }
.tres .enlace { position: relative; z-index: 3; }
.tres .grande > .temario { align-content: flex-start; max-height: none; }
.grande.conta .ico svg { filter: drop-shadow(0 6px 14px rgba(29, 78, 216, .3)); }
.grande.conta .temario span { background: color-mix(in srgb, #2563eb 10%, transparent); color: color-mix(in srgb, #2563eb 75%, var(--txt)); }
.grande.conta .enlace { color: color-mix(in srgb, #2563eb 85%, var(--txt)); }
.grande { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 36px 36px 32px; border-radius: 30px; background: var(--sup); box-shadow: var(--sombra);
  text-decoration: none; color: var(--txt); overflow: hidden; min-height: 560px; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.grande:hover { transform: translateY(-5px); box-shadow: var(--sombra-h); }
.grande .ico svg { width: 58px; height: 58px; display: block; filter: drop-shadow(0 6px 14px rgba(109, 40, 217, .3)); }
.grande.teo .ico svg { filter: drop-shadow(0 6px 14px rgba(15, 118, 110, .3)); }
.grande h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.08; letter-spacing: -.035em; margin: 6px 0 0; }
.grande p { color: var(--txt2); font-size: 17px; margin: 0; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--linea2); color: var(--txt2); }
.apilado { position: relative; display: block; aspect-ratio: 2.25 / 1; margin: 8px 0 4px; }
.apilado img { position: absolute; width: 62%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18), 0 0 0 1px var(--linea); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.apilado img:nth-child(1) { left: 0; top: 30px; transform: rotate(-4deg); }
.apilado img:nth-child(2) { left: 19%; top: 6px; z-index: 2; }
.apilado img:nth-child(3) { right: 0; top: 34px; transform: rotate(4deg); }
.grande:hover .apilado img:nth-child(1) { transform: rotate(-7deg) translateX(-8px); }
.grande:hover .apilado img:nth-child(3) { transform: rotate(7deg) translateX(8px); }
.temario { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 4px; }
.temario span { font-size: 13.5px; padding: 6px 12px; border-radius: 10px; background: color-mix(in srgb, #0d9488 10%, transparent); color: color-mix(in srgb, #0d9488 75%, var(--txt)); font-weight: 500; }
.enlace { margin-top: auto; color: var(--acento-txt); font-weight: 600; font-size: 17px; }
.grande.teo .enlace { color: color-mix(in srgb, #0d9488 80%, var(--txt)); }
.atajo { text-align: center; color: var(--txt3); font-size: 13px; margin-top: 36px; }

/* ── Lista de tutoriales ── */
.titular { padding: 56px 0 18px; }
.titular h1 { font-size: clamp(36px, 5.5vw, 60px); line-height: 1.05; letter-spacing: -.04em; margin: 8px 0 14px; }
.titular .bajada { max-width: 780px; margin: 0 0 18px; }
.boton { display: inline-flex; align-items: center; gap: 6px; padding: 11px 22px; border-radius: 999px; background: var(--boton); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; transition: filter .2s, transform .2s; }
.boton:hover { filter: brightness(1.1); transform: translateY(-1px); }
.segmentos { position: sticky; top: var(--barra-alto); z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 14px; margin: 0 -4px; background: linear-gradient(var(--bg) 75%, transparent); scrollbar-width: none; }
.segmentos::-webkit-scrollbar { display: none; }
.segmentos a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: var(--sup); box-shadow: var(--sombra); color: var(--txt); text-decoration: none; font-size: 14px; font-weight: 500; transition: transform .2s; }
.segmentos a:hover { transform: translateY(-1px); }
.segmentos b { color: var(--acento-txt); margin-right: 7px; }
.parte { padding-top: 34px; scroll-margin-top: 120px; }
.parte-cab h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.03em; margin: 4px 0 6px; line-height: 1.1; }
.parte-cab p:last-child { color: var(--txt2); max-width: 780px; margin: 0 0 20px; }
.caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.cap { display: flex; flex-direction: column; background: var(--sup); border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); text-decoration: none; color: var(--txt); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.cap:hover { transform: translateY(-4px); box-shadow: var(--sombra-h); }
.mini { aspect-ratio: 16 / 9; overflow: hidden; background: var(--linea2); display: block; border-bottom: 1px solid var(--linea2); }
.mini img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.cap:hover .mini img { transform: scale(1.05); }
.cap-txt { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.cap-txt .n { font-size: 12.5px; font-weight: 600; color: var(--acento-txt); }
.cap-txt strong { font-size: 17px; line-height: 1.28; letter-spacing: -.02em; }
.cap-txt .r { font-size: 14px; color: var(--txt2); line-height: 1.45; }

/* ── Páginas con menú lateral (capítulo y lección) ── */
.con-lateral { display: grid; grid-template-columns: 290px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
.lateral { position: sticky; top: var(--barra-alto); height: calc(100vh - var(--barra-alto)); overflow-y: auto; border-right: 1px solid var(--linea2); scrollbar-width: thin; }
.lateral-in { padding: 20px 12px 48px; }
.lateral-tit { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--txt3); margin: 0 10px 10px; }
.lateral details { margin-bottom: 2px; }
.lateral summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--txt); line-height: 1.3; }
.lateral summary::-webkit-details-marker { display: none; }
.lateral summary:hover { background: var(--linea2); }
.lateral summary .n { flex: none; min-width: 24px; height: 24px; border-radius: 7px; background: var(--linea2); display: grid; place-items: center; font-size: 11.5px; color: var(--txt2); }
.lateral summary::after { content: ''; flex: none; margin-left: auto; width: 7px; height: 7px; border-right: 1.8px solid var(--txt3); border-bottom: 1.8px solid var(--txt3); transform: rotate(-45deg); transition: transform .2s; }
.lateral details[open] summary::after { transform: rotate(45deg); }
.lateral ul { list-style: none; margin: 2px 0 10px; padding: 0 0 0 12px; }
.lateral li a { display: flex; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; color: var(--txt2); text-decoration: none; line-height: 1.35; }
.lateral li a:hover { background: var(--linea2); color: var(--txt); }
.lateral li a[aria-current] { background: var(--acento-suave); color: var(--acento-txt); font-weight: 600; }
.lateral li a .n { color: var(--txt3); min-width: 20px; font-variant-numeric: tabular-nums; }
.lateral li a[aria-current] .n { color: inherit; }
.velo { display: none; }

.contenido { display: grid; grid-template-columns: minmax(0, 760px) 210px; gap: 56px; justify-content: center; padding: 28px 32px 88px; }
.columna { min-width: 0; }
.toc { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: 13px; scrollbar-width: none; }
.toc p { margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--txt3); font-weight: 650; }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--linea2); color: var(--txt2); text-decoration: none; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a.n3 { padding-left: 24px; font-size: 12.5px; }
.toc a:hover { color: var(--txt); }
.toc a.activo { border-left-color: var(--acento); color: var(--acento-txt); font-weight: 500; }

.migas { font-size: 13px; color: var(--txt3); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.migas a { color: var(--txt2); text-decoration: none; }
.migas a:hover { color: var(--acento-txt); }
.cabecera h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.07; letter-spacing: -.035em; margin: 8px 0 14px; }
.cabecera .bajada { font-size: 19px; margin: 0 0 16px; }
.cabecera { margin-bottom: 30px; }

.tarjeta { background: var(--sup); border-radius: var(--radio); box-shadow: var(--sombra); padding: 22px 26px; margin: 0 0 28px; }
.tarjeta > h2 { font-size: 20px; margin: 0 0 12px; letter-spacing: -.02em; }
.aprende ul, .resumen ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.aprende li, .resumen li { position: relative; padding-left: 30px; }
.aprende li::before, .resumen li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--acento-suave); color: var(--acento-txt); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.h-video span { font-weight: 500; color: var(--txt3); font-size: 15px; margin-left: 6px; }
.video video, .yt iframe { width: 100%; border-radius: 14px; background: #000; display: block; aspect-ratio: 16 / 9; border: 0; }
.video-nota { font-size: 12.5px; color: var(--txt3); margin: 12px 0 0; line-height: 1.5; }
.video-nota a { color: inherit; }

.paso { margin: 48px 0 0; }
.paso > h2 { display: flex; gap: 14px; align-items: center; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.03em; line-height: 1.18; margin: 0 0 16px; }
.paso > h2 .num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--acento); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 700; letter-spacing: 0; }
:root[data-tema="dark"] .paso > h2 .num { color: #1c1c1e; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="light"]) .paso > h2 .num { color: #1c1c1e; } }
.columna p { margin: 0 0 16px; }
.columna h3 { font-size: 20px; letter-spacing: -.02em; margin: 26px 0 10px; }
.columna ul, .columna ol { padding-left: 22px; margin: 0 0 18px; }
.columna li { margin: 0 0 6px; }
.pasos-cortos { counter-reset: pc; list-style: none; padding: 0 !important; }
.pasos-cortos li { counter-increment: pc; position: relative; padding-left: 36px; margin-bottom: 10px; }
.pasos-cortos li::before { content: counter(pc); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; background: var(--acento-suave); color: var(--acento-txt); font-size: 13px; font-weight: 700; display: grid; place-items: center; }

/* Captura con marco de ventana de macOS */
figure.captura { margin: 22px 0 12px; }
.ampliar { display: block; width: 100%; padding: 0; border: 0; background: var(--sup); border-radius: 12px; overflow: hidden; cursor: zoom-in; box-shadow: 0 0 0 1px var(--linea), 0 14px 34px rgba(0, 0, 0, .10); text-align: left; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.ampliar:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--linea), 0 22px 48px rgba(0, 0, 0, .16); }
.ventana { display: flex; gap: 7px; padding: 9px 12px; background: var(--sup2); border-bottom: 1px solid var(--linea2); }
.ventana i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: block; }
.ventana i:nth-child(2) { background: #febc2e; }
.ventana i:nth-child(3) { background: #28c840; }
.ampliar img { display: block; width: 100%; height: auto; }
figcaption { font-size: 13.5px; color: var(--txt3); text-align: center; margin-top: 10px; line-height: 1.45; }
.leyenda { list-style: none; padding: 0 !important; margin: 14px 0 22px; display: grid; gap: 9px; }
.leyenda li { display: flex; gap: 10px; font-size: 15.5px; margin: 0; }
.marca-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #e11d48; color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }

/* Cajas */
.caja { border-radius: 16px; padding: 16px 20px 16px 52px; margin: 0 0 24px; position: relative; font-size: 16px; background: var(--info-bg); }
.caja::before { position: absolute; left: 18px; top: 16px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; content: 'i'; background: var(--info); }
.caja p:last-child, .caja ul:last-child, .caja ol:last-child { margin-bottom: 0; }
.titulo-caja { display: block; font-weight: 650; margin-bottom: 4px; }
.caja.importante { background: var(--aviso-bg); }
.caja.importante::before { content: '!'; background: var(--aviso); }
.caja.error { background: var(--peligro-bg); }
.caja.error::before { content: '×'; background: var(--peligro); }
.caja.consejo { background: var(--ok-bg); }
.caja.consejo::before { content: '✓'; background: var(--ok); }
:root[data-tema="dark"] .caja::before { color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="light"]) .caja::before { color: #000; } }
.vistas { display: grid; gap: 16px; margin: 0 0 22px; }
.vista { background: var(--sup); border-radius: 16px; padding: 18px 22px 6px; box-shadow: var(--sombra); }
.vista h3 { margin-top: 0 !important; }

.navegacion { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.navegacion a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 16px; background: var(--sup); box-shadow: var(--sombra); text-decoration: none; color: var(--txt); transition: transform .25s, box-shadow .25s; }
.navegacion a:hover { transform: translateY(-2px); box-shadow: var(--sombra-h); }
.navegacion span { font-size: 13px; color: var(--txt3); }
.navegacion b { font-weight: 600; color: var(--acento-txt); line-height: 1.3; }
.navegacion .sig { text-align: right; grid-column: 2; }

/* ── Teoría ── */
.prosa h2 { font-size: clamp(24px, 2.8vw, 30px); letter-spacing: -.03em; line-height: 1.15; margin: 48px 0 14px; }
.prosa h3 { font-size: 21px; margin: 30px 0 10px; }
.prosa a { text-decoration: none; font-weight: 500; }
.prosa a:hover { text-decoration: underline; }
.prosa hr { border: 0; border-top: 1px solid var(--linea); margin: 36px 0; }
code { font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--linea2); padding: 2px 6px; border-radius: 6px; }
.tabla { overflow-x: auto; margin: 0 0 26px; border-radius: 14px; box-shadow: 0 0 0 1px var(--linea); background: var(--sup); }
.tabla table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabla th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--txt3); text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--linea); font-weight: 650; background: var(--sup2); }
.tabla td { padding: 11px 14px; border-bottom: 1px solid var(--linea2); vertical-align: top; line-height: 1.5; }
.tabla tr:last-child td { border-bottom: 0; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.asiento { margin: 0 0 26px; border-radius: 14px; overflow: hidden; background: var(--sup); box-shadow: 0 0 0 1px var(--linea), var(--sombra); }
.asiento .cab { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--acento-suave); color: var(--acento-txt); font-size: 13.5px; font-weight: 600; }
.asiento table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.asiento td, .asiento th { padding: 8px 16px; border-bottom: 1px solid var(--linea2); }
.asiento th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--txt3); text-align: left; font-weight: 650; }
.asiento td.num, .asiento th.num { width: 150px; }
.asiento td.haber { padding-left: 46px; }
.asiento tr.total td { font-weight: 700; border-top: 1px solid var(--linea); border-bottom: 0; }
.asiento .glosa { padding: 8px 16px 12px; font-size: 13.5px; color: var(--txt3); font-style: italic; }
.objetivos .titulo-caja, .quiz .titulo-caja { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--acento-txt); font-weight: 700; margin-bottom: 8px; }
.objetivos ul { margin: 0; padding-left: 20px; }
.objetivos li { margin-bottom: 4px; }
.pasos { counter-reset: paso; list-style: none; padding: 0 !important; margin: 0 0 28px; }
.pasos > li { counter-increment: paso; position: relative; padding: 0 0 20px 34px; margin: 0 0 0 15px; border-left: 2px solid var(--linea); }
.pasos > li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.pasos > li::before { content: counter(paso); position: absolute; left: -16px; top: -3px; width: 30px; height: 30px; border-radius: 50%; background: var(--acento); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg); }
:root[data-tema="dark"] .pasos > li::before { color: #1c1c1e; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="light"]) .pasos > li::before { color: #1c1c1e; } }
.pasos > li p { margin: 0 0 8px; }
.quiz { background: var(--sup); border-radius: var(--radio); box-shadow: var(--sombra); padding: 18px 22px 8px; margin: 0 0 28px; }
.quiz details { border-top: 1px solid var(--linea2); padding: 12px 0; }
.quiz summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 10px; }
.quiz summary::-webkit-details-marker { display: none; }
.quiz summary::before { content: '?'; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--acento-suave); color: var(--acento-txt); font-size: 12.5px; font-weight: 800; display: grid; place-items: center; margin-top: 2px; }
.quiz details[open] summary::before { content: '✓'; }
.quiz details p { margin: 8px 0 2px 32px; color: var(--txt2); }
.relacionados > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.relacionados a { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--sup2); box-shadow: 0 0 0 1px var(--linea); text-decoration: none; color: var(--txt); transition: transform .25s; }
.relacionados a:hover { transform: translateY(-2px); }
.relacionados img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; width: 100%; height: auto; display: block; }
.relacionados span { padding: 10px 12px 12px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.relacionados small { display: block; color: var(--acento-txt); font-weight: 600; font-size: 12px; margin-bottom: 2px; }
.modulos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 18px; }
.modulo { margin: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.modulo:hover { transform: translateY(-3px); box-shadow: var(--sombra-h); }
.modulo h2 { font-size: 22px; letter-spacing: -.025em; margin: 4px 0 6px; line-height: 1.2; }
.modulo h2 a { color: var(--txt); text-decoration: none; }
.modulo .r { color: var(--txt2); font-size: 15px; margin: 0; line-height: 1.5; }
.modulo ol { margin: 14px 0 0; padding-left: 20px; font-size: 14.5px; }
.modulo li { margin-bottom: 4px; }
.modulo ol a { text-decoration: none; }
.modulo ol a:hover { text-decoration: underline; }

/* ── Llamado a conocer GoSoft (discreto, antes del pie) ── */
.cta-gosoft { padding: 8px 16px 32px; }
.cta-gosoft > div { max-width: 880px; margin: 0 auto; display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 18px 22px; border-radius: 18px; background: var(--sup); box-shadow: var(--sombra); }
.cta-gosoft p { margin: 0; color: var(--txt2); font-size: 15px; line-height: 1.45; }
.cta-gosoft .boton { flex: none; padding: 9px 18px; font-size: 15px; }
@media (max-width: 600px) { .cta-gosoft > div { flex-direction: column; align-items: flex-start; } }
.con-lateral + .cta-gosoft { margin-top: -40px; }

/* ── Pie ── */
.pie { text-align: center; color: var(--txt3); font-size: 12.5px; padding: 28px 16px 40px; border-top: 1px solid var(--linea2); }
.pie a { color: var(--txt2); text-decoration: none; }

/* ── Buscador (estilo Spotlight) ── */
.buscador { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: aparecer .18s ease; }
@keyframes aparecer { from { opacity: 0; } }
.buscador-caja { width: min(680px, 100%); background: var(--sup); border-radius: 18px; box-shadow: 0 30px 90px rgba(0, 0, 0, .35); overflow: hidden; border: 1px solid var(--linea); animation: subir .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes subir { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.buscador-campo { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--linea2); }
.buscador-campo svg { width: 20px; height: 20px; color: var(--txt3); flex: none; }
.buscador-campo input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 20px; color: var(--txt); }
.buscador-campo input::-webkit-search-cancel-button { display: none; }
.buscador-res { max-height: 60vh; overflow: auto; padding: 6px 8px 8px; }
.res-grupo { font-size: 11.5px; font-weight: 650; color: var(--txt3); text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px 4px; }
.res { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--txt); }
.res b { display: block; font-size: 15px; font-weight: 600; }
.res span { display: block; font-size: 13px; color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res.sel { background: var(--boton); color: #fff; }
.res.sel span { color: rgba(255, 255, 255, .85); }
.res mark { background: transparent; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.res-vacio { padding: 26px; text-align: center; color: var(--txt3); }

/* ── Visor de capturas ── */
.visor { position: fixed; inset: 0; z-index: 110; background: rgba(10, 10, 14, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: none; flex-direction: column; }
.visor.abierto { display: flex; }
.visor .arriba { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #fff; font-size: 14px; }
.visor .arriba span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visor button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 18px; cursor: pointer; }
.visor button:hover { background: rgba(255, 255, 255, .24); }
.visor .lienzo { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; display: flex; }
.visor .lienzo img { margin: auto; max-width: none; width: 100%; transition: width .15s ease; border-radius: 8px; }
.visor .ayuda { color: #c7c7cc; text-align: center; font-size: 12.5px; padding: 6px 10px 12px; }

/* ── Elegir idioma (raíz) ── */
.elegir-idioma { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.elegir-idioma img { border-radius: 14px; }
.elegir-idioma nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.elegir-idioma a { display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 12px; background: var(--sup); box-shadow: var(--sombra); text-decoration: none; color: var(--txt); font-weight: 600; }
.elegir-idioma svg { width: 22px; height: 15px; border-radius: 3px; }

/* ── Pantallas medianas y celulares ── */
@media (max-width: 1279px) {
  .contenido { grid-template-columns: minmax(0, 760px); }
  .toc { display: none; }
}
@media (max-width: 1023px) {
  .con-lateral { display: block; }
  .lateral { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: 310px; max-width: 86vw; z-index: 90; background: var(--sup); transform: translateX(-102%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); border-right: 0; box-shadow: var(--sombra-h); }
  .lateral.abierto { transform: none; }
  .velo { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 85; }
  .velo.visible { opacity: 1; pointer-events: auto; }
  .boton-menu { display: grid; }
  .contenido { padding: 22px 20px 64px; }
  .dos { grid-template-columns: 1fr; }
  .dos.tres { grid-template-columns: 1fr; }
  .tres .grande { aspect-ratio: auto; }
  .tres .grande p { -webkit-line-clamp: unset; display: block; }
  .grande { min-height: 0; }
}
@media (max-width: 1100px) {
  .buscar-btn { min-width: 0; width: 34px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .buscar-btn span, .buscar-btn kbd { display: none; }
  .buscar-btn svg { width: 19px; height: 19px; color: var(--txt2); }
}
@media (max-width: 760px) {
  .secciones { display: none; }
  .bajada { font-size: 18px; }
  .heroe { padding: 44px 0 28px; }
  .grande { padding: 26px 22px 24px; border-radius: 24px; }
  .navegacion { grid-template-columns: 1fr; }
  .navegacion .sig { grid-column: auto; }
  .tarjeta { padding: 18px 18px; }
  .caja { padding: 14px 16px 14px 46px; }
  .caja::before { left: 14px; top: 14px; }
  .atajo { display: none; }
  .modulos { grid-template-columns: 1fr; }
  .buscador { padding-top: 8vh; }
}
@media (max-width: 900px) {
  .banderas a span { display: none; }
  .banderas a { padding: 5px 6px; }
}
@media (max-width: 560px) {
  .barra-in { gap: 6px; padding: 0 10px; }
  .banderas a { padding: 5px 6px; }
  .marca em { display: none; }
  .contenido { padding: 18px 16px 56px; }
  .ancho { padding: 0 16px 56px; }
  .caps { grid-template-columns: 1fr; }
  .paso > h2 .num { width: 30px; height: 30px; font-size: 14px; }
  .tabla table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .barra, .lateral, .toc, .pie, .navegacion, .buscador, .progreso { display: none !important; } .con-lateral, .contenido { display: block; } }
