/*
 * ASTA 1.5 — LEGACY COLOR LOCK
 * Fuente visual inmutable: negro profundo + grafito + plata/blanco + oro/ámbar ASTA.
 * Este archivo tiene ruta propia y se carga DESPUÉS del CSS principal para invalidar
 * visualmente cualquier hoja antigua que siga retenida por navegador/CDN/service worker.
 */
:root{
  --asta-legacy-bg:#050505;
  --asta-legacy-surface:#0d0d0e;
  --asta-legacy-surface-raised:#151515;
  --asta-legacy-text:#f5f5f3;
  --asta-legacy-muted:#96938e;
  --asta-legacy-line:rgba(255,255,255,.10);
  --asta-legacy-gold:#f5a30a;
  --asta-legacy-gold-hi:#ffc451;
  --asta-legacy-gold-soft:#f5b83d;
  --asta-legacy-gold-deep:#d98000;
  --asta-legacy-gold-bg:rgba(245,163,10,.10);
  --asta-legacy-gold-border:rgba(255,196,81,.34);
  --asta-legacy-gold-glow:rgba(245,163,10,.22);
  --aa-accent:var(--asta-legacy-gold);
  --aa-accent2:var(--asta-legacy-gold-hi);
  --asta-accent:var(--asta-legacy-gold);
  --asta-gold:var(--asta-legacy-gold);
  --asta-gold-hi:var(--asta-legacy-gold-hi);
  --asta-gold-soft:var(--asta-legacy-gold-soft);
  --asta-gold-deep:var(--asta-legacy-gold-deep)
}

