:root {
  --sis-black: #111111;
  --sis-dark: #1c1c1c;
  --sis-orange: #ff6a00;
  --sis-orange-dark: #d95a00;
  --sis-gray: #6c6f73;
  --sis-gray-light: #e9eaec;
  --bs-body-bg: #f4f4f5;
  --bs-link-color: var(--sis-orange-dark);
}

body { color: var(--sis-dark); }
.text-orange { color: var(--sis-orange) !important; }
.text-light-gray { color: #c9cacc; }
.link-orange { color: var(--sis-orange-dark); font-weight: 600; }

.sis-navbar { background: var(--sis-black); border-bottom: 3px solid var(--sis-orange); }
.sis-navbar .nav-link:hover, .sis-navbar .nav-link:focus { color: var(--sis-orange); }
.brand-logo, .hero-logo {
  /* El logo es negro sobre blanco: se invierte para integrarlo al fondo oscuro. */
  filter: invert(1);
  mix-blend-mode: screen;
}
.brand-logo { height: 40px; width: 40px; object-fit: contain; }
.hero-logo { max-width: 260px; }

.hero {
  background: linear-gradient(135deg, var(--sis-black) 0%, #2b2b2d 60%, var(--sis-gray) 100%);
  border-bottom: 4px solid var(--sis-orange);
}

.btn-orange {
  background: var(--sis-orange);
  border-color: var(--sis-orange);
  color: var(--sis-black);
  font-weight: 600;
}
.btn-orange:hover, .btn-orange:focus {
  background: var(--sis-orange-dark);
  border-color: var(--sis-orange-dark);
  color: var(--sis-black);
}

.section-title { position: relative; padding-bottom: .5rem; font-weight: 700; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; background: var(--sis-orange); border-radius: 2px;
}

.sis-card { border: 0; border-top: 4px solid var(--sis-orange); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }

.form-control:focus, .form-select:focus {
  border-color: var(--sis-orange);
  box-shadow: 0 0 0 .25rem rgba(255, 106, 0, .25);
}

.sis-table thead { background: var(--sis-black); color: #fff; }
.sis-table th { font-weight: 600; }

.badge { color: #fff; }
.badge-pending { background: var(--sis-gray); }
.badge-confirmed { background: var(--sis-orange); color: var(--sis-black); }
.badge-completed { background: var(--sis-black); }
.badge-cancelled { background: #a3a5a8; }

.badge-available { background: var(--sis-orange); color: var(--sis-black); }
.badge-exhausted { background: var(--sis-gray); }
.badge-expired { background: var(--sis-black); }
.badge-inactive { background: #a3a5a8; }

.form-check-input:checked { background-color: var(--sis-orange); border-color: var(--sis-orange); }
.form-check-input:focus { border-color: var(--sis-orange); box-shadow: 0 0 0 .25rem rgba(255, 106, 0, .25); }

.sis-footer { background: var(--sis-black); color: #b5b6b8; border-top: 3px solid var(--sis-orange); }

.footer-link { color: var(--sis-orange); text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

/* Escala Likert con caritas (evaluación de la clase) */
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.likert-item { position: relative; }
.likert-radio { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; z-index: 1; }
.likert-opcion {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  padding: .6rem .1rem; border: 2px solid var(--sis-gray-light); border-radius: .75rem;
  background: #fff; text-align: center; height: 100%; transition: transform .1s, border-color .1s, background .1s;
}
.likert-opcion .carita { font-size: 2rem; line-height: 1; filter: grayscale(1); opacity: .6; }
.likert-texto { font-size: .7rem; color: var(--sis-gray); }
.likert-item:hover .likert-opcion { border-color: var(--sis-orange); }
.likert-radio:checked + .likert-opcion { border-color: var(--sis-orange); background: #fff2e8; transform: scale(1.05); }
.likert-radio:checked + .likert-opcion .carita { filter: none; opacity: 1; }
.likert-radio:checked + .likert-opcion .likert-texto { color: var(--sis-black); font-weight: 600; }
.likert-radio:focus-visible + .likert-opcion { outline: 3px solid var(--sis-orange); outline-offset: 2px; }
@media (min-width: 576px) {
  .likert-opcion .carita { font-size: 2.6rem; }
  .likert-texto { font-size: .8rem; }
}
