/* Experiencia compartida: orientación por color y lectura adaptable. */
html {
  --section-blue:#285bb5; --section-green:#23755e; --section-violet:#7052ac; --section-plum:#202020;
  --section-work:#14636B; --section-work-soft:#E0F0EF;
}
body { -webkit-font-smoothing:antialiased; }
body:not(.theme-learning):not(.theme-vibe):not(.theme-lupa) { --paper:#f8faf7; --card:#fff; --soft:#edf3ed; --line:#dbe5dd; --ink:#193d35; --muted:#526a60; --olive:#23755e; }
html body .site-header { max-width:1200px; padding:24px 32px; gap:24px; }
html body .brand-logo { width:200px; }
html body .site-header nav { gap:6px; width:auto; }
html body .site-header nav a { padding:10px 14px; border-radius:10px; min-height:44px; font-size:14px; border:1px solid transparent; transition:background .15s; }
html body .site-header nav a:nth-child(1) { --nav-color:var(--section-blue); --nav-soft:#edf3ff; }
html body .site-header nav a:nth-child(2) { --nav-color:var(--section-green); --nav-soft:#eaf5ee; }
html body .site-header nav a.organizaciones-nav { --nav-color:var(--section-work); --nav-soft:var(--section-work-soft); }
html body .site-header nav a.vibe-nav { --nav-color:var(--section-violet); --nav-soft:#f1edfa; }
html body .site-header nav a.lupa-nav { --nav-color:var(--section-plum); --nav-soft:#f0f0f0; }
html body .site-header nav a::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--nav-color); margin-right:8px; flex-shrink:0; }
html body .site-header nav a:hover,html body .site-header nav a[aria-current="page"] { background:var(--nav-soft); border-color:color-mix(in srgb,var(--nav-color) 20%,transparent); color:var(--nav-color); text-decoration:none; }
html body .site-header nav a[aria-current="page"] { font-weight:700; }
html body a:focus-visible,html body button:focus-visible,html body input:focus-visible { outline:3px solid var(--olive); outline-offset:4px; }
html body .button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:46px; border-radius:10px; font-weight:600; }
html body .button.primary { background:var(--ink); color:var(--paper); }
html body .page-intro { padding-block:46px 30px; }
html body .page-intro h1 { max-width:20ch; }
html body .page-intro>p { max-width:65ch; font-size:18px; color:var(--muted); }
.home-intro { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); align-items:center; gap:56px; padding:56px 0 48px; }
.home-intro h1 { font:400 clamp(42px,5.3vw,66px)/1.05 Georgia,serif; letter-spacing:-2.5px; margin:20px 0 24px; max-width:15ch; }
.home-intro h1 em { color:var(--section-green); }
.home-intro .lead { font-size:17px; max-width:49ch; line-height:1.75; }
.home-intro .actions { margin-top:22px; align-items:center; gap:10px; }
.home-intro .actions .button { padding:12px 18px; min-height:48px; font-size:14px; }
.home-intro .actions .button.primary { box-shadow:0 4px 10px #193d3510; }
.home-intro .actions .button:not(.primary) { border-color:transparent; background:transparent; }
.home-intro .actions .button:not(.primary):hover { background:#edf3ed; }
.home-note { font-size:12px; color:var(--muted); margin-top:14px; }
.home-resource-total { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; column-gap:18px; row-gap:4px; margin:24px 0 0; padding:16px 20px; border:1px solid #dfe8df; border-radius:14px; background:#eef3ec; }
.home-resource-figure { display:contents; }
.home-resource-figure strong { grid-column:1; grid-row:1 / 3; align-self:center; font:400 70px/.95 Georgia,serif; letter-spacing:-3px; color:var(--section-green); font-variant-numeric:tabular-nums; }
.home-resource-figure span { grid-column:2; align-self:end; font-size:16px; line-height:1.35; font-weight:600; }
.home-resource-breakdown { grid-column:2; align-self:start; margin:0; font-size:12px; line-height:1.8; color:#526a60; }
.home-resource-breakdown a { text-decoration:none; text-underline-offset:3px; }
.home-resource-breakdown a:hover { text-decoration:underline; }
.start-panel { background:#fff; border:1px solid var(--line); border-radius:22px; padding:30px; box-shadow:0 16px 48px -24px #193d3524; }
.start-panel>.eyebrow { display:flex; align-items:center; gap:8px; font-size:10px; letter-spacing:1.5px; }
.start-panel>.eyebrow::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--section-green); }
.start-panel h2 { font:400 32px/1.15 Georgia,serif; letter-spacing:-.8px; margin:12px 0 20px; }
.start-panel ol { list-style:none; padding:0; margin:0; display:grid; gap:0; }
.start-panel li+li { border-top:1px solid #e8ede8; }
.start-panel a { display:grid; grid-template-columns:42px minmax(0,1fr) 28px; align-items:center; gap:14px; padding:22px 0; border-radius:0; background:transparent; text-decoration:none; color:#243c3a; border:0; }
.start-panel a:hover strong { color:var(--path-color); text-decoration:underline; text-underline-offset:4px; }
.start-panel a>span:last-child { display:grid; place-items:center; width:28px; height:28px; border:1px solid var(--line); border-radius:50%; font-size:13px; transition:background .15s; }
.start-panel a:hover>span:last-child { background:var(--path-soft); border-color:var(--path-color); }
.start-panel .step { width:42px; height:42px; display:grid; place-items:center; background:var(--path-soft); border-radius:12px; font-size:12px; font-weight:700; color:var(--path-color); }
.start-panel strong { font-size:15px; display:block; }
.start-panel small { color:#52616a; display:block; font-size:13px; margin-top:3px; }
.path-blue { --path-color:var(--section-blue); --path-soft:#edf3ff; }
.path-green { --path-color:var(--section-green); --path-soft:#eaf5ee; }
.path-violet { --path-color:var(--section-violet); --path-soft:#f1edfa; }
.path-plum { --path-color:var(--section-plum); --path-soft:#f0f0f0; color:#171717; }
.path-plum p,.start-panel .path-plum small { color:#333; }
.start-panel .path-plum a { color:#171717; }
html body.theme-lupa .agents-content :is(.eyebrow,.crow .k,.vitem .date,.acc summary .n,.acc .tagd,.lesson .bad,.note b,.qbox p b) { color:var(--ink); }
html body.theme-lupa .agents-content .note { border-left-color:var(--ink); }
html body.theme-lupa .agents-content .qbox summary::before { background:var(--ink); }
.learning-paths { padding:20px 0 44px; }
.paths-heading { display:flex; align-items:baseline; justify-content:space-between; gap:20px; margin-bottom:20px; }
.paths-heading h2 { font-size:30px; margin:0; }
.paths-heading p { color:var(--muted); font-size:14px; margin:0; }
.path-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.path-organizaciones { --path-color:var(--section-work); --path-soft:var(--section-work-soft); }
.path-card.path-aula { --path-color:#825b12; --path-soft:#faf0ce; background:#fff7df; border-color:#e6d7af; }
.path-card { display:flex; flex-direction:column; border:1px solid var(--line); border-top:3px solid var(--path-color); background:#fff; border-radius:14px; padding:22px; color:#243c3a; text-decoration:none; transition:transform .15s,border-color .15s; }
.path-card:hover { transform:translateY(-3px); border-color:var(--path-color); }
.path-card .path-label { font-size:11px; letter-spacing:1.4px; font-weight:700; text-transform:uppercase; color:var(--path-color); }
.path-card h3 { font:400 25px/1.15 Georgia,serif; letter-spacing:-.6px; margin:14px 0 10px; }
.path-card p { font-size:14px; line-height:1.6; margin:0 0 22px; color:#52616a; }
.path-card .path-link { margin-top:auto; font-size:13px; font-weight:700; color:var(--path-color); }
.path-card.path-plum { color:#171717; }
.path-card.path-plum p { color:#333; }
.catalog-heading { display:flex; justify-content:space-between; align-items:end; gap:24px; padding:14px 0 24px; }
.catalog-heading h2 { margin:0; font-size:34px; }
.catalog-heading p { margin:8px 0 0; color:var(--muted); max-width:60ch; }
html body .resource-directory-wrap { border-radius:18px; box-shadow:0 6px 24px #193d3504; }
html body .directory-search { padding:24px; gap:12px; align-items:center; }
html body .directory-search input { border:1px solid var(--line); border-radius:10px; background:var(--paper); min-height:48px; padding:12px 14px; font:inherit; color:var(--ink); min-width:0; }
html body .directory-search label { font-size:15px; }
.directory-topics { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:8px; padding-top:4px; }
.directory-topics button { min-height:44px; padding:8px 14px; border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--muted); font-size:13px; cursor:pointer; }
.directory-topics button[aria-pressed="true"] { background:var(--ink); color:var(--card); border-color:var(--ink); }
.directory-topics button[data-topic="Fundamentos"] { --topic:#285bb5; }
.directory-topics button[data-topic="IA Aplicada"] { --topic:#23755e; }
.directory-topics button[data-topic="Vibe Coding"] { --topic:#7052ac; }
.directory-topics button[data-topic="IA bajo lupa"] { --topic:#202020; }
.directory-topics button[data-topic]:not([data-topic=""])::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--topic); margin-right:8px; }
.directory-topics button[aria-pressed="true"]::before { background:currentColor!important; }
html body .directory-search-results { font-size:13px; margin:0; }
/* Cabecera compacta de los directorios de categorías. */
html body .directory-heading { display:grid; gap:18px; padding-block:20px 18px; }
html body .directory-heading .page-intro { padding:0; min-width:0; max-width:none; }
html body .directory-heading .page-intro > p { margin-bottom:0; }
html body .catalog-compact .resource-directory-wrap > .directory-search { margin:0; padding:16px 22px; gap:10px 12px; }
html body .directory-heading .breadcrumb { margin-bottom:14px; font-size:13px; }
html body .directory-heading .eyebrow { display:none; }
html body .directory-heading .page-intro h1 { font-size:clamp(32px,3.4vw,44px); line-height:1.12; margin-block:10px; }
html body .directory-heading .page-intro > p { font-size:16px; line-height:1.5; }
html body .directory-order-hint { grid-column:1/-1; margin:0; color:var(--muted); font-size:12px; }
html body .catalog-compact .resource-directory [hidden] { display:none!important; }
html body .catalog-compact .resource-directory thead th { padding-block:4px; }
html body .catalog-compact .resource-directory tbody :is(th,td) { padding-block:14px; }
html body .catalog-compact .resource-directory tbody th p { line-height:1.5; margin-top:4px; }
html body .catalog-compact .resource-directory th[aria-sort="ascending"] .directory-sort,
html body .catalog-compact .resource-directory th[aria-sort="descending"] .directory-sort { color:var(--olive); text-decoration:underline; text-underline-offset:5px; }
@media (min-width:741px) {
 html body .catalog-compact .directory-single-topic th:first-child { width:64%; }
 html body .catalog-compact .directory-single-topic th:last-child { width:16%; }
}
html body section.catalog-compact { padding:0 0 24px!important; border-top:0; }
@media (min-width:741px) {
 html body .catalog-compact .directory-search-results { grid-column:1; }
 html body .catalog-compact .directory-order-hint { grid-column:2; text-align:right; }
}
html body .resource-directory tbody th a { display:inline-block; font-size:16px; line-height:1.5; padding-block:3px; }
html body .resource-directory .badge { white-space:normal; display:inline-flex; align-items:center; border-radius:6px; font-size:11px; font-weight:600; }
html body .resource-directory .badge:not(.badge-fundamentos):not(.badge-vibe):not(.badge-lupa):not(.badge-aula) { background:#eaf5ee; color:#23755e; }
html body .resource-directory .badge.badge-aula { background:#faf0ce; color:#825b12; border-color:#e6d7af; }
html body .reference-content { color:var(--muted); }
html body .reference-content h2,html body .reference-content h3 { color:var(--ink); }
html body .site-footer { flex-wrap:wrap; font-size:13px; }
@media(max-width:1000px) {
 html body .site-header { flex-wrap:wrap; }
 .home-intro { gap:30px; }
 .path-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:740px) {
 html body .site-header { padding:20px; gap:18px; }
 html body .brand-logo { width:176px; }
 html body .site-header nav { display:grid; grid-template-columns:1fr 1fr; width:100%; gap:6px; }
 html body .site-header nav a { padding:9px 10px; font-size:13px; }
 .home-intro { grid-template-columns:minmax(0,1fr); gap:28px; padding:34px 0 28px; }
 .home-intro h1 { font-size:clamp(42px,9vw,60px); letter-spacing:-1.8px; }
 .home-intro .lead { font-size:17px; }
 .start-panel { padding:20px; border-radius:18px; }
 .start-panel a { padding:20px 0; gap:12px; }
 .start-panel h2 { font-size:29px; }
 .home-resource-total { padding:14px 16px; gap:4px 14px; }
 .home-resource-figure strong { font-size:62px; }
 .home-resource-figure span { font-size:15px; }
 .paths-heading { display:block; }
 .paths-heading p { margin-top:8px; }
 .path-grid { gap:10px; }
 .path-card { padding:17px; }
 .path-card h3 { font-size:22px; }
 .path-card p { font-size:13px; }
 html body .directory-search { padding:18px; grid-template-columns:minmax(0,1fr) auto; }
 html body .directory-search label { grid-column:1/-1; }
 html body .resource-directory { display:block; min-width:0; }
 html body .resource-directory thead { display:block; background:var(--soft); padding:10px 16px; }
 html body .resource-directory thead::before { content:"Ordenar por"; display:block; color:var(--muted); font-size:11px; padding-top:4px; }
 html body .resource-directory thead tr { display:grid; grid-template-columns:1fr 1fr; gap:2px 12px; }
 html body .resource-directory thead th { display:block; width:auto; padding:0; border:0; }
 html body .directory-sort { font-size:12px; min-height:44px; }
 html body .resource-directory tbody { display:grid; gap:12px; padding:16px; }
 html body .resource-directory tbody tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); border:1px solid var(--line); border-radius:13px; background:var(--card); padding:16px; gap:10px; }
 html body .resource-directory tbody th,html body .resource-directory tbody th:first-child { grid-column:1/-1; width:auto; padding:0; border:0; }
 html body .resource-directory tbody th a { font-size:17px; min-height:44px; display:flex; align-items:center; }
 html body .resource-directory tbody th p { font-size:14px; line-height:1.6; margin:6px 0; }
 html body .resource-directory tbody td { padding:0; border:0; font-size:12px; }
 html body .resource-directory tbody td:nth-child(2) { grid-column:1/-1; }
 html body .resource-directory tbody td:last-child { text-align:right; }
 html body .resource-directory tbody td:last-child::before { content:"Publicado "; color:var(--muted); font-size:11px; }
 html body .page-intro { padding:28px 0 18px; }
 html body .page-intro>p { font-size:17px; }
 html body .catalog-heading h2 { font-size:30px; }
}
@media(max-width:380px) { .path-grid { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto!important; } .path-card,html body .site-header nav a { transition:none; } .path-card:hover { transform:none; } }
/* Colores de sección coherentes con el menú principal. */
html body.aula-directory:not(.theme-learning):not(.theme-vibe):not(.theme-lupa) { --paper:#fffaf0; background:var(--paper); }
html[data-page="cursos"] body:not(.theme-learning):not(.theme-vibe):not(.theme-lupa) { --paper:#fff6f4; background:var(--paper); }
html body.aula-directory main { --olive:#825b12; --soft:#faf0ce; --lime:#faf0ce; --section-accent:#825b12; --section-soft:#faf0ce; }
html[data-page="cursos"] body main { --olive:#a13f39; --soft:#fbe9e5; --lime:#fbe9e5; --section-accent:#a13f39; --section-soft:#fbe9e5; }
html body.aula-directory main,html[data-page="cursos"] body main { --line:color-mix(in srgb,var(--section-accent) 20%,#fff); }
html body.aula-directory main :is(h1,.eyebrow,.resource-directory tbody th>a),html[data-page="cursos"] body main :is(h1,.eyebrow,.resource-directory tbody th>a) { color:var(--section-accent); }
html body.aula-directory .directory-topics button,html[data-page="cursos"] body .directory-topics button { --topic:var(--section-accent); }
html body.aula-directory .directory-topics button[aria-pressed="true"],html[data-page="cursos"] body .directory-topics button[aria-pressed="true"] { background:var(--section-accent); border-color:var(--section-accent); color:#fff; }
html body.aula-directory .resource-directory .search-match,html[data-page="cursos"] body .resource-directory .search-match { background:var(--section-soft); color:var(--section-accent); }

/* Mobile: compact navigation and readable directory controls. */
@media (max-width:740px) {
 html body .site-header { padding:12px 16px; gap:8px; }
 html body .site-header .brand-logo { width:152px; }
 html body .site-header nav { gap:0 8px; grid-template-columns:repeat(2,minmax(0,1fr)); }
 html body .site-header nav > a, html body .site-header .aula-menu-trigger { padding:8px 6px; min-height:44px; font-size:13px; }
 html body .resource-directory-wrap > .directory-search { padding:16px; gap:10px; }
 html body .directory-search input { grid-column:1/-1; font-size:16px; }
 html body .directory-search .button { grid-column:2; grid-row:3; min-height:44px; padding:8px 12px; }
 html body .directory-search-results { grid-column:1; grid-row:3; }
 html body .resource-directory thead tr { grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 12px; }
 html body .resource-directory thead th, html body .resource-directory thead th:first-child, html body .resource-directory thead th:last-child { width:auto; min-width:0; }
 html body .directory-sort { white-space:nowrap; overflow-wrap:normal; width:100%; font-size:13px; }
 html body .resource-directory tbody { padding:12px; }
 html body .resource-directory tbody tr { padding:14px; }
 html body .catalog-compact .resource-directory tbody :is(th,td) { padding:0; }
 html body .catalog-compact .resource-directory-wrap > .directory-search { padding:16px; }
 html body .catalog-compact .directory-order-hint { grid-row:4; }
}
