body {
  font-family: "Work Sans", sans-serif;
}
a,
a:hover {
  color: inherit;
  text-decoration: inherit;
}
.container {
  max-width: 1300px;
}
main {
  background: url("../img/background-pages.jpg") repeat scroll center/auto;
}
@media (min-width: 768px) {
  main {
    min-height: calc(100vh - 102px);
  }
}
.bg-primary {
  background-color: #005AAB !important;
}
.bg-secondary {
  background-color: #ED1C24 !important;
}
.text-primary {
  color: #005AAB !important;
}
.text-secondary {
  color: #ED1C24 !important;
}
.border-primary {
  border-color: #005AAB !important;
}
.border-secondary {
  border-color: #ED1C24 !important;
}
.fw-medium {
  font-weight: 500;
}
.fw-semibold {
  font-weight: 600;
}
.form-control {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}
.form-control:focus {
  color: #005AAB;
  border-color: #005AAB;
  box-shadow: none;
}
select.form-control {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path fill='%230173BC' d='M7 10l5 5 5-5z'/></svg>") no-repeat 100% 50%;
}
.custom-file-label::after {
  background-color: #005AAB;
  color: #fff;
  border-radius: 0;
}
.btn-primary:not(:disabled):not(.disabled),
.btn-secondary:not(:disabled):not(.disabled) {
  font-size: 0.825rem;
  letter-spacing: 0.05rem;
}
.btn-primary:not(:disabled):not(.disabled) {
  background-color: #005AAB;
  border-color: #005AAB;
}
.btn-primary:not(:disabled):not(.disabled):hover,
.btn-primary:not(:disabled):not(.disabled):focus,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: #ED1C24;
  border-color: #ED1C24;
}
.btn-primary:not(:disabled):not(.disabled):focus,
.btn-primary:not(:disabled):not(.disabled):active:focus {
  box-shadow: 0 0 0 0.2rem rgba(0,102,179,0.5);
}
.btn-secondary:not(:disabled):not(.disabled) {
  background-color: #ED1C24;
  border-color: #ED1C24;
}
.btn-secondary:not(:disabled):not(.disabled):hover,
.btn-secondary:not(:disabled):not(.disabled):focus,
.btn-secondary:not(:disabled):not(.disabled):active {
  background-color: #005AAB;
  border-color: #005AAB;
}
.btn-secondary:not(:disabled):not(.disabled):focus,
.btn-secondary:not(:disabled):not(.disabled):active:focus {
  box-shadow: 0 0 0 0.2rem rgba(0,174,239,0.5);
}
.img-cover {
  -o-object-fit: cover;
     object-fit: cover;
}
header {
  z-index: 1;
}
@media (max-width: 767px) {
  ul.menu {
    white-space: nowrap;
    overflow: auto;
  }
}
ul.menu li {
  display: inline-block;
}
ul.menu a {
  display: block;
  padding: 23px 20px 20px;
  font-weight: 500;
  color: #666;
  border-bottom: 3px solid rgba(0,0,0,0);
  transition: all 0.2s ease;
}
ul.menu a:hover,
ul.menu a.active {
  color: #ED1C24;
  border-bottom-color: #ED1C24;
}
.card-login {
  width: 335px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.25);
}
.card-login .card-title {
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .card-login .card-body {
    padding: 2.5rem 2.5rem 1.875rem;
  }
}
.card-login .login-logo {
  margin-bottom: 2rem;
}
.card-login .toggle-password {
  position: absolute;
  right: 12px;
  top: 11px;
  width: 16px;
  height: 16px;
  background: url("../img/eye.svg") no-repeat center;
  border: 0;
}
.card-login .toggle-password.visible {
  background-image: url("../img/eye-slash.svg");
}
.card-login .options {
  font-size: 0.875rem;
}
.card-login .options a {
  color: #ED1C24;
  text-decoration: underline;
}
.card-login .btn {
  min-width: 190px;
}
.card-news {
  box-shadow: 0 0 3px rgba(0,0,0,0.25);
}
.card-news .title a {
  height: 75px;
}
.card-news .date {
  font-size: 12px;
}
.card-news .descr a {
  height: 50px;
  font-size: 14px;
  line-height: 1.15;
}
footer {
  height: 32px;
  box-shadow: 4px 0 4px rgba(0,0,0,0.3);
}
.breadcrumb {
  background: none;
  padding: 0;
  font-weight: 500;
  color: #005AAB;
}
.breadcrumb .breadcrumb-item + .breadcrumb-item {
  padding-left: 0.25rem;
}
.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #005AAB;
}
.pages.news.archive .page-title {
  font-size: 2.25rem;
}
.pages.news.single .title {
  font-size: 2.25rem;
}
.pages.news.single .date {
  font-size: 0.875rem;
}

