/*
 * Part 3 of 8 — sequential slice of the original styles.css.
 * These files preserve the exact original rule order and must stay linked
 * in this sequence in index.html; splitting was done at safe top-level
 * rule boundaries only (no reordering), so cascading overrides keep working.
 */
.auth-panel__tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.08);
}

.auth-panel__tab {
  min-width: 130px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  transition: background-color 0.15s ease;
}

.auth-panel__tab--active {
  background: var(--text);
  color: #fff;
}

.auth-panel__status {
  min-height: 24px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--clay);
}

.auth-panel__status--success {
  color: var(--sage);
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form--active {
  display: grid;
}

.auth-form__title {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.18;
  letter-spacing: normal;
}

.register-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.register-head__eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.register-head__step {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
}

.register-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.08);
  overflow: hidden;
}

.register-progress__bar {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--clay));
  transition: width 0.22s ease;
}

.register-step {
  display: none;
  gap: 12px;
}

.register-step--active {
  display: grid;
}

.register-step__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: normal;
}

.register-step__text,
.register-step__hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.register-step__hint {
  font-size: 0.9rem;
}

.request-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.request-type-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 120px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 28, 22, 0.12);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.request-type-card:has(input:checked) {
  border-color: rgba(31, 28, 22, 0.72);
  box-shadow: inset 0 0 0 2px rgba(31, 28, 22, 0.72);
  background:
    linear-gradient(135deg, rgba(239, 225, 38, 0.22), transparent 58%),
    #fff;
}

.request-type-card input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 14px 14px auto auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid rgba(31, 28, 22, 0.3);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.request-type-card input:checked {
  border-color: var(--text);
  border-width: 5px;
}

.request-type-card__title {
  padding-right: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: normal;
}

.request-type-card__text,
.request-type-card__note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.request-type-card__note {
  font-size: 0.86rem;
  font-weight: 800;
}

.register-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(112, 140, 105, 0.12);
  border: 1px solid rgba(112, 140, 105, 0.2);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  font-weight: 700;
}

.form-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  width: fit-content;
  border-radius: 999px;
  background: var(--amber);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(31, 28, 22, 0.12);
}

.register-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* mismo boton que se reusa en el panel admin (Guardar, Filtrar, etc.), pero ahi
   ya tiene la altura justa; dentro del modal de auth se ve mejor mas chico */
.auth-panel .auth-form__submit {
  min-height: 46px;
  padding: 0 20px;
  font-size: 0.92rem;
}

.auth-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-form__field {
  display: grid;
  align-content: start;
  gap: 5px;
  font-weight: 700;
}

.auth-form__field > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-form__field small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.auth-form__field--full {
  grid-column: 1 / -1;
}

.auth-form__field input,
.auth-form__field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 28, 22, 0.16);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(31, 28, 22, 0.04);
  font: inherit;
  font-size: 0.94rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form__field input:hover,
.auth-form__field textarea:hover {
  border-color: rgba(31, 28, 22, 0.28);
}

.auth-form__field input:focus-visible,
.auth-form__field textarea:focus-visible {
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 3px rgba(239, 225, 38, 0.28);
}

.auth-form__field input[type="file"] {
  min-height: auto;
  padding: 12px 14px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(31, 28, 22, 0.08);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  background: rgba(31, 28, 22, 0.16);
}

.password-toggle__icon {
  position: relative;
  width: 20px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 999px / 700px;
  color: var(--text);
}

.password-toggle__icon::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-toggle[aria-pressed="true"] .password-toggle__icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  left: -4px;
  top: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-34deg);
}

.auth-form__field textarea {
  resize: vertical;
}

.auth-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-weight: 700;
  cursor: pointer;
}

.auth-form__checkbox input {
  margin-top: 2px;
}

.auth-form__checkbox a {
  color: var(--text);
  text-decoration: underline;
}

.auth-form__author {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(239, 225, 38, 0.14);
  border: 1px solid rgba(31, 28, 22, 0.08);
}

