/* ==========================================================================
   Design System & Layout CSS
   Sistema de Admisión y Elección de Especialidad Técnica DETCE-MEP
   Colegio Técnico Profesional La Carpio
   ========================================================================== */

:root {
  --primary-color: #126b73;       /* Teal institucional del escudo */
  --primary-hover: #0d545b;       /* Teal oscuro */
  --primary-light: #eff8f9;       /* Fondo suave teal */
  --secondary-color: #236f4d;     /* Verde laurel del escudo */
  --secondary-hover: #185238;     /* Verde bosque oscuro */
  --dark-bg: #072629;             /* Fondo nocturno profundo */
  --card-bg: #ffffff;
  --surface-bg: #f8fafc;
  --text-main: #13282b;
  --text-muted: #566d70;
  --border-color: #d1e2e4;
  --accent-gold: #d9961a;         /* Dorado oficial cintas y sol */
  --accent-gold-hover: #b87c10;
  --success-color: #15803d;
  --danger-color: #dc2626;
  --info-color: #0284c7;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(18,107,115,0.08);
  --shadow-md: 0 4px 6px -1px rgba(18,107,115,0.1), 0 2px 4px -1px rgba(18,107,115,0.06);
  --shadow-lg: 0 10px 20px -3px rgba(18,107,115,0.15), 0 4px 6px -2px rgba(18,107,115,0.08);
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--surface-bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   APP SHELL & LEFT SIDEBAR NAVIGATION (Dashboard Layout - Organic Design)
   ========================================================================== */
.app-body-layout {
  margin: 0;
  padding: 0;
  background: #f0f4f8;
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* 1. LEFT SIDEBAR — Organic Gradient Design */
.app-sidebar {
  width: 272px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0a3a3f 0%, #093035 40%, #072629 100%);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 999;
  box-shadow: 3px 0 25px rgba(0, 0, 0, 0.12);
}

/* Scrollbar */
.app-sidebar::-webkit-scrollbar { width: 4px; }
.app-sidebar::-webkit-scrollbar-track { background: transparent; }
.app-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

/* Brand Header */
.sidebar-brand {
  padding: 1.35rem 1.15rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
}

.sidebar-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sidebar-brand-text h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.sidebar-brand-text p {
  font-size: 0.73rem;
  color: rgba(165, 243, 252, 0.7);
  margin: 0.1rem 0 0.15rem 0;
  font-style: italic;
}

.sidebar-mep-code {
  font-size: 0.62rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  opacity: 0.85;
}

/* Nav Container */
.sidebar-nav-container {
  padding: 0.6rem 0.6rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Group Titles */
.sidebar-group-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.7);
  padding: 1rem 0.7rem 0.4rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Menu Items */
.sidebar-item, .tab-button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 0.75rem;
  border-radius: 8px;
  color: rgba(203, 213, 225, 0.85);
  font-weight: 500;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.18s ease;
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
  text-decoration: none;
  position: relative;
  letter-spacing: 0.005em;
}

.sidebar-item:hover, .tab-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding-left: 0.9rem;
}

.sidebar-item.active, .tab-button.active {
  background: rgba(18, 107, 115, 0.35);
  color: #ffffff;
  font-weight: 700;
  border-left: 3px solid #22d3ee;
  padding-left: 0.65rem;
}

/* Gold Highlight for Admisión */
.sidebar-item.highlight-gold {
  background: rgba(217, 150, 26, 0.08);
  color: rgba(245, 158, 11, 0.9);
  font-weight: 600;
}

.sidebar-item.highlight-gold:hover {
  background: rgba(217, 150, 26, 0.15);
  color: #fbbf24;
}

.sidebar-item.highlight-gold.active {
  background: rgba(217, 150, 26, 0.2);
  color: #fbbf24;
  border-left: 3px solid #f59e0b;
  font-weight: 700;
}

/* Badge Counter */
.sidebar-item-badge {
  margin-left: auto;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
}

/* Sidebar Footer / Session */
.sidebar-footer {
  padding: 0.75rem 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
}

