/* ============================================
   EXAMEN-THEME.CSS — Diseño MINEDU Nombramiento
   Basado en index.html (paleta, hero, cards, modal)
   ============================================ */

/* ─── FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&family=Montserrat:wght@400;600;700;900&family=Open+Sans:wght@400;600&display=swap');

/* ─── CSS CUSTOM PROPERTIES ─── */
:root {
  --rojo:    #C0392B;
  --verde:   #27AE60;
  --azul:    #1A5276;
  --azul-cl: #2980B9;
  --blanco:  #FFFFFF;
  --gris-cl: #F0F4F8;
  --gris-m:  #BDC3C7;
  --texto:   #1C2833;
  --dorado:  #D4AC0D;
  --naranja: #E67E22;
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--gris-cl);
  color: var(--texto);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* ═══════════════════════════════════════════════
   HERO HEADER (reemplaza navbar)
   ═══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--azul) 0%, #154360 60%, #0B2545 100%);
  color: var(--blanco);
  padding: 28px 20px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-compact {
  padding: 16px 20px 12px;
}
.hero .escudo {
  width: 72px; height: 72px;
  background: var(--dorado);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  position: relative; z-index: 1;
  animation: pulso 2.5s ease-in-out infinite;
}
.hero-compact .escudo {
  width: 48px; height: 48px;
  font-size: 22px;
  margin: 0 auto 6px;
  display: inline-flex;
}
.hero h1, .hero .hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  line-height: 1.2;
  position: relative; z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero .hero-title span, .hero h1 span { color: var(--dorado); }
.hero p, .hero .hero-sub {
  margin-top: 6px;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  opacity: .85;
  position: relative; z-index: 1;
}
.hero .hero-badge {
  display: inline-block;
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .7rem;
  padding: 4px 14px;
  border-radius: 20px;
  margin-top: 8px;
  letter-spacing: .5px;
  position: relative; z-index: 1;
}
.hero-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  position: relative; z-index: 1;
}
.hero-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-user-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-user-right .hero-user-name {
  font-size: .85rem;
  opacity: .9;
}
.hero-user-right .btn-logout {
  background: rgba(255,255,255,0.15);
  color: var(--blanco);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .75rem;
  cursor: pointer;
  transition: background .2s;
}
.hero-user-right .btn-logout:hover {
  background: rgba(255,255,255,0.25);
}

@keyframes pulso {
  0%,100% { box-shadow: 0 4px 20px rgba(212,172,13,0.4); }
  50%      { box-shadow: 0 4px 30px rgba(212,172,13,0.9); }
}

/* ─── SUBTITLE BAR (green strip) ─── */
.subtitle-bar {
  background: var(--verde);
  color: var(--blanco);
  text-align: center;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(.75rem, 1.8vw, .9rem);
  letter-spacing: .5px;
}

/* ─── NAV BAR (below hero) ─── */
.nav-minedu {
  background: var(--blanco);
  border-bottom: 3px solid var(--dorado);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.nav-minedu .nav-link {
  color: var(--azul) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .82rem;
  padding: 10px 14px !important;
  transition: color .2s, background .2s;
}
.nav-minedu .nav-link:hover,
.nav-minedu .nav-link.active {
  color: var(--dorado) !important;
  background: rgba(212,172,13,0.06);
}
.nav-minedu-toggler {
  border: 2px solid var(--azul);
  color: var(--azul);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .82rem;
  padding: 8px 16px;
  border-radius: 8px;
  width: 100%;
  text-align: center;
}
.nav-minedu-toggler:hover {
  background: rgba(41,128,185,0.08);
}
.nav-minedu .navbar-collapse {
  max-height: 70vh;
  overflow-y: auto;
}

/* ═══════════════════════════════════════════════
   CARDS (index.html style)
   ═══════════════════════════════════════════════ */
.card-minedu {
  background: var(--blanco);
  border-radius: 12px;
  padding: 20px 14px 16px;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.card-minedu::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--azul-cl), var(--verde));
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}
.card-minedu:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  border-color: var(--azul-cl);
}
.card-minedu:hover::after { transform: scaleX(1); }
.card-minedu:active { transform: translateY(0); }

