@media(max-width:1100px){
  .aots-embed .angels-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .aots-embed .angels-grid--migration{grid-template-columns:1fr}
  .aots-embed .angels-card-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .aots-embed .angels-roadmap__items{grid-template-columns:repeat(2,minmax(0,1fr))}
  .aots-embed .angels-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .aots-embed{width:100%;max-width:100%;overflow:visible;border-radius:20px}
  .aots-embed--login{overflow:hidden}
  .aots-embed .angels-app,.aots-embed .angels-main,.aots-embed .angels-content,.aots-embed .angels-toolbar,.aots-embed .angels-panel,.aots-embed .angels-topbar,.aots-embed .angels-topbar__copy{min-width:0;max-width:100%}
  .aots-embed .angels-app{display:block;min-height:70vh}
  .aots-embed .angels-sidebar{position:fixed;left:0;top:0;bottom:0;width:min(82vw,280px);min-height:100vh;transform:translateX(-105%);transition:transform .22s ease;z-index:1000}
  .aots-embed .angels-sidebar.is-open{transform:translateX(0)}
  .aots-embed .angels-overlay{z-index:900}.aots-embed .angels-overlay.is-visible{display:block}
  .aots-embed .angels-main{width:100%;min-height:70vh;overflow-x:hidden}
  .aots-embed .angels-menu-toggle{display:none!important}
  .aots-embed .angels-topbar{position:relative;top:auto;z-index:20;height:auto;min-height:76px;padding:14px 18px;background:var(--angels-bg);box-shadow:0 1px 0 var(--angels-line)}
  .aots-embed .angels-topbar__copy h1{font-size:20px;overflow-wrap:anywhere}.aots-embed .angels-topbar__copy span{font-size:10px}.aots-embed .angels-today{display:none}
  .aots-embed .angels-content{position:relative;z-index:1;width:100%;padding:22px 16px calc(116px + env(safe-area-inset-bottom));overflow-x:hidden}
  .aots-embed .angels-grid--dashboard,.aots-embed .angels-grid--student{grid-template-columns:1fr}.aots-embed .angels-panel--wide{grid-column:auto}
  .aots-embed .angels-toolbar{width:100%;display:flex;align-items:stretch;flex-direction:column;gap:12px;margin-bottom:20px}.aots-embed .angels-toolbar>*{min-width:0;width:100%;max-width:100%}
  .aots-embed .angels-toolbar .angels-button{align-self:stretch;width:100%;max-width:100%;white-space:normal;text-align:center}.aots-embed .angels-toolbar__hint{width:100%;max-width:100%;overflow-wrap:anywhere}.aots-embed .angels-search{min-width:0;width:100%;max-width:100%}
  .aots-embed .angels-panel{width:100%;max-width:100%;overflow:hidden}.aots-embed .angels-panel__header{min-width:0;max-width:100%}.aots-embed .angels-panel__header>div{min-width:0;max-width:100%}.aots-embed .angels-panel__header h2,.aots-embed .angels-panel__header p{overflow-wrap:anywhere}
  .aots-embed .angels-empty{min-width:0;max-width:100%;padding-inline:4px}.aots-embed .angels-empty>div{min-width:0;max-width:100%}.aots-embed .angels-empty p{max-width:100%;overflow-wrap:anywhere;word-break:normal}
  .aots-embed .angels-student-hero{align-items:flex-start;flex-wrap:wrap}.aots-embed .angels-student-hero__copy{min-width:calc(100% - 100px)}.aots-embed .angels-student-hero .angels-button{margin-left:89px}
  .aots-embed .angels-migration-hero{align-items:flex-start;flex-direction:column}.aots-embed .angels-migration-flow{align-items:stretch;flex-direction:column}.aots-embed .angels-migration-flow i{width:1px;height:14px;flex:none;margin:auto}
  .aots-embed .angels-mobile-dock{display:flex;align-items:stretch;gap:4px;position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));min-height:66px;padding:6px;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:rgba(15,48,56,.96);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 18px 42px rgba(4,27,33,.28);z-index:800}
  .aots-embed .angels-mobile-dock__item{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 3px;border-radius:16px;background:transparent;color:rgba(255,255,255,.72)!important;font-size:9px;font-weight:750;line-height:1.1;white-space:nowrap}.aots-embed .angels-mobile-dock__item .dashicons{font-size:20px;width:20px;height:20px}.aots-embed .angels-mobile-dock__item.is-active{background:#fff;color:var(--angels-sidebar)!important;box-shadow:0 5px 16px rgba(0,0,0,.14)}.aots-embed .angels-mobile-dock__more{margin:0}
}
@media(max-width:600px){
  .aots-embed{margin-top:12px}
  .aots-embed .angels-stat-grid{grid-template-columns:1fr 1fr;gap:10px}.aots-embed .angels-stat-card{padding:14px;display:block}.aots-embed .angels-stat-card__icon{width:36px;height:36px;border-radius:11px;margin-bottom:8px}.aots-embed .angels-stat-card strong{font-size:23px}
  .aots-embed .angels-form-grid{grid-template-columns:1fr}.aots-embed .angels-field--wide,.aots-embed .angels-field--full{grid-column:auto}.aots-embed .angels-card-list{grid-template-columns:1fr}.aots-embed .angels-roadmap__items{grid-template-columns:1fr}
  .aots-embed .angels-panel{padding:17px;border-radius:17px}.aots-embed .angels-student-hero{padding:17px}.aots-embed .angels-avatar--hero{width:58px;height:58px;border-radius:18px}.aots-embed .angels-student-hero__copy{min-width:calc(100% - 78px)}.aots-embed .angels-student-hero h2{font-size:20px}.aots-embed .angels-student-hero .angels-button{margin-left:74px}
  .aots-embed .angels-agenda-item{grid-template-columns:45px 2px 1fr;gap:11px}.aots-embed .angels-detail-list>div{grid-template-columns:92px 1fr}.aots-embed .angels-migration-hero{padding:21px}.aots-embed .angels-migration-hero h2{font-size:22px}
  .aots-embed .angels-empty{min-height:210px;align-items:center;justify-content:flex-start;padding:28px 8px;gap:14px}.aots-embed .angels-empty>.dashicons{flex:0 0 30px}.aots-embed .angels-empty strong{font-size:15px}.aots-embed .angels-empty p{font-size:12px;line-height:1.55}
  .aots-embed .angels-login-shell{min-height:68vh;padding:18px 12px}.aots-embed .angels-login-card{padding:25px 20px;border-radius:22px}.aots-embed .angels-login-brand img{width:66px;height:66px;border-radius:19px}.aots-embed .angels-login-brand h1{font-size:26px}
}

