/* =========================================================
   DASHBOARD INTRANET
   Base visual
   Colores:
   - Celeste principal: #34A3DC
   - Verde: #72B231
   - Rojo: #FF3232
   Tipografía: Montserrat
========================================================= */

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body.login-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  background-color: #34A3DC;
  color: #4b4b4b;
}

body.db-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  background-color: #ececec;
  color: #4e4e4e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ---------- UTILIDAD ---------- */
.db-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* ---------- APP LAYOUT ---------- */
.db-app {
  min-height: 100vh;
  display: flex;
  gap: 32px;
  padding: 20px 24px;
}

/* ---------- SIDEBAR ---------- */
.db-sidebar {
  flex: 0 0 248px;
}

.db-sidebar__inner {
  min-height: calc(100vh - 40px);
  background-color: #f7f7f7;
  border-radius: 0 0 28px 28px;
  border-top-right-radius: 28px;
  border-top-left-radius: 0;
  box-shadow: 6px 8px 18px rgba(0, 0, 0, 0.16);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
}

.db-sidebar__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.db-sidebar__logo {
  width: 122px;
  height: auto;
}

.db-sidebar__nav {
  margin-top: 8px;
}

.db-sidebar__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.db-sidebar__item + .db-sidebar__item {
  margin-top: 16px;
}

.db-sidebar__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1.5px solid #34A3DC;
  border-radius: 999px;
  background-color: #ffffff;
  color: #616161;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.db-sidebar__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.db-sidebar__link:active {
  transform: translateY(1px) scale(0.99);
}

.db-sidebar__link--active {
  background-color: #34A3DC;
  border-color: #34A3DC;
  color: #ffffff;
}

.db-sidebar__link--secondary {
  border-color: transparent;
  background-color: transparent;
  box-shadow: none;
  padding-left: 8px;
}

.db-sidebar__link--secondary:hover {
  background-color: rgba(52, 163, 220, 0.08);
  border-color: transparent;
}

.db-sidebar__link--logout {
  border-color: transparent;
  background-color: transparent;
  box-shadow: none;
  padding-left: 8px;
  color: #FF3232;
}

.db-sidebar__link--logout:hover {
  background-color: rgba(255, 50, 50, 0.06);
  border-color: transparent;
}

.db-sidebar__icon-wrap {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.db-sidebar__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.db-sidebar__text {
  display: inline-block;
}

.db-sidebar__footer {
  margin-top: auto;
  padding-top: 26px;
}

/* ---------- MAIN ---------- */
.db-main {
  flex: 1 1 auto;
  min-width: 0;
}

.db-main__container {
  width: 100%;
  max-width: 1280px;
  min-height: calc(100vh - 40px);
  padding: 18px 4px 18px 0;
}

/* ---------- TOPBAR ---------- */
.db-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.db-search {
  flex: 1 1 auto;
  max-width: 420px;
}

.db-search__field {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background-color: #f7f7f7;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.11);
  padding: 0 18px 0 16px;
}

.db-search__icon-wrap {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.db-search__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.db-search__input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: #666666;
  font-size: 1rem;
  font-weight: 500;
}

.db-search__input::placeholder {
  color: #989898;
}

.db-topbar__divider {
  width: 1px;
  height: 42px;
  background-color: #c7c7c7;
  flex: 0 0 1px;
}

.db-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.db-user__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.db-user__avatar-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f3f3f3 0%, #e4e4e4 100%);
}

.db-user__name {
  display: inline-block;
  color: #666666;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}

/* ---------- HERO ---------- */
.db-hero {
  position: relative;
  min-height: 300px;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #2e9bd1 0%, #34A3DC 45%, #42afe6 100%);
}

.db-hero__media,
.db-hero__image {
  width: 100%;
  height: 100%;
}

.db-hero__media {
  position: absolute;
  inset: 0;
}

.db-hero__image {
  object-fit: cover;
  object-position: center;
  opacity: 0.38;
}

.db-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 118, 166, 0.78) 0%, rgba(31, 141, 197, 0.56) 38%, rgba(52, 163, 220, 0.22) 100%);
}

.db-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 38px 34px 34px;
}

.db-hero__title {
  margin: 0;
  max-width: 760px;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 400;
}

.db-hero__title strong {
  font-weight: 800;
}

/* ---------- ALERT ---------- */
.db-alert {
  margin-bottom: 20px;
}

.db-alert__content {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 22px 16px 24px;
  background-color: #34A3DC;
  border-radius: 26px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.11);
}

.db-alert__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.db-alert__icon-wrap {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.db-alert__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.db-alert__text {
  margin: 0;
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 600;
}

.db-alert__right {
  flex: 0 0 auto;
}

.db-alert__button {
  min-width: 104px;
  min-height: 40px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: #f6f6f6;
  color: #696969;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}

.db-alert__button:hover {
  transform: translateY(-1px);
  background-color: #ffffff;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.12);
}

.db-alert__button:active {
  transform: translateY(1px) scale(0.99);
}

/* ---------- CARDS GRID ---------- */
.db-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- CARD ---------- */
.db-card {
  background-color: #f6f6f6;
  border: 2px solid #34A3DC;
  border-radius: 28px;
  overflow: hidden;
  min-height: 210px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.db-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.db-card__header {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 16px 22px;
  background-color: #34A3DC;
}

.db-card__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-card__icon-wrap {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.db-card__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.db-card__title {
  margin: 0;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.2;
  font-weight: 700;
}

.db-card__body {
  min-height: 138px;
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.db-card__content {
  max-width: 260px;
}

.db-card__item-title {
  margin: 0 0 10px;
  color: #34A3DC;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 700;
}

.db-card__meta {
  margin: 0;
  color: #34A3DC;
  font-size: 0.84rem;
  line-height: 1.4;
  font-weight: 500;
}

.db-card__actions {
  display: flex;
  justify-content: flex-end;
}

.db-card__button {
  min-width: 96px;
  min-height: 40px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: #34A3DC;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.db-card__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(52, 163, 220, 0.24);
  filter: brightness(1.03);
}

.db-card__button:active {
  transform: translateY(1px) scale(0.99);
}

/* ---------- FOCUS ---------- */
.db-sidebar__link:focus-visible,
.db-alert__button:focus-visible,
.db-card__button:focus-visible,
.db-search__input:focus-visible {
  outline: 3px solid rgba(52, 163, 220, 0.24);
  outline-offset: 2px;
}

/* ---------- LARGE SCREENS ---------- */
@media (min-width: 1500px) {
  .db-main__container {
    max-width: 1320px;
  }
}

/* ---------- TABLET ---------- */
@media (max-width: 1199px) {
  .db-app {
    gap: 24px;
    padding: 18px 18px 22px;
  }

  .db-sidebar {
    flex-basis: 220px;
  }

  .db-sidebar__inner {
    padding: 22px 18px 24px;
  }

  .db-main__container {
    max-width: 100%;
    padding-top: 10px;
  }

  .db-topbar {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 22px;
  }

  .db-search {
    max-width: 100%;
    width: 100%;
  }

  .db-topbar__divider {
    display: none;
  }

  .db-hero {
    min-height: 280px;
  }

  .db-cards__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
  .db-app {
    flex-direction: column;
    gap: 20px;
    padding: 14px;
  }

  .db-sidebar {
    flex: none;
  }

  .db-sidebar__inner {
    min-height: auto;
    border-radius: 24px;
    padding: 18px 16px 18px;
  }

  .db-sidebar__brand {
    margin-bottom: 18px;
  }

  .db-sidebar__logo {
    width: 112px;
  }

  .db-sidebar__menu {
    display: grid;
    gap: 12px;
  }

  .db-sidebar__item + .db-sidebar__item {
    margin-top: 0;
  }

  .db-sidebar__link {
    width: 100%;
    justify-content: flex-start;
  }

  .db-sidebar__footer {
    margin-top: 18px;
    padding-top: 12px;
  }

  .db-main__container {
    min-height: auto;
    padding: 0;
  }

  .db-topbar {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .db-user {
    justify-content: flex-start;
  }

  .db-search__field {
    height: 48px;
  }

  .db-hero {
    min-height: 240px;
    border-radius: 24px;
  }

  .db-hero__content {
    padding: 26px 20px 24px;
  }

  .db-hero__title {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .db-alert__content {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 22px;
  }

  .db-alert__right {
    width: 100%;
  }

  .db-alert__button {
    width: 100%;
  }

  .db-card {
    min-height: 190px;
    border-radius: 24px;
  }

  .db-card__header {
    min-height: 66px;
    padding: 14px 18px;
  }

  .db-card__body {
    padding: 18px;
  }

  .db-card__actions {
    justify-content: flex-start;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {
  .db-sidebar__logo {
    width: 100px;
  }

  .db-user__name {
    font-size: 0.92rem;
  }

  .db-hero {
    min-height: 220px;
  }

  .db-hero__title {
    font-size: 0.9rem;
  }

  .db-alert__text {
    font-size: 0.92rem;
  }

  .db-card__title {
    font-size: 0.95rem;
  }

  .db-card__item-title {
    font-size: 0.96rem;
  }

  .db-card__meta {
    font-size: 0.8rem;
  }
}

/* =========================================================
   MOBILE SIDEBAR / DRAWER
========================================================= */

/* ---------- BOTÓN HAMBURGUESA ---------- */
.db-mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background-color: #34A3DC;
  box-shadow: 0 6px 14px rgba(52, 163, 220, 0.22);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.db-mobile-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(52, 163, 220, 0.28);
}

.db-mobile-toggle:active {
  transform: translateY(1px) scale(0.98);
}

.db-mobile-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
}

/* ---------- CONTENEDOR GENERAL ---------- */
.db-mobile-nav {
  display: none;
}

/* ---------- SOLO MÓVIL ---------- */
@media (max-width: 767px) {
  .db-mobile-toggle {
    display: inline-flex;
  }

  .db-mobile-nav {
    display: block;
  }

  /* ocultamos sidebar desktop */
  .db-sidebar {
    display: none;
  }

  .db-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
  }

  .db-mobile-nav__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.34);
    opacity: 0;
    transition: opacity 0.28s ease;
  }

  .db-mobile-nav__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(86vw, 340px);
    height: 100vh;
    background-color: #f7f7f7;
    box-shadow: 12px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    transition: transform 0.32s ease;
    overflow-y: auto;
  }

  .db-mobile-nav__inner {
    min-height: 100%;
    padding: 20px 18px 24px;
    display: flex;
    flex-direction: column;
  }

  .db-mobile-nav__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
  }

  .db-mobile-nav__brand {
    flex: 1 1 auto;
  }

  .db-mobile-nav__logo {
    width: 118px;
    height: auto;
  }

  .db-mobile-nav__close {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
  }

  .db-mobile-nav__close-line {
    position: absolute;
    top: 19px;
    left: 11px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background-color: #666666;
  }

  .db-mobile-nav__close-line:first-child {
    transform: rotate(45deg);
  }

  .db-mobile-nav__close-line:last-child {
    transform: rotate(-45deg);
  }

  .db-mobile-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .db-mobile-nav__item + .db-mobile-nav__item {
    margin-top: 14px;
  }

  .db-mobile-nav__link {
    min-height: 46px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 14px;
    border: 1.5px solid #34A3DC;
    border-radius: 999px;
    background-color: #ffffff;
    color: #666666;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition:
      transform 0.2s ease,
      box-shadow 0.22s ease,
      background-color 0.22s ease,
      color 0.22s ease,
      border-color 0.22s ease;
  }

  .db-mobile-nav__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.08);
  }

  .db-mobile-nav__link:active {
    transform: translateY(1px) scale(0.99);
  }

  .db-mobile-nav__link--active {
    background-color: #34A3DC;
    border-color: #34A3DC;
    color: #ffffff;
  }

  .db-mobile-nav__icon-wrap {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .db-mobile-nav__icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }

  .db-mobile-nav__footer {
    margin-top: auto;
    padding-top: 22px;
  }

  .db-mobile-nav__link--secondary {
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
    padding-left: 8px;
  }

  .db-mobile-nav__link--secondary:hover {
    background-color: rgba(52, 163, 220, 0.08);
    border-color: transparent;
  }

  .db-mobile-nav__link--logout {
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
    padding-left: 8px;
    color: #FF3232;
  }

  .db-mobile-nav__link--logout:hover {
    background-color: rgba(255, 50, 50, 0.06);
    border-color: transparent;
  }

  /* ---------- ESTADO ABIERTO ---------- */
  .db-mobile-nav.is-open {
    pointer-events: auto;
  }

  .db-mobile-nav.is-open .db-mobile-nav__overlay {
    opacity: 1;
  }

  .db-mobile-nav.is-open .db-mobile-nav__panel {
    transform: translateX(0);
  }

  /* topbar móvil mejor acomodado */
  .db-topbar {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;
  }

  .db-topbar__divider {
    display: none;
  }

  .db-user {
    grid-column: 1 / -1;
  }

  .db-search {
    max-width: 100%;
    width: 100%;
  }
}