.card-minedu .card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  font-size: 24px;
}
.card-minedu .card-num {
  position: absolute; top: 8px; right: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .65rem;
  color: var(--gris-m);
}
.card-minedu h3, .card-minedu .card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .82rem;
  color: var(--azul);
  line-height: 1.3;
  margin-bottom: 6px;
}
.card-minedu p, .card-minedu .card-text {
  font-size: .72rem;
  color: #7F8C8D;
  line-height: 1.4;
}
.card-minedu .btn-ver, .card-minedu .card-action {
  display: inline-block;
  margin-top: 10px;
  background: var(--azul);
  color: var(--blanco);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .68rem;
  padding: 5px 14px;
  border-radius: 20px;
  transition: background .2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.card-minedu:hover .btn-ver, .card-minedu:hover .card-action {
  background: var(--azul-cl);
  color: var(--blanco);
}

/* card icon backgrounds */
.ci-0 { background: #EBF5FB; } .ci-1 { background: #EAFAF1; }
.ci-2 { background: #FEF9E7; } .ci-3 { background: #FDEDEC; }
.ci-4 { background: #F4ECF7; } .ci-5 { background: #EBF5FB; }
.ci-6 { background: #EAFAF1; } .ci-7 { background: #FEF9E7; }
.ci-8 { background: #FDEDEC; } .ci-9 { background: #F4ECF7; }

/* ─── SECTION TITLE ─── */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--azul);
  text-align: center;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 10px; justify-content: center;
}
.section-title::before, .section-title::after {
  content: ''; flex: 1; height: 2px; background: var(--gris-m); max-width: 120px;
}

/* ═══════════════════════════════════════════════
   FORM STYLES (modal-inspired)
   ═══════════════════════════════════════════════ */
.form-minedu .form-group { margin-bottom: 14px; }
.form-minedu .form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .75rem;
  color: var(--texto);
  margin-bottom: 5px;
}
.form-minedu .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gris-m);
  border-radius: 8px;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
  font-family: var(--font-body);
  background: var(--blanco);
}
.form-minedu .form-control:focus {
  border-color: var(--azul-cl);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}
.form-minedu .form-control.is-invalid {
  border-color: var(--rojo);
}
.form-minedu .invalid-feedback {
  color: var(--rojo);
  font-size: .75rem;
  margin-top: 4px;
}
.form-minedu .form-select {
  width: 100%;
  padding: 9px 14px;
  border: 2px solid var(--gris-m);
  border-radius: 8px;
  font-size: .85rem;
  outline: none;
  transition: border-color .2s;
  font-family: var(--font-body);
  background: var(--blanco);
}
.form-minedu .form-select:focus {
  border-color: var(--azul-cl);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}
.form-minedu .form-check-input:checked {
  background-color: var(--azul-cl);
  border-color: var(--azul-cl);
}

.btn-minedu {
  background: linear-gradient(135deg, var(--azul), var(--azul-cl));
  color: var(--blanco);
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: opacity .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-minedu:hover {
  opacity: .88;
  color: var(--blanco);
}
.btn-minedu-sm {
  padding: 7px 14px;
  font-size: .75rem;
}
.btn-minedu-outline {
  background: transparent;
  border: 2px solid var(--azul-cl);
  color: var(--azul-cl);
}
.btn-minedu-outline:hover {
  background: var(--azul-cl);
  color: var(--blanco);
  opacity: 1;
}
.btn-minedu-danger {
  background: linear-gradient(135deg, var(--rojo), #E74C3C);
}
.btn-minedu-success {
  background: linear-gradient(135deg, var(--verde), #2ECC71);
}
.btn-minedu-warning {
  background: linear-gradient(135deg, #F39C12, var(--dorado));
}

/* ─── INPUT GROUP FIX ─── */
.form-minedu .input-group {
  align-items: stretch;
}
.form-minedu .input-group .form-control,
.form-minedu .input-group .form-select {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  border-radius: 0;
}
.form-minedu .input-group > :first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.form-minedu .input-group > :last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.form-minedu .input-group-text {
  display: flex;
  align-items: center;
  line-height: 1.5;
  border: 2px solid var(--gris-m);
  background: var(--blanco);
  font-size: .9rem;
  padding: 10px 14px;
}
.form-minedu .input-group:focus-within .input-group-text {
  border-color: var(--azul-cl);
}
.form-minedu .input-group:has(.form-control.is-invalid) .input-group-text {
  border-color: var(--rojo);
}
.form-minedu .input-group:has(.form-control.is-valid) .input-group-text {
  border-color: var(--verde);
}
.form-minedu .input-group-text.password-toggle {
  background: #f8f9fa;
  cursor: pointer;
  user-select: none;
}
.form-minedu .input-group .form-control.is-invalid,
.form-minedu .input-group .form-control.is-valid {
  padding-right: 14px;
  background-image: none;
}
.form-minedu #passwordMatchFeedback {
  font-size: .8rem;
}

/* ═══════════════════════════════════════════════
   TABLE STYLES (admin tables)
   ═══════════════════════════════════════════════ */
.table-minedu {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.table-minedu thead {
  background: linear-gradient(135deg, var(--azul), #154360);
  color: var(--blanco);
}
.table-minedu thead th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .78rem;
  padding: 10px 12px;
  border: none;
  letter-spacing: .3px;
}
.table-minedu tbody td {
  padding: 9px 12px;
  font-size: .82rem;
  border-bottom: 1px solid #e8ecf1;
  vertical-align: middle;
}
.table-minedu tbody tr:hover {
  background: #EBF5FB;
}
.table-minedu tbody tr:nth-child(even) {
  background: #FAFCFE;
}
.table-minedu tbody tr:nth-child(even):hover {
  background: #EBF5FB;
}

/* ─── BADGES ─── */
.badge-minedu {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .68rem;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .3px;
}
.badge-minedu-success {
  background: #D5F5E3;
  color: #1E8449;
}
.badge-minedu-danger {
  background: #FADBD8;
  color: var(--rojo);
}
.badge-minedu-warning {
  background: #FEF9E7;
  color: #B7950B;
}
.badge-minedu-info {
  background: #EBF5FB;
  color: #1A5276;
}
.badge-minedu-secondary {
  background: #E8E8E8;
  color: #666;
}

/* ═══════════════════════════════════════════════
   FILTERS CARD
   ═══════════════════════════════════════════════ */
.filters-card {
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px solid #e8ecf1;
}
.filters-card .form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .75rem;
  color: var(--texto);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer-minedu {
  background: var(--azul);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 20px 16px;
  font-size: .88rem;
}
.footer-minedu strong { color: var(--dorado); }
.footer-link {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  margin: 0 6px;
  transition: color .15s;
}
.footer-link:hover { color: #fff; }

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-radius: 1000px;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .2s, border-color .2s;
  margin: 4px;
}
.footer-social-link i {
  font-size: 1.2rem;
}
.footer-social-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  animation: whatsapp-pulse 2s infinite;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Zoom flotante */
.zoom-float {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zoom-btn {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--azul);
  background: #fff;
  color: var(--azul);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: background .15s, color .15s, opacity .15s;
}
.zoom-btn:hover {
  background: var(--azul);
  color: #fff;
}
.zoom-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
}
.zoom-btn.disabled:hover {
  background: #fff;
  color: var(--azul);
}
.stat-card {
  background: var(--blanco);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border: 1px solid #e8ecf1;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  font-size: 22px;
}
.stat-card .stat-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.2;
}
.stat-card .stat-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .75rem;
  color: #7F8C8D;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════
   AUTH PAGES (modal style)
   ═══════════════════════════════════════════════ */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}
.auth-card {
  background: var(--blanco);
  border-radius: 16px;
  padding: 36px 32px 28px;
  width: min(420px, 94vw);
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  position: relative;
  animation: slideUp .3s ease;
}
.auth-card-wide {
  width: min(960px, 96vw);
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.auth-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 28px;
  overflow: hidden;
  padding: 3px;
}
.auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.auth-card h2, .auth-card .auth-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  color: var(--azul);
  margin-bottom: 4px;
}
.auth-card .auth-sub {
  text-align: center;
  font-size: .78rem;
  color: #7F8C8D;
  margin-bottom: 20px;
  padding: 4px 8px;
  background: var(--gris-cl);
  border-radius: 6px;
}
.auth-card .auth-hint {
  text-align: center;
  font-size: .7rem;
  color: #95A5A6;
  margin-top: 10px;
}
.auth-card .auth-link {
  text-align: center;
  font-size: .8rem;
  margin-top: 14px;
}
.auth-card .auth-link a {
  color: var(--azul-cl);
  font-weight: 600;
  text-decoration: none;
}
.auth-card .auth-link a:hover {
  color: var(--azul);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   EXAM-SPECIFIC STYLES (existing + updated colors)
   ═══════════════════════════════════════════════ */

/* ─── LAYOUT ─── */
.exam-layout {
  display: flex;
  gap: 20px;
}
.exam-panel {
  flex: 3;
  min-width: 0;
}
.exam-sidebar {
  flex: 1;
  min-width: 190px;
  max-width: 210px;
}

/* ─── HEADER ─── */
.exam-header {
  text-align: center;
  color: var(--azul);
  text-transform: uppercase;
  border-bottom: 2px solid var(--azul);
  padding-bottom: 8px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ─── TIMER ─── */
.exam-timer {
  text-align: center;
  font-weight: bold;
  color: var(--rojo);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

/* ─── PROGRESS BAR ─── */
.exam-progress {
  width: 100%;
  background: var(--gris-m);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 12px;
  height: 14px;
}
.exam-progress-bar {
  height: 14px;
  width: 0%;
  background: var(--verde);
  transition: width 0.4s;
}

/* ─── QUESTION CARD ─── */
.question-card {
  display: block;
  width: 100%;
  padding: 18px 22px;
  margin-bottom: 14px;
  background: #f0f4fa;
  border-radius: 6px;
  border-left: 4px solid var(--azul);
  border-top: 1px solid #ccd6e8;
  border-right: 1px solid #ccd6e8;
  border-bottom: 1px solid #ccd6e8;
  line-height: 1.45;
  color: var(--texto);
  word-break: break-word;
  text-align: justify;
}
.question-card.correcta {
  border-left-color: var(--verde);
  background: #f0faf4;
}
.question-card.incorrecta {
  border-left-color: var(--rojo);
  background: #faf0f0;
}
.question-card.no-respondida {
  border-left-color: var(--gris-m);
}

.question-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}

.option img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}

.parent-block img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
  max-height: 300px;
  border-radius: 4px;
}

.question-number {
  display: inline-block;
  min-width: 34px;
  font-weight: 700;
  color: var(--azul);
  background: transparent;
  border: 1px solid #a0b4ce;
  border-radius: 3px;
  padding: 2px 8px;
  margin-right: 8px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-align: center;
}

.question-text {
  word-break: break-word;
  text-align: justify;
}

/* ─── OPTIONS ─── */
.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  margin: 6px 0;
  background: #fafafa;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid #dde3ee;
  line-height: 1.4;
  color: #2c2c2c;
  transition: background 0.15s, border-color 0.15s;
}
.option:hover {
  background: #e8f0fe;
  border-color: #7fa8e0;
}
.option input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--azul);
  width: 18px;
  height: 18px;
}
.option.selected-correct {
  background: #d1e7dd;
  border-color: var(--verde);
}
.option.selected-wrong {
  background: #f8d7da;
  border-color: var(--rojo);
}
.option.correct-not-selected {
  background: #e8f5e9;
  border: 1px dashed var(--verde);
}