/* ADMIN · shell + navigation */
.asta-admin,.asta-admin-stage{background:var(--asta-legacy-bg)!important;color:var(--asta-legacy-text)}
.asta-admin-sidebar{background:linear-gradient(180deg,#080808 0%,#050505 78%)!important;border-color:var(--asta-legacy-line)!important}
.asta-admin-commandbar{background:rgba(5,5,5,.92)!important;border-color:rgba(255,255,255,.075)!important}
.asta-admin-sidebar nav a,.asta-admin-command{color:#aaa7a2!important}
.asta-admin-sidebar nav a:hover,.asta-admin-command:hover{background:rgba(255,255,255,.045)!important;color:#fff!important}
.asta-admin-sidebar nav a.is-active,.asta-admin-course-list>a.is-active,.asta-builder-course-list>a.is-active{
  color:#fff8eb!important;
  border-color:var(--asta-legacy-gold-border)!important;
  background:linear-gradient(90deg,rgba(245,163,10,.15),rgba(245,163,10,.035))!important;
  box-shadow:inset 3px 0 var(--asta-legacy-gold),0 10px 30px rgba(0,0,0,.18)!important
}
.asta-admin-sidebar nav a.is-active .asta-admin-nav-icon{color:var(--asta-legacy-gold-soft)!important;filter:drop-shadow(0 0 8px rgba(245,163,10,.24))}
.asta-builder-course-list>a.is-active .asta-builder-course-dot{background:var(--asta-legacy-gold)!important;box-shadow:0 0 12px var(--asta-legacy-gold-glow)!important}

/* ADMIN · primary/secondary controls */
.asta-admin-primary{
  border:1px solid rgba(255,204,105,.76)!important;
  background:linear-gradient(180deg,var(--asta-legacy-gold-hi) 0%,var(--asta-legacy-gold) 52%,var(--asta-legacy-gold-deep) 100%)!important;
  color:#181006!important;
  box-shadow:inset 0 1px rgba(255,255,255,.48),inset 0 -1px rgba(92,50,0,.28),0 12px 30px var(--asta-legacy-gold-glow),0 2px 5px rgba(0,0,0,.34)!important;
  text-shadow:0 1px rgba(255,255,255,.20)!important
}
.asta-admin-primary:hover{filter:brightness(1.055)!important;box-shadow:inset 0 1px rgba(255,255,255,.54),0 15px 38px rgba(245,163,10,.27)!important}
.asta-admin-primary:active{transform:translateY(1px) scale(.985)!important;filter:brightness(.985)!important}
.asta-admin-secondary,.asta-admin-ghost,.asta-admin-command,.asta-admin-search button,.asta-admin-cover button{border-color:rgba(255,255,255,.11)!important;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025))!important;color:#e8e4de!important}
.asta-admin-secondary:hover,.asta-admin-ghost:hover,.asta-admin-command:hover,.asta-admin-search button:hover,.asta-admin-cover button:hover{border-color:var(--asta-legacy-gold-border)!important;background:var(--asta-legacy-gold-bg)!important;color:#fff8eb!important}
.asta-admin input:focus,.asta-admin select:focus,.asta-admin textarea:focus,.asta-admin button:focus-visible,.asta-admin a:focus-visible{outline-color:var(--asta-legacy-gold)!important;border-color:rgba(245,163,10,.60)!important;box-shadow:0 0 0 4px rgba(245,163,10,.08),0 0 26px rgba(245,163,10,.055)!important}
.asta-admin input[type="checkbox"],.asta-admin input[type="radio"]{accent-color:var(--asta-legacy-gold)!important}

/* ADMIN · tabs, builder, resources, mapping */
.asta-email-tabs a.is-active,.asta-spark-tabs a.is-active,.asta-admin-tab.is-active,.asta-builder-library-filters button.is-active,.asta-filter-chip.is-active{
  color:#fff8eb!important;border-color:var(--asta-legacy-gold-border)!important;background:linear-gradient(180deg,rgba(245,163,10,.16),rgba(245,163,10,.055))!important
}
.asta-module-row.is-dragging,.asta-lesson-row.is-dragging{border-color:rgba(245,163,10,.50)!important}
.asta-module-index,.asta-resource-card__svg,.asta-license-icon--svg,.asta-builder-library-open b{background:rgba(245,163,10,.09)!important;color:var(--asta-legacy-gold-soft)!important;border-color:rgba(245,163,10,.22)!important}
.asta-brand-accent-lock i,.asta-brand-preview>i{background:var(--asta-legacy-gold)!important;box-shadow:0 0 18px var(--asta-legacy-gold-glow)!important}

/* STUDENT + LOGIN · shell/navigation */
.asta-body,.asta-app,.asta-stage{background:var(--asta-legacy-bg)!important;color:var(--asta-legacy-text)}
.asta-sidebar{background:linear-gradient(180deg,#080808 0%,#050505 78%)!important;border-color:rgba(255,255,255,.08)!important}
.asta-topbar,.asta-mobile-nav{background:rgba(5,5,5,.92)!important;border-color:rgba(255,255,255,.09)!important}
.asta-nav-link{color:#aaa7a2!important}
.asta-nav-link__icon{color:#c9a357!important}
.asta-nav-link.is-active,.asta-mobile-nav__item.is-active{color:#fff8eb!important;border-color:var(--asta-legacy-gold-border)!important;background:linear-gradient(180deg,rgba(245,163,10,.14),rgba(245,163,10,.045))!important;box-shadow:0 10px 28px rgba(0,0,0,.20),inset 0 1px rgba(255,255,255,.035)!important}
.asta-nav-link.is-active .asta-nav-link__icon,.asta-mobile-nav__item.is-active>span{color:var(--asta-legacy-gold-soft)!important;filter:drop-shadow(0 0 8px rgba(245,163,10,.25))}

/* STUDENT + LOGIN · controls/progress/cards */
.asta-button--primary{border:1px solid rgba(255,204,105,.76)!important;background:linear-gradient(180deg,var(--asta-legacy-gold-hi) 0%,var(--asta-legacy-gold) 52%,var(--asta-legacy-gold-deep) 100%)!important;color:#181006!important;box-shadow:inset 0 1px rgba(255,255,255,.48),inset 0 -1px rgba(92,50,0,.28),0 12px 30px var(--asta-legacy-gold-glow),0 2px 5px rgba(0,0,0,.34)!important}
.asta-button--ghost:hover,.asta-resource-action:hover,.asta-home-resume__action:hover{border-color:var(--asta-legacy-gold-border)!important;background:var(--asta-legacy-gold-bg)!important;color:#fff8eb!important}
.asta-field input:focus,.asta-form input:focus,.asta-form select:focus,.asta-form textarea:focus,.asta-body *:focus-visible{outline-color:var(--asta-legacy-gold)!important;border-color:rgba(245,163,10,.60)!important;box-shadow:0 0 0 4px rgba(245,163,10,.08),0 0 26px rgba(245,163,10,.055)!important}
.asta-body input[type="checkbox"],.asta-body input[type="radio"]{accent-color:var(--asta-legacy-gold)!important}
.asta-body ::selection{background:rgba(245,163,10,.30)!important;color:#fff!important}
.asta-filterchip.is-active,.asta-course-tab.is-active{border-color:var(--asta-legacy-gold-border)!important;background:linear-gradient(180deg,rgba(245,163,10,.16),rgba(245,163,10,.055))!important;color:#fff8eb!important}
.asta-progress>i,.asta-course-card__progress>i{background:linear-gradient(90deg,var(--asta-legacy-gold-deep),var(--asta-legacy-gold) 55%,var(--asta-legacy-gold-hi))!important;box-shadow:0 0 18px rgba(245,163,10,.18)!important}
.asta-module__number,.asta-lesson-row__state,.asta-resource-card>span,.asta-resource-library-card__icon{background:rgba(245,163,10,.085)!important;color:var(--asta-legacy-gold-soft)!important}
.asta-auth-brand{background:radial-gradient(circle at 32% 42%,rgba(245,163,10,.14),transparent 28%),radial-gradient(circle at 80% 15%,rgba(245,163,10,.05),transparent 24%),#050505!important}
.asta-auth-panel{background:radial-gradient(circle at 50% 18%,rgba(245,163,10,.055),transparent 25%),#080706!important}
.asta-auth-brand h1 em,.asta-auth-card__head .asta-kicker,.asta-text-link,.asta-section__head>a{color:var(--asta-legacy-gold-soft)!important}