body.db-mobile-menu-open {
  overflow: hidden;
}


/* =========================================================
   RECURSOS
   Agregar después del CSS base del dashboard
========================================================= */

/* ---------- HERO ---------- */
.db-resources {
  width: 100%;
}

.db-resources__hero {
  min-height: 104px;
  display: flex;
  align-items: center;
  padding: 22px 30px;
  border-radius: 28px;
  background-color: #72B231;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  margin-bottom: 34px;
}

.db-resources__hero-title {
  margin: 0;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
}

/* ---------- TOOLS ---------- */
.db-resources__tools {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

.db-resources__filter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-resources__filter-label {
  color: #8b8b8b;
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 600;
}

.db-resources__select-wrap {
  position: relative;
  width: 100%;
  max-width: 198px;
}

.db-resources__select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #7a7a7a;
  transform: translateY(-35%);
  pointer-events: none;
}

.db-resources__select {
  width: 100%;
  min-height: 38px;
  padding: 8px 34px 8px 14px;
  border: 0;
  border-radius: 999px;
  background-color: #f7f7f7;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  color: #8a8a8a;
  font-size: 0.84rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition:
    box-shadow 0.22s ease,
    transform 0.18s ease;
}

.db-resources__select:focus {
  box-shadow: 0 0 0 3px rgba(114, 178, 49, 0.18);
}

.db-resources__search {
  width: 100%;
}

.db-resources__search-field {
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background-color: rgba(114, 178, 49, 0.32);
  box-shadow: inset 0 0 0 1px rgba(114, 178, 49, 0.08);
  padding: 0 14px 0 12px;
}