@media (max-width:1100px){
  .aots-embed .angels-import-kpis--preflight{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:820px){
  .aots-embed .angels-import-kpis,.aots-embed .angels-import-kpis--preflight{grid-template-columns:repeat(2,minmax(0,1fr))}
  .aots-embed .angels-file-drop{align-items:flex-start;flex-wrap:wrap}
  .aots-embed .angels-file-drop input[type=file]{max-width:100%;width:100%;margin-left:42px}
  .aots-embed .angels-import-actions{align-items:stretch;flex-direction:column}
  .aots-embed .angels-import-actions .angels-button{width:100%}
}
@media (max-width:480px){
  .aots-embed .angels-import-kpis,.aots-embed .angels-import-kpis--preflight{grid-template-columns:1fr 1fr}
  .aots-embed .angels-file-drop input[type=file]{margin-left:0}
}

@media(max-width:1100px){
  .aots-embed .angels-enrollment-card{grid-template-columns:1fr}.aots-embed .angels-enrollment-money{max-width:520px}
  .aots-embed .angels-finance-table{overflow-x:auto}
}
@media(max-width:820px){
  .aots-embed .angels-subnav{margin-top:-4px}
  .aots-embed .angels-activity-kpis{grid-template-columns:1fr 1fr 1fr}
  .aots-embed .angels-data-row{grid-template-columns:auto minmax(0,1fr) auto}.aots-embed .angels-data-row .angels-role-pill,.aots-embed .angels-data-row .angels-muted-count{display:none}
  .aots-embed .angels-finance-table{display:block;width:100%;min-width:0;overflow-x:auto}.aots-embed .angels-finance-table__head,.aots-embed .angels-finance-table__row{min-width:760px}
  .aots-embed .angels-line-editor__row{grid-template-columns:1fr 1fr}.aots-embed .angels-detail-strip{grid-template-columns:1fr}
  .aots-embed .angels-lines-table{overflow-x:auto}.aots-embed .angels-lines-table__head,.aots-embed .angels-lines-table__row{min-width:620px}
}
@media(max-width:600px){
  .aots-embed .angels-activity-kpis{grid-template-columns:1fr}.aots-embed .angels-money-summary{grid-template-columns:1fr}.aots-embed .angels-enrollment-money{grid-template-columns:1fr 1fr}.aots-embed .angels-line-editor__row{grid-template-columns:1fr}
  .aots-embed .angels-role-line{gap:4px}.aots-embed .angels-role-pill{font-size:8px}
}

/* AOTS Gestión 0.7.0 · responsive de acceso */
@media(max-width:1000px){
  .aots-embed .angels-access-grid{grid-template-columns:1fr}
  .aots-embed .angels-user-row{grid-template-columns:auto minmax(0,1fr)}
  .aots-embed .angels-user-row__meta,.aots-embed .angels-user-row__actions{grid-column:2}
}
@media(max-width:700px){
  .aots-embed .angels-access-hero{flex-direction:column}.aots-embed .angels-access-hero h2{font-size:21px}
  .aots-embed .angels-passkey-row{grid-template-columns:auto minmax(0,1fr)}.aots-embed .angels-passkey-row form{grid-column:2}.aots-embed .angels-passkey-row form .angels-button{width:100%}
  .aots-embed .angels-user-row{grid-template-columns:auto minmax(0,1fr)}.aots-embed .angels-user-row__meta,.aots-embed .angels-user-row__actions{grid-column:1/-1}.aots-embed .angels-user-row__actions{align-items:stretch;flex-direction:column}.aots-embed .angels-user-row__actions form,.aots-embed .angels-user-row__actions .angels-button{width:100%}
  .aots-embed .angels-audit-filters{align-items:stretch;flex-direction:column}.aots-embed .angels-audit-filters label,.aots-embed .angels-audit-filters .angels-button{width:100%;min-width:0}
  .aots-embed .angels-audit-row{grid-template-columns:1fr;gap:6px}.aots-embed .angels-audit-row__time{display:flex;gap:7px;align-items:center}
}


/* AOTS Gestión 0.7.2 · evita el zoom automático de iOS al enfocar formularios.
   No se bloquea el zoom del navegador: se mantiene la accesibilidad y se eleva
   únicamente el tamaño de los controles editables a 16px en móvil. */
@media(max-width:820px){
  .aots-embed input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
  .aots-embed select,
  .aots-embed textarea{font-size:16px!important}
}

/* AOTS Gestión 0.8.0 · anchos intermedios y nuevas vistas */
@media(max-width:1360px){
  .aots-embed .angels-stat-grid--admin{grid-template-columns:repeat(2,minmax(0,1fr))}
  .aots-embed .angels-stat-grid--admin .angels-stat-card strong{white-space:nowrap;font-size:clamp(24px,2.2vw,29px)}
  .aots-embed .angels-stat-grid--admin .angels-stat-card>div:last-child{min-width:0}
}
@media(min-width:1361px){
  .aots-embed .angels-stat-grid--admin .angels-stat-card strong{white-space:nowrap;font-size:clamp(23px,1.8vw,29px)}
}
@media(max-width:1050px){
  .aots-embed .angels-student-controls{width:100%;flex-wrap:wrap}.aots-embed .angels-student-controls .angels-search{min-width:240px;flex:1 1 360px}.aots-embed .angels-order-select{flex:1 1 220px}.aots-embed .angels-order-select select{width:100%}
  .aots-embed .angels-exercise-row{grid-template-columns:auto minmax(0,1fr) auto}.aots-embed .angels-exercise-notes{grid-column:2/4}.aots-embed .angels-exercise-notes input{width:100%}
}
@media(max-width:700px){
  .aots-embed .angels-stat-grid--admin{grid-template-columns:1fr 1fr}
  .aots-embed .angels-stat-grid--admin .angels-stat-card strong{font-size:22px;white-space:normal;overflow-wrap:anywhere}
  .aots-embed .angels-student-controls{display:grid;grid-template-columns:1fr}.aots-embed .angels-student-controls .angels-search,.aots-embed .angels-order-select,.aots-embed .angels-search-submit{width:100%;min-width:0}.aots-embed .angels-order-select{justify-content:space-between}
  .aots-embed .angels-calendar-head{flex-direction:column}.aots-embed .angels-calendar-nav{width:100%}.aots-embed .angels-calendar-nav .angels-button{flex:1}.aots-embed .angels-calendar-grid{grid-template-columns:repeat(7,minmax(105px,1fr));min-width:735px}.aots-embed .angels-calendar-day{min-height:112px}
  .aots-embed .angels-exercise-row{grid-template-columns:auto minmax(0,1fr)}.aots-embed .angels-exercise-notes,.aots-embed .angels-exercise-row .angels-button{grid-column:1/-1}.aots-embed .angels-exercise-row .angels-button{width:100%}
}
@media(max-width:480px){
  .aots-embed .angels-stat-grid--admin{grid-template-columns:1fr}
  .aots-embed .angels-stat-grid--admin .angels-stat-card strong{font-size:27px;white-space:nowrap}
}

/* AOTS Gestión 0.8.3 · calendario sin scroll horizontal */
@media(max-width:1180px){
  .aots-embed .angels-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));min-width:0}
  .aots-embed .angels-calendar-weekday{padding:8px 5px;font-size:8px}
  .aots-embed .angels-calendar-day{min-height:108px;padding:6px}
  .aots-embed .angels-calendar-day__number{margin-bottom:5px}
  .aots-embed .angels-calendar-day__number>span{width:22px;height:22px;font-size:10px}
  .aots-embed .angels-calendar-event{padding:4px 5px;gap:3px;font-size:7px}
  .aots-embed .angels-calendar-event strong{font-size:6.5px}
}
@media(max-width:820px){
  .aots-embed .angels-calendar-scroll{overflow-x:hidden}
  .aots-embed .angels-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));min-width:0;border-radius:12px}
  .aots-embed .angels-calendar-weekday{padding:7px 2px;font-size:7px;letter-spacing:.02em}
  .aots-embed .angels-calendar-day{min-height:92px;padding:4px}
  .aots-embed .angels-calendar-day__number>span{width:20px;height:20px;border-radius:7px;font-size:9px}
  .aots-embed .angels-calendar-day__number small{min-width:16px;height:16px;padding:0 3px;font-size:7px}
  .aots-embed .angels-calendar-event{grid-template-columns:1fr;padding:3px 4px;border-left-width:2px}
  .aots-embed .angels-calendar-event strong{font-size:6px}
  .aots-embed .angels-calendar-event span{font-size:6.5px}
  .aots-embed .angels-calendar-more{font-size:7px;padding-left:1px}
  .aots-embed .angels-review-item{grid-template-columns:1fr;gap:13px;padding:15px}
  .aots-embed .angels-review-item__actions{justify-content:flex-start}
}
@media(max-width:560px){
  .aots-embed .angels-calendar-head{gap:12px}
  .aots-embed .angels-calendar-day{min-height:76px;padding:3px}
  .aots-embed .angels-calendar-day__number{margin-bottom:3px}
  .aots-embed .angels-calendar-day__number>span{width:18px;height:18px;font-size:8px}
  .aots-embed .angels-calendar-day__number small{min-width:14px;height:14px;font-size:6px}
  .aots-embed .angels-calendar-event{display:block;height:15px;padding:2px 3px;border-left-width:2px;white-space:nowrap}
  .aots-embed .angels-calendar-event strong{display:none}
  .aots-embed .angels-calendar-event span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:6px;line-height:11px}
  .aots-embed .angels-calendar-more{font-size:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .aots-embed .angels-review-item__actions{display:grid;grid-template-columns:1fr}
  .aots-embed .angels-review-item__actions .angels-button,.aots-embed .angels-review-item__actions form,.aots-embed .angels-review-item__actions form .angels-button{width:100%}
}
@media(max-width:390px){
  .aots-embed .angels-calendar-weekday{font-size:6px}
  .aots-embed .angels-calendar-day{min-height:70px;padding:2px}
  .aots-embed .angels-calendar-day__number>span{width:17px;height:17px;font-size:7px}
  .aots-embed .angels-calendar-day__number small{display:none}
  .aots-embed .angels-calendar-event{height:13px;padding:1px 2px}
  .aots-embed .angels-calendar-event span{font-size:5.5px;line-height:11px}
}