/* =========================================================
   PÁGINAS PÚBLICAS
   Noticias - Noticia - Documentación
   ========================================================= */

main.pages {
  padding-top: 45px;
  padding-bottom: 45px;

  background:
    linear-gradient(
      rgba(255, 255, 255, 0.90),
      rgba(255, 255, 255, 0.90)
    ),
    url("../img/background-pages.jpg") no-repeat center / cover;
}

main.pages > .container {
  max-width: 1180px;
}


/* =========================================================
   Tarjeta principal
   ========================================================= */

main.pages .card {
  overflow: hidden;

  background-color: rgba(255, 255, 255, 0.97);

  border: 1px solid rgba(0, 90, 171, 0.14) !important;
  border-radius: 8px !important;

  box-shadow:
    0 10px 28px rgba(0, 90, 171, 0.14) !important;
}

main.pages .card-body {
  min-height: 300px;

  padding: 35px 45px !important;
}


/* =========================================================
   Breadcrumb
   ========================================================= */

main.pages .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  margin: 0 0 35px;
  padding: 12px 18px;

  color: #666666;

  background-color: rgba(0, 90, 171, 0.08);

  border: 1px solid rgba(0, 90, 171, 0.15);
  border-radius: 6px;

  font-size: 15px;
  font-weight: 500;
}

main.pages .breadcrumb-item {
  color: #666666;
}

main.pages .breadcrumb-item a {
  color: #005AAB;

  font-weight: 700;
  text-decoration: none;

  transition:
    color 0.2s ease;
}

main.pages .breadcrumb-item a:hover {
  color: #ED1C24;

  text-decoration: underline;
  text-underline-offset: 3px;
}

main.pages .breadcrumb-item + .breadcrumb-item::before {
  content: "\203A";

  color: #ED1C24;

  padding-right: 0.5rem;

  font-weight: 700;
}


/* =========================================================
   Títulos
   ========================================================= */

main.pages .page-title,
main.pages #main_noticia .title {
  margin: 0 0 35px;

  color: #005AAB !important;

  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

main.pages .page-title::after,
main.pages #main_noticia .title::after {
  content: "";

  display: block;

  width: 55px;
  height: 3px;

  margin-top: 10px;

  background-color: #ED1C24;

  border-radius: 2px;
}


/* =========================================================
   LISTADO DE NOTICIAS
   ========================================================= */

#feed_noticias {
  width: 100%;
}

#feed_noticias .noticia-item {
  width: 100%;

  padding: 22px 0;

  border-bottom:
    1px solid rgba(0, 90, 171, 0.16);

  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}

#feed_noticias .noticia-item:first-child {
  padding-top: 0;
}

#feed_noticias .noticia-item:last-child {
  border-bottom: 0;
}

#feed_noticias .noticia-item:hover {
  transform: translateX(10px);
}

#feed_noticias .title {
  margin: 0 0 8px;

  font-size: 1.4rem;
  font-weight: 600;
}

#feed_noticias .title a {
  color: #005AAB !important;

  text-decoration: none;

  transition:
    color 0.25s ease;
}

#feed_noticias .noticia-item:hover .title a {
  color: #ED1C24 !important;
}

#feed_noticias .date {
  margin: 0 0 12px;

  color: #777777 !important;

  font-size: 13px;
  font-weight: 500;
}

#feed_noticias .descr {
  color: #4f5962;

  font-size: 15px;
  line-height: 1.55;
}

#feed_noticias .descr a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   Sin noticias
   ========================================================= */

#feed_noticias .noticias-vacio {
  padding: 18px;

  color: #666666;

  background-color:
    rgba(0, 90, 171, 0.06);

  border:
    1px solid rgba(0, 90, 171, 0.16);

  border-radius: 6px;

  text-align: center;

  font-size: 16px;
}

#feed_noticias .noticias-error {
  color: #721c24;

  background-color:
    rgba(237, 28, 36, 0.08);

  border-color:
    rgba(237, 28, 36, 0.25);
}


/* =========================================================
   DETALLE DE NOTICIA
   ========================================================= */

#main_noticia .noticia-body {
  width: 100%;
}

#main_noticia .date {
  margin-bottom: 28px;

  color: #777777 !important;

  font-size: 14px;
  font-weight: 500;
}

#main_noticia .subtitle {
  margin-bottom: 22px;

  color: #005AAB;

  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

