/* AulaNova UCE v0.3.6 · PPTX export */
.anu-ppt-actions{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.anu-moodle-ppt-card .anu-field-help{display:block;margin-top:.55rem}
.anu-btn.small[data-pptx-export]{border-color:#9bb7ff;background:#f8fbff;color:#143b86;font-weight:800}
.anu-btn.small[data-pptx-export]:hover{background:#eef5ff}

/* AulaNova UCE v0.3.8.2a · PPT image UI */
.anu-ppt-visual-section{margin-top:16px;padding-top:16px;border-top:1px solid #dbe5f4}
.anu-ppt-visual-head,.anu-ppt-image-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.anu-ppt-visual-head>div,.anu-ppt-image-summary>div{display:flex;flex-direction:column;gap:3px}
.anu-ppt-visual-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.anu-ppt-visual-card{border:1px solid #dbe5f4;border-radius:14px;padding:14px;background:#fff}
.anu-ppt-visual-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.anu-ppt-visual-card-head>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.anu-ppt-visual-card p{margin:8px 0;line-height:1.45}
.anu-ppt-visual-actions{margin-top:12px;display:flex;justify-content:flex-end}
.anu-ppt-image-proposal{display:grid;gap:14px}
.anu-ppt-image-preview{margin:0;padding:12px;border:1px solid #dbe5f4;border-radius:16px;background:#f8fafc}
.anu-ppt-image-preview img{width:100%;height:auto;max-height:560px;object-fit:contain;display:block;border-radius:12px;background:#fff}
.anu-ppt-image-preview figcaption{margin-top:8px;font-size:.9rem;color:#526079}
.anu-ppt-image-prompt{border:1px dashed #cad7ea;border-radius:12px;padding:10px 12px}
.anu-ppt-image-prompt p{white-space:pre-wrap;line-height:1.45}
.anu-muted{color:#66758f}
@media (max-width:760px){.anu-ppt-visual-grid{grid-template-columns:1fr}.anu-ppt-visual-head,.anu-ppt-image-summary{flex-direction:column}}

/* AulaNova UCE v0.3.9.0 · Responsive SVG preview */
.anu-ai-overlay{
  box-sizing:border-box;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:16px !important;
}
.anu-ai-dialog{
  width:min(1180px,calc(100vw - 32px)) !important;
  max-width:1180px !important;
  min-width:0 !important;
  margin:0 auto !important;
  overflow-x:hidden !important;
  box-sizing:border-box !important;
}
.anu-ai-dialog *{box-sizing:border-box}
.anu-ppt-image-proposal,
.anu-ppt-image-preview{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:hidden !important;
}
.anu-ppt-image-preview{
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:10px !important;
}
.anu-ppt-image-preview img{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  max-height:72vh !important;
  object-fit:contain !important;
  object-position:center center !important;
}
.anu-ppt-image-preview figcaption{
  width:100%;
  overflow-wrap:anywhere;
}
.anu-ppt-image-prompt,
.anu-ppt-image-prompt p,
.anu-ai-meta{
  max-width:100% !important;
  overflow-wrap:anywhere;
  word-break:break-word;
}
@media (max-width:760px){
  .anu-ai-overlay{padding:8px !important}
  .anu-ai-dialog{
    width:calc(100vw - 16px) !important;
    max-width:calc(100vw - 16px) !important;
  }
  .anu-ppt-image-preview img{max-height:58vh !important}
}


/* AulaNova UCE v0.3.10.0 · Navegación por Unidades · unit_tabs_navigation_v1 */
.anu-unit-tabs-wrap{
  margin:14px 0 18px;
  padding:0;
  width:100%;
}
.anu-unit-tabs-scroll{
  display:flex;
  gap:8px;
  align-items:stretch;
  overflow-x:auto;
  overflow-y:hidden;
  padding:3px 2px 8px;
  scrollbar-width:thin;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}
.anu-unit-tab{
  appearance:none;
  border:1px solid #d8e1ee;
  background:#fff;
  color:#1f2f46;
  border-radius:12px;
  min-width:150px;
  max-width:250px;
  padding:10px 13px;
  text-align:left;
  cursor:pointer;
  font:inherit;
  line-height:1.15;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease;
  flex:0 0 auto;
}
.anu-unit-tab:hover{
  border-color:#9db8ea;
  background:#f8fbff;
  transform:translateY(-1px);
}
.anu-unit-tab:focus-visible{
  outline:3px solid rgba(37,99,235,.22);
  outline-offset:2px;
}
.anu-unit-tab[aria-selected="true"]{
  border-color:#8fb0ff;
  background:#edf3ff;
  color:#1748b3;
  box-shadow:0 4px 14px rgba(37,99,235,.10);
}
.anu-unit-tab-kicker{
  display:block;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.035em;
  text-transform:uppercase;
  white-space:nowrap;
}
.anu-unit-tab-title{
  display:block;
  margin-top:4px;
  font-size:.82rem;
  font-weight:650;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:220px;
}
.anu-unit-panel-v03100{
  animation:anuUnitPanelIn .16s ease-out;
}
.anu-unit-panel-v03100[hidden]{
  display:none !important;
}
@keyframes anuUnitPanelIn{
  from{opacity:.45;transform:translateY(2px)}
  to{opacity:1;transform:none}
}
@media (max-width:760px){
  .anu-unit-tabs-wrap{margin:10px 0 14px}
  .anu-unit-tab{min-width:136px;max-width:210px;padding:9px 11px}
  .anu-unit-tab-title{max-width:185px}
}
@media (prefers-reduced-motion:reduce){
  .anu-unit-tabs-scroll{scroll-behavior:auto}
  .anu-unit-tab,.anu-unit-panel-v03100{transition:none;animation:none}
}


/* ============================================================
   AulaNova UCE v0.3.13.1.12
   QA institucional · botón visible
   ============================================================ */

#anuAudit.anu-btn.primary,
button#anuAudit,
[data-action="audit"]#anuAudit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 10px 18px !important;

  background: #0f3d66 !important;
  background-color: #0f3d66 !important;

  color: #ffffff !important;
  border: 1px solid #0f3d66 !important;
  border-radius: 10px !important;

  font-weight: 800 !important;
  text-decoration: none !important;

  opacity: 1 !important;
  visibility: visible !important;

  cursor: pointer !important;

  box-shadow:
    0 1px 2px rgba(15, 23, 42, .08),
    0 4px 12px rgba(15, 61, 102, .10) !important;
}

#anuAudit.anu-btn.primary:hover,
button#anuAudit:hover {
  background: #0b3154 !important;
  background-color: #0b3154 !important;
  border-color: #0b3154 !important;
  color: #ffffff !important;
}

#anuAudit.anu-btn.primary:focus-visible,
button#anuAudit:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .25) !important;
  outline-offset: 2px !important;
}

#anuAudit.anu-btn.primary:disabled,
button#anuAudit:disabled {
  background: #e2e8f0 !important;
  background-color: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;

  opacity: 1 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