.auth-form__submit {
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.auth-form__submit--ghost {
  background: rgba(31, 28, 22, 0.08);
  color: var(--text);
}

.auth-form__submit:disabled {
  cursor: default;
  opacity: 0.75;
}

/* Cambio de color bien visible mientras se procesa el envío — antes el único indicio
   de que el click hizo algo era un texto de estado arriba del todo del formulario. */
.auth-form__submit.is-loading {
  background: var(--amber-deep);
  color: var(--text);
}

.auth-form__link {
  width: fit-content;
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-form__link:hover {
  color: var(--text);
}

.auth-form__hint {
  margin: -8px 0 4px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .topbar__inner {
    padding: 18px 0;
  }

  .hero,
  .cta,
  .footer__inner,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-alerts,
  .admin-metrics,
  .admin-tasks,
  .admin-access-grid,
  .admin-user-metrics,
  .admin-solicitud-metrics,
  .work-mode-grid,
  .public-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-users-layout,
  .admin-solicitudes-workspace {
    grid-template-columns: 1fr;
  }

  .admin-solicitud-detail {
    position: static;
    max-height: none;
  }

  .hero-cover__toolbar {
    grid-template-columns: 1fr;
  }

  .admin-user-form__sections {
    grid-template-columns: 1fr;
    grid-template-areas:
      "details"
      "roles"
      "permissions";
  }

  .cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .news-grid,
  .sections-grid,
  .works__grid,
  .admin-alerts,
  .admin-metrics,
  .admin-tasks,
  .admin-access-grid,
  .admin-user-metrics,
  .admin-solicitud-metrics,
  .admin-user-filters,
  .admin-solicitud-filters,
  .admin-users-workspace .admin-user-filters,
  .admin-user-row,
  .admin-users-workspace .admin-user-row,
  .admin-user-form__grid,
  .admin-solicitud-data-grid,
  .admin-user-form__sections .admin-role-options,
  .work-mode-grid,
  .public-work-grid,
  .work-form__grid,
  .work-form__split,
  .work-collection-grid,
  .work-participant-intro,
  .work-participant-row {
    grid-template-columns: 1fr;
  }

  .hero__main {
    min-height: 520px;
    padding: 28px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .hero__aside,
  .works,
  .cta,
  .news-card__body,
  .section-card__body {
    padding: 22px;
  }

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

  .admin-users-workspace .admin-user-row__actions {
    min-width: 0;
    justify-content: flex-start;
  }

  .admin-user-form__head {
    display: grid;
  }

  .admin-solicitud-detail__head,
  .admin-solicitud-document,
  .admin-solicitud-review__actions {
    display: grid;
    justify-items: start;
  }

  .admin-solicitud-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .admin-solicitud-review {
    grid-template-columns: 1fr;
  }

  .admin-solicitud-review label:last-of-type {
    grid-column: auto;
  }

  .work-form__inline-head {
    display: grid;
    gap: 8px;
  }

  .topbar-search__fields {
    grid-template-columns: 1fr 1fr;
  }

  .topbar-search__results-grid {
    grid-template-columns: 1fr;
  }

  .footer__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar__inner {
    min-height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 14px 0;
  }

  .brand {
    align-items: flex-start;
  }

  .brand__badge {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .topbar__actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* En mobile el nombre/rol/Salir se sacan de la franja superior — el
     "Salir" se movio al panel deslizable de la cuenta (private-menu). Se
     esconde todo el contenedor (no solo la pill) para que no deje un
     espacio vacio de mas en la franja amarilla. */
  .session-pill {
    display: none;
  }

  .topbar__actions:has(.session-pill) {
    display: none;
  }

  .private-menu {
    width: 100vw;
    padding: 8px;
  }

  .private-menu__content {
    border-radius: 24px;
    padding: 16px;
  }

  .private-menu-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page {
    gap: 32px;
    padding-bottom: 48px;
  }

  .work-form__actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .admin-hero {
    padding: 20px;
  }

  .hero__title {
    font-size: 1.95rem;
  }

  .section__title,
  .cta__title,
  .feature-work__title {
    font-size: 1.48rem;
  }

  .main-nav__button,
  .hero__cta,
  .hero__ghost,
  .cta__button {
    width: 100%;
  }

  .auth-panel,
  .auth-panel:has(#login-form.auth-form--active),
  .auth-panel:has(#forgot-password-form.auth-form--active),
  .auth-panel:has(#reset-password-form.auth-form--active) {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 22px;
  }

  .auth-panel__header {
    padding: 18px 18px 14px;
  }

  .auth-panel__body {
    padding: 18px;
  }

  .auth-form__grid {
    grid-template-columns: 1fr;
  }

  .register-head,
  .register-actions,
  .admin-users-actions,
  .admin-user-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .request-type-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel__tabs {
    width: 100%;
    display: grid;
  }

  .auth-panel__tab {
    min-width: 0;
  }

  .auth-form__title {
    font-size: 1.65rem;
  }

  .auth-form__field input,
  .auth-form__field textarea {
    min-height: 46px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar-search__fields {
    grid-template-columns: 1fr;
  }

  .topbar-search__results-grid {
    grid-template-columns: 1fr;
  }

  .keyword-picker__control {
    grid-template-columns: 1fr;
  }

  .topbar-search__panel {
    display: none !important;
  }

  .topbar-search-root.is-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 45;
    width: auto;
    padding: 10px 12px;
    background: var(--amber);
    box-shadow: 0 4px 14px rgba(10, 8, 6, 0.12);
  }

  .topbar-search__results {
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    width: auto;
    z-index: 45;
  }

  .topbar-search__field input,
  .topbar-search__field select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* Compact home pass inspired by Europeana's lighter editorial structure. */
.topbar__inner {
  min-height: 40px;
}

.brand__badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}


.main-nav__links {
  gap: 16px;
  font-size: 0.9rem;
}

.main-nav__button,
.hero__cta,
.hero__ghost,
.cta__button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.page {
  gap: 24px;
  padding: 14px 0 42px;
}

.home-cover {
  margin-top: -16px;
  margin-bottom: -2px;
}

.home-cover .hero-cover__image {
  width: 100%;
  height: clamp(170px, 20vw, 250px);
  object-fit: cover;
  object-position: center;
}

.hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
}

.hero__main {
  min-height: 260px;
  padding: 18px;
}

.hero__main::before {
  width: 180px;
  height: 180px;
}

.hero__main::after {
  width: 120px;
  height: 120px;
}

.hero__title {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.15vw, 2rem);
}

.hero__description {
  max-width: 620px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.42;
}

.hero__actions {
  gap: 10px;
  margin-bottom: 16px;
}

.hero__stats {
  gap: 8px;
}

.hero-stat {
  padding: 8px 10px;
  border-radius: 13px;
}

.hero-stat__value {
  font-size: 1.18rem;
}

.hero-stat__label {
  margin-top: 4px;
  font-size: 0.78rem;
}

.hero__aside {
  gap: 8px;
  padding: 14px;
}

.hero__aside-title {
  font-size: 1.32rem;
  line-height: 1.16;
}

.hero__aside-text {
  line-height: 1.48;
}

.hero__aside-visual {
  min-height: 82px;
  border-radius: 16px;
}

.section {
  gap: 14px;
}

.section__header {
  gap: 16px;
}

.section__title {
  font-size: clamp(1.22rem, 1.75vw, 1.62rem);
}

.section__description {
  max-width: 640px;
  margin-top: 5px;
  font-size: 0.95rem;
  line-height: 1.48;
}

.news-grid,
.sections-grid,
.works__grid {
  gap: 16px;
}

.news-card__media {
  min-height: 120px;
}

.news-card__media::after {
  inset: 14px;
  border-radius: 14px;
}

.news-card__body,
.section-card__body,
.works,
.cta {
  padding: 15px;
}

.news-card__title,
.section-card__title {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.news-card__subtitle {
  margin-bottom: 8px;
}

.news-card__description,
.section-card__description,
.feature-work__description,
.cta__text {
  font-size: 0.93rem;
  line-height: 1.45;
}

.section-card {
  min-height: 210px;
}

.section-card__media {
  min-height: 64px;
}

.section-card__body {
  gap: 9px;
}

.works__grid {
  margin-top: 14px;
}

.feature-work {
  padding: 14px;
  border-radius: 14px;
}

.cta {
  align-items: center;
}

@media (max-width: 820px) {
  .home-cover .hero-cover__image {
    height: clamp(160px, 42vw, 260px);
  }

  /* la grilla base (arriba) pide un minimo de 280px para la columna del
     carrousel; por debajo de ~820px ya no entra al lado del contenido sin
     aplastarlo, asi que se apila en una sola columna */
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__main {
    min-height: 250px;
    padding: 18px;
  }

  .hero__aside {
    padding: 14px;
  }
}

@media (max-width: 560px) {
  .home-cover {
    margin-top: -8px;
  }

  .home-cover .hero-cover__image {
    height: 170px;
  }

  .page {
    gap: 18px;
  }

  .hero__main {
    min-height: 240px;
  }

  .news-card__media {
    min-height: 96px;
  }
}

/* Refined editorial home pass: lighter, tighter and less blocky. */
body {
  background: #fff;
}

.topbar {
  background: var(--amber);
}

.topbar__inner {
  min-height: 40px;
}

.brand__badge {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(31, 28, 22, 0.22);
  letter-spacing: 0.04em;
}

.topbar__login {
  min-height: 34px;
  padding-bottom: 2px;
}

.main-nav {
  color: var(--muted);
}

.main-nav__button {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(31, 28, 22, 0.16);
}

.page {
  gap: 26px;
}

.home-cover {
  margin-bottom: 0;
}

.home-cover .hero-cover__image {
  height: clamp(180px, 21vw, 260px);
}

.hero {
  align-items: start;
}

.hero__main,
.hero__aside,
.news-card,
.section-card,
.works,
.cta,
.footer {
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(31, 28, 22, 0.1);
  box-shadow: none;
  backdrop-filter: none;
}

.hero__main {
  min-height: auto;
  padding: 24px;
  color: var(--text);
  background: rgba(255, 253, 248, 0.94);
}

.hero__main::before,
.hero__main::after {
  display: none;
}

.hero__content {
  max-width: 720px;
}

.hero__eyebrow {
  color: var(--muted);
}

.hero__title {
  max-width: 680px;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  line-height: 1.12;
}

.hero__description {
  max-width: 650px;
  color: var(--muted);
}

.hero__ghost {
  color: var(--text);
  border-color: rgba(31, 28, 22, 0.14);
  background: transparent;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  max-width: none;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 28, 22, 0.08);
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
}

.hero-stat__label {
  margin: 0;
  color: var(--muted);
}

.hero__aside {
  border-radius: 18px;
  padding: 18px;
}

.hero__aside-label,
.feature-work__meta,
.section__eyebrow,
.news-card__tag {
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero__aside-title {
  font-size: 1.22rem;
}

.hero__aside-visual {
  display: none;
}

.section__header {
  padding: 0;
  align-items: baseline;
}

.section__title {
  font-size: clamp(1.2rem, 1.55vw, 1.48rem);
}

.section__description {
  max-width: 680px;
  font-size: 0.91rem;
}

.section__link {
  letter-spacing: 0.06em;
  text-transform: none;
}

.news-grid,
.sections-grid,
.works__grid {
  gap: 14px;
}

.news-card,
.section-card,
.feature-work {
  border-radius: 14px;
}

.news-card:hover,
.section-card:hover,
.feature-work:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(31, 28, 22, 0.22);
}

.news-card__media {
  min-height: 92px;
  background: linear-gradient(135deg, rgba(210, 186, 138, 0.42), rgba(112, 140, 105, 0.16));
}

.news-card__media::after {
  display: none;
}

.news-card__body,
.section-card__body,
.works,
.cta {
  padding: 14px;
}

.news-card__title,
.section-card__title {
  font-size: 0.98rem;
  line-height: 1.18;
}

.news-card__subtitle {
  font-weight: 700;
}

.news-card__description,
.section-card__description,
.feature-work__description,
.cta__text {
  font-size: 0.89rem;
}

.section-card {
  min-height: auto;
}

.section-card__media {
  min-height: 8px;
}

.section-card__body {
  gap: 8px;
}

.section-card__link {
  width: fit-content;
  border-bottom: 1px solid currentColor;
}

.works {
  border-radius: 18px;
}

.feature-work {
  background: rgba(31, 28, 22, 0.03);
}

.cta {
  border-radius: 18px;
}

.cta__title {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
}

@media (max-width: 820px) {
  .home-cover .hero-cover__image {
    height: clamp(150px, 40vw, 230px);
  }

  .hero__main {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .home-cover .hero-cover__image {
    height: 150px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-search__panel,
  .topbar-search__panel.is-open,
  .admin-main--ajax {
    transition: none;
  }
}

/* Final balance: keep the original color identity, but make the UI lighter. */
body {
  background: #fff;
}

.topbar__inner {
  min-height: 40px;
}

.brand__badge {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}




.topbar-search-root.is-open .topbar-search__row {
  background: rgba(255, 255, 255, 0.9);
}

.home-cover .hero-cover__image {
  height: clamp(180px, 21vw, 260px);
}

.hero__main {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(31, 28, 22, 0.06), rgba(31, 28, 22, 0.66)),
    radial-gradient(circle at 20% 18%, rgba(239, 225, 38, 0.35), transparent 26%),
    radial-gradient(circle at 82% 22%, rgba(112, 140, 105, 0.42), transparent 24%),
    linear-gradient(135deg, #304869 0%, #1c2738 48%, #10161e 100%);
  border: 0;
  box-shadow: 0 16px 38px rgba(31, 28, 22, 0.1);
}

.hero__eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero__description {
  color: rgba(255, 255, 255, 0.84);
}

.hero__ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.hero__stats {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.hero-stat__label {
  color: rgba(255, 255, 255, 0.76);
}

.news-card,
.section-card {
  background: #fff;
  border: 1px solid var(--line);
}

.works,
.cta,
.footer {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
}

.footer {
  background: #fff;
}

.section-card--amber .section-card__media {
  background: linear-gradient(135deg, rgba(239, 225, 38, 0.92), rgba(239, 225, 38, 0.24));
}

.section-card--clay .section-card__media {
  background: linear-gradient(135deg, rgba(155, 95, 64, 0.86), rgba(155, 95, 64, 0.18));
}

.section-card--sage .section-card__media {
  background: linear-gradient(135deg, rgba(112, 140, 105, 0.86), rgba(112, 140, 105, 0.18));
}

.section-card--ink .section-card__media {
  background: linear-gradient(135deg, rgba(31, 43, 63, 0.86), rgba(31, 43, 63, 0.2));
}

.section-card--azul .section-card__media {
  background: linear-gradient(135deg, rgba(63, 109, 146, 0.86), rgba(63, 109, 146, 0.18));
}

.section-card--grana .section-card__media {
  background: linear-gradient(135deg, rgba(168, 67, 58, 0.86), rgba(168, 67, 58, 0.18));
}

.footer {
  margin-top: 6px;
  background: #fff;
  box-shadow: none;
}

.footer__inner {
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
  padding: 14px 0;
}

.footer .section__title {
  font-size: 1.05rem;
}

.footer__brand p,
.footer__column a {
  font-size: 0.82rem;
  line-height: 1.35;
}

.footer__column-title {
  margin-bottom: 5px;
  font-size: 0.88rem;
}

.footer__column {
  gap: 4px;
}

.session-pill {
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 0.82rem;
}

.session-pill__role {
  padding: 0;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.session-pill__menu {
  width: 34px;
  height: 34px;
  min-height: 34px;
  gap: 3px;
  background: rgba(31, 28, 22, 0.9);
}

.session-pill__badge {
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  font-size: 0.62rem;
}

.session-pill__logout {
  min-height: 28px;
  padding: 0 3px;
  font-size: 0.78rem;
}

.private-menu {
  width: min(390px, calc(100vw - 18px));
}

.private-menu__content {
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(10, 8, 6, 0.18);
}

.private-menu__header {
  padding-bottom: 12px;
}

.private-menu__header h2 {
  font-size: 1.14rem;
}

.private-menu-access,
.private-menu-notification {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.private-menu-access {
  padding: 10px 12px;
}

.private-menu-summary__item {
  padding: 8px;
}

.private-menu-summary__item strong {
  font-size: 0.98rem;
}

.admin-shell {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
}

.admin-sidebar,
.admin-hero,
.admin-alert,
.admin-metric,
.admin-task-list,
.admin-access-card,
.admin-users-panel,
.admin-user-form-card,
.admin-solicitudes-panel,
.admin-solicitud-detail {
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(31, 28, 22, 0.09);
  box-shadow: 0 10px 28px rgba(31, 28, 22, 0.06);
}

.admin-sidebar {
  padding: 16px;
  border-radius: 18px;
}

.admin-sidebar h2 {
  font-size: 1.35rem;
}

.admin-sidebar__nav {
  gap: 6px;
  margin-top: 14px;
}

.admin-sidebar__nav a {
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-sidebar__nav-active {
  background: rgba(239, 225, 38, 0.22) !important;
}

.admin-main {
  gap: 16px;
}

.admin-hero {
  padding: 20px;
  border-radius: 20px;
}

.admin-hero h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.admin-hero p:last-child {
  line-height: 1.45;
}

.admin-alerts,
.admin-metrics,
.admin-tasks,
.admin-access-grid,
.admin-user-metrics,
.admin-solicitud-metrics {
  gap: 10px;
}

.admin-alert,
.admin-metric,
.admin-access-card,
.admin-task-list {
  border-radius: 16px;
  padding: 14px;
}

.admin-alert__count {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 1.1rem;
}

.admin-metric__value {
  font-size: 1.8rem;
}

.admin-users-panel,
.admin-user-form-card,
.admin-solicitudes-panel,