.db-resources__search-icon-wrap {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.db-resources__search-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.db-resources__search-input {
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  outline: none;
  color: #5f5f5f;
  font-size: 0.82rem;
  font-weight: 500;
}

.db-resources__search-input::placeholder {
  color: #7f8d72;
}

/* ---------- LISTADO ---------- */
.db-resources__list {
  display: grid;
  gap: 16px;
}

/* ---------- CARD RECURSO ---------- */
.db-resource-card {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 18px 26px;
  border-radius: 28px;
  background-color: #f7f7f7;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.db-resource-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.db-resource-card__left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
}

.db-resource-card__file-icon {
  width: 34px;
  height: 42px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.db-resource-card__file-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.db-resource-card__info {
  min-width: 0;
}

.db-resource-card__title {
  margin: 0 0 6px;
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 700;
  word-break: break-word;
}

.db-resource-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.db-resource-card__meta-item {
  color: #a2a2a2;
  font-size: 0.76rem;
  line-height: 1.3;
  font-weight: 500;
}

.db-resource-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.db-resource-card__button {
  min-width: 86px;
  min-height: 40px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background-color: #72B231;
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.db-resource-card__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(114, 178, 49, 0.24);
  filter: brightness(1.02);
}

.db-resource-card__button:active {
  transform: translateY(1px) scale(0.99);
}

.db-resource-card__button--view {
  background-color: #72B231;
}

.db-resource-card__button--download {
  background-color: #72B231;
}

/* ---------- MODAL ---------- */
.db-resource-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.db-resource-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.db-resource-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.db-resource-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  border-radius: 18px;
  background-color: #7f7f7f;
  border: 6px solid #ffffff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.db-resource-modal__header {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 10px 4px 10px;
  background-color: rgba(255, 255, 255, 0.12);
}

.db-resource-modal__title {
  margin: 0;
  color: #ffffff;
  font-size: 0.58rem;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-resource-modal__close {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.db-resource-modal__close-line {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background-color: #ffffff;
}

.db-resource-modal__close-line:first-child {
  transform: rotate(45deg);
}

.db-resource-modal__close-line:last-child {
  transform: rotate(-45deg);
}

.db-resource-modal__body {
  padding: 10px;
  background-color: #7f7f7f;
}

.db-resource-modal__viewer {
  width: 100%;
  max-height: 72vh;
  overflow: auto;
  border-radius: 10px;
}

.db-resource-modal__viewer::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.db-resource-modal__viewer::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.db-resource-modal__viewer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
}

.db-resource-modal__preview {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #ffffff;
}

/* ---------- SIDEBAR ACTIVE RECURSOS ----------
   Si quieres un helper adicional cuando estés en la vista recursos
*/
.db-sidebar__link--active,
.db-mobile-nav__link--active {
  background-color: #72B231;
  border-color: #72B231;
  color: #ffffff;
}

/* ---------- FOCUS ---------- */
.db-resource-card__button:focus-visible,
.db-resources__select:focus-visible,
.db-resources__search-input:focus-visible,
.db-resource-modal__close:focus-visible {
  outline: 3px solid rgba(114, 178, 49, 0.2);
  outline-offset: 2px;
}

/* ---------- TABLET ---------- */
@media (max-width: 1199px) {
  .db-resources__hero {
    min-height: 94px;
    padding: 20px 24px;
    margin-bottom: 28px;
  }

  .db-resources__hero-title {
    font-size: 1.75rem;
  }

  .db-resources__tools {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 18px;
  }

  .db-resources__search {
    max-width: 320px;
  }

  .db-resource-card {
    padding: 18px 18px 18px 20px;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
  .db-resources__hero {
    min-height: 88px;
    padding: 18px 20px;
    border-radius: 24px;
    margin-bottom: 24px;
  }

  .db-resources__hero-title {
    font-size: 1.55rem;
  }

  .db-resources__tools {
    gap: 14px;
    margin-bottom: 16px;
  }

  .db-resources__filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .db-resources__select-wrap {
    max-width: 100%;
    width: 100%;
  }

  .db-resources__search {
    max-width: 100%;
  }

  .db-resource-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
  }

  .db-resource-card__left {
    width: 100%;
    align-items: flex-start;
  }

  .db-resource-card__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .db-resource-card__button {
    min-width: 110px;
  }

  .db-resource-modal {
    padding: 14px;
  }

  .db-resource-modal__dialog {
    width: 100%;
    border-width: 4px;
  }

  .db-resource-modal__viewer {
    max-height: 68vh;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {
  .db-resources__hero-title {
    font-size: 1.35rem;
  }

  .db-resource-card__title {
    font-size: 0.9rem;
  }

  .db-resource-card__meta {
    gap: 8px 18px;
  }

  .db-resource-card__meta-item {
    font-size: 0.72rem;
  }

  .db-resource-card__button {
    width: 100%;
  }

  .db-resource-modal__title {
    font-size: 0.54rem;
  }
}

/* =========================================================
   FILTRO CUSTOM - RECURSOS
   Reemplaza visualmente el select nativo
========================================================= */

.db-filter {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.db-filter__trigger {
  width: 100%;
  min-height: 52px;
  padding: 14px 48px 14px 22px;
  border: 0;
  border-radius: 24px;
  background-color: #f7f7f7;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.db-filter__trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.db-filter__trigger:active {
  transform: translateY(1px) scale(0.995);
}

.db-filter__trigger-text {
  display: block;
  color: #8a8a8a;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-filter__trigger-icon {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 0;
  border-bottom: 12px solid #7e7e7e;
  transform: translateY(-50%);
  transition: transform 0.22s ease;
  pointer-events: none;
}

/* estado abierto */
.db-filter.is-open .db-filter__trigger-icon {
  transform: translateY(-50%) rotate(180deg);
}

/* ---------- DROPDOWN ---------- */
.db-filter__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background-color: #f7f7f7;
  border-radius: 26px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  z-index: 30;
}

.db-filter.is-open .db-filter__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.db-filter__option {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 10px 14px;
  text-align: left;
  color: #9a9a9a;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.18s ease;
}

.db-filter__option:hover {
  background-color: rgba(114, 178, 49, 0.08);
  color: #777777;
}

.db-filter__option:active {
  transform: scale(0.995);
}

.db-filter__option--selected {
  background-color: #e9e9e9;
  color: #7f7f7f;
  font-weight: 700;
}

/* ---------- FOCUS ---------- */
.db-filter__trigger:focus-visible,
.db-filter__option:focus-visible {
  outline: 3px solid rgba(114, 178, 49, 0.18);
  outline-offset: 2px;
}

/* ---------- AJUSTE EN TOOLS ---------- */
.db-resources__filter {
  display: flex;
  align-items: center;
  gap: 14px;
}

.db-resources__filter-label {
  color: #909090;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 700;
  flex: 0 0 auto;
}

/* ---------- TABLET ---------- */
@media (max-width: 1199px) {
  .db-filter {
    max-width: 100%;
  }

  .db-filter__trigger {
    min-height: 48px;
    border-radius: 22px;
    padding: 12px 44px 12px 18px;
  }

  .db-filter__trigger-text {
    font-size: 0.88rem;
  }

  .db-filter__dropdown {
    border-radius: 22px;
    padding: 14px 12px 12px;
  }

  .db-filter__option {
    min-height: 40px;
    font-size: 0.95rem;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
  .db-resources__filter {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .db-filter {
    max-width: 100%;
    width: 100%;
  }

  .db-filter__trigger {
    min-height: 46px;
    border-radius: 20px;
    padding: 12px 42px 12px 16px;
  }

  .db-filter__trigger-text {
    font-size: 0.86rem;
  }

  .db-filter__trigger-icon {
    right: 16px;
    border-left-width: 7px;
    border-right-width: 7px;
    border-bottom-width: 11px;
  }

  .db-filter__dropdown {
    top: calc(100% + 8px);
    border-radius: 20px;
    padding: 12px 10px 10px;
  }

  .db-filter__option {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 0.9rem;
    border-radius: 12px;
  }
}

/* =========================================================
   NOVEDADES
   Agregar después del CSS base del dashboard
========================================================= */

.db-news {
  width: 100%;
}

/* ---------- HERO ---------- */
.db-news__hero {
  min-height: 104px;
  display: flex;
  align-items: center;
  padding: 22px 34px;
  border-radius: 30px;
  background-color: #34A3DC;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  margin-bottom: 34px;
}

.db-news__hero-title {
  margin: 0;
  color: #ffffff;
  font-size: 2.05rem;
  line-height: 1.1;
  font-weight: 800;
}

/* ---------- OVERVIEW ---------- */
.db-news__overview {
  width: 100%;
}

.db-news-card {
  min-height: 294px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: center;
  padding: 24px 26px;
  border-radius: 34px;
  background-color: #f7f7f7;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  margin-bottom: 18px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.db-news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.14);
}

.db-news-card__media {
  width: 100%;
  height: 250px;
  border-radius: 28px;
  overflow: hidden;
  background-color: #e8e8e8;
}

.db-news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-news-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding-right: 8px;
}

.db-news-card__top {
  margin-bottom: 18px;
}

.db-news-card__date {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border: 1.5px solid #34A3DC;
  border-radius: 999px;
  color: #6e6e6e;
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 700;
  background-color: #ffffff;
}

.db-news-card__title {
  margin: 0 0 22px;
  max-width: 560px;
  color: #666666;
  font-size: 1.18rem;
  line-height: 1.28;
  font-weight: 700;
}

.db-news-card__actions {
  display: flex;
  align-items: center;
}

.db-news-card__button {
  min-width: 116px;
  min-height: 42px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background-color: #34A3DC;
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.db-news-card__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(52, 163, 220, 0.24);
  filter: brightness(1.03);
}

.db-news-card__button:active {
  transform: translateY(1px) scale(0.99);
}

/* ---------- NAV ---------- */
.db-news__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.db-news__nav-button {
  width: 46px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background-color: #34A3DC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.db-news__nav-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(52, 163, 220, 0.22);
  filter: brightness(1.03);
}

.db-news__nav-button:active {
  transform: translateY(1px) scale(0.99);
}

.db-news__nav-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.db-news__nav-status {
  min-width: 82px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  color: #6f6f6f;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 700;
}

/* ---------- DETAIL ---------- */
.db-news-detail {
  width: 100%;
}

.db-news-detail__card {
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
  padding: 22px;
  border-radius: 30px;
  background-color: #f7f7f7;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.db-news-detail__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.db-news-detail__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.db-news-detail__back {
  min-height: 38px;
  padding: 6px 12px 6px 8px;
  border: 0;
  border-radius: 999px;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition:
    background-color 0.22s ease,
    transform 0.2s ease;
}

.db-news-detail__back:hover {
  background-color: rgba(52, 163, 220, 0.08);
  transform: translateY(-1px);
}

.db-news-detail__back:active {
  transform: translateY(1px) scale(0.99);
}

.db-news-detail__back-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #34A3DC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.db-news-detail__back-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.db-news-detail__back-text {
  color: #5f5f5f;
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 700;
}

.db-news-detail__date {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border: 1.5px solid #34A3DC;
  border-radius: 999px;
  color: #6e6e6e;
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 700;
  background-color: #ffffff;
}

.db-news-detail__scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 320px;
  overflow: auto;
  padding-right: 12px;
}

.db-news-detail__scroll::-webkit-scrollbar {
  width: 8px;
}

.db-news-detail__scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
}

.db-news-detail__scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 999px;
}

.db-news-detail__title {
  margin: 0 0 18px;
  max-width: 460px;
  color: #666666;
  font-size: 1.08rem;
  line-height: 1.24;
  font-weight: 800;
}

.db-news-detail__text p {
  margin: 0 0 16px;
  color: #777777;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 500;
}

.db-news-detail__text p:last-child {
  margin-bottom: 0;
}

.db-news-detail__media {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  background-color: #e8e8e8;
}

.db-news-detail__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- UTILIDAD ---------- */
.db-news-detail[hidden] {
  display: none !important;
}

/* ---------- ACTIVE HELPER ---------- */
.db-sidebar__link--active,
.db-mobile-nav__link--active {
  background-color: #34A3DC;
  border-color: #34A3DC;
  color: #ffffff;
}

/* ---------- FOCUS ---------- */
.db-news-card__button:focus-visible,
.db-news__nav-button:focus-visible,
.db-news-detail__back:focus-visible {
  outline: 3px solid rgba(52, 163, 220, 0.2);
  outline-offset: 2px;
}

/* ---------- LARGE SCREENS ---------- */
@media (min-width: 1500px) {
  .db-news-card {
    grid-template-columns: 290px 1fr;
    min-height: 320px;
  }

  .db-news-card__media {
    height: 270px;
  }

  .db-news-card__title {
    font-size: 1.32rem;
    max-width: 620px;
  }

  .db-news-detail__card {
    grid-template-columns: 1fr 340px;
  }
}

/* ---------- TABLET ---------- */
@media (max-width: 1199px) {
  .db-news__hero {
    min-height: 94px;
    padding: 20px 26px;
    margin-bottom: 28px;
  }

  .db-news__hero-title {
    font-size: 1.8rem;
  }

  .db-news-card {
    grid-template-columns: 220px 1fr;
    gap: 22px;
    padding: 22px;
    min-height: 270px;
  }

  .db-news-card__media {
    height: 220px;
    border-radius: 24px;
  }

  .db-news-card__title {
    font-size: 1.05rem;
    max-width: 100%;
  }

  .db-news-detail__card {
    grid-template-columns: 1fr 260px;
    gap: 22px;
    min-height: 390px;
  }

  .db-news-detail__media {
    min-height: 320px;
    border-radius: 24px;
  }

  .db-news-detail__scroll {
    max-height: 290px;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
  .db-news__hero {
    min-height: 88px;
    padding: 18px 20px;
    border-radius: 24px;
    margin-bottom: 24px;
  }

  .db-news__hero-title {
    font-size: 1.55rem;
  }

  .db-news-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: 26px;
    min-height: auto;
  }

  .db-news-card__media {
    height: 220px;
    order: 1;
    border-radius: 22px;
  }

  .db-news-card__content {
    order: 2;
    padding-right: 0;
  }

  .db-news-card__top {
    margin-bottom: 14px;
  }

  .db-news-card__date {
    min-height: 34px;
    font-size: 0.82rem;
    padding: 7px 14px;
  }

  .db-news-card__title {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.3;
  }

  .db-news-card__button {
    width: 100%;
    min-height: 40px;
  }

  .db-news__nav {
    margin-top: 2px;
  }

  .db-news-detail__card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: 24px;
    min-height: auto;
  }

  .db-news-detail__media {
    order: 1;
    min-height: 240px;
    border-radius: 22px;
  }

  .db-news-detail__content {
    order: 2;
  }

  .db-news-detail__top {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
  }

  .db-news-detail__back {
    padding-left: 0;
  }

  .db-news-detail__date {
    min-height: 34px;
    font-size: 0.82rem;
    padding: 7px 14px;
  }

  .db-news-detail__scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .db-news-detail__title {
    max-width: 100%;
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .db-news-detail__text p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {
  .db-news__hero-title {
    font-size: 1.35rem;
  }

  .db-news-card__media {
    height: 200px;
  }

  .db-news-card__title {
    font-size: 0.96rem;
  }

  .db-news__nav {
    gap: 10px;
  }

  .db-news__nav-button {
    width: 42px;
    height: 32px;
  }

  .db-news__nav-status {
    min-width: 72px;
    font-size: 0.82rem;
  }

  .db-news-detail__media {
    min-height: 220px;
  }

  .db-news-detail__back-text {
    font-size: 0.8rem;
  }

  .db-news-detail__title {
    font-size: 0.95rem;
  }

  .db-news-detail__text p {
    font-size: 0.86rem;
  }
}


/* =========================================================
   WORKSHOPS
   Agregar después del CSS base del dashboard
========================================================= */

.db-workshops {
  width: 100%;
}

/* ---------- HERO ---------- */
.db-workshops__hero {
  min-height: 104px;
  display: flex;
  align-items: center;
  padding: 22px 34px;
  border-radius: 30px;
  background-color: #34A3DC;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  margin-bottom: 30px;
}

.db-workshops__hero-title {
  margin: 0;
  color: #ffffff;
  font-size: 2.05rem;
  line-height: 1.1;
  font-weight: 800;
}

/* ---------- DATA SOURCE ---------- */
.db-workshops-data[hidden] {
  display: none !important;
}

/* ---------- TOOLS ---------- */
.db-workshops__tools {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: center;
  margin-bottom: 14px;
}

.db-workshops__filter {
  display: flex;
  align-items: center;
  gap: 14px;
}

.db-workshops__filter-label {
  color: #909090;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 700;
  flex: 0 0 auto;
}

/* ---------- FILTER CUSTOM ---------- */
.db-workshops-filter {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.db-workshops-filter__trigger {
  width: 100%;
  min-height: 52px;
  padding: 14px 48px 14px 22px;
  border: 0;
  border-radius: 24px;
  background-color: #f7f7f7;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.db-workshops-filter__trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.db-workshops-filter__trigger:active {
  transform: translateY(1px) scale(0.995);
}

.db-workshops-filter__trigger-text {
  display: block;
  color: #8a8a8a;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-workshops-filter__trigger-icon {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 0;
  border-bottom: 12px solid #7e7e7e;
  transform: translateY(-50%);
  transition: transform 0.22s ease;
  pointer-events: none;
}

.db-workshops-filter.is-open .db-workshops-filter__trigger-icon {
  transform: translateY(-50%) rotate(180deg);
}

.db-workshops-filter__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background-color: #f7f7f7;
  border-radius: 26px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  z-index: 30;
}

.db-workshops-filter.is-open .db-workshops-filter__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.db-workshops-filter__option {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 10px 14px;
  text-align: left;
  color: #9a9a9a;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.18s ease;
}

.db-workshops-filter__option:hover {
  background-color: rgba(52, 163, 220, 0.08);
  color: #777777;
}

.db-workshops-filter__option:active {
  transform: scale(0.995);
}

.db-workshops-filter__option--selected {
  background-color: #e9e9e9;
  color: #7f7f7f;
  font-weight: 700;
}

/* ---------- SEARCH ---------- */
.db-workshops__search {
  width: 100%;
}

.db-workshops__search-field {
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background-color: rgba(52, 163, 220, 0.28);
  box-shadow: inset 0 0 0 1px rgba(52, 163, 220, 0.08);
  padding: 0 14px 0 12px;
}

.db-workshops__search-icon-wrap {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.db-workshops__search-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.db-workshops__search-input {
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  outline: none;
  color: #5f5f5f;
  font-size: 0.82rem;
  font-weight: 500;
}

.db-workshops__search-input::placeholder {
  color: #7c8ea0;
}

/* ---------- RESULTS ---------- */
.db-workshops__results {
  margin-bottom: 18px;
}

.db-workshops__results-text {
  margin: 0;
  color: #8a8a8a;
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 600;
}

/* ---------- GRID ---------- */
.db-workshops__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* ---------- CARD ---------- */
.db-workshop-card {
  min-height: 188px;
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 26px;
  background-color: #f7f7f7;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.db-workshop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.db-workshop-card__media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 156px;
  border-radius: 22px;
  overflow: hidden;
  background-color: #e7e7e7;
}

.db-workshop-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-workshop-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.db-workshop-card__play:hover {
  transform: scale(1.04);
  background-color: rgba(0, 0, 0, 0.68);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.db-workshop-card__play:active {
  transform: scale(0.98);
}

.db-workshop-card__play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #ffffff;
}

.db-workshop-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.db-workshop-card__top {
  margin-bottom: 12px;
}

.db-workshop-card__date {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1.5px solid #34A3DC;
  border-radius: 999px;
  background-color: #ffffff;
  color: #7a7a7a;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 700;
}

.db-workshop-card__title {
  margin: 0 0 16px;
  color: #666666;
  font-size: 1.08rem;
  line-height: 1.22;
  font-weight: 700;
  word-break: break-word;
}

.db-workshop-card__actions {
  display: flex;
  align-items: center;
}

.db-workshop-card__button {
  min-width: 128px;
  min-height: 38px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background-color: #34A3DC;
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.db-workshop-card__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(52, 163, 220, 0.24);
  filter: brightness(1.03);
}

.db-workshop-card__button:active {
  transform: translateY(1px) scale(0.99);
}

/* ---------- LOAD MORE ---------- */
.db-workshops__load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.db-workshops__load-more {
  min-width: 210px;
  min-height: 44px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background-color: #72B231;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.db-workshops__load-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(114, 178, 49, 0.26);
  filter: brightness(1.03);
}

.db-workshops__load-more:active {
  transform: translateY(1px) scale(0.99);
}

/* ---------- MODAL ---------- */
.db-workshop-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.db-workshop-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.db-workshop-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.56);
}

.db-workshop-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  border-radius: 28px;
  overflow: hidden;
  background-color: #f8f8f8;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.24);
}

