/* Academia TopoApp — cuenta del alumno: menú, entrar y perfil */
.ac-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: #D96A2B; color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .02em; flex-shrink: 0; }
.ac-avatar--xl { width: 76px; height: 76px; font-size: 1.6rem; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(217,106,43,.25); }

.ac-menu { position: relative; }
.ac-menu-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid #ECE7E2; background: #fff; font-weight: 700; color: #1c1917; font-size: .9rem; }
.ac-menu-btn:hover { border-color: #D6D3D1; }
.ac-menu-btn .bi-chevron-down { font-size: .7rem; color: #A8A29E; }
.ac-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: #fff; border: 1px solid #ECE7E2; border-radius: 16px; box-shadow: 0 20px 50px rgba(28,25,23,.15); padding: 6px; z-index: 50; }
.ac-menu-head { padding: 10px 12px; border-bottom: 1px solid #F5F5F4; margin-bottom: 4px; }
.ac-menu-head b { display: block; font-size: .9rem; color: #1c1917; }
.ac-menu-head small { color: #78716C; font-size: .78rem; word-break: break-all; }
.ac-menu-panel a, .ac-menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; color: #44403C; text-decoration: none; font-size: .9rem; font-weight: 600; border: 0; background: none; text-align: left; }
.ac-menu-panel a:hover, .ac-menu-panel button:hover { background: #FAF7F4; color: #1c1917; }
.ac-menu-panel form { margin: 0; border-top: 1px solid #F5F5F4; margin-top: 4px; padding-top: 4px; }

.ac-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #C2410C; }
.ac-aviso { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; font-size: .9rem; margin: 12px 0; }
.ac-aviso.is-ok { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.ac-aviso.is-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 18px; border-radius: 12px; border: 0; background: #D96A2B; color: #fff !important; font-weight: 800; text-decoration: none; font-size: .95rem; }
.ac-btn:hover { background: #C2410C; }
.ac-btn--suave { background: #1C1917; } .ac-btn--suave:hover { background: #292524; }
.ac-campos { display: flex; flex-direction: column; gap: 12px; }
.ac-campos label { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; font-weight: 700; color: #44403C; }
.ac-campos input[type=text], .ac-campos input[type=email], .ac-campos select { border: 1.5px solid #E7E5E4; border-radius: 12px; padding: 11px 14px; font-size: .95rem; font-weight: 500; background: #fff; }
.ac-campos input:focus, .ac-campos select:focus { outline: none; border-color: #D96A2B; box-shadow: 0 0 0 3px #FDE7D6; }
.ac-campos .ac-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: #57534E; }
.ac-codigo { text-align: center; font-size: 1.6rem !important; font-weight: 800 !important; letter-spacing: .4em; }
.ac-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border-radius: 12px; border: 1.5px solid #E7E5E4; background: #fff; color: #1c1917 !important; font-weight: 700; text-decoration: none; }
.ac-google:hover { border-color: #A8A29E; background: #FAFAF9; }
.ac-o { display: flex; align-items: center; gap: 10px; color: #A8A29E; font-size: .8rem; margin: 16px 0; }
.ac-o::before, .ac-o::after { content: ""; flex: 1; height: 1px; background: #E7E5E4; }

/* Entrar */
.ac-entrar { padding: clamp(100px, 12vw, 130px) 16px 60px; background: #FFF7F0; }
.ac-entrar-caja { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(124,45,18,.12); border: 1px solid #F3E3D6; }
.ac-entrar-lado { background: #D96A2B; color: #fff; padding: 40px 34px; display: flex; flex-direction: column; justify-content: center; }
.ac-entrar-lado img { width: 110px; height: auto; margin-bottom: 14px; }
.ac-entrar-ico { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 2rem; margin-bottom: 14px; }
.ac-entrar-lado h2 { font-size: 1.6rem; font-weight: 900; margin: 0 0 14px; letter-spacing: -.02em; }
.ac-entrar-lado ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ac-entrar-lado li { display: flex; gap: 10px; font-size: .95rem; }
.ac-entrar-form { padding: 38px 34px; }
.ac-entrar-form h1 { font-size: 1.7rem; font-weight: 900; margin: 6px 0 4px; letter-spacing: -.02em; }
.ac-sub { color: #78716C; margin-bottom: 18px; }
.ac-otro { margin-top: 8px; text-align: center; } .ac-otro button { border: 0; background: none; color: #78716C; text-decoration: underline; font-size: .85rem; }
.ac-pie { margin: 20px 0 0; font-size: .85rem; color: #78716C; border-top: 1px solid #F5F5F4; padding-top: 14px; }
.ac-pie a { color: #C2410C; font-weight: 700; }

/* Perfil */
.ac-perfil-hero { padding: clamp(100px, 12vw, 124px) 0 26px; background: #FFF7F0; border-bottom: 1px solid #F3E3D6; }
.ac-yo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ac-yo-txt { flex: 1; min-width: 220px; }
.ac-yo h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 900; margin: 2px 0 8px; letter-spacing: -.02em; color: #1c1917; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid #F3E3D6; font-size: .8rem; color: #57534E; }
.ac-chips span.is-app { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.ac-salir button { border: 1px solid #E7E5E4; background: #fff; border-radius: 99px; padding: 8px 16px; font-weight: 700; font-size: .85rem; color: #57534E; }
.ac-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; }
.ac-stats div { background: #fff; border: 1px solid #F3E3D6; border-radius: 18px; padding: 14px 18px; }
.ac-stats b { display: block; font-size: 1.5rem; font-weight: 900; color: #1c1917; }
.ac-stats small { color: #78716C; font-size: .82rem; }
.ac-perfil-cuerpo { padding-top: 26px; padding-bottom: 50px; }
.ac-perfil-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.ac-h2 { font-size: 1.15rem; font-weight: 900; margin: 6px 0 12px; color: #1c1917; }
.ac-h2 + .ac-vacio, .ac-certs, .ac-insignias { margin-bottom: 26px; }
.ac-rutas { display: grid; gap: 10px; margin-bottom: 28px; }
.ac-ruta { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #ECE7E2; border-radius: 18px; padding: 14px 16px; }
.ac-ruta-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: var(--c); font-size: 1.2rem; }
.ac-ruta-txt { flex: 1; min-width: 0; }
.ac-ruta-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ac-ruta-top strong { font-size: .95rem; color: #1c1917; }
.ac-ruta-top small { font-size: .74rem; color: #A8A29E; font-weight: 700; }
.ac-barra { display: block; height: 7px; border-radius: 99px; background: #F5F5F4; margin: 8px 0 4px; overflow: hidden; }
.ac-barra span { display: block; height: 100%; border-radius: inherit; background: var(--c, #D96A2B); }
.ac-ruta-meta { color: #78716C; font-size: .78rem; }
.ac-ruta-accion form { margin: 0; }
.ac-mini { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid #E7E5E4; background: #fff; color: #1c1917 !important; font-weight: 700; font-size: .84rem; text-decoration: none; white-space: nowrap; }
.ac-mini:hover { border-color: var(--c, #D96A2B); }
.ac-mini.is-cert { background: #FEF3C7; border-color: #FCD34D; color: #92400E !important; }
.ac-vacio { display: flex; gap: 10px; align-items: center; padding: 16px; border: 1.5px dashed #E7E5E4; border-radius: 16px; color: #78716C; }
.ac-certs { display: grid; gap: 8px; }
.ac-cert { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #FFFBEB; border: 1px solid #FDE68A; text-decoration: none; color: #1c1917; }
.ac-cert > .bi-award-fill { font-size: 1.5rem; color: #D97706; }
.ac-cert span { flex: 1; } .ac-cert b { display: block; } .ac-cert small { color: #92400E; font-size: .78rem; }
.ac-insignias { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-insignias span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: color-mix(in srgb, var(--c) 10%, white); color: var(--c); font-weight: 700; font-size: .82rem; }
.ac-lateral { display: grid; gap: 14px; position: sticky; top: 90px; }
.ac-tarjeta { background: #fff; border: 1px solid #ECE7E2; border-radius: 20px; padding: 20px; }
.ac-tarjeta h3 { font-size: 1.05rem; font-weight: 900; margin: 6px 0 6px; color: #1c1917; }
.ac-tarjeta p { font-size: .88rem; color: #57534E; margin-bottom: 14px; }
.ac-tarjeta--negocio { background: #1C1917; border-color: #1C1917; }
.ac-tarjeta--negocio h3 { color: #fff; } .ac-tarjeta--negocio p { color: #D6D3D1; } .ac-tarjeta--negocio .ac-kicker { color: #FDBA8C; }
.ac-nota { color: #A8A29E; font-size: .76rem; }

@media (max-width: 860px) {
    .ac-entrar-caja { grid-template-columns: 1fr; }
    .ac-entrar-lado { padding: 26px; } .ac-entrar-lado ul { display: none; }
    .ac-entrar-form { padding: 26px 22px; }
    .ac-perfil-grid { grid-template-columns: 1fr; }
    .ac-lateral { position: static; }
}
@media (max-width: 520px) {
    .ac-ruta { flex-wrap: wrap; }
    .ac-ruta-accion { width: 100%; } .ac-ruta-accion .ac-mini { width: 100%; justify-content: center; }
}

/* En celular la landing oculta los botones del nav; en la Academia el acceso del alumno debe verse */
@media (max-width: 991.98px) {
    .blog-body .ld-nav-cta { display: flex !important; }
    .blog-body .ld-nav-cta .ld-btn-ghost { display: inline-flex !important; padding: 8px 12px; }
    .blog-body .ld-nav-cta .ld-btn-primary { display: none !important; }
}

/* Catálogo por escuelas */
.aca-escuela { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; }
.aca-escuela:first-of-type { margin-top: 6px; }
.aca-escuela-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 1.2rem; flex-shrink: 0; }
.aca-escuela h3 { margin: 0; font-size: 1.15rem; font-weight: 900; color: #1c1917; }
.aca-escuela p { margin: 0; font-size: .88rem; color: #78716C; }
/* Video de la lección */
.blog-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #1c1917; margin: 0 0 22px; box-shadow: 0 14px 40px rgba(28,25,23,.15); }
.blog-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aca-modulo-tit { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #78716C; }

/* Marca y navegación propias de la Academia */
.ac-marca span { font-weight: 600; color: #57534E; }
.ac-marca span b { font-weight: 900; color: #1c1917; }
.ac-subnav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 16px 10px; border-top: 1px solid #F3E3D6; }
.ac-subnav::-webkit-scrollbar { display: none; }
.ac-subnav a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid #ECE7E2; font-size: .82rem; font-weight: 700; color: #57534E; text-decoration: none; }
.ac-subnav a.is-actual { background: #1c1917; border-color: #1c1917; color: #fff; }

/* Continúa donde te quedaste */
.aca-continuar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border-radius: 22px; background: #fff; border: 1px solid #ECE7E2; box-shadow: 0 14px 34px rgba(28,25,23,.06); border-left: 5px solid var(--c); animation: acaEntra .5s cubic-bezier(.2,.9,.3,1) both; }
.aca-continuar form { margin: 0; }
.aca-continuar-anillo { --p: 0; width: 70px; height: 70px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(closest-side, #fff 78%, transparent 80%), conic-gradient(var(--c) calc(var(--p) * 1%), #F3EDE7 0); }
.aca-continuar-anillo span { font-weight: 900; font-size: .95rem; color: #1c1917; }
.aca-continuar-txt { flex: 1; min-width: 220px; }
.aca-continuar-txt h2 { font-size: 1.2rem; font-weight: 900; margin: 2px 0 2px; color: #1c1917; }
.aca-continuar-txt p { margin: 0; font-size: .88rem; color: #78716C; }
@keyframes acaEntra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Tarjetas de curso: marcas y avance */
.aca-ruta-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 4px; min-height: 0; }
.aca-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .7rem; font-weight: 800; background: #F5F5F4; color: #57534E; }
.aca-chip--nuevo { background: var(--c, #D96A2B); color: #fff; }
.aca-ruta-avance { display: block; margin: 4px 0 2px; }
.aca-ruta-avance small { font-size: .74rem; font-weight: 700; color: #57534E; }
.aca-ruta-avance small i { color: #16A34A; }
.aca-ruta-barra { display: block; height: 6px; border-radius: 99px; background: #F5F5F4; overflow: hidden; margin-bottom: 4px; }
.aca-ruta-barra span { display: block; height: 100%; border-radius: inherit; background: var(--c); transition: width .8s cubic-bezier(.2,.9,.3,1); }
.aca-ruta { transition: transform .2s, box-shadow .2s; }
.aca-ruta:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(28,25,23,.10); }

/* Página del curso: botón principal y avance */
.aca-curso-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; }
.aca-curso-cta form { margin: 0; }
.aca-curso-avance { max-width: 420px; margin-bottom: 10px; }
.aca-curso-avance > span { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.7); overflow: hidden; border: 1px solid #F3E3D6; }
.aca-curso-avance > span span { display: block; height: 100%; background: var(--c); border-radius: inherit; }
.aca-curso-avance small { font-size: .8rem; font-weight: 700; color: #57534E; }
.aca-temario-num.is-ok { background: #16A34A !important; color: #fff !important; }

/* Lección anterior */
.blog-anterior { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .86rem; font-weight: 700; color: #78716C; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blog-anterior:hover { color: #C2410C; }
@media (prefers-reduced-motion: reduce) { .aca-continuar, .aca-ruta { animation: none; transition: none; } }
