/* neumoCMO · Estilos principales
   Orden: base → utilidades → layout → componentes → secciones → responsive. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--brand); letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--accent-strong); }
ul { margin: 0; padding: 0; }
img, svg { display: block; }
abbr[title] { text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Utilidades ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--brand); color: var(--white); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Botones y chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-6);
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-sm { min-height: 40px; padding: 0 var(--space-4); font-size: var(--fs-sm); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: var(--surface); color: var(--brand); border-color: var(--slate-300); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-link { background: none; color: var(--text-muted); padding-inline: var(--space-2); }
.btn-link:hover { color: var(--brand); }

.chip {
  min-height: 40px; padding: 0 var(--space-4); border-radius: 999px;
  border: 1px solid var(--slate-300); background: var(--surface); color: var(--slate-700);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.9); backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--brand); }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy-900); color: var(--teal-500);
}
.brand-mark .icon { width: 22px; height: 22px; }
.brand-name { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.brand-name strong { font-weight: 800; color: var(--accent); }
.site-nav ul { display: flex; gap: var(--space-1); list-style: none; }
.site-nav a {
  display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  color: var(--slate-700); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.site-nav a:hover { background: var(--slate-100); color: var(--brand); }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--brand); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 420px at 85% -10%, rgb(20 184 166 / 0.28), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgb(29 74 128 / 0.6), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-12); align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 { color: var(--white); font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.03em; }
.hero .accent { color: var(--teal-500); }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-3);
}
.hero .eyebrow { color: var(--teal-100); }
.lead { margin-top: var(--space-6); font-size: var(--fs-lg); color: rgb(226 232 240 / 0.92); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero .btn-primary { background: var(--teal-500); color: var(--navy-950); }
.hero .btn-primary:hover { background: var(--teal-100); }
.hero .btn-ghost { background: transparent; color: var(--white); border-color: rgb(255 255 255 / 0.35); }
.hero .btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-100); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); list-style: none; margin-top: var(--space-8); color: rgb(226 232 240 / 0.85); font-size: var(--fs-sm); }
.hero-facts li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-facts .icon { color: var(--teal-500); }

/* Visual CMO del hero */
.hero-visual { display: grid; place-items: center; }
.cmo-orbit {
  position: relative; width: min(380px, 100%); aspect-ratio: 1;
  border-radius: 50%; border: 1px dashed rgb(255 255 255 / 0.22);
}
.cmo-orbit::before {
  content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid rgb(20 184 166 / 0.35);
}
.orbit-core {
  position: absolute; inset: 34%; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--navy-700), var(--navy-900));
  box-shadow: 0 0 0 10px rgb(20 184 166 / 0.08), var(--shadow-lg); color: var(--teal-500);
}
.orbit-core .icon { width: 44%; height: 44%; stroke-width: 1.4; }
.orbit-node {
  position: absolute; display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px; backdrop-filter: blur(6px); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap;
}
.orbit-node b {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal-500); color: var(--navy-950); font-weight: 800;
}
.node-c { top: 2%; left: 50%; transform: translateX(-50%); }
.node-m { bottom: 12%; left: -6%; }
.node-o { bottom: 12%; right: -6%; }
.node-m b { background: var(--teal-100); }
.node-o b { background: #7dd3fc; }

/* ---------- Secciones ---------- */
.section { padding-block: var(--space-16); }
.section-tint { background: var(--bg-tint); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: var(--space-8); }
.section-head h2 { font-size: var(--fs-xl); font-weight: 800; }
.section-head p:not(.eyebrow) { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--fs-lg); }
.note { margin-top: var(--space-6); font-size: var(--fs-sm); color: var(--text-muted); }

