* {
  font-size: 17px;
}

.container-main {
  font-size: 1.2rem;
  line-height: 1.45;
  max-width: 1100px;
  margin: 0 auto;
  justify-content: center;
}

.section-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 0.25rem;
  border-bottom: 3px solid var(--primary-color);
}

.section-header h2 {
  font-weight: 700;
}

.field-label {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: center;
}

.field-value {
  background: #f7f9fc;
  color: #1f2933;
  padding: 0.45rem 0.75rem;
  border-left: 4px solid var(--primary-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 400;
}

.field-value--tall {
  min-height: 5.5rem;
  align-items: flex-start;
}

.noticia-cover {
  max-height: 320px;
  width: 100%;
  object-fit: contain;
  background: #f7f9fc;
  border-radius: 6px;
}

.publicidad-preview {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #f7f9fc;
  border-radius: 10px;
  border: 1px solid #d8dee9;
}

.publicidad-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.suggestion-thumb {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

.album-media {
  height: 220px;
  object-fit: cover;
}

.album-media-button {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: inherit;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
}

.album-media-button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.album-media-button img {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.album-media-button:hover img {
  transform: scale(1.03);
  filter: brightness(0.96);
}

.album-media-full {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.field-label + .form-check {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  gap: 0.5rem;
}

.field-label + .form-check .form-check-input {
  margin-top: 0;
}

.field-control {
  background: #f7f9fc;
  color: #1f2933;
  border: 1px solid #d8dee9;
  border-left: 4px solid var(--primary-color);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
}

.field-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(59, 125, 221, 0.15);
}

.field-control::placeholder {
  color: #7b8794;
}

.role-category-header {
  border-bottom: 3px solid var(--primary-color);
}

.field-control--textarea {
  min-height: 140px;
  resize: vertical;
}

.field-control--textarea-lg {
  min-height: 280px !important;
}

.password-toggle {
  background: var(--primary-color);
  color: #ffffff;
  border: 1px solid transparent;
  cursor: pointer;
}

.password-toggle svg {
  fill: currentColor;
}

.is-hidden {
  display: none !important;
}

.caja-texto2 {
  min-height: 3.5rem;
  white-space: pre-line;
}

.logo-img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mapholder {
  height: 300px;
  width: 100%;
  border: 1px solid #e6e9ee;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#map {
  height: 100%;
}

.small-note {
  font-size: 0.85rem;
  color: #666;
}

.app-toast-container {
  z-index: 1080;
}

.btn-state {
  border: 1px solid transparent;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.btn-state:hover {
  border-color: #1f2933;
}

.btn-state:disabled {
  opacity: 1;
}

.btn-state.P {
  background-color: #d9f2d9;
  color: #145a32;
}

.btn-state.A {
  background-color: #fff3cd;
  color: #7a4f01;
}

.btn-state.F {
  background-color: #f8d7da;
  color: #7f1d1d;
}

.btn-state.P:disabled,
.btn-state.A:disabled,
.btn-state.F:disabled {
  color: inherit;
}

.btn-state.is-active {
  box-shadow: 0 0 0 2px rgba(31, 41, 51, 0.35);
}

.btn-state {
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-group .btn-state:not(.is-active) {
  background-color: #f1f3f5;
  color: #4a5568;
  border-color: #d8dee9;
  filter: grayscale(0.25);
}

.btn-group .btn-state:not(.is-active):hover {
  background-color: #e2e8f0;
  color: #1f2933;
  filter: none;
}

.missing-payments-1,
.missing-payments-1 > * {
  background-color: #fff3cd !important;
}

.missing-payments-2,
.missing-payments-2 > * {
  background-color: #ffd8a8 !important;
}

.missing-payments-3-plus,
.missing-payments-3-plus > * {
  background-color: #f8d7da !important;
}

.barra-sede {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  margin: 0.25rem 0 1.25rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1f2933 100%);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.barra-sede__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.barra-sede__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.barra-sede__name {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.barra-sede__logo {
  max-height: 40px;
  max-width: 140px;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  object-fit: contain;
}

.table-shell {
  background: #ffffff;
  border: 1px solid #d8dee9;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.08);
  overflow-x: auto;
  padding: 0.25rem 0.5rem;
}

.table-styled {
  margin-bottom: 0;
  color: #1f2933;
  font-size: 1.05rem;
}

.table-styled thead th {
  background: #f7f9fc;
  color: #1f2933;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 3px solid var(--primary-color);
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.table-styled tbody td {
  border-top: 1px solid #e6e9ee;
  vertical-align: middle;
  padding: 0.2rem 0.4rem
}

.table-styled tbody tr:nth-child(even) {
  background: #fbfcfe;
}

.table-styled tbody tr:hover {
  background: #f1f6fb;
}

.table-styled tbody td:first-child {
  border-left: 4px solid transparent;
}

.table-styled tbody tr:hover td:first-child {
  border-left-color: var(--primary-color);
}

.table-styled tbody td p {
  margin-bottom: 0;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1f2933;
  margin: 0.2rem 0;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.list-toolbar__stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #f7f9fc;
  border: 1px solid #d8dee9;
  color: #1f2933;
  font-weight: 600;
}

.list-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-add {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 10px 18px rgba(59, 125, 221, 0.2);
}

.filters-panel {
  background: #ffffff;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 8px 20px rgba(31, 41, 51, 0.06);
}

.school-card {
  background-color: #f8f9fa;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.school-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(31, 41, 51, 0.18);
}

.school-card-image {
  position: relative;
  overflow: hidden;
}

.school-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background-color: #ffffff;
  transition: transform 0.4s ease;
}

.school-card:hover .school-card-img {
  transform: scale(1.04);
}

.school-card-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--primary-color);
}

.school-action {
  position: relative;
  z-index: 5;
}

.school-action-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
}

.school-card-footer {
  height: 6px;
  background: var(--primary-color);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
}

.filter-input,
.filter-select {
  background: #f7f9fc;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
}

.filter-input::placeholder {
  color: #7b8794;
  text-transform: capitalize;
}

.filter-button {
  background: #1f2933;
  border-color: #1f2933;
  color: #ffffff;
  font-weight: 600;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-button__icon {
  font-size: 1rem;
  line-height: 1;
}

.filters-grid__action {
  justify-self: end;
  grid-column: 5;
}

@media (max-width: 768px) {
  .field-label,
  .field-value {
    font-size: 0.92rem;
  }

  .barra-sede {
    align-items: flex-start;
    flex-direction: column;
  }

  .barra-sede__name {
    white-space: normal;
  }

  .logo-img {
    max-width: 90px;
    max-height: 64px;
  }
}