.db-workshop-modal__header {
  min-height: 88px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  background-color: #0f3d5a;
}

.db-workshop-modal__meta {
  min-width: 0;
}

.db-workshop-modal__date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 10px;
}

.db-workshop-modal__title {
  margin: 0;
  color: #ffffff;
  font-size: 1.28rem;
  line-height: 1.22;
  font-weight: 800;
}

.db-workshop-modal__close {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 50%;
  background-color: #ffffff;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease;
}

.db-workshop-modal__close:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.14);
}

.db-workshop-modal__close:active {
  transform: translateY(1px) scale(0.98);
}

.db-workshop-modal__close-line {
  position: absolute;
  top: 20px;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: #4c4c4c;
}

.db-workshop-modal__close-line:first-child {
  transform: rotate(45deg);
}

.db-workshop-modal__close-line:last-child {
  transform: rotate(-45deg);
}

/* ---------- TABS ---------- */
.db-workshop-modal__tabs {
  display: flex;
  gap: 10px;
  padding: 16px 24px 0;
  background-color: #f8f8f8;
}

.db-workshop-modal__tab {
  min-width: 124px;
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background-color: #e8edf1;
  color: #577085;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.db-workshop-modal__tab:hover {
  transform: translateY(-1px);
}

.db-workshop-modal__tab--active {
  background-color: #34A3DC;
  color: #ffffff;
  box-shadow: 0 8px 14px rgba(52, 163, 220, 0.2);
}

