
/* ==========================================
   FAC - BREADCRUMB RESPONSIVE
   Diseño institucional
   Excluye administración Drupal
   ========================================== */

/* ESTILO GENERAL */

body:not(.path-admin):not(.page-admin) .breadcrumb {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body:not(.path-admin):not(.page-admin) .breadcrumb ol,
body:not(.path-admin):not(.page-admin) .breadcrumb ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:not(.path-admin):not(.page-admin) .breadcrumb li {
  font-size: 14px;
  line-height: 1.6;
}

body:not(.path-admin):not(.page-admin) .breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

body:not(.path-admin):not(.page-admin) .breadcrumb a:hover,
body:not(.path-admin):not(.page-admin) .breadcrumb a:focus-visible {
  color: #c5dcff;
  text-decoration: underline;
}

/* ==========================================
   TABLETS Y CELULARES
   ========================================== */

@media screen and (max-width: 767px) {

  body:not(.path-admin):not(.page-admin) .breadcrumb {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
  }

  body:not(.path-admin):not(.page-admin) .breadcrumb ol,
  body:not(.path-admin):not(.page-admin) .breadcrumb ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body:not(.path-admin):not(.page-admin) .breadcrumb li {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    color: #ffffff;
  }

  /* Ocultar título largo en móviles */

  body:not(.path-admin):not(.page-admin) .breadcrumb li:last-child:not(:first-child) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  body:not(.path-admin):not(.page-admin) .breadcrumb a {
    color: #d7e5fa;
    font-size: 13px;
    text-decoration: none;
  }
}

/* ==========================================
   CELULARES PEQUEÑOS
   ========================================== */

@media screen and (max-width: 375px) {

  body:not(.path-admin):not(.page-admin) .breadcrumb {
    padding: 6px 10px;
  }

  body:not(.path-admin):not(.page-admin) .breadcrumb li,
  body:not(.path-admin):not(.page-admin) .breadcrumb a {
    font-size: 12px;
  }
}

/* ==========================================
   SUBRAYADO CELESTE INSTITUCIONAL
   ========================================== */

body:not(.path-admin):not(.page-admin) .breadcrumb li:nth-child(2) a {
  color: #ffffff !important;
  font-weight: 500 !important;

  text-decoration-line: underline !important;
  text-decoration-color: #36A5D9 !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 5px !important;

  transition: color 0.2s ease,
              text-decoration-color 0.2s ease;
}

body:not(.path-admin):not(.page-admin) .breadcrumb li:nth-child(2) a:hover {
  color: #ffffff !important;
  text-decoration-color: #ffffff !important;
}