.sidebar-user-avatar {
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-user-role {
  font-size: 0.63rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.sidebar-user-name {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-sidebar-action {
  width: 100%;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-sidebar-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* 2. MAIN CONTENT AREA & TOPBAR */
.app-main-layout {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f0f4f8;
}

.app-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.65rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-hamburger {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-main);
  display: none;
  font-weight: 700;
}

.btn-hamburger:hover {
  background: #e2e8f0;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.breadcrumb-institution {
  color: #94a3b8;
}

.breadcrumb-separator {
  color: #cbd5e1;
}

.breadcrumb-active-view {
  color: var(--primary-color);
  font-weight: 700;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-app-version {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 0.28rem 0.65rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
}

.badge-year {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 0.3rem 0.7rem;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-server-status {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-topbar-excel {
  background: #166534;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.btn-topbar-excel:hover {
  background: #15803d;
  color: #ffffff;
}

/* 3. APP CONTAINER & FOOTER */
.app-container {
  max-width: 1280px;
  width: 100%;
  margin: 1.25rem auto;
  padding: 0 1.5rem;
  flex: 1;
}

.app-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  text-align: left;
}

/* 4. RESPONSIVE SIDEBAR DRAWER (< 1024px) */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1040;
  display: none;
}

.sidebar-backdrop.active {
  display: block;
}

@media (max-width: 1024px) {
  .btn-hamburger {
    display: block;
  }

  .app-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
  }

  .app-sidebar.open {
    left: 0;
  }

  .app-container {
    padding: 0 1rem;
    margin: 1rem auto;
  }

  .app-topbar {
    padding: 0.6rem 1rem;
  }
}

/* Compatibility — Force-hide old header elements */
.app-header {
  display: none !important;
}

.nav-tabs-container {
  display: none !important;
}
.nav-tabs-container {
  display: none !important;
}

/* Auth / Login Modal */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  text-align: center;
}

.role-selector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.role-btn {
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.role-btn:hover {
  border-color: var(--primary-color);
  background: #eff6ff;
}

.role-btn-icon {
  font-size: 1.8rem;
}

.role-btn-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
}

.role-btn-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Main Layout Content */
.app-container {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.view-section {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.view-section.active {
  display: block;
}

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

/* Cards & Components */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Grid & Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.metric-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.metric-icon.blue { background: #dbeafe; color: #1e40af; }
.metric-icon.green { background: #d1fae5; color: #065f46; }
.metric-icon.gold { background: #fef3c7; color: #92400e; }
.metric-icon.purple { background: #f3e8ff; color: #6b21a8; }

.metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Forms & Controls */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-success {
  background: var(--success-color);
  color: #ffffff;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--danger-color);
  color: #ffffff;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #ffffff;
}

.data-table th {
  background: #f8fafc;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.data-table tr:hover {
  background: #f1f5f9;
}

/* Status Badges */
.status-badge {
  padding: 0.3rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.status-badge.admitted { background: #d1fae5; color: #065f46; }
.status-badge.waitlist { background: #fef3c7; color: #92400e; }
.status-badge.pending { background: #e0f2fe; color: #0369a1; }

/* Exam & Rubric Styles */
.question-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.question-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.question-diagram-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1rem 0 1.25rem 0;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow-x: auto;
}

.question-diagram-box svg {
  display: inline-block;
  margin: 0 auto;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.2rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-item:hover {
  border-color: var(--primary-color);
  background: #f0f9ff;
}

.option-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.rubric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.rubric-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
}

.rubric-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.rubric-card.selected {
  border-color: var(--primary-color);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

.rubric-score {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.rubric-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Receipt Print Box */
.receipt-box {
  background: #ffffff;
  border: 2px dashed var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 650px;
  margin: 2rem auto;
  box-shadow: var(--shadow-md);
}

@page {
  size: letter portrait;
  margin: 6mm 8mm 6mm 8mm;
}

@media print {
  html, body {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Ocultar elementos web no imprimibles */
  .app-sidebar,
  .sidebar-backdrop,
  .app-topbar,
  .app-footer,
  .app-header,
  .nav-tabs-container,
  footer,
  .no-print,
  .receipt-actions,
  .motto-banner,
  #formLookupReceipt,
  #lookupReceiptError,
  .btn,
  button,
  a.btn,
  .card:not(#officialReceiptContent) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .app-shell,
  .app-main-layout,
  .app-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
  }

  .view-section {
    display: none !important;
  }

  .view-section.active {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #receiptDisplayContainer {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .receipt-box {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1.5px solid #003366 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    background: #ffffff !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: avoid !important;
    page-break-before: avoid !important;
    box-sizing: border-box !important;
  }

  .receipt-header {
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
    border-bottom: 2px solid #003366 !important;
  }

  .receipt-logo {
    width: 50px !important;
    height: 50px !important;
  }

  .receipt-title {
    margin: 3px 0 5px 0 !important;
  }

  .receipt-section {
    padding: 6px 10px !important;
    margin-bottom: 6px !important;
    border-radius: 4px !important;
    font-size: 8.5pt !important;
  }

  .receipt-citas-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
  }

  .receipt-cita-box {
    padding: 6px 10px !important;
    border-radius: 4px !important;
    font-size: 8pt !important;
    line-height: 1.35 !important;
  }

  .receipt-requirements {
    padding: 5px 8px !important;
    margin-bottom: 5px !important;
    border-radius: 4px !important;
    font-size: 7.5pt !important;
    line-height: 1.25 !important;
  }

  .receipt-footer-stamp {
    margin-top: 4px !important;
    padding-top: 4px !important;
    border-top: 1px dashed #cbd5e1 !important;
    font-size: 7pt !important;
    text-align: center !important;
    color: #64748b !important;
  }
}

/* ==========================================================================
   Estilos Adicionales: Portal Web Institucional y Monografía 2026
   ========================================================================== */

/* Lema y Badges */
.motto-banner {
  background: var(--accent-gold);
  color: #072629;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}

/* Línea de Tiempo Histórica */
.timeline-container {
  position: relative;
  padding: 1.5rem 0;
  margin: 1.5rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 4px;
  background: #cbd5e1;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 70px;
}

.timeline-badge {
  position: absolute;
  left: 12px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 0 0 4px #ffffff, 0 2px 8px rgba(0,0,0,0.2);
}

.timeline-badge.gold {
  background: var(--accent-gold);
  color: #072629;
}

.timeline-badge.green {
  background: var(--secondary-color);
  color: #ffffff;
}

.timeline-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
}

/* Fichas de Especialidades y Oferta */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.curriculum-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 4px solid var(--primary-color);
  transition: all 0.2s ease;
}

.curriculum-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Gráficos de Estadísticas de Matrícula */
.stats-chart-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-year-label {
  width: 90px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.stat-bar-outer {
  flex: 1;
  height: 28px;
  background: #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.stat-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-growth-tag {
  width: 90px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

/* Galería Fotográfica */
.gallery-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.gallery-filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-img-box {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #13282b 0%, #126b73 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(7, 38, 41, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.gallery-body {
  padding: 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Himno Institucional */
.anthem-box {
  background: linear-gradient(135deg, #f8fafc 0%, #edf9fa 100%);
  border: 2px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  max-width: 700px;
  margin: 1.5rem auto;
  box-shadow: var(--shadow-sm);
}

.anthem-verse {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #0c4a6e;
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Uniforme */
.uniform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.uniform-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.uniform-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

/* Equipo Institucional */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
}