/* ---------- BODY ---------- */
.db-workshop-modal__body {
  padding: 20px 24px 24px;
  background-color: #f8f8f8;
}

.db-workshop-modal__panel {
  display: none;
}

.db-workshop-modal__panel--active {
  display: block;
}

/* ---------- VIDEO ---------- */
.db-workshop-modal__video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 22px;
  overflow: hidden;
  background-color: #000000;
}

.db-workshop-modal__iframe,
.db-workshop-modal__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- TRANSCRIPTION ---------- */
.db-workshop-modal__transcription {
  max-height: 56vh;
  overflow: auto;
  padding: 6px 8px 6px 0;
}

.db-workshop-modal__transcription::-webkit-scrollbar {
  width: 8px;
}

.db-workshop-modal__transcription::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
}

.db-workshop-modal__transcription::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.16);
  border-radius: 999px;
}

.db-workshop-modal__transcription p {
  margin: 0 0 16px;
  color: #6f6f6f;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

.db-workshop-modal__transcription p:last-child {
  margin-bottom: 0;
}

/* ---------- HELPERS ---------- */
.db-sidebar__link--active,
.db-mobile-nav__link--active {
  background-color: #34A3DC;
  border-color: #34A3DC;
  color: #ffffff;
}

/* ---------- FOCUS ---------- */
.db-workshops-filter__trigger:focus-visible,
.db-workshops-filter__option:focus-visible,
.db-workshops__search-input:focus-visible,
.db-workshop-card__play:focus-visible,
.db-workshop-card__button:focus-visible,
.db-workshops__load-more:focus-visible,
.db-workshop-modal__close:focus-visible,
.db-workshop-modal__tab:focus-visible {
  outline: 3px solid rgba(52, 163, 220, 0.2);
  outline-offset: 2px;
}

/* ---------- TABLET ---------- */
@media (max-width: 1199px) {
  .db-workshops__hero {
    min-height: 94px;
    padding: 20px 26px;
    margin-bottom: 26px;
  }

  .db-workshops__hero-title {
    font-size: 1.8rem;
  }

  .db-workshops__tools {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .db-workshops-filter {
    max-width: 100%;
  }

  .db-workshops__search {
    max-width: 320px;
  }

  .db-workshops__grid {
    grid-template-columns: 1fr;
  }

  .db-workshop-card {
    grid-template-columns: 140px 1fr;
  }

  .db-workshop-card__media {
    min-height: 170px;
  }

  .db-workshop-modal__dialog {
    width: min(100%, 900px);
  }

  .db-workshop-modal__title {
    font-size: 1.16rem;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
  .db-workshops__hero {
    min-height: 88px;
    padding: 18px 20px;
    border-radius: 24px;
    margin-bottom: 24px;
  }

  .db-workshops__hero-title {
    font-size: 1.55rem;
  }

  .db-workshops__filter {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .db-workshops-filter {
    max-width: 100%;
    width: 100%;
  }

  .db-workshops-filter__trigger {
    min-height: 46px;
    border-radius: 20px;
    padding: 12px 42px 12px 16px;
  }

  .db-workshops-filter__trigger-text {
    font-size: 0.86rem;
  }

  .db-workshops-filter__trigger-icon {
    right: 16px;
    border-left-width: 7px;
    border-right-width: 7px;
    border-bottom-width: 11px;
  }

  .db-workshops-filter__dropdown {
    top: calc(100% + 8px);
    border-radius: 20px;
    padding: 12px 10px 10px;
  }

  .db-workshops-filter__option {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .db-workshops__search {
    max-width: 100%;
  }

  .db-workshops__results {
    margin-bottom: 16px;
  }

  .db-workshop-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    min-height: auto;
  }

  .db-workshop-card__media {
    min-height: 220px;
    border-radius: 20px;
  }

  .db-workshop-card__content {
    justify-content: flex-start;
  }

  .db-workshop-card__title {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .db-workshop-card__button {
    width: 100%;
    min-height: 40px;
  }

  .db-workshops__load-more-wrap {
    margin-top: 20px;
  }

  .db-workshops__load-more {
    width: 100%;
  }

  .db-workshop-modal {
    padding: 14px;
  }

  .db-workshop-modal__dialog {
    width: 100%;
    border-radius: 22px;
  }

  .db-workshop-modal__header {
    min-height: auto;
    padding: 18px 18px 16px;
    align-items: flex-start;
  }

  .db-workshop-modal__title {
    font-size: 1rem;
  }

  .db-workshop-modal__tabs {
    padding: 14px 18px 0;
    gap: 8px;
    flex-wrap: wrap;
  }

  .db-workshop-modal__tab {
    flex: 1 1 0;
    min-width: 120px;
    min-height: 40px;
    font-size: 0.84rem;
  }

  .db-workshop-modal__body {
    padding: 16px 18px 18px;
  }

  .db-workshop-modal__video-wrap {
    border-radius: 18px;
  }

  .db-workshop-modal__transcription {
    max-height: 48vh;
  }

  .db-workshop-modal__transcription p {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {
  .db-workshops__hero-title {
    font-size: 1.35rem;
  }

  .db-workshops__results-text {
    font-size: 0.82rem;
  }

  .db-workshop-card__media {
    min-height: 200px;
  }

  .db-workshop-card__play {
    width: 54px;
    height: 54px;
  }

  .db-workshop-card__title {
    font-size: 0.94rem;
  }

  .db-workshop-card__date {
    font-size: 0.68rem;
  }

  .db-workshop-modal__date {
    font-size: 0.7rem;
  }

  .db-workshop-modal__title {
    font-size: 0.95rem;
  }
}

/* =========================================================
   MI PERFIL
========================================================= */

.db-profile {
  width: 100%;
}

/* ---------- HERO ---------- */
.db-profile__hero {
  min-height: 104px;
  display: flex;
  align-items: center;
  padding: 22px 34px;
  border-radius: 30px;
  background-color: #72B231;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  margin-bottom: 34px;
}

.db-profile__hero-title {
  margin: 0;
  color: #ffffff;
  font-size: 2.05rem;
  line-height: 1.1;
  font-weight: 800;
}

/* ---------- CARD ---------- */
.db-profile-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  padding: 30px 34px;
  border-radius: 30px;
  background-color: #f7f7f7;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

/* ---------- MEDIA ---------- */
.db-profile-card__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8px;
}

.db-profile-card__avatar-wrap {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #c8d9b6;
  box-shadow: inset 0 0 0 1px rgba(114, 178, 49, 0.08);
  margin-bottom: 14px;
}

.db-profile-card__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-profile-card__change-photo {
  padding: 0;
  border: 0;
  background: transparent;
  color: #6a6a6a;
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.22s ease, opacity 0.22s ease;
}

.db-profile-card__change-photo:hover {
  color: #4c4c4c;
}

.db-profile-card__change-photo:active {
  opacity: 0.75;
}

/* ---------- MAIN ---------- */
.db-profile-card__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.db-profile-card__name {
  margin: 0 0 24px;
  color: #666666;
  font-size: 1.95rem;
  line-height: 1.12;
  font-weight: 800;
}

/* ---------- FIELDS ---------- */
.db-profile-card__fields {
  width: 100%;
  max-width: 760px;
  display: grid;
  gap: 14px;
}

.db-profile-card__field {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.db-profile-card__label {
  color: #868686;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 500;
  text-align: right;
}

.db-profile-card__value {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: #cddfbb;
  color: #6f6f6f;
  font-size: 0.84rem;
  line-height: 1.2;
  font-weight: 500;
  word-break: break-word;
}

/* ---------- ACTIVE HELPER ---------- */
.db-sidebar__link--active,
.db-mobile-nav__link--active {
  background-color: #72B231;
  border-color: #72B231;
  color: #ffffff;
}

/* ---------- FOCUS ---------- */
.db-profile-card__change-photo:focus-visible {
  outline: 3px solid rgba(114, 178, 49, 0.2);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- TABLET ---------- */
@media (max-width: 1199px) {
  .db-profile__hero {
    min-height: 94px;
    padding: 20px 26px;
    margin-bottom: 28px;
  }

  .db-profile__hero-title {
    font-size: 1.8rem;
  }

  .db-profile-card {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 28px;
    padding: 26px 26px;
  }

  .db-profile-card__avatar-wrap {
    width: 130px;
    height: 130px;
  }

  .db-profile-card__name {
    font-size: 1.65rem;
    margin-bottom: 20px;
  }

  .db-profile-card__fields {
    max-width: 100%;
  }

  .db-profile-card__field {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
  .db-profile__hero {
    min-height: 88px;
    padding: 18px 20px;
    border-radius: 24px;
    margin-bottom: 24px;
  }

  .db-profile__hero-title {
    font-size: 1.55rem;
  }

  .db-profile-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 18px;
    border-radius: 24px;
  }

  .db-profile-card__media {
    align-items: center;
    padding-top: 0;
  }

  .db-profile-card__avatar-wrap {
    width: 124px;
    height: 124px;
    margin-bottom: 12px;
  }

  .db-profile-card__main {
    width: 100%;
  }

  .db-profile-card__name {
    margin-bottom: 18px;
    font-size: 1.45rem;
    text-align: center;
    width: 100%;
  }

  .db-profile-card__fields {
    gap: 12px;
    max-width: 100%;
  }

  .db-profile-card__field {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .db-profile-card__label {
    text-align: left;
    font-size: 0.84rem;
  }

  .db-profile-card__value {
    min-height: 38px;
    font-size: 0.84rem;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {
  .db-profile__hero-title {
    font-size: 1.35rem;
  }

  .db-profile-card__avatar-wrap {
    width: 108px;
    height: 108px;
  }

  .db-profile-card__name {
    font-size: 1.28rem;
  }

  .db-profile-card__label {
    font-size: 0.8rem;
  }

  .db-profile-card__value {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .db-profile-card__change-photo {
    font-size: 0.74rem;
  }
}
/* =========================================================
   MENSAJERÍA
   Agregar después del CSS base del dashboard
========================================================= */

.db-messages {
  width: 100%;
}

/* ---------- HERO ---------- */
.db-messages__hero {
  min-height: 104px;
  display: flex;
  align-items: center;
  padding: 22px 34px;
  border-radius: 30px;
  background-color: #72B231;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  margin-bottom: 22px;
}

.db-messages__hero-title {
  margin: 0;
  color: #ffffff;
  font-size: 2.05rem;
  line-height: 1.1;
  font-weight: 800;
}

/* ---------- TABS ---------- */
.db-messages__tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.db-messages__tab {
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 18px 18px 0 0;
  background-color: #f1f1f1;
  color: #7a7a7a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}

.db-messages__tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 16px rgba(0, 0, 0, 0.1);
}

.db-messages__tab:active {
  transform: translateY(1px) scale(0.99);
}

.db-messages__tab--active {
  background-color: #72B231;
  color: #ffffff;
}

.db-messages__tab-icon-wrap {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.db-messages__tab-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.db-messages__tab-text {
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 700;
}

.db-messages__tab-badge {
  min-width: 18px;
  min-height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background-color: #FF3232;
  color: #ffffff;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- PANELS ---------- */
.db-messages__panel {
  width: 100%;
}

.db-messages__panel[hidden] {
  display: none !important;
}

/* ---------- LIST BOX ---------- */
.db-messages-box {
  border: 2px solid #34A3DC;
  border-radius: 28px;
  background-color: #f7f7f7;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  padding: 14px 16px 18px;
}

/* ---------- SEARCH ---------- */
.db-messages-box__search {
  margin-bottom: 14px;
}

.db-messages-box__search-field {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background-color: #cddfbb;
  padding: 0 14px 0 12px;
}

.db-messages-box__search-icon-wrap {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.db-messages-box__search-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.db-messages-box__search-input {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  outline: none;
  color: #5f5f5f;
  font-size: 0.82rem;
  font-weight: 500;
}

.db-messages-box__search-input::placeholder {
  color: #7f8b72;
}

/* ---------- LIST ---------- */
.db-messages-list {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.db-messages-list::-webkit-scrollbar {
  width: 8px;
}

.db-messages-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
}

.db-messages-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 999px;
}

/* ---------- ITEM ---------- */
.db-message-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid #d8d8d8;
  cursor: pointer;
  transition:
    background-color 0.22s ease,
    transform 0.18s ease;
}

.db-message-item:last-child {
  border-bottom: 0;
}

.db-message-item:hover {
  background-color: rgba(52, 163, 220, 0.05);
}

.db-message-item--active {
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}

.db-message-item__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #72B231;
  flex: 0 0 44px;
}

.db-message-item__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-message-item__body {
  min-width: 0;
}

.db-message-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.db-message-item__name {
  margin: 0;
  color: #666666;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 700;
}

.db-message-item__excerpt {
  margin: 0;
  color: #8b8b8b;
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.db-message-item--unread .db-message-item__name,
.db-message-item--unread .db-message-item__excerpt {
  color: #5e5e5e;
  font-weight: 700;
}

/* ---------- EMPTY ---------- */
.db-messages-empty {
  min-height: 240px;
  border-radius: 28px;
  background-color: #f7f7f7;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.db-messages-empty__text {
  margin: 0;
  color: #8b8b8b;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
}

/* ---------- COMPOSE ---------- */
.db-messages-compose {
  border-radius: 28px;
  background-color: #f7f7f7;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  padding: 24px;
}

.db-messages-compose__form {
  display: grid;
  gap: 18px;
}

.db-messages-compose__group {
  display: grid;
  gap: 8px;
}

.db-messages-compose__label {
  color: #6f6f6f;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 700;
}

.db-messages-compose__input,
.db-messages-compose__textarea {
  width: 100%;
  border: 0;
  border-radius: 18px;
  background-color: #eef2e8;
  color: #5f5f5f;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition:
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.db-messages-compose__input {
  min-height: 46px;
  padding: 0 16px;
}

.db-messages-compose__textarea {
  min-height: 180px;
  padding: 14px 16px;
  resize: vertical;
}

.db-messages-compose__input::placeholder,
.db-messages-compose__textarea::placeholder {
  color: #9aa18f;
}

.db-messages-compose__input:focus,
.db-messages-compose__textarea:focus {
  background-color: #f7f9f4;
  box-shadow: 0 0 0 3px rgba(114, 178, 49, 0.16);
}

.db-messages-compose__actions {
  display: flex;
  justify-content: flex-end;
}

.db-messages-compose__button {
  min-width: 180px;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background-color: #72B231;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.db-messages-compose__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(114, 178, 49, 0.26);
  filter: brightness(1.03);
}

.db-messages-compose__button:active {
  transform: translateY(1px) scale(0.99);
}

/* ---------- ACTIVE HELPER ---------- */
.db-sidebar__link--active,
.db-mobile-nav__link--active {
  background-color: #72B231;
  border-color: #72B231;
  color: #ffffff;
}

/* ---------- FOCUS ---------- */
.db-messages__tab:focus-visible,
.db-messages-box__search-input:focus-visible,
.db-messages-compose__input:focus-visible,
.db-messages-compose__textarea:focus-visible,
.db-messages-compose__button:focus-visible {
  outline: 3px solid rgba(114, 178, 49, 0.18);
  outline-offset: 2px;
}

/* ---------- TABLET ---------- */
@media (max-width: 1199px) {
  .db-messages__hero {
    min-height: 94px;
    padding: 20px 26px;
    margin-bottom: 20px;
  }

  .db-messages__hero-title {
    font-size: 1.8rem;
  }

  .db-messages-box {
    border-radius: 24px;
  }

  .db-messages-compose {
    border-radius: 24px;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
  .db-messages__hero {
    min-height: 88px;
    padding: 18px 20px;
    border-radius: 24px;
    margin-bottom: 18px;
  }

  .db-messages__hero-title {
    font-size: 1.55rem;
  }

  .db-messages__tabs {
    gap: 8px;
    margin-bottom: 16px;
  }

  .db-messages__tab {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .db-messages__tab-text {
    font-size: 0.78rem;
  }

  .db-messages-box {
    border-radius: 22px;
    padding: 14px;
  }

  .db-messages-list {
    max-height: 360px;
  }

  .db-message-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 12px 6px;
  }

  .db-message-item__avatar {
    width: 40px;
    height: 40px;
  }

  .db-message-item__name {
    font-size: 0.86rem;
  }

  .db-message-item__excerpt {
    font-size: 0.74rem;
  }

  .db-messages-empty {
    min-height: 200px;
    border-radius: 22px;
  }

  .db-messages-compose {
    border-radius: 22px;
    padding: 18px;
  }

  .db-messages-compose__textarea {
    min-height: 160px;
  }

  .db-messages-compose__actions {
    justify-content: stretch;
  }

  .db-messages-compose__button {
    width: 100%;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {
  .db-messages__hero-title {
    font-size: 1.35rem;
  }

  .db-messages__tab {
    width: 100%;
    justify-content: center;
  }

  .db-messages__tab-text {
    font-size: 0.76rem;
  }

  .db-message-item__name {
    font-size: 0.82rem;
  }

  .db-message-item__excerpt {
    font-size: 0.72rem;
  }

  .db-messages-empty__text {
    font-size: 0.9rem;
  }

  .db-messages-compose__label {
    font-size: 0.84rem;
  }

  .db-messages-compose__input,
  .db-messages-compose__textarea {
    font-size: 0.86rem;
  }
}


/* =========================================================
   DESTINATARIO MENSAJES (SELECT CUSTOM)
========================================================= */

.db-message-recipient {
  position: relative;
  width: 100%;
}

/* ---------- TRIGGER (campo visible) ---------- */
.db-message-recipient__trigger {
  width: 100%;
  min-height: 46px;
  padding: 0 42px 0 16px;
  border: 0;
  border-radius: 18px;
  background-color: #cddfbb;
  color: #5f5f5f;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition:
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    transform 0.18s ease;
}

.db-message-recipient__trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.db-message-recipient__trigger:active {
  transform: translateY(1px) scale(0.995);
}

.db-message-recipient__trigger-text {
  color: #6f6f6f;
  font-weight: 500;
}

/* ---------- ICON (flecha) ---------- */
.db-message-recipient__trigger-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 0;
  border-bottom: 10px solid #6f6f6f;
  transform: translateY(-50%);
  transition: transform 0.22s ease;
}

.db-message-recipient.is-open .db-message-recipient__trigger-icon {
  transform: translateY(-50%) rotate(180deg);
}

/* ---------- DROPDOWN ---------- */
.db-message-recipient__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  border-radius: 20px;
  background-color: #f7f7f7;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  z-index: 50;
}

.db-message-recipient.is-open .db-message-recipient__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- SEARCH ---------- */
.db-message-recipient__search {
  margin-bottom: 10px;
}

.db-message-recipient__search-input {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  padding: 0 12px;
  background-color: #eef2e8;
  color: #5f5f5f;
  font-size: 0.82rem;
  outline: none;
}

.db-message-recipient__search-input::placeholder {
  color: #9aa18f;
}

/* ---------- OPTIONS ---------- */
.db-message-recipient__options {
  max-height: 220px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-message-recipient__options::-webkit-scrollbar {
  width: 6px;
}

.db-message-recipient__options::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 999px;
}

/* ---------- OPTION ITEM ---------- */
.db-message-recipient__option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  color: #666666;
  font-size: 0.85rem;
  line-height: 1.3;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.18s ease;
}

.db-message-recipient__option span {
  display: block;
  font-size: 0.75rem;
  color: #8a8a8a;
  font-weight: 500;
}

.db-message-recipient__option:hover {
  background-color: rgba(114, 178, 49, 0.12);
}

.db-message-recipient__option:active {
  transform: scale(0.99);
}

/* ---------- FOCUS ---------- */
.db-message-recipient__trigger:focus-visible,
.db-message-recipient__search-input:focus-visible,
.db-message-recipient__option:focus-visible {
  outline: 3px solid rgba(114, 178, 49, 0.2);
  outline-offset: 2px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
  .db-message-recipient__trigger {
    min-height: 44px;
    font-size: 0.86rem;
  }

  .db-message-recipient__dropdown {
    border-radius: 18px;
    padding: 10px;
  }

  .db-message-recipient__search-input {
    min-height: 36px;
    font-size: 0.8rem;
  }

  .db-message-recipient__option {
    font-size: 0.82rem;
  }

  .db-message-recipient__option span {
    font-size: 0.72rem;
  }
}




/* ---------- PANTALLA ---------- */
.login-screen {
  min-height: 100vh;
  padding: 40px 20px;
  background-color: #34A3DC;
}

.login-screen__container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- TARJETA ---------- */
.login-card {
  width: 100%;
  max-width: 460px;
  background-color: #f4f4f4;
  border-radius: 26px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  padding: 34px 34px 28px;
}

.login-card--recovery {
  max-width: 500px;
}

.login-card--confirmation {
  max-width: 430px;
}

/* ---------- BLOQUE LOGO ---------- */
.login-card__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
}

.login-card__logo {
  display: block;
  max-width: 100%;
  width: 290px;
  height: auto;
}

/* ---------- TEXTO INTRO ---------- */
.login-card__intro {
  text-align: center;
  margin-bottom: 22px;
}

.login-card__title {
  margin: 0 0 10px;
  font-size: 1.9rem;
  line-height: 1.15;
  font-weight: 600;
  color: #606060;
}

.login-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 400;
  color: #8a8a8a;
}

/* ---------- FORMULARIO ---------- */
.login-form {
  width: 100%;
}

.login-form__group {
  margin-bottom: 12px;
}

.login-form__input {
  width: 100%;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 11px;
  background-color: #eaeaea;
  padding: 0 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: #555555;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    transform 0.2s ease;
}

.login-form__input::placeholder {
  color: #a7a7a7;
  font-weight: 500;
}

.login-form__input:focus {
  background-color: #ffffff;
  border-color: rgba(114, 178, 49, 0.5);
  box-shadow: 0 0 0 3px rgba(114, 178, 49, 0.16);
}

.login-form__input:active {
  transform: scale(0.998);
}

/* ---------- MENSAJES ---------- */
.login-form__message {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 500;
}

.login-form__message--error {
  color: #FF3232;
}

/* Si no quieres mostrar el error por defecto, agrega esta clase al <p>
   .is-hidden { display: none; }
*/
.is-hidden {
  display: none !important;
}

/* ---------- BOTÓN ---------- */
.login-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.login-form__button,
.login-confirmation__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 34px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background-color: #72B231;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(114, 178, 49, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease,
    background-color 0.22s ease;
}

.login-form__button:hover,
.login-confirmation__badge:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(114, 178, 49, 0.28);
}

.login-form__button:active,
.login-confirmation__badge:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 4px 10px rgba(114, 178, 49, 0.2);
}

.login-form__button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

/* ---------- FOOTER ---------- */
.login-form__footer {
  margin-top: 18px;
  text-align: center;
}

.login-form__link {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 500;
  color: #5f5f5f;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.22s ease, opacity 0.22s ease;
}

.login-form__link:hover {
  color: #3f3f3f;
}

.login-form__link:active {
  opacity: 0.75;
}

/* ---------- CONFIRMACIÓN ---------- */
.login-confirmation {
  text-align: center;
  padding-top: 4px;
}

.login-confirmation__actions {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.login-confirmation__badge {
  min-width: 150px;
  text-transform: none;
  cursor: default;
}

.login-confirmation__text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 400;
  color: #7c7c7c;
}

.login-confirmation__text strong {
  font-weight: 700;
  color: #555555;
}

/* ---------- AJUSTES VISTA RECOVERY ---------- */
.login-form--recovery .login-form__actions {
  margin-top: 20px;
}

.login-card--recovery .login-form__button {
  min-width: 240px;
  text-transform: none;
  font-size: 0.92rem;
  padding: 0 26px;
}

/* ---------- AJUSTES VISTA LOGIN ---------- */
.login-card:not(.login-card--recovery):not(.login-card--confirmation) .login-form__button {
  min-width: 108px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767px) {
  .login-screen {
    padding: 26px 16px;
  }

  .login-screen__container {
    min-height: calc(100vh - 52px);
  }

  .login-card,
  .login-card--recovery,
  .login-card--confirmation {
    max-width: 100%;
    border-radius: 22px;
    padding: 26px 22px 24px;
  }

  .login-card__brand {
    margin-bottom: 24px;
  }

  .login-card__logo {
    width: 230px;
  }

  .login-card__title {
    font-size: 1.55rem;
  }

  .login-card__text {
    font-size: 0.9rem;
  }

  .login-form__input {
    height: 40px;
    font-size: 0.88rem;
    padding: 0 14px;
  }

  .login-form__actions {
    margin-top: 18px;
  }

  .login-form__button,
  .login-confirmation__badge {
    min-height: 38px;
    font-size: 0.88rem;
    padding: 0 18px;
  }

  .login-card--recovery .login-form__button {
    min-width: 100%;
  }

  .login-confirmation__text {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .login-form__message {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .login-card,
  .login-card--recovery,
  .login-card--confirmation {
    padding: 22px 18px 20px;
    border-radius: 20px;
  }

  .login-card__logo {
    width: 205px;
  }

  .login-card__title {
    font-size: 1.35rem;
  }

  .login-card__text {
    font-size: 0.85rem;
  }

  .login-form__input {
    height: 38px;
    border-radius: 10px;
  }

  .login-form__button,
  .login-confirmation__badge {
    width: auto;
    min-width: 135px;
    font-size: 0.84rem;
  }

  .login-form__footer {
    margin-top: 16px;
  }

  .login-form__link {
    font-size: 0.72rem;
  }

  .login-confirmation__actions {
    margin-bottom: 22px;
  }
}

/* =========================================================
   BUSCADOR
========================================================= */

.db-search-page {
  width: 100%;
}

/* ---------- HERO ---------- */
.db-search-page__hero {
  min-height: 104px;
  display: flex;
  align-items: center;
  padding: 22px 34px;
  border-radius: 30px;
  background-color: #34A3DC;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  margin-bottom: 28px;
}

.db-search-page__hero-title {
  margin: 0;
  color: #ffffff;
  font-size: 2.05rem;
  font-weight: 800;
}

/* ---------- SEARCH ---------- */
.db-search-page__tools {
  margin-bottom: 20px;
}

.db-search-page__field {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background-color: #eef2e8;
  padding: 8px 10px;
}

.db-search-page__icon-wrap {
  width: 20px;
  height: 20px;
}

.db-search-page__icon {
  width: 100%;
  height: 100%;
}

.db-search-page__input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  color: #5f5f5f;
}

.db-search-page__button {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  background-color: #34A3DC;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.db-search-page__button:hover {
  background-color: #2c8dbb;
}

/* ---------- FILTERS ---------- */
.db-search-page__filters {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.db-search-page__filter {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  background: #f1f1f1;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.2s;
}

.db-search-page__filter--active {
  background: #34A3DC;
  color: #fff;
}

/* ---------- RESULTS ---------- */
.db-search-page__results-head {
  margin-bottom: 14px;
}

.db-search-page__results-text {
  font-size: 0.9rem;
  color: #666;
}

.db-search-page__list {
  display: grid;
  gap: 16px;
}

/* ---------- CARD ---------- */
.db-search-result-card {
  padding: 18px;
  border-radius: 20px;
  background: #f7f7f7;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}

.db-search-result-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 8px;
}

.db-search-result-card__type {
  font-weight: 600;
}

.db-search-result-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}

.db-search-result-card__excerpt {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 12px;
}

.db-search-result-card__actions {
  text-align: right;
}

.db-search-result-card__button {
  padding: 6px 14px;
  border-radius: 999px;
  background: #72B231;
  color: #fff;
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.db-search-result-card__button:hover {
  background: #5e9829;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767px) {
  .db-search-page__hero {
    padding: 18px;
  }

  .db-search-page__hero-title {
    font-size: 1.5rem;
  }

  .db-search-page__field {
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
  }

  .db-search-page__button {
    width: 100%;
  }
}
.db-search-page__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.db-search-page__empty {
  padding: 28px 24px;
  border-radius: 20px;
  background: #f7f7f7;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}

.db-search-page__empty-text {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}


.db-workshop-modal__transcription-actions {
  margin-bottom: 14px;
}

.db-workshop-modal__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: #34A3DC;
  color: #ffffff;
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.db-workshop-modal__download:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(52, 163, 220, 0.24);
  filter: brightness(1.03);
}

.db-workshop-modal__download:active {
  transform: translateY(1px) scale(0.99);
}

.db-messages-compose__notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.db-messages-compose__notice--error {
  background: rgba(255, 50, 50, 0.12);
  color: #b42318;
}

.db-messages-compose__notice--success {
  background: rgba(114, 178, 49, 0.14);
  color: #4a7d1e;
}

 .db-message-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}


.db-message-thread {
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  background: #f7f7f7;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.db-message-thread__header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.db-message-thread__user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.db-message-thread__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #d9e7c4;
  flex-shrink: 0;
}

.db-message-thread__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.db-message-thread__user-info {
  min-width: 0;
}

.db-message-thread__name {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #4d4d4d;
}

.db-message-thread__subject {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}

.db-message-thread__messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.db-message-bubble {
  max-width: 78%;
  padding: 14px 16px;
  border-radius: 18px;
}

.db-message-bubble--mine {
  align-self: flex-end;
  background: #34A3DC;
  color: #fff;
}

.db-message-bubble--other {
  align-self: flex-start;
  background: #e9edf1;
  color: #3f3f3f;
}

.db-message-bubble__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 0.76rem;
  opacity: 0.85;
}

.db-message-bubble__sender {
  font-weight: 700;
}

.db-message-bubble__content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .db-message-thread {
    padding: 18px;
    border-radius: 18px;
  }

  .db-message-bubble {
    max-width: 100%;
  }
}



.db-message-reply {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background: #f7f7f7;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.db-message-reply__notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.db-message-reply__notice--error {
  background: rgba(255, 50, 50, 0.12);
  color: #b42318;
}

.db-message-reply__notice--success {
  background: rgba(114, 178, 49, 0.14);
  color: #4a7d1e;
}

.db-message-reply__field {
  margin-bottom: 14px;
}

.db-message-reply__textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border: 1px solid #cfe0b5;
  border-radius: 18px;
  background: #eef4e6;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: #4d4d4d;
  outline: none;
}

.db-message-reply__textarea:focus {
  border-color: #72B231;
}

.db-message-reply__actions {
  display: flex;
  justify-content: flex-end;
}

.db-message-reply__button {
  min-height: 44px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: #72B231;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.db-message-reply__button:hover {
  filter: brightness(1.03);
}

.db-message-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.db-message-item__date {
  flex-shrink: 0;
  font-size: 0.76rem;
  line-height: 1.2;
  color: #8a8a8a;
  white-space: nowrap;
}


.db-resource-modal__preview {
  width: 100%;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f5f5;
}

.db-resource-modal__preview iframe,
.db-resource-modal__preview embed {
  width: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

.db-resource-modal__fallback {
  padding: 16px 0 0;
}

.db-resource-modal__fallback p {
  margin: 0;
  color: #5f5f5f;
  line-height: 1.6;
}


.db-metrics-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.db-metrics-page__hero {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #72B231 0%, #34A3DC 100%);
  color: #fff;
}

.db-metrics-page__title {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
}

.db-metrics-page__subtitle {
  margin: 0;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.95;
}

.db-metrics-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.db-metrics-card {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
}

.db-metrics-card__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #4d4d4d;
}

.db-metrics-card__text {
  margin: 0;
  color: #707070;
  line-height: 1.6;
}

.db-metrics-page__actions {
  display: flex;
  justify-content: flex-end;
}

.db-metrics-page__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #34A3DC;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.db-metrics-page__button:hover {
  filter: brightness(1.03);
}

@media (max-width: 991px) {
  .db-metrics-page__grid {
    grid-template-columns: 1fr;
  }
}


.db-metrics-card__value {
  margin: 8px 0 10px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #34A3DC;
}


.db-metrics-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.db-metrics-detail__block {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
}

.db-metrics-detail__title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #4d4d4d;
}

.db-metrics-detail__empty {
  margin: 0;
  color: #7a7a7a;
}

.db-metrics-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.db-metrics-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.db-metrics-table th,
.db-metrics-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.db-metrics-table th {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.db-metrics-table td {
  font-size: 0.92rem;
  color: #4d4d4d;
}





/* siempre abajo */

[hidden] {
  display: none !important;
}