.question-card table, .option table {
  max-width: 100%;
  width: auto !important;
  border-collapse: collapse;
}
.question-card td, .question-card th,
.option td, .option th {
  border: 1px solid #bbb;
  padding: 6px 10px;
}

/* ─── SIDEBAR ─── */
.sidebar-card {
  background: white;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.12);
}
.sidebar-title {
  margin: 0 0 10px;
  color: var(--azul);
  font-weight: bold;
  font-family: var(--font-heading);
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.q-btn {
  width: 28px;
  height: 28px;
  border-radius: 20%;
  font-weight: bold;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.q-btn.unanswered {
  background: var(--rojo);
}
.q-btn.answered {
  background: var(--verde);
}
.q-btn.current {
  background: var(--azul-cl) !important;
  border: 2px solid #002b5c;
}

.sidebar-stats {
  margin-top: 12px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
}
.sidebar-legend {
  margin-top: 12px;
}
.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ─── BUTTONS ─── */
.btn-exam {
  padding: 8px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.btn-exam-prev {
  background: var(--gris-m);
  color: white;
}
.btn-exam-next {
  background: var(--azul-cl);
  color: white;
}
.btn-exam-finish {
  background: var(--verde);
  color: white;
}
.btn-exam-detail {
  background: var(--azul);
  color: white;
}
.btn-exam:hover {
  opacity: 0.9;
  color: white;
}

/* ─── RESULT BLOCKS ─── */
.result-block {
  padding: 18px;
  border-radius: 10px;
  text-align: center;
  height: 100%;
}
.result-block.correctas {
  background: #d4edda;
  border: 1px solid #c3e6cb;
}
.result-block.incorrectas {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}
.result-block.sin-responder {
  background: #e2e3e5;
  border: 1px solid #d6d8db;
}
.result-block .result-number {
  font-weight: 800;
  line-height: 1.2;
}
.result-block .result-label {
  font-weight: 600;
  margin-top: 4px;
}
.result-block .result-sub {
  color: #666;
  margin-top: 2px;
}

/* ─── EXAM INFO CARD ─── */
.exam-info-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #e8ecf1;
}
.exam-info-card h2 {
  color: var(--azul);
  text-align: center;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
}
.exam-info-card .btn-start {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--azul), var(--azul-cl));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: var(--font-heading);
}
.exam-info-card .btn-start:hover {
  opacity: .88;
}


