:root {
  --ink: #102a43;
  --muted: #627d98;
  --line: #d9e2ec;
  --surface: #ffffff;
  --bg: #f4f7fb;
  --gold: #c18b18;
  --blue: #1769aa;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top right, #e7f5ff 0, transparent 32%), var(--bg); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; }
.excelencia-container { width: min(1280px, calc(100% - 32px)); padding: 36px 0 48px; margin: 0 auto; }
.excelencia-main { width: calc(100% - 200px); max-width: none; margin-left: 200px; padding: 98px 32px 48px; }
.excelencia-main > * { width: min(1280px, 100%); margin-left: auto; margin-right: auto; }
.excelencia-main { position: relative; z-index: 1; }
.header-section, .admin-heading, .section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.header-section { align-items: center; margin-bottom: 28px; padding: 4px 0; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { margin: 0 0 7px; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h1 i, h2 i { color: var(--gold); }
.header-section > div:first-child > p:last-child, .admin-heading p:last-child { color: var(--muted); line-height: 1.55; }
.filter-box { display: grid; gap: 6px; min-width: 170px; }
.filter-box label, .student-form label { color: var(--ink); font-size: .82rem; font-weight: 800; }
.filter-box select, .student-form input, .student-form select { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 11px 12px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.filter-box select:focus, .student-form input:focus, .student-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 105, 170, .14); }
.back-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 15px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .86rem; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
.back-button:hover { background: var(--blue); transform: translateY(-1px); }
.banner-incentivos { margin-bottom: 24px; padding: 24px; border-radius: 18px; color: white; background: linear-gradient(135deg, #0b2545, #1769aa); box-shadow: 0 14px 30px rgba(16, 42, 67, .18); }
.banner-incentivos h2 { color: white; }
.banner-incentivos h2 i { color: #ffd166; }
.banner-incentivos p, .banner-incentivos li { color: #e1eff8; line-height: 1.6; }
.future-recognition { margin: 16px 0 0; padding: 12px 14px; border: 1px solid rgba(255, 209, 102, .45); border-radius: 10px; color: #fff3c4 !important; font-weight: 700; }
.scoring-guide { display: grid; gap: 18px; margin-bottom: 24px; padding: 24px; border: 1px solid #b9d8ee; border-radius: 18px; background: linear-gradient(135deg, #f8fbfe, #eef8ff); box-shadow: 0 12px 26px rgba(23, 105, 170, .08); }
.scoring-guide h2 { margin-bottom: 6px; font-size: 1.35rem; }
.scoring-guide h2 i { color: var(--blue); }
.scoring-guide p:not(.eyebrow) { margin: 0; color: var(--muted); }
.scoring-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.scoring-grid div { display: grid; gap: 6px; padding: 14px; border: 1px solid #c9dced; border-radius: 12px; background: rgba(255, 255, 255, .9); box-shadow: 0 5px 12px rgba(16, 42, 67, .04); }
.scoring-grid strong { color: var(--blue); font-size: 1.08rem; }
.scoring-grid span { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.formula-note { padding: 12px 14px; border-radius: 10px; background: #e8f3fb; color: var(--ink); font-weight: 800; }
.action-reminder { display: flex; align-items: center; gap: 9px; margin: 0; padding: 13px 15px; border-left: 4px solid #f0b429; border-radius: 10px; background: #fff8e1; color: #7a4f01; line-height: 1.5; }
.action-reminder i { color: #c18400; }
.banner-incentivos ul { padding-left: 20px; }
.proximamente-tag { display: inline-block; margin-top: 8px; padding: 9px 13px; border: 1px dashed #ffd166; border-radius: 8px; color: #fff3c4; }
.admin-panel, .ranking-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 28px rgba(16, 42, 67, .07); }
.admin-panel { margin-bottom: 24px; border-color: #b9d8ee; background: #eef8ff; }
.admin-heading h2, .section-heading h2 { font-size: 1.3rem; }
.admin-heading p:last-child { margin: 0; }
.student-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.student-form label { display: grid; gap: 7px; }
.form-section-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--blue); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.form-section-label:first-of-type { padding-top: 0; border-top: 0; }
.form-actions { display: flex; align-items: end; gap: 10px; grid-column: 1 / -1; }
.form-feedback { grid-column: 1 / -1; min-height: 20px; margin: 0; font-size: .86rem; font-weight: 700; }
.form-feedback.info { color: var(--blue); }
.form-feedback.error { color: #b42318; }
.form-feedback.success { color: #218739; }
.primary-button:disabled { cursor: wait; opacity: .7; transform: none; }
.primary-button, .secondary-button, .edit-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 15px; font-weight: 800; cursor: pointer; }
.primary-button { background: var(--blue); color: #fff; }
.secondary-button { background: #dcecf8; color: var(--ink); }
.edit-button { padding: 7px 10px; background: #e6f1fa; color: var(--blue); }
.primary-button:hover, .secondary-button:hover, .edit-button:hover { transform: translateY(-1px); }
.readonly-note { color: var(--muted); font-size: .8rem; font-weight: 700; }
.table-scroll { overflow-x: auto; }
.ranking-table { width: 100%; min-width: 980px; margin-top: 18px; border-collapse: collapse; }
.ranking-table th, .ranking-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .88rem; white-space: nowrap; }
.ranking-table tbody tr { transition: background .18s ease, box-shadow .18s ease; }
.ranking-table tbody tr:hover { background: #eef7fd; box-shadow: inset 3px 0 0 var(--blue); }
.ranking-table th { background: #f3f7fb; color: var(--ink); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.top-1 { background: #fff9e6; }
.top-2 { background: #f1f3f5; }
.top-3 { background: #fff4e6; }
.badge-top { display: inline-block; padding: 5px 8px; border-radius: 5px; color: white; font-size: .78rem; font-weight: 800; }
.badge-oro { background: #ffc107; color: #000; }
.badge-plata { background: #8c99a5; }
.badge-bronce { background: #cd7f32; }
.badge-top10 { background: #0d6efd; }
.score-green { color: #218739; }
.participation-label, .empty-row { color: var(--muted); }
.empty-row { padding: 28px !important; text-align: center !important; }
.admin-column[hidden], .admin-panel[hidden], .student-form[hidden] { display: none; }
@media (max-width: 980px) { .excelencia-main { width: 100%; margin-left: 0; } }
@media (max-width: 980px) { .scoring-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .excelencia-container { width: 100%; padding: 22px 11px 36px; } .excelencia-main { padding: 84px 11px 36px; } .header-section, .admin-heading, .section-heading { flex-direction: column; align-items: stretch; } .back-button { width: 100%; } .student-form, .scoring-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .banner-incentivos, .admin-panel, .ranking-card { padding: 17px; } .student-form { grid-template-columns: 1fr; } .form-actions { flex-direction: column; align-items: stretch; } .header-section h1 { font-size: 1.8rem; } .readonly-note { line-height: 1.4; } }
