/* Demo ampliada de /aulora (1-nov-2026): la guía de funciones. Se suma a aulora.css.
   Sin estilos en línea: el CSP del sitio (style-src 'self') los bloquea. */
.guia .reloj-opciones button[aria-pressed="true"] { box-shadow: 0 6px 16px rgba(91, 52, 196, 0.25); }
.reloj.oculto { visibility: hidden; }
.reloj { margin-top: 0.5rem; }
.app-pantalla[hidden] { display: none; }
.app-titulo { margin: 0.1rem 0 0.8rem; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; }
.app-nota { margin: 0.7rem 0 0; font-size: 0.74rem; color: var(--a-suave); line-height: 1.4; }
.app-nota b { color: var(--a-tinta); font-weight: 600; }
.tarjeta-app { display: grid; gap: 0.35rem; padding: 0.85rem; border-radius: 16px; background: #fff; border: 1px solid var(--a-linea); }
.tarjeta-app span { font-size: 0.8rem; color: var(--a-suave); }
.tarjeta-app .app-boton { margin-top: 0.3rem; }

/* Registro del mes */
.registro-resumen { margin: -0.3rem 0 0.5rem; font-size: 0.78rem; color: var(--a-suave); }
.registro-resumen b { color: var(--a-tinta); }
.registro-marco { overflow-x: auto; border-radius: 14px; border: 1px solid var(--a-linea); background: #fff; scrollbar-width: thin; }
.registro-marco:focus-visible { outline: 2px solid var(--a-indigo); outline-offset: 2px; }
.registro { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
.registro th, .registro td { padding: 3px 2px; text-align: center; border-bottom: 1px solid #f0f1f6; }
.registro thead th { font-weight: 600; color: var(--a-suave); min-width: 22px; }
.registro thead th span { display: block; font-size: 0.6rem; font-weight: 400; }
.registro .r-nombre { position: sticky; left: 0; background: #fff; text-align: left; padding-left: 8px; min-width: 74px; font-weight: 600; white-space: nowrap; }
.registro .hoy { background: #f1efff; }
.registro thead .hoy { color: var(--a-indigo); }
.registro .m { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; font-size: 0.62rem; font-weight: 600; }
.registro td.recien .m { animation: aparecer 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.registro .vacio { color: #c3c5d3; }
.registro .r-pct { font-weight: 600; padding: 0 6px; }
.registro .r-tot { font-weight: 600; color: var(--a-tinta); padding: 0 4px; white-space: nowrap; }
.registro .r-pct.bajo { color: #b42318; }

/* Calificaciones */
.notas-marco { border-radius: 14px; border: 1px solid var(--a-linea); background: #fff; overflow: hidden; }
.notas { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
.notas th, .notas td { padding: 4px 3px; border-bottom: 1px solid #f0f1f6; text-align: center; }
.notas thead th { font-weight: 600; color: var(--a-suave); }
.notas tbody th { text-align: left; padding-left: 8px; font-weight: 600; white-space: nowrap; }
.notas tr.destacada { background: #f6f3ff; }
.notas tr.destacada th::after { content: " ★"; color: #8b6ae0; }
.notas input { width: 34px; height: 26px; border: 1px solid var(--a-linea); border-radius: 7px; text-align: center; font: inherit; font-size: 0.78rem; color: var(--a-tinta); background: #fff; }
.notas input:focus { outline: 2px solid var(--a-indigo); outline-offset: 0; border-color: transparent; }
.notas input[aria-invalid="true"] { border-color: #c8322a; background: #fde2e0; }
.notas .prom { font-weight: 600; }
.notas .bajo, .boletin-tabla .bajo { color: #b42318; }
.notas-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.8rem; }

/* Boletín digital */
.boletin-cuerpo { flex: 1; overflow-y: auto; padding: 0.8rem 0.9rem 1.2rem; }
.boletin-materia { border-radius: 16px; overflow: hidden; border: 1px solid #d9d3f5; }
.boletin-cab { display: flex; justify-content: space-between; align-items: baseline; padding: 0.65rem 0.8rem; background: linear-gradient(120deg, #6a3fd0, #3c6fd0 60%, #0f7f76); color: #fff; }
.boletin-cab span { font-size: 0.7rem; opacity: 0.85; }
.boletin-tabla { width: 100%; border-collapse: collapse; font-size: 0.78rem; background: #fff; }
.boletin-tabla th, .boletin-tabla td { padding: 6px 4px; border-bottom: 1px solid #f0f1f6; text-align: center; }
.boletin-tabla thead th { color: var(--a-suave); font-weight: 600; }
.boletin-tabla thead th.actual, .boletin-tabla td[data-col="actual"] { background: #f1efff; color: var(--a-indigo); font-weight: 600; }
.boletin-tabla tbody th { text-align: left; padding-left: 8px; font-weight: 600; }
.boletin-tabla tbody th small { display: block; font-weight: 400; font-size: 0.62rem; color: var(--a-suave); max-width: 120px; }
.boletin-tabla .vacio { color: #c3c5d3; }
.boletin-tabla tr.total th, .boletin-tabla tr.total td { font-weight: 600; border-bottom: 0; }
.boletin-otras { margin: 0.7rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; }
.boletin-otras li { display: flex; justify-content: space-between; padding: 0.45rem 0.7rem; border-radius: 10px; background: #f5f6fb; font-size: 0.78rem; color: #8a8ea6; }

/* Horario */
.horario { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 0.72rem; }
.horario thead th { font-weight: 600; color: var(--a-suave); padding: 2px 0 4px; }
.horario thead th.hoy { color: var(--a-indigo); }
.horario thead th span { display: block; font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.06em; }
.horario tbody th { font-weight: 600; text-align: left; white-space: nowrap; font-size: 0.68rem; padding-right: 2px; }
.horario tbody th span { display: block; font-weight: 400; color: var(--a-suave); font-size: 0.6rem; }
.horario td { height: 38px; border-radius: 9px; background: #fff; border: 1px solid #eef0f6; padding: 2px; }
.horario td.hoy { background: #f6f4ff; border-color: #e0dbfb; }
.horario td.ahora { box-shadow: 0 0 0 2px #8b6ae0; }
.horario tr.recreo td { height: 26px; background: #fbfbfd; }
.h-clase { width: 100%; height: 100%; border: 0; border-radius: 7px; font-weight: 600; font-size: 0.72rem; }
.h-clase.c4A { background: #dff5ef; color: #0f8a72; }
.h-clase.c4B { background: #e9eaff; color: #4a4fd6; }
.h-clase.c5H { background: #f3e9ff; color: #8b3fd9; }
.h-clase.zona { background: #fff1cf; color: #8a5a00; font-size: 0.62rem; }
.h-clase:hover { filter: brightness(0.96); }
.horario-leyenda { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; margin: 0.6rem 0 0; padding: 0; list-style: none; font-size: 0.7rem; color: var(--a-suave); }
.horario-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.horario-leyenda i.c4A { background: #0f8a72; }
.horario-leyenda i.c4B { background: #4a4fd6; }
.horario-leyenda i.c5H { background: #8b3fd9; }
.horario-leyenda i.zona { background: #f2a900; }

/* Aula */
.aula-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.toda-clase {
  width: 100%; border: 0; border-radius: 16px; padding: 0.7rem; margin-bottom: 0.7rem; font-weight: 600; color: #fff;
  background: linear-gradient(120deg, #8a4fd6, #3f7fcc 55%, #1d9a8c); box-shadow: 0 4px 0 #3c6fd0;
}
.toda-clase:active { transform: translateY(2px); box-shadow: 0 2px 0 #3c6fd0; }
.estudiantes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.est {
  position: relative; width: 100%; display: grid; justify-items: center; gap: 0.2rem; padding: 0.55rem 0.2rem 0.45rem;
  border-radius: 16px; border: 1px solid var(--a-linea); background: #fff; transition: transform 0.15s ease;
}
.est:hover { transform: translateY(-2px); }
.est-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 600; font-size: 0.82rem; color: #fff; }
.av1 { background: #0f8a72; } .av2 { background: #4a4fd6; } .av3 { background: #8b3fd9; }
.av4 { background: #b0570f; } .av5 { background: #1a7398; } .av6 { background: #b4436c; }
.est-av.todos { background: linear-gradient(120deg, #8a4fd6, #1d9a8c); }
.est-n { font-size: 0.74rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-p { display: flex; gap: 3px; font-size: 0.66rem; font-weight: 600; color: #8a8ea6; }
.est-p i { font-style: normal; padding: 0 4px; border-radius: 99px; }
.est-p i.si { background: #dff3e6; color: #1f7a3a; }
.est-p i.no { background: #fff0d6; color: #8a5000; }
.est-salta { position: absolute; top: -8px; right: -4px; padding: 1px 7px; border-radius: 99px; font-size: 0.7rem; font-weight: 600; color: #fff; animation: aparecer 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.est-salta.si { background: linear-gradient(120deg, #7a3fd0, #1d8a7e); }
.est-salta.no { background: #b06a00; }
.est.celebra { border-color: #a99cf3; box-shadow: 0 8px 18px -10px rgba(74, 67, 214, 0.7); }
.est.sacude { animation: sacudir 0.45s ease-in-out; border-color: #f1c27d; }
@keyframes sacudir { 25% { transform: translateX(-4px) rotate(-1.5deg); } 50% { transform: translateX(4px) rotate(1.5deg); } 75% { transform: translateX(-2px); } }

.pestanas { display: flex; gap: 1.2rem; padding: 0.4rem 1rem 0; border-bottom: 2px solid var(--a-linea); }
.pestanas button { position: relative; border: 0; background: none; padding: 0.4rem 0 0.55rem; font-weight: 600; color: #6e7290; }
.pestanas button[aria-selected="true"] { color: var(--a-tinta); }
.pestanas button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #2db8a8, #5866f0); }
.losas { flex: 1; overflow-y: auto; margin: 0; padding: 0.8rem; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; align-content: start; }
.losa {
  position: relative; width: 100%; height: 96px; display: grid; justify-items: center; align-content: center; gap: 0.35rem;
  border-radius: 16px; border: 2px solid var(--a-linea); background: #fbfbfe; font-weight: 600; font-size: 0.8rem; line-height: 1.15; text-align: center;
  animation: entrar-losa 0.25s ease both;
}
.losa:hover { transform: translateY(-2px); }
.losa.bien:hover { border-color: #9fd9bd; }
.losa.mal:hover { border-color: #f3b4ae; }
.losa-pts { position: absolute; top: 5px; right: 9px; font-style: normal; font-size: 0.78rem; }
.losa.bien .losa-pts { color: #0b7a62; }
.losa.mal .losa-pts { color: #c0392b; }
.losa-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; }
.losa.bien .losa-ico { background: #dff6ef; color: #0b7a62; }
.losa.mal .losa-ico { background: #fde6e6; color: #c0392b; }
.losa-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes entrar-losa { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.punto-carta {
  position: absolute; left: 1rem; right: 1rem; top: 38%; z-index: 5; display: flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem; border-radius: 20px; background: #fff; box-shadow: 0 24px 50px rgba(10, 10, 40, 0.3);
  opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.8);
}
.punto-carta.visible { animation: carta 1.8s cubic-bezier(0.3, 1.2, 0.5, 1) both; }
.punto-carta .est-av { width: 48px; height: 48px; flex: none; }
.punto-carta b { display: block; font-size: 1.15rem; line-height: 1.1; }
.punto-carta b.si { color: #0b7a62; }
.punto-carta b.no { color: #c0392b; }
.punto-carta span { font-size: 0.76rem; color: var(--a-suave); }
@keyframes carta { 0% { opacity: 0; transform: translateY(20px) scale(0.8); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-16px); } }

/* Calendario (diseño nuevo; si le gusta al usuario, pasa a la app) */
.cal-cab {
  display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.6rem; border-radius: 18px; margin-bottom: 0.6rem;
  background: linear-gradient(120deg, #6a3fd0, #3c6fd0 55%, #0f7f76); color: #fff; box-shadow: 0 10px 22px -12px rgba(60, 63, 208, 0.8);
}
.cal-cab b { display: block; font-size: 1.25rem; font-weight: 600; text-align: center; line-height: 1.1; }
.cal-cab span { display: block; font-size: 0.72rem; text-align: center; opacity: 0.9; }
.cal-flecha { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 1.3rem; line-height: 1; }
.cal-flecha:hover:not(:disabled) { background: rgba(255, 255, 255, 0.3); }
.cal-flecha:disabled { opacity: 0.35; cursor: default; }
.cal-semana, .cal-rejilla { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-semana span { text-align: center; font-size: 0.64rem; font-weight: 600; color: var(--a-suave); padding-bottom: 3px; }
.cal-vacio { height: 38px; }
.cal-dia {
  position: relative; height: 38px; border: 1px solid transparent; border-radius: 11px; background: #fff; font-size: 0.8rem; font-weight: 600; color: var(--a-tinta);
  display: grid; place-items: center; transition: transform 0.12s ease;
}
.cal-dia:hover { transform: translateY(-1px); border-color: #dcd8f6; }
.cal-dia.finde { background: transparent; color: #8a8ea6; }
.cal-dia.con-feriado { background: #fde8e6; color: #b42318; }
.cal-dia.con-libre { background: #eef0f6; color: #5d6278; }
.cal-dia.hoy span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #10162e; color: #fff; }
.cal-dia.elegido { border-color: #8b6ae0; box-shadow: 0 0 0 2px #8b6ae0 inset; }
.cal-marca { position: absolute; left: 50%; bottom: 3px; width: 16px; height: 3px; margin-left: -8px; border-radius: 3px; }
.cal-marca.feriado { background: #e0483e; }
.cal-marca.eval { background: #8b3fd9; }
.cal-marca.reunion { background: #1d7fa6; }
.cal-marca.cierre { background: #d68400; }
.cal-marca.libre { background: #9aa0b8; }
.cal-leyenda { display: flex; flex-wrap: wrap; gap: 0.3rem 0.7rem; margin: 0.6rem 0 0; padding: 0; list-style: none; font-size: 0.66rem; color: var(--a-suave); }
.cal-leyenda .cal-marca { position: static; display: inline-block; margin: 0 4px 0 0; vertical-align: 2px; }
.cal-detalle, .cal-proximos { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.cal-detalle li { padding: 0.6rem 0.75rem; border-radius: 14px; background: #fff; border: 1px solid var(--a-linea); border-left: 4px solid #9aa0b8; animation: aparecer 0.3s ease both; }
.cal-detalle li em { display: block; font-style: normal; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--a-suave); }
.cal-detalle li b { font-size: 0.86rem; font-weight: 600; }
.cal-detalle li.feriado { border-left-color: #e0483e; }
.cal-detalle li.eval { border-left-color: #8b3fd9; }
.cal-detalle li.reunion { border-left-color: #1d7fa6; }
.cal-detalle li.cierre { border-left-color: #d68400; }
.cal-proximos li { display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0.6rem; border-radius: 14px; background: #fff; border: 1px solid var(--a-linea); font-size: 0.8rem; }
.cal-fecha { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #f1efff; color: var(--a-indigo); font-size: 0.6rem; text-transform: uppercase; line-height: 1; }
.cal-fecha b { font-size: 1rem; }
.cal-proximos li.feriado .cal-fecha { background: #fde8e6; color: #b42318; }
.cal-proximos li.cierre .cal-fecha { background: #fff0d6; color: #8a5000; }
.cal-proximos li.eval .cal-fecha { background: #f3e9ff; color: #7a33c4; }
.cal-proximos li.reunion .cal-fecha { background: #e3f1f7; color: #16698c; }

@media (prefers-reduced-motion: reduce) {
  .registro td.recien .m, .est-salta, .est.sacude, .losa, .cal-detalle li { animation: none; }
  .punto-carta.visible { animation: carta-quieta 1.8s linear both; }
  .est, .cal-dia { transition: none; }
}
@keyframes carta-quieta { 0%, 100% { opacity: 0; transform: none; } 8%, 85% { opacity: 1; transform: none; } }