/* Tareas */
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); list-style: none; }
.task-card {
  position: relative; display: flex; gap: var(--space-4); align-items: flex-start; height: 100%;
  padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.task-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.task-icon {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal-50); color: var(--accent-strong);
}
.task-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.task-title { font-weight: 700; color: var(--brand); font-size: 1.05rem; }
.task-hint { color: var(--text-muted); font-size: var(--fs-sm); }
.task-tool { margin-top: var(--space-2); font-size: 0.78rem; font-weight: 700; color: var(--accent-strong); text-transform: uppercase; letter-spacing: 0.06em; }
.task-tool.is-soon { color: var(--slate-500); }
.task-go { position: absolute; top: var(--space-4); right: var(--space-4); width: 18px; height: 18px; color: var(--slate-300); }
.task-card:hover .task-go { color: var(--accent); }
.task-card.is-soon { border-style: dashed; background: var(--slate-50); box-shadow: none; }
.task-card.is-soon .task-icon { background: var(--slate-100); color: var(--slate-500); }

/* Tarjetas de herramienta */
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.tool-card {
  display: flex; flex-direction: column; padding: var(--space-8); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.tool-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.tool-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--navy-900); color: var(--teal-500);
}
.tool-icon .icon { width: 26px; height: 26px; }
.tool-icon-sm { width: 42px; height: 42px; border-radius: 11px; }
.tool-icon-sm .icon { width: 22px; height: 22px; }
.tool-card h3 { font-size: 1.35rem; font-weight: 800; }
.tool-tagline { margin-top: var(--space-1); color: var(--accent-strong); font-weight: 600; }
.tool-desc { margin-top: var(--space-3); color: var(--text-muted); }
.tool-features { margin-top: var(--space-4); list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-4); font-size: var(--fs-sm); }
.tool-features li { position: relative; padding-left: 1.25rem; color: var(--slate-700); }
.tool-features li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100);
}
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-6); }

/* Insignias CMO */
.cmo-badges { display: inline-flex; gap: 4px; }
.cmo-badge {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 800;
}
.tone-navy .cmo-letter, .cmo-badge.tone-navy { background: var(--navy-900); color: var(--white); }
.tone-teal .cmo-letter, .cmo-badge.tone-teal { background: var(--teal-500); color: var(--navy-950); }
.tone-sky .cmo-letter, .cmo-badge.tone-sky { background: var(--sky-100); color: var(--sky-600); }

/* Columnas CMO */
.cmo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.cmo-col {
  padding: var(--space-8) var(--space-6); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.cmo-col-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.cmo-letter { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 1.3rem; font-weight: 800; }
.cmo-col h3 { font-size: 1.3rem; }
.cmo-col > p { color: var(--text-muted); font-size: 0.95rem; }
.cmo-items { list-style: none; margin-top: var(--space-6); display: grid; gap: var(--space-2); }
.cmo-items a {
  display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm); background: var(--slate-50); color: var(--brand); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.cmo-items a:hover { background: var(--teal-50); color: var(--accent-strong); }
.cmo-items .icon { color: var(--accent); }
.cmo-items em { margin-left: auto; font-style: normal; font-size: 0.75rem; font-weight: 600; color: var(--slate-500); }
.cmo-items .is-soon a { background: transparent; border: 1px dashed var(--slate-300); color: var(--slate-600); }
.cmo-items .is-soon .icon { color: var(--slate-500); }

/* Catálogo */
.catalog-controls { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.search-field { position: relative; flex: 1 1 320px; max-width: 480px; }
.search-field .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--slate-500); }
.search-field input {
  width: 100%; min-height: 48px; padding: 0 var(--space-4) 0 44px;
  border: 1px solid var(--slate-300); border-radius: 999px; background: var(--surface);
  font: inherit; color: var(--text);
}
.search-field input:focus { border-color: var(--accent); }
.filter-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.catalog-status { margin-top: var(--space-4); font-size: var(--fs-sm); color: var(--text-muted); }
.catalog-list { list-style: none; margin-top: var(--space-3); display: grid; gap: var(--space-3); }
.catalog-item {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: var(--space-4); align-items: center;
  padding: var(--space-4) var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.catalog-body h3 { font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.catalog-body p { color: var(--text-muted); font-size: var(--fs-sm); }
.cat-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-strong); background: var(--teal-50); padding: 2px 8px; border-radius: 999px;
}
.catalog-empty { padding: var(--space-8); text-align: center; color: var(--text-muted); border: 1px dashed var(--slate-300); border-radius: var(--radius); }

