/* Agenda del profesor: calendario, lista y filtros sobre las actividades reales. */
.aula-authenticated[data-aula-view="professor"] [data-aula-section="agenda"] { max-width: 1320px; width: 100%; }
.ta-heading { align-items: center; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 24px; }
.ta-eyebrow { color: #396393; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ta-heading h1 { color: #1b2e46; font-size: clamp(27px, 3vw, 34px); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; margin: 7px 0 8px; }
.ta-heading p { color: #52677e; font-size: 14px; line-height: 1.6; margin: 0; }
.ta-timezone { align-items: center; background: #ffffff; border: 1px solid #dce5ef; border-radius: 24px; color: #52677e; display: inline-flex; flex: 0 0 auto; font-size: 12px; gap: 8px; padding: 10px 13px; }
[data-aula-agenda] .ta-heading svg, [data-aula-agenda] :is(.ta-summary, .ta-next, .ta-calendar-head, .ta-list-date, .ta-empty) svg, .ta-timezone svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; width: 20px; }
.ta-filters { align-items: end; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 18px; }
.ta-course-filter { display: grid; gap: 7px; max-width: 460px; min-width: 0; width: 100%; }
.ta-course-filter > span { color: #52677e; font-size: 12px; font-weight: 500; }
.ta-course-filter select { background: #ffffff; border: 1px solid #d4dfec; border-radius: 10px; color: #294563; font: inherit; font-size: 13px; font-weight: 400; min-height: 46px; min-width: 0; padding: 11px 34px 11px 13px; width: 100%; }
.ta-type-filter, .ta-view-toggle { background: #eef3fa; border: 1px solid #dce5ef; border-radius: 11px; display: inline-flex; gap: 3px; padding: 3px; }
.ta-type-filter { flex: 0 0 auto; }
.ta-type-filter button, .ta-view-toggle button { align-items: center; background: transparent; border: 1px solid transparent; border-radius: 8px; color: #52677e; display: inline-flex; font: inherit; font-size: 13px; font-weight: 500; gap: 7px; justify-content: center; min-height: 44px; padding: 10px 13px; }
.ta-type-filter button[aria-pressed="true"], .ta-view-toggle button[aria-pressed="true"] { background: #ffffff; border-color: #d5e2f3; box-shadow: 0 2px 5px rgb(27 46 70 / 5%); color: #164194; }
.ta-summary { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.ta-summary > article { background: #ffffff; border: 1px solid #dce5ef; border-radius: 13px; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; padding: 18px 20px; }
.ta-summary article > span { color: #52677e; font-size: 12px; grid-column: 1; line-height: 1.45; }
.ta-summary strong { color: #20364f; font-size: 28px; font-weight: 600; grid-column: 1; line-height: 1.1; }
[data-aula-agenda] .ta-summary article > svg { color: #718ba8; grid-column: 2; grid-row: 1 / 3; height: 24px; width: 24px; }
.ta-summary article.has-pending { background: #fffaf1; border-color: #ead9b7; }
.ta-summary article.has-pending :is(strong, svg) { color: #805017; }
.ta-next { align-items: center; background: #edf4ff; border: 1px solid #d4e2f8; border-radius: 14px; display: flex; gap: 16px; margin-bottom: 28px; padding: 20px; }
[data-aula-agenda] .ta-next > svg { background: #ffffff; border: 1px solid #d9e6f7; border-radius: 12px; color: #315f9f; flex: 0 0 auto; height: 48px; padding: 12px; width: 48px; }
.ta-next > div:first-of-type { display: grid; flex: 1; gap: 6px; min-width: 0; }
.ta-next > div > span { color: #386397; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ta-next strong { color: #233e60; font-size: 16px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.ta-next p { color: #52677e; font-size: 12px; line-height: 1.6; margin: 0; }
.ta-next-actions { align-items: center; display: flex; flex: 0 0 auto; gap: 8px; }
.ta-next-actions :is(a, button) { align-items: center; background: #ffffff; border: 1px solid #c8d8ee; border-radius: 9px; color: #365c89; display: inline-flex; font: inherit; font-size: 12px; font-weight: 500; gap: 8px; justify-content: center; min-height: 44px; padding: 11px 13px; text-decoration: none; }
.ta-next-actions a { background: #164194; border-color: #164194; color: #ffffff; }
.ta-next-actions a:hover { background: #103575; }
.ta-calendar-head { align-items: center; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 16px; }
.ta-calendar-head h2 { color: #20364f; font-size: 23px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; margin: 0; }
.ta-calendar-actions { align-items: center; display: flex; flex: 0 0 auto; gap: 14px; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-controls { background: #ffffff; border-color: #dce5ef; border-radius: 11px; padding: 3px; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-controls button { border-radius: 8px; font-size: 12px; font-weight: 500; height: 44px; min-width: 44px; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-controls button:nth-child(2) { box-shadow: none; }
.aula-authenticated[data-aula-view="professor"] .aula-agenda-layout { align-items: start; gap: 20px; grid-template-columns: minmax(0, 1fr) 340px; }
.aula-authenticated[data-aula-view="professor"] :is(.aula-calendar-card, .aula-day-detail) { border-color: #dce5ef; border-radius: 14px; box-shadow: 0 3px 12px rgb(29 52 83 / 3%); }
.ta-calendar-help { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; min-height: 52px; padding: 14px 18px; }
.ta-calendar-help span { align-items: center; color: #52677e; display: inline-flex; font-size: 12px; gap: 7px; }
.ta-calendar-help i { background: #1d71b8; border-radius: 50%; height: 7px; width: 7px; }
.ta-calendar-help i.is-assignment { background: #b26a1f; }
.ta-calendar-help small { color: #52677e; font-size: 11px; margin-left: auto; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-weekdays { background: #f7faff; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-weekdays span { color: #52677e; font-size: 11px; font-weight: 500; padding: 12px 4px; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-day { display: flex; flex-direction: column; gap: 6px; min-height: 96px; padding: 9px 7px; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-day-number { font-size: 13px; font-weight: 500; height: 27px; width: 27px; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-day.is-today .aula-calendar-day-number { background: #164194; box-shadow: none; color: #ffffff; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-day.is-selected { background: #edf4ff; box-shadow: inset 0 0 0 2px #315f9f; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-day-events { display: grid; gap: 4px; margin: 0; min-width: 0; width: 100%; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-event { background: #eaf2fd; border-radius: 6px; display: grid; font-size: 10px; gap: 4px; grid-template-columns: auto minmax(0, 1fr); padding: 5px; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-event.is-assignment { background: #fff4e5; color: #805017; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-event b { color: #315779; font-size: 10px; font-weight: 500; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-event em { -webkit-box-orient: vertical; -webkit-line-clamp: 2; display: -webkit-box; font-size: 10px; font-style: normal; font-weight: 400; grid-column: 1 / -1; line-height: 1.4; overflow: hidden; overflow-wrap: anywhere; white-space: normal; }
.aula-authenticated[data-aula-view="professor"] .aula-calendar-day-events > small { color: #52677e; font-size: 10px; font-weight: 400; }
.aula-authenticated[data-aula-view="professor"] .aula-day-detail { max-height: none; overflow: visible; padding: 20px; position: sticky; top: 100px; }
.aula-authenticated[data-aula-view="professor"] .aula-day-detail-heading { align-items: start; display: grid; gap: 7px; padding-bottom: 16px; }
.aula-authenticated[data-aula-view="professor"] .aula-day-detail-heading > p { color: #52677e; display: block; font-size: 11px; margin: 0; }
.aula-authenticated[data-aula-view="professor"] .aula-day-detail-heading h3 { color: #20364f; font-size: 19px; font-weight: 600; line-height: 1.4; }
.ta-day-count { color: #52677e; font-size: 12px; }
.aula-authenticated[data-aula-view="professor"] .aula-day-event { padding: 18px 0; }
.aula-authenticated[data-aula-view="professor"] .aula-day-event-topline :is(span, time) { color: #52677e; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.aula-authenticated[data-aula-view="professor"] .aula-day-event h4 { color: #20364f; font-size: 16px; font-weight: 600; line-height: 1.45; margin: 9px 0 6px; overflow-wrap: anywhere; }
.aula-authenticated[data-aula-view="professor"] .aula-day-event > p { color: #52677e; font-size: 12px; line-height: 1.6; }
.aula-authenticated[data-aula-view="professor"] .aula-day-event-status { font-size: 11px; font-weight: 500; padding: 5px 8px; }
.aula-authenticated[data-aula-view="professor"] .aula-day-event-footer > a { border-radius: 9px; font-size: 12px; font-weight: 500; min-height: 44px; padding: 11px 13px; }
.aula-authenticated[data-aula-view="professor"] .aula-day-event-footer > a:hover { background: #103575; }
.aula-authenticated[data-aula-view="professor"] .aula-day-empty { color: #52677e; font-size: 13px; line-height: 1.6; padding: 28px 0; }
.ta-list { background: #ffffff; border: 1px solid #dce5ef; border-radius: 14px; overflow: hidden; }
.ta-list-day + .ta-list-day { border-top: 1px solid #dce5ef; }
.ta-list-date { align-items: center; background: #f7faff; border: 0; border-bottom: 1px solid #e5ecf5; color: #304e70; display: flex; font: inherit; gap: 16px; justify-content: space-between; min-height: 60px; padding: 16px 22px; text-align: left; width: 100%; }
.ta-list-date > span { font-size: 15px; font-weight: 600; line-height: 1.5; }
.ta-list-date small { align-items: center; color: #52677e; display: inline-flex; flex: 0 0 auto; font-size: 12px; gap: 8px; }
.ta-list-date:hover { background: #edf4ff; }
.ta-list-events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 22px; }
.ta-list-events .aula-day-event:only-child { grid-column: 1 / -1; }
.aula-authenticated[data-aula-view="professor"] .ta-list-events .aula-day-event { border-bottom: 0; padding: 18px 0; }
.ta-list-events .aula-day-event:nth-child(even) { border-left: 1px solid #e5ecf5; margin-left: 22px; padding-left: 22px; }
.ta-empty { align-items: center; display: flex; flex-direction: column; gap: 12px; padding: 46px 24px; text-align: center; }
[data-aula-agenda] .ta-empty > svg { color: #718ba8; height: 32px; width: 32px; }
.ta-empty strong { color: #304e70; font-size: 16px; font-weight: 600; }
.ta-empty p { color: #52677e; font-size: 13px; line-height: 1.6; margin: 0; }
.aula-authenticated[data-aula-view="professor"] [data-aula-agenda] :is(a, button, select):focus-visible { outline: 3px solid #164194; outline-offset: 3px; }
.aula-authenticated[data-aula-view="professor"] [data-aula-agenda] .aula-calendar-day:focus-visible { outline-offset: -4px; }

@media (max-width: 1100px) {
  .aula-authenticated[data-aula-view="professor"] .aula-agenda-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .ta-next { align-items: flex-start; flex-wrap: wrap; }
  .ta-next-actions { margin-left: 64px; }
  .ta-calendar-help small { display: none; }
}
@media (max-width: 900px) {
  .aula-authenticated[data-aula-view="professor"] .aula-agenda-layout { grid-template-columns: minmax(0, 1fr); }
  .aula-authenticated[data-aula-view="professor"] .aula-day-detail { position: static; }
  .ta-calendar-head { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .ta-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .ta-heading h1 { font-size: 29px; }
  .ta-heading p { font-size: 13px; }
  .ta-timezone { font-size: 11px; padding: 8px 11px; }
  .ta-filters { align-items: stretch; flex-direction: column; gap: 14px; }
  .ta-course-filter { max-width: none; }
  .ta-course-filter select { font-size: 16px; }
  .ta-type-filter { display: grid; grid-template-columns: .8fr .8fr 1.4fr; }
  .ta-type-filter button { font-size: 12px; padding: 10px 5px; }
  .ta-summary { gap: 8px; }
  .ta-summary article { gap: 10px; padding: 14px 10px; }
  .ta-summary article > span { font-size: 11px; }
  .ta-summary strong { font-size: 24px; }
  .ta-summary article > svg { display: none; }
  .ta-next { gap: 12px; margin-bottom: 24px; padding: 16px; }
  .ta-next > svg { display: none; }
  .ta-next > div:first-of-type { flex: 1 1 100%; }
  .ta-next strong { font-size: 15px; }
  .ta-next-actions { margin: 0; width: 100%; }
  .ta-next-actions :is(button, a) { flex: 1; }
  .ta-calendar-head { gap: 14px; }
  .ta-calendar-head h2 { font-size: 21px; }
  .ta-calendar-actions { gap: 8px; justify-content: space-between; width: 100%; }
  .ta-view-toggle button { font-size: 12px; gap: 5px; padding: 10px 8px; }
  .ta-view-toggle svg { height: 17px; width: 17px; }
  .aula-authenticated[data-aula-view="professor"] .aula-calendar-controls button { min-width: 44px; padding: 0 6px; }
  .aula-authenticated[data-aula-view="professor"] .aula-calendar-weekdays span { font-size: 10px; padding: 10px 1px; }
  .aula-authenticated[data-aula-view="professor"] .aula-calendar-day { align-items: center; gap: 5px; min-height: 60px; padding: 5px 2px; }
  .aula-authenticated[data-aula-view="professor"] .aula-calendar-event { background: transparent; display: inline-flex; padding: 0; }
  .aula-authenticated[data-aula-view="professor"] .aula-calendar-event :is(b, em) { display: none; }
  .aula-authenticated[data-aula-view="professor"] .aula-calendar-day-events { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
  .aula-authenticated[data-aula-view="professor"] .aula-day-detail { padding: 18px; }
  .ta-calendar-help { font-size: 11px; gap: 14px; min-height: 46px; padding: 12px; }
  .ta-list-date { align-items: flex-start; flex-direction: column; gap: 6px; padding: 14px 16px; }
  .ta-list-date > span { font-size: 14px; }
  .ta-list-events { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .ta-list-events .aula-day-event:nth-child(even) { border-left: 0; margin-left: 0; padding-left: 0; }
  .aula-authenticated[data-aula-view="professor"] .ta-list-events .aula-day-event + .aula-day-event { border-top: 1px solid #e5ecf5; }
}
@media (max-width: 380px) {
  .ta-calendar-actions { flex-wrap: wrap; }
  .ta-view-toggle { justify-content: center; width: 100%; }
  .ta-view-toggle button { flex: 1; }
  .aula-authenticated[data-aula-view="professor"] .ta-calendar-actions .aula-calendar-controls { justify-content: space-between; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .aula-authenticated[data-aula-view="professor"] [data-aula-agenda] * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