/* AOTS Gestión 0.9.0 · Facturación responsive */
@media(max-width:1180px){
  .aots-embed .aots-billing-home-grid{grid-template-columns:1fr}
  .aots-embed .aots-billing-line{grid-template-columns:minmax(135px,1fr) minmax(190px,1.4fr) 80px 100px 95px 34px}
  .aots-embed .aots-billing-history__row{grid-template-columns:110px minmax(0,1fr) 110px 100px 20px}.aots-embed .aots-billing-origin{display:none}
}
@media(max-width:900px){
  .aots-embed .aots-billing-hero{align-items:flex-start;flex-direction:column}.aots-embed .aots-billing-quick{justify-content:flex-start;width:100%}
  .aots-embed .aots-billing-kpis{grid-template-columns:1fr 1fr 1fr}
  .aots-embed .aots-billing-line{grid-template-columns:1fr 1fr 90px 100px}.aots-embed .aots-billing-line__description{grid-column:1/3}.aots-embed .aots-billing-line__total{grid-column:3}.aots-embed .aots-billing-line__remove{grid-column:4}
  .aots-embed .aots-billing-document__summary{grid-template-columns:1fr 1fr}
  .aots-embed .aots-billing-document-grid{grid-template-columns:1fr}
  .aots-embed .aots-billing-history__row{grid-template-columns:105px minmax(0,1fr) 100px 20px}.aots-embed .aots-billing-history__row>.angels-status-pill{display:none}
}
@media(max-width:700px){
  .aots-embed .aots-billing-tabs{display:grid;grid-template-columns:1fr 1fr}.aots-embed .aots-billing-tabs a{justify-content:center;text-align:center}
  .aots-embed .aots-billing-kpis{grid-template-columns:1fr}
  .aots-embed .aots-billing-action-grid{grid-template-columns:1fr}
  .aots-embed .aots-billing-line{grid-template-columns:1fr 1fr}.aots-embed .aots-billing-line__description{grid-column:1/-1}.aots-embed .aots-billing-line__total{grid-column:1}.aots-embed .aots-billing-line__remove{grid-column:2;justify-self:end}
  .aots-embed .aots-billing-lines__head{align-items:flex-start;flex-direction:column}.aots-embed .aots-billing-lines__head .angels-button{width:100%}
  .aots-embed .aots-billing-history__row{grid-template-columns:1fr auto 18px;gap:8px}.aots-embed .aots-billing-history__row>.aots-billing-type{grid-column:1}.aots-embed .aots-billing-history__row>div{grid-column:1}.aots-embed .aots-billing-history__row>strong{grid-column:2;grid-row:2}.aots-embed .aots-billing-history__row>.dashicons{grid-column:3;grid-row:1/3}.aots-embed .aots-billing-origin{display:none}
  .aots-embed .aots-activity-history>a{grid-template-columns:1fr auto 18px}.aots-embed .aots-activity-history .aots-billing-type{grid-column:1}.aots-embed .aots-activity-history a>div{grid-column:1}.aots-embed .aots-activity-history a>strong{grid-column:2;grid-row:2}.aots-embed .aots-activity-history a>.dashicons{grid-column:3;grid-row:1/3}
  .aots-embed .aots-billing-document__summary{grid-template-columns:1fr}
  .aots-embed .aots-billing-detail-lines>div{grid-template-columns:1fr auto}.aots-embed .aots-billing-detail-lines small{grid-column:1}.aots-embed .aots-billing-detail-lines strong{grid-column:2;grid-row:1/3}
}
@media(max-width:440px){
  .aots-embed .aots-billing-tabs{grid-template-columns:1fr}
  .aots-embed .aots-billing-quick{display:grid;grid-template-columns:1fr}.aots-embed .aots-billing-quick .angels-button{width:100%}
  .aots-embed .aots-billing-line{grid-template-columns:1fr}.aots-embed .aots-billing-line__description,.aots-embed .aots-billing-line__total,.aots-embed .aots-billing-line__remove{grid-column:1}.aots-embed .aots-billing-line__remove{justify-self:end}
}