/* Recursos */
.resource-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.resource-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-2); height: 100%;
  padding: var(--space-6); padding-right: var(--space-12); border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.resource-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow); }
.resource-type { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-500); }
.resource-title { font-weight: 700; color: var(--brand); line-height: 1.35; }
.resource-note { font-size: var(--fs-sm); color: var(--text-muted); }
.resource-go { position: absolute; top: var(--space-6); right: var(--space-4); width: 18px; height: 18px; color: var(--slate-300); }
.resource-card:hover .resource-go { color: var(--accent); }

/* Hoja de ruta */
.section-dark { background: linear-gradient(160deg, var(--navy-950), var(--navy-900)); color: var(--slate-200); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--teal-500); }
.section-dark .section-head p:not(.eyebrow) { color: var(--slate-300); }
.roadmap-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.roadmap-card {
  display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6);
  border-radius: var(--radius); border: 1px dashed rgb(255 255 255 / 0.25); background: rgb(255 255 255 / 0.04);
}
.roadmap-card .tool-icon { background: rgb(20 184 166 / 0.14); }
.roadmap-card h3 { font-size: 1.1rem; }
.roadmap-card p { font-size: var(--fs-sm); color: var(--slate-300); }
.roadmap-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: var(--space-2); }
.soon-pill { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-100); border: 1px solid rgb(20 184 166 / 0.5); border-radius: 999px; padding: 2px 10px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-950); color: var(--slate-300); padding-block: var(--space-12); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.5fr 0.8fr; gap: var(--space-8); }
.brand-footer { margin-bottom: var(--space-3); color: var(--white); }
.footer-meta { margin-top: var(--space-3); color: var(--slate-500); font-size: var(--fs-sm); }
.footer-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-500); margin-bottom: var(--space-3); }
.footer-list { list-style: none; display: grid; gap: var(--space-2); }
.footer-list li { padding-left: 1rem; position: relative; }
.footer-list li::before { content: "–"; position: absolute; left: 0; color: var(--slate-500); }
.footer-links li { padding-left: 0; }
.footer-links li::before { content: none; }
.site-footer a { color: var(--slate-200); }
.site-footer a:hover { color: var(--teal-500); }
.noscript { padding: var(--space-4); background: #fef3c7; color: var(--slate-900); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .task-grid, .resource-list { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; display: none;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: var(--space-2) var(--gutter) var(--space-4); }
  .site-nav a { padding: var(--space-3); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-visual { order: -1; }
  .cmo-orbit { width: min(260px, 72vw); }
  .orbit-node { font-size: 0.78rem; }
  .featured-grid, .cmo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding-block: var(--space-12); }
  .task-grid, .resource-list, .roadmap-grid, .footer-grid { grid-template-columns: 1fr; }
  .tool-card { padding: var(--space-6); }
  .tool-features { grid-template-columns: 1fr; }
  .catalog-item { grid-template-columns: auto 1fr; padding: var(--space-4); }
  .catalog-item .cmo-badges { grid-column: 2; }
  .catalog-item .btn { grid-column: 1 / -1; }
  .search-field { max-width: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .node-m { left: -10%; }
  .node-o { right: -10%; }
}

/* ---------- Promoción de la biblioteca (landing) ---------- */
.library-promo {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-8); align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal-50), var(--white) 60%); border: 1px solid var(--teal-100);
}
.library-promo h2 { font-size: var(--fs-xl); font-weight: 800; }
.library-promo-copy > p:not(.eyebrow) { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--fs-lg); }
.library-promo .hero-actions { margin-top: var(--space-6); }
.library-promo-points { list-style: none; display: grid; gap: var(--space-3); }
.library-promo-points li {
  display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 500; color: var(--slate-700);
}
.library-promo-points .icon { color: var(--accent); margin-top: 2px; }
@media (max-width: 860px) { .library-promo { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .library-promo .hero-actions .btn { flex: 1 1 100%; } }
