:root { --idetel: #493382; --idetel-oscuro: #35255F; --idetel-claro: #efeaf8; }
body { background: #f6f5fa; color: #1d1b26; min-height: 100vh; display: flex; flex-direction: column; font-size: 16px; }
main { flex: 1; padding: 28px 0 40px; }
.encabezado { background: var(--idetel); }
.encabezado .navbar-brand { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.encabezado .nav-link { color: rgba(255,255,255,.88) !important; }
.encabezado .nav-link:hover { color: #fff !important; }
.encabezado .usuario { color: #fff; font-size: 14px; opacity: .9; }
.dropdown-simple { position: relative; }
.dropdown-simple .nav-link { cursor: pointer; }
.dropdown-simple .submenu { display: none; position: absolute; z-index: 20; background: #fff; list-style: none;
  margin: 0; padding: 6px 0; min-width: 230px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.dropdown-simple:hover .submenu, .dropdown-simple:focus-within .submenu { display: block; }
.dropdown-simple .submenu a { display: block; padding: 8px 16px; color: #1d1b26; text-decoration: none; }
.dropdown-simple .submenu a:hover { background: var(--idetel-claro); }
.tarjeta { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 10px rgba(30,20,60,.06); margin-bottom: 20px; }
h1.titulo { font-size: 1.6rem; font-weight: 600; color: var(--idetel-oscuro); margin-bottom: 18px; }
h2.subtitulo { font-size: 1.2rem; font-weight: 600; margin: 8px 0 14px; }
.btn-idetel { background: var(--idetel); color: #fff; border: none; }
.btn-idetel:hover { background: var(--idetel-oscuro); color: #fff; }
.table thead th { background: var(--idetel-claro); color: var(--idetel-oscuro); font-weight: 600; border-bottom: none; }
.table td, .table th { vertical-align: middle; }
.resaltado { color: #b3261e; font-weight: 500; }
.promedio { font-size: 1.1rem; font-weight: 600; color: var(--idetel-oscuro); }
.login-caja { max-width: 440px; margin: 30px auto; }
.foto-alumno { width: 150px; height: 190px; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; background: #eee; }
.foto-chica { width: 56px; height: 70px; object-fit: cover; border-radius: 6px; background: #eee; }
.pie { background: #1d1b26; color: #c9c6d6; font-size: 14px; padding: 16px 0; }
.pie a { color: #fff; }
.form-label { font-weight: 500; }
.badge-cupo { background: var(--idetel-claro); color: var(--idetel-oscuro); }
@media (max-width: 991px) {
  .navbar-collapse.show { display: block; }
  .dropdown-simple .submenu { position: static; display: block; box-shadow: none; background: transparent; padding-left: 12px; }
  .dropdown-simple .submenu a { color: rgba(255,255,255,.85); }
  .encabezado form { margin: 10px 0; }
}

.nav-pills .nav-link { color: var(--idetel-oscuro); padding: 4px 10px; }
.nav-pills .nav-link:hover { background: var(--idetel-claro); }
.tabla-chica td, .tabla-chica th { font-size: 14px; padding: 6px 8px; }
.cifra { font-size: 1.8rem; font-weight: 600; color: var(--idetel); line-height: 1; }
.panel-grupo h2 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--idetel-oscuro); }
.panel-grupo a { display: block; padding: 3px 0; }
fieldset legend { font-size: 1rem; font-weight: 600; color: var(--idetel-oscuro); }