#main_noticia .descr {
  color: #3f4850;

  font-size: 16px;
  line-height: 1.7;
}

#main_noticia .descr p {
  margin-bottom: 18px;
}

#main_noticia .descr img {
  max-width: 100%;
  height: auto;
}


/* =========================================================
   Adjuntos
   ========================================================= */

.noticia-adjuntos {
  margin-top: 35px;
}

.noticia-adjuntos-title {
  margin-bottom: 15px;

  color: #005AAB;

  font-size: 18px;
  font-weight: 700;
}

.noticia-adjuntos-table {
  margin-bottom: 0;

  background-color: #ffffff;

  border:
    1px solid rgba(0, 90, 171, 0.15);
}

.noticia-adjuntos-table thead th {
  padding: 12px 15px;

  color: #ffffff;

  background-color: #005AAB;

  border-color: #005AAB;

  font-size: 14px;
  font-weight: 600;

  vertical-align: middle;
}

.noticia-adjuntos-table tbody td {
  padding: 14px 15px;

  color: #4f5962;

  border-color:
    rgba(0, 90, 171, 0.15);

  vertical-align: middle;
}

.noticia-adjuntos-table tbody tr {
  transition:
    background-color 0.2s ease;
}

.noticia-adjuntos-table tbody tr:hover {
  background-color:
    rgba(0, 90, 171, 0.06);
}

.adjunto-download {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  color: #005AAB;

  font-size: 12px;
  font-weight: 700;

  text-decoration: none;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.adjunto-download:hover {
  color: #ED1C24;

  text-decoration: none;

  transform: translateY(-1px);
}


/* =========================================================
   DOCUMENTACIÓN
   ========================================================= */

.pages.docs .doc-item {
  margin-bottom: 15px;

  overflow: hidden;

  background-color: #ffffff;

  border:
    1px solid rgba(0, 90, 171, 0.15);

  border-radius: 6px;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.pages.docs .doc-item:last-child {
  margin-bottom: 0;
}

.pages.docs .doc-item:hover {
  background-color:
    rgba(0, 90, 171, 0.05);

  border-color:
    #005AAB;

  box-shadow:
    0 4px 10px rgba(0, 90, 171, 0.12);

  transform: translateY(-1px);
}

.pages.docs .doc-item > a {
  display: block;

  color: inherit;
  text-decoration: none;
}

.pages.docs .doc-item-content {
  min-height: 80px;

  display: flex;
  align-items: center;

  padding: 16px 22px;
}

.pages.docs .doc-item-icon {
  width: 48px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
}

.pages.docs .doc-item-info {
  min-width: 0;
  flex: 1;
}

.pages.docs .doc-item-info h6 {
  margin: 0 0 5px;

  font-size: 15px;
  line-height: 1.4;
}

.pages.docs .doc-item .title {
  color: #005AAB;

  font-weight: 700;
}

.pages.docs .doc-item .date {
  color: #ED1C24;

  font-weight: 500;
}

.pages.docs .doc-item-filename {
  overflow-wrap: anywhere;

  color: #6c757d;

  font-size: 14px;
}

.pages.docs .doc-item-download {
  width: 40px;

  flex-shrink: 0;

  display: flex;
  justify-content: flex-end;

  margin-left: 15px;
}


/* =========================================================
   Sin documentos
   ========================================================= */

#listado_descargas .documentacion-vacio {
  padding: 18px;

  color: #666666;

  background-color:
    rgba(0, 90, 171, 0.06);

  border:
    1px solid rgba(0, 90, 171, 0.16);

  border-radius: 6px;

  font-size: 16px;
  text-align: center;
}

#listado_descargas .documentacion-error,
#main_noticia .noticia-error {
  padding: 18px;

  color: #721c24;

  background-color:
    rgba(237, 28, 36, 0.08);

  border:
    1px solid rgba(237, 28, 36, 0.25);

  border-radius: 6px;

  text-align: center;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {

  main.pages {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  main.pages .card-body {
    min-height: 250px;

    padding:
      24px 20px !important;
  }

  main.pages .breadcrumb {
    margin-bottom: 25px;

    padding: 10px 14px;

    font-size: 14px;
  }

  main.pages .page-title,
  main.pages #main_noticia .title {
    font-size: 1.75rem;
  }

  #feed_noticias .title {
    font-size: 1.2rem;
  }

  #feed_noticias .noticia-item:hover {
    transform: none;
  }

  .pages.docs .doc-item-content {
    padding: 14px 16px;
  }

  .noticia-adjuntos-table {
    min-width: 600px;
  }
}