/* ─── EXAM LIST CARDS ─── */
.exam-list-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 22px;
  height: 100%;
  transition: box-shadow 0.2s, transform .2s;
  border: 1px solid #e0e6ee;
}
.exam-list-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
  transform: translateY(-2px);
}
.exam-list-card .card-title {
  color: var(--azul);
  font-weight: 700;
  font-family: var(--font-heading);
}
.exam-list-card .exam-meta {
  margin-bottom: 6px;
  line-height: 1.5;
}
.exam-list-card .badge {
  padding: 6px 12px;
  vertical-align: middle;
}
.exam-list-card .btn-exam {
  padding: 10px 22px;
  border-radius: 8px;
}

/* ─── TRANSITION FOR COLLAPSIBLE ─── */
.detalle-collapsible {
  transition: all 0.3s ease;
}

/* ─── NO-RINDIÓ ROW ─── */
.no-rindio { background-color: #fff3cd !important; }
.no-rindio:hover { background-color: #ffe69c !important; }

/* ─── SIN RESULTADOS ─── */
.sin-resultados {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}
.sin-resultados i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .exam-layout {
    flex-direction: column;
  }
  .exam-sidebar {
    order: -1;
    max-width: 100%;
    min-width: unset;
  }
  .hero-user {
    flex-direction: column;
    text-align: center;
  }
  .hero-user-left {
    flex-direction: column;
  }
  .hero-user-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero .escudo {
    width: 48px; height: 48px;
    font-size: 22px;
  }
  .hero-compact {
    padding: 12px 14px 10px;
  }

  .section-title {
    font-size: .85rem;
    gap: 6px;
  }
  .section-title::before,
  .section-title::after {
    max-width: 40px;
  }

  .esp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .info-examen-grid {
    flex-wrap: wrap;
  }
  .info-examen-card {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
  }

  .table-minedu thead th {
    padding: 7px 8px;
    font-size: .7rem;
  }
  .table-minedu tbody td {
    padding: 6px 8px;
    font-size: .72rem;
  }
  .table-wrapper {
    overflow-x: auto;
  }

  .card-minedu {
    padding: 14px 10px 12px;
  }
  .card-minedu h3, .card-minedu .card-title {
    font-size: .75rem;
  }
  .card-minedu .card-icon {
    width: 40px; height: 40px;
    font-size: 18px;
  }

  .sidebar-card {
    padding: 10px;
  }

  .auth-card {
    padding: 24px 18px 20px;
  }

  .exam-info-card {
    padding: 16px;
  }

  .per-carousel {
    gap: 10px;
  }
  .per-card {
    width: 170px;
  }
  .carousel-btn--left  { left: -8px; }
  .carousel-btn--right { right: -8px; }
}

@media (max-width: 768px) {
  .question-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
  .q-btn {
    width: 36px;
    height: 36px;
    font-size: .8rem;
  }
  .exam-sidebar {
    max-width: 100%;
    min-width: unset;
  }
  .sticky-bottom-nav {
    padding: 8px 10px;
  }
  .sticky-bottom-nav .btn-exam {
    padding: 6px 12px;
    font-size: .75rem;
  }
}

@media (max-width: 480px) {
  .esp-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
  }

  .info-examen-card {
    flex: 1 1 100%;
  }

  .stat-card .stat-number {
    font-size: 1.2rem;
  }
  .stat-card .stat-icon {
    width: 36px; height: 36px;
    font-size: 16px;
  }
  .stat-card {
    padding: 14px;
  }

  .question-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .option {
    padding: 8px 12px;
    gap: 8px;
    font-size: .82rem;
  }
  .option input[type="radio"] {
    width: 20px;
    height: 20px;
  }

  .question-card {
    padding: 12px 14px;
  }

  .btn-minedu {
    padding: 9px 16px;
    font-size: .78rem;
  }
  .btn-minedu-sm {
    padding: 5px 10px;
    font-size: .68rem;
  }

  .hero-badge {
    font-size: .6rem;
    padding: 3px 10px;
  }
}

