/* =====================================================================
   ACADEMIA CONTAVLE — guías de uso de la plataforma (nov-2026)
   Se carga después de main.css, home.css y recursos.css.
   ===================================================================== */

/* ---------- Hub: hero ---------- */
.ac-hero { position: relative; padding: clamp(130px, 14vw, 180px) 0 clamp(50px, 6vw, 80px); background: var(--paper); overflow: hidden; }
.ac-hero-inner { max-width: 860px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.ac-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; color: var(--ink); margin: 18px 0 18px; }
.ac-hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--graphite); line-height: 1.55; max-width: 680px; margin: 0 auto 30px; }
.ac-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.ac-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.ac-search { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--mist); border-radius: 16px; padding: 10px 14px 10px 18px; box-shadow: 0 18px 50px rgba(15,17,42,.08); }
.ac-search svg { color: var(--slate); flex-shrink: 0; }
.ac-search input { flex: 1; border: 0; outline: 0; font: 500 16px var(--font-body); color: var(--ink); background: transparent; min-width: 0; padding: 6px 0; }
.ac-search-clear { border: 0; background: var(--whisper); color: var(--slate); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 16px; display: none; }
.ac-search.has-value .ac-search-clear { display: block; }
.ac-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.ac-quick a { font-family: var(--font-mono); font-size: 12px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--mist); background: #fff; color: var(--graphite); text-decoration: none; transition: border-color .2s, background .2s; }
.ac-quick a:hover { border-color: var(--ink); background: var(--lime-mist); }
.ac-audience { display: flex; justify-content: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.ac-audience a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.ac-audience a.ac-audience-alt { background: #fff; color: var(--ink); border: 1px solid var(--mist); }
.ac-audience a span { color: var(--lime); }
.ac-audience a.ac-audience-alt span { color: var(--slate); }

/* ---------- Hub: ruta de primeros pasos ---------- */
.ac-path { padding: clamp(60px, 7vw, 100px) 0; background: var(--ink); color: #fff; }
.ac-path h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 10px; color: #fff; }
.ac-path p.ac-sub { color: rgba(255,255,255,.7); max-width: 620px; margin: 0 0 34px; }
.ac-path .eyebrow { color: var(--lime); }
.ac-path-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; counter-reset: acpath; }
.ac-path-list li { counter-increment: acpath; }
.ac-path-list a { display: block; height: 100%; padding: 22px 22px 20px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.ac-path-list a:hover { background: rgba(195,231,107,.08); border-color: rgba(195,231,107,.4); transform: translateY(-2px); }
.ac-path-list a::before { content: counter(acpath, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 12px; color: var(--lime); margin-bottom: 12px; letter-spacing: .1em; }
.ac-path-list strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.ac-path-list span { font-size: 13.5px; color: rgba(255,255,255,.65); line-height: 1.45; }

/* ---------- Hub: módulos ---------- */
.ac-modules { padding: clamp(60px, 7vw, 100px) 0; background: #fff; }
.ac-modules-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.ac-modules-head h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 12px 0 0; }
.ac-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-filter button { font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--mist); background: #fff; color: var(--graphite); cursor: pointer; }
.ac-filter button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ac-module { padding: 34px 0; border-top: 1px solid var(--mist); scroll-margin-top: 110px; }
.ac-module:first-of-type { border-top: 0; }
.ac-module-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ac-module-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--lime-mist); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.ac-module-head h3 { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.ac-module-head p { margin: 2px 0 0; color: var(--slate); font-size: 14px; }
.ac-module-head .ac-module-link { margin-left: auto; font-size: 13px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--lime); white-space: nowrap; }
.ac-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ac-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; border: 1px solid var(--mist); background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.ac-card:hover { border-color: var(--ink); box-shadow: 0 14px 36px rgba(15,17,42,.08); transform: translateY(-2px); }
.ac-card strong { font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.35; }
.ac-card p { margin: 0; font-size: 13.5px; color: var(--graphite); line-height: 1.5; flex: 1; }
.ac-card-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ac-empty { display: none; padding: 40px 0; text-align: center; color: var(--slate); }

/* ---------- Badges de plan ---------- */
.ac-badge { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--mist); color: var(--graphite); background: #fff; white-space: nowrap; }
.ac-badge-all { background: var(--lime-mist); border-color: var(--lime-soft); color: var(--ink); }
.ac-badge-pro { background: var(--navy-50); }
.ac-badge-finance { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.ac-badge-asesoria { background: #fff; border-color: var(--ink); color: var(--ink); }
.ac-badge-time { border: 0; background: transparent; color: var(--slate); padding-left: 2px; text-transform: none; letter-spacing: 0; }

/* ---------- Guía: cabecera ---------- */
.ac-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 6px; }
.ac-where { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--whisper); border: 1px solid var(--mist); font-size: 14px; color: var(--graphite); }
.ac-where-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.ac-where-link { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--lime); white-space: nowrap; }
.ac-where code { font-family: var(--font-mono); font-size: 13px; background: #fff; border: 1px solid var(--mist); border-radius: 8px; padding: 4px 10px; color: var(--ink); }

/* ---------- Guía: antes de empezar ---------- */
.ac-before { margin: 30px 0; padding: 22px 26px; border-radius: 16px; border: 1px dashed var(--lime-dark); background: var(--lime-mist); }
.ac-before strong { display: block; font-family: var(--font-display); font-size: 15px; margin-bottom: 8px; color: var(--ink); }
.ac-before ul { margin: 0; padding-left: 20px; }
.ac-before li { margin: 4px 0; color: var(--graphite); font-size: 15px; }

/* ---------- Guía: pasos ---------- */
.ac-steps { list-style: none; margin: 34px 0; padding: 0; counter-reset: acstep; }
.ac-step { position: relative; counter-increment: acstep; padding: 0 0 34px 64px; }
.ac-step::before { content: counter(acstep); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--lime); font-family: var(--font-display); font-weight: 800; font-size: 17px; display: grid; place-items: center; }
.ac-step::after { content: ""; position: absolute; left: 20px; top: 48px; bottom: 6px; width: 2px; background: var(--mist); }
.ac-step:last-child::after { display: none; }
.ac-step h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin: 8px 0 8px; }
.ac-step p { margin: 0 0 10px; color: var(--graphite); line-height: 1.65; }
.ac-step ul { margin: 6px 0 10px; padding-left: 20px; color: var(--graphite); }
.ac-step li { margin: 4px 0; line-height: 1.55; }
.ac-step kbd, .ac-ui { font-family: var(--font-mono); font-size: 12.5px; background: var(--whisper); border: 1px solid var(--mist); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: var(--ink); white-space: nowrap; }
.ac-shot { margin: 14px 0 6px; border-radius: 14px; overflow: hidden; border: 1px solid var(--mist); box-shadow: 0 16px 44px rgba(15,17,42,.10); background: var(--whisper); }
.ac-shot img { display: block; width: 100%; height: auto; }
.ac-shot figcaption { font-size: 12.5px; color: var(--slate); padding: 10px 14px; background: #fff; border-top: 1px solid var(--mist); }

/* ---------- Guía: notas ---------- */
.ac-note { margin: 26px 0; padding: 20px 24px; border-radius: 14px; background: #fff; border: 1px solid var(--mist); border-left: 4px solid var(--ink); }
.ac-note.ac-note-tip { border-left-color: var(--lime-dark); background: var(--lime-mist); }
.ac-note.ac-note-warn { border-left-color: var(--warn); background: #fffaf0; }
.ac-note strong { display: block; font-family: var(--font-display); margin-bottom: 6px; color: var(--ink); }
.ac-note p, .ac-note li { color: var(--graphite); font-size: 15px; line-height: 1.6; }
.ac-note ul { margin: 6px 0 0; padding-left: 20px; }
.ac-note p:last-child { margin-bottom: 0; }

/* ---------- Guía: siguiente paso y relacionadas ---------- */
.ac-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 22px 0 0; }
.ac-next a { display: block; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--mist); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s; }
.ac-next a:hover { border-color: var(--ink); }
.ac-next small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.ac-next strong { font-family: var(--font-display); font-size: 15.5px; line-height: 1.35; }
.ac-help { margin-top: 50px; padding: 26px 28px; border-radius: 18px; background: var(--ink); color: #fff; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ac-help strong { font-family: var(--font-display); font-size: 19px; display: block; margin-bottom: 4px; }
.ac-help p { margin: 0; color: rgba(255,255,255,.7); font-size: 14.5px; }
.ac-help a { color: var(--ink); background: var(--lime); padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ---------- Franja "Aprende a usarlo" para otras páginas ---------- */
.ac-strip { padding: clamp(40px, 5vw, 64px) 0; background: var(--paper); border-top: 1px solid var(--mist); }
.ac-strip-inner { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 30px; align-items: start; }
.ac-strip h2 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.025em; color: var(--ink); margin: 10px 0 8px; line-height: 1.1; }
.ac-strip p { color: var(--slate); font-size: 14.5px; margin: 0 0 12px; }
.ac-strip-all { font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--lime); }
.ac-strip-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ac-strip-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--mist); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; line-height: 1.35; transition: border-color .2s; }
.ac-strip-links a:hover { border-color: var(--ink); }
.ac-strip-links a span { color: var(--lime-dark); font-weight: 800; }

/* ---------- Callout en guías fiscales: "Cómo se hace en Contavle" ---------- */
.ac-howto-callout { margin: 40px 0 0; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--mist); background: var(--lime-mist); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ac-howto-callout span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 4px; }
.ac-howto-callout strong { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.ac-howto-callout a { color: #fff; background: var(--ink); padding: 11px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }

@media (max-width: 760px) {
  .ac-step { padding-left: 52px; }
  .ac-step::before { width: 36px; height: 36px; font-size: 15px; }
  .ac-step::after { left: 17px; top: 42px; }
  .ac-strip-inner { grid-template-columns: 1fr; gap: 18px; }
  .ac-module-head .ac-module-link { display: none; }
}