/* ═══════════════════════════════════════════════
   ESPECIALIDAD GRID (index)
   ═══════════════════════════════════════════════ */
.esp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.card-minedu--active {
  border-color: var(--verde);
  background: var(--verde);
  color: var(--blanco);
}
.card-minedu--active::after {
  background: var(--blanco);
  transform: scaleX(1);
}
.card-minedu--active:hover { border-color: #1E8449; background: #1E8449; }
.card-minedu--active h3,
.card-minedu--active p,
.card-minedu--active .card-num { color: var(--blanco); }
.card-minedu--active .card-icon {
  background: rgba(255,255,255,.25);
  color: var(--blanco); }

.card-minedu .btn--red {
  background: var(--rojo);
  color: var(--blanco);
}
.card-minedu:hover .btn--red { background: #E74C3C; }
.card-minedu--active .btn-ver {
  background: rgba(255,255,255,.2);
  color: var(--blanco);
  border: 1px solid rgba(255,255,255,.4);
}
.card-minedu--active:hover .btn-ver {
  background: rgba(255,255,255,.3);
  color: var(--blanco);
}

/* ═══════════════════════════════════════════════
   ESPECIALIDAD SHOW HERO
   ═══════════════════════════════════════════════ */
.hero--especialidad {
  background: linear-gradient(135deg, #154360 0%, var(--azul-cl) 100%);
  color: var(--blanco);
  padding: 28px 20px 24px;
  text-align: center;
  border-radius: 14px;
  margin-bottom: 24px;
}
.hero--especialidad h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero--especialidad p {
  margin-top: 6px;
  font-size: .85rem;
  opacity: .85;
}
.hero--especialidad .badges {
  display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap;
}

.badge-rojo  { background: var(--rojo); color: var(--blanco); }
.badge-verde { background: #1E8449; color: var(--blanco); }
.badge-minedu-rojo   { background: var(--rojo); color: var(--blanco); }
.badge-minedu-verde  { background: var(--verde); color: var(--blanco); }
.badge-minedu-dorado { background: var(--dorado); color: var(--blanco); }

.section-title--sm {
  font-size: .85rem;
  margin-bottom: 22px;
}

/* ═══════════════════════════════════════════════
   INFO EXAMEN CARDS (show)
   ═══════════════════════════════════════════════ */
.info-examen-grid {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.info-examen-card {
  flex: 1;
  background: var(--blanco);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  border: 1px solid #e8ecf1;
  transition: transform .2s, box-shadow .2s;
}
.info-examen-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.info-examen-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gris-cl);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
  color: var(--azul);
}
.info-examen-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  color: var(--azul);
  margin-bottom: 4px;
}
.info-examen-card p {
  font-size: .78rem;
  color: #7F8C8D;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════
   PERIOD CAROUSEL (show)
   ═══════════════════════════════════════════════ */
.per-carousel-wrapper {
  position: relative;
  margin-bottom: 36px;
}
.per-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.per-carousel::-webkit-scrollbar { display: none; }

.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--blanco);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--azul);
  font-size: 1.1rem;
  transition: box-shadow .2s, background .2s;
  opacity: .9;
}
.carousel-btn:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  background: var(--azul);
  color: var(--blanco);
  opacity: 1;
}
.carousel-btn--left  { left: -18px; }
.carousel-btn--right { right: -18px; }
.per-card {
  flex: 0 0 auto;
  width: 220px;
  background: var(--blanco);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.09);
  border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  scroll-snap-align: start;
}
.per-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}
.per-card-header {
  padding: 20px 16px 14px;
  text-align: center;
}
.per-year {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
  display: block;
}
.per-card-body {
  padding: 0 16px 16px;
  text-align: center;
}
.per-card-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .82rem;
  color: var(--azul);
  margin-bottom: 6px;
  line-height: 1.3;
}
.per-meta {
  font-size: .7rem;
  color: #7F8C8D;
  margin-bottom: 10px;
}
.per-tags {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tag {
  font-size: .62rem;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.tag-pub  { background: #EBF5FB; color: var(--azul-cl); }
.tag-priv { background: #FDEDEC; color: var(--rojo); }

.btn-per {
  display: block;
  width: 100%;
  padding: 9px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .75rem;
  cursor: pointer;
  color: var(--blanco);
  transition: opacity .2s;
  letter-spacing: .3px;
  text-decoration: none;
}
.btn-per:hover { opacity: .85; color: var(--blanco); }
.btn-per-disabled { opacity: .5; cursor: not-allowed; }

.theme-verde .per-card-header    { background: linear-gradient(135deg, #1E8449, var(--verde)); }
.theme-verde .per-year           { color: #ABEBC6; }
.theme-verde .btn-per            { background: linear-gradient(135deg, #1E8449, var(--verde)); }

.theme-azul .per-card-header     { background: linear-gradient(135deg, var(--azul), var(--azul-cl)); }
.theme-azul .per-year            { color: #AED6F1; }
.theme-azul .btn-per             { background: linear-gradient(135deg, var(--azul), var(--azul-cl)); }

.theme-rojo .per-card-header     { background: linear-gradient(135deg, #922B21, var(--rojo)); }
.theme-rojo .per-year            { color: #F5B7B1; }
.theme-rojo .btn-per             { background: linear-gradient(135deg, #922B21, var(--rojo)); }

.theme-naranja .per-card-header  { background: linear-gradient(135deg, #D35400, var(--naranja)); }
.theme-naranja .per-year         { color: #FDEBD0; }
.theme-naranja .btn-per         { background: linear-gradient(135deg, #D35400, var(--naranja)); }

/* ─── TABLE WRAPPER ─── */
.table-wrapper {
  overflow: hidden;
  border-radius: 10px;
}
.table-wrapper .table-minedu {
  border-radius: 0;
  margin-bottom: 0;
}

/* ─── MIN-HEIGHT FOR QUILL EDITOR ─── */
#editor-enunciado { min-height: 160px; }

/* ─── PAGINATION LINKS ─── */
.pagination-minedu .page-link {
  color: var(--azul);
  border-color: #dee2e6;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8rem;
}
.pagination-minedu .page-item.active .page-link {
  background: var(--azul);
  border-color: var(--azul);
  color: white;
}
.pagination-minedu .page-link:hover {
  background: #EBF5FB;
  border-color: var(--azul-cl);
  color: var(--azul);
}

/* ─── STICKY BOTTOM NAV (rendir) ─── */
.sticky-bottom-nav {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 2px solid var(--azul);
  padding: 12px 16px;
  z-index: 50;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

/* ─── ALERT OVERRIDES ─── */
.alert-minedu-info {
  background: #EBF5FB;
  border: 1px solid #B9DCF5;
  color: var(--azul);
  border-radius: 10px;
  padding: 14px 18px;
}
.alert-minedu-success {
  background: #D5F5E3;
  border: 1px solid #A9DFBF;
  color: #1E8449;
  border-radius: 10px;
  padding: 14px 18px;
}
.alert-minedu-danger {
  background: #FADBD8;
  border: 1px solid #F5B7B1;
  color: var(--rojo);
  border-radius: 10px;
  padding: 14px 18px;
}


.alert-minedu-success.alert-dismissible .btn-close,
.alert-minedu-danger.alert-dismissible .btn-close {
    position: static;
    flex-shrink: 0;
    padding: 0;
    margin-left: auto;
    width: 1.2em;
    height: 1.2em;
    background-size: 1.2em;
}


/* Reset Bootstrap .alert defaults for custom alerts */
.alert-minedu-success.alert-dismissible,
.alert-minedu-danger.alert-dismissible {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════
   NAVBAR DOCENTE PRO — píldora flotante estilo SmithRx
   ═══════════════════════════════════════════════ */

.navbar-docente {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1030;
  background: #ffffff;
  border-radius: 1000px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  border: 1px solid #e8e7e7;
  width: 100%;
  max-width: calc(100% - 40px);
  padding: 0;
}
@media (min-width: 576px) { .navbar-docente { max-width: 540px; } }
@media (min-width: 768px) { .navbar-docente { max-width: 720px; } }
@media (min-width: 992px) { .navbar-docente { max-width: 960px; } }
@media (min-width: 1200px) { .navbar-docente { max-width: 1140px; } }
@media (min-width: 1400px) { .navbar-docente { max-width: 1320px; } }
.navbar-docente-inner {
  display: flex;
  align-items: center;
  padding: 6px 24px;
  gap: 10px;
  width: 100%;
}
.navbar-docente-inner,
.navbar-docente-inner .navbar-collapse {
  overflow: visible;
}

.navbar-docente-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-pro {
  color: #cd901d;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
}

.nav-docente-link {
  color: #3c3a38 !important;
  font-family: 'Inter', var(--font-heading);
  font-weight: 500;
  font-size: .82rem;
  padding: 6px 12px !important;
  border-radius: 1000px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}

.nav-docente-link:hover,
.nav-docente-link.active {
  color: #cd901d !important;
  background: rgba(205,144,29,0.06);
}

.nav-docente-link i {
  margin-right: 4px;
}

.nav-docente-link.dropdown-toggle::after {
  display: none !important;
}
.nav-docente-link .bi-chevron-down {
  font-size: .7rem;
  margin-left: 2px;
  transition: transform .2s;
}
.nav-docente-link.show .bi-chevron-down {
  transform: rotate(180deg);
}

.navbar-docente-toggler {
  border: 1px solid #cac9c9;
  color: #3c3a38;
  padding: 6px 12px;
  border-radius: 1000px;
  font-size: 1.1rem;
  transition: border-color .15s, background .15s;
}

.navbar-docente-toggler:hover {
  border-color: var(--azul-cl);
  background: #f5f4f4;
  color: var(--azul-cl);
}

/* Botones guest — estilo SmithRx pill */
.btn-docente-outline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 18px;
  border-radius: 1000px;
  font-family: 'Inter', var(--font-heading);
  font-weight: 500;
  font-size: .78rem;
  text-decoration: none;
  transition: all .15s;
  border: 1px solid #cac9c9;
  color: #3c3a38;
  background: transparent;
  white-space: nowrap;
}

.btn-docente-outline:hover {
  border-color: #959493;
  background: #f5f4f4;
  color: #3c3a38;
}

.btn-docente-solid {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 18px;
  border-radius: 1000px;
  font-family: 'Inter', var(--font-heading);
  font-weight: 500;
  font-size: .78rem;
  text-decoration: none;
  border: 1px solid var(--azul);
  color: #ffffff;
  background: var(--azul);
  white-space: nowrap;
  transition: all .15s;
}

.btn-docente-solid:hover {
  background: #154360;
  border-color: #154360;
  color: #ffffff;
}

/* User dropdown — estilo SmithRx */
.nav-docente-user {
  color: #ffffff !important;
  font-family: 'Inter', var(--font-heading);
  font-weight: 500;
  font-size: .82rem;
  padding: 6px 12px !important;
  border-radius: 1000px;
  border: none;
  background: var(--azul);
  transition: background .15s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-docente-user::after {
  display: none !important;
}

.nav-docente-user:hover,
.nav-docente-user.show {
  background: #154360;
  color: #ffffff !important;
}

.nav-docente-user i {
  font-size: 1.15rem;
  margin-right: 4px;
  color: rgba(255,255,255,.7);
}
.nav-docente-user .bi-chevron-down {
  font-size: .75rem;
  margin-left: 2px;
  margin-right: 0;
  transition: transform .2s;
}
.nav-docente-user.show .bi-chevron-down {
  transform: rotate(180deg);
}

.dropdown-docente {
  border: 1px solid #e6e5e5;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 6px;
  min-width: 220px;
  margin-top: 8px !important;
  animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-docente .dropdown-item {
  font-family: 'Inter', var(--font-body);
  font-size: .85rem;
  padding: 10px 14px;
  border-radius: 8px;
  color: #3c3a38;
  transition: background .1s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-docente .dropdown-item:hover {
  background: #f5f4f4;
  color: #3c3a38;
}

.dropdown-docente .dropdown-divider {
  margin: 4px 0;
  border-color: #e6e5e5;
}

.dropdown-docente-logout {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', var(--font-body);
  font-size: .85rem;
  padding: 10px 14px;
  border-radius: 8px;
  color: #3c3a38;
  transition: background .1s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-docente-logout:hover {
  background: #f5f4f4;
  color: #3c3a38;
}

/* Compensación fixed-top navbar */
.main-docente {
  padding-top: 60px;
  flex: 1;
}

/* Ajuste para 992-1399px — evita desborde del navbar */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .navbar-docente-inner {
    padding: 6px 10px;
    gap: 2px;
  }
  .nav-docente-link {
    font-size: .7rem;
    padding: 4px 6px !important;
  }
  .nav-docente-link i {
    margin-right: 2px;
    font-size: .75rem;
  }
  .navbar-docente-brand .brand-docente,
  .navbar-docente-brand .brand-pro {
    font-size: .95rem;
  }
  .nav-docente-user {
    font-size: .7rem;
    padding: 4px 6px !important;
  }
  .nav-docente-user i {
    font-size: .9rem;
  }
}

/* Squeeze extra para pantallas con zoom (992-1100px) */
@media (min-width: 992px) and (max-width: 1100px) {
  .navbar-docente-inner {
    gap: 0;
    padding: 6px 6px;
  }
  .nav-docente-link {
    font-size: .62rem;
    padding: 4px 4px !important;
  }
  .nav-docente-link i {
    display: none;
  }
  .nav-docente-link .bi-chevron-down {
    display: inline-block;
    font-size: .6rem;
  }
  .navbar-docente-brand .brand-logo-img {
    height: 30px;
  }
  .nav-docente-user {
    font-size: .62rem;
    padding: 4px 5px !important;
  }
  .nav-docente-user i {
    margin-right: 2px;
  }
}

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-docente {
    top: 8px;
    border-radius: 16px;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
  }

  .navbar-docente-inner {
    flex-wrap: wrap;
    padding: 4px 12px;
  }

  .navbar-docente-toggler {
    margin-left: auto;
  }

  .navbar-docente .navbar-collapse {
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    padding: 8px 0 4px;
  }

  .navbar-docente .navbar-collapse .navbar-nav.mx-auto {
    width: 100%;
    border-top: 1px solid #e6e5e5;
    padding-top: 8px;
    margin-top: 4px;
  }

  .navbar-docente .navbar-collapse .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-docente .nav-docente-link {
    display: block;
    width: 100%;
    text-align: center;
  }

  .navbar-docente-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 6px;
  }

  .navbar-docente .btn-docente-outline,
  .navbar-docente .btn-docente-solid {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .navbar-docente .nav-docente-user {
    justify-content: center;
  }

  .nav-docente-user {
    padding-left: 0 !important;
  }
}
