/* *:focus {
  box-shadow: 0px 0px 3px 2px var(--color-azul);
} */
/*============ 
==== Padding main =====*/
.observatorio-main {
  margin-top: 5rem;
  padding-bottom: 5rem;
}

/*============ 
==== Author =====*/
.content-autor.author{
  padding: 10rem 0;
  
  .img-author {
    display: flex;
    justify-content: end;
    align-items: center;
    
    img {
      width: 40%;
      border-radius: 50%;
      margin-right: 3rem;

    }
  }
}

/*============ 
==== Header Páginas Revista =====*/
.header-hero {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding-top: 8rem;
  padding-bottom: 8rem;

  .content-hero {
    background-color: var(--color-negro-ddhub);
    padding: 30px 40px 40px 40px;

    h1,
    p {
      text-align: center;
      color: var(--color-primary-light);
    }

    .link-hero {
      color: var(--color-primary-light);
      border: var(--button-border) var(--color-primary-light);
    }
  }
}

/*============ 
==== Tag tipo =====*/
.tag-type {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
}

/*============ 
==== Links noticias =====*/
.art-link {
  font-style: italic;
  font-weight: 700;
  width: max-content;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
  }
}

.art-link.autor {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color-secondary-dark);

  &::before {
    background-color: var(--color-secondary-dark);
  }

  i {
    transition: all 0.3s ease;
  }

  &:hover {
    i {
      margin-left: 1rem;
    }
  }
}

/*============ 
==== Pag Hero =====*/
.pag-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.8);
  height: 75vh;

  .row {
    backdrop-filter: brightness(0.5);
  }

  img {
    width: 30%;
  }

  h1 {
    color: #ffff;
  }
}
/*============ 
==== Pag Nav =====*/
.pag-nav {
  background-color: var(--color-primary-dark);
  padding: 3rem 0;

  .item {
    display: flex;
    justify-content: center;

    a {
      color: var(--color-primary-light);
      font-weight: 700;
      font-size: var(--size-body);
      padding: 1rem;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;

      &:hover {
        color: var(--color-principal);
      }
    }
  }

  .item-active {
    background-color: var(--color-principal);
    color: var(--color-primary-dark) !important;
  }
}

/*============ 
==== buttons =====*/
.button-ddhub {
  display: flex;
  align-items: center;
  border-radius: var(--button-radius);
  padding: var(--button-padding);
  font-size: var(--button-font);
  font-weight: var(--button-weight);
  transition: var(--button-transition);
  gap: var(--button-gap);
  width: max-content;

  &:hover {
    transform: var(--button-transform);
  }

  /* &:focus {
    transform: var(--button-transform);
    box-shadow: 0px 0px 3px 2px var(--color-azul);
  } */

  i {
    display: flex;
    align-items: center;
  }

  i::before {
    font-weight: 700 !important;
    font-size: 18px;
  }
}

/*============ 
==== Breadcrumbs =====*/
.item-breadcrumb {
  text-decoration: underline;
  font-weight: 700;
  font-family: var(--fonts-paragraph);
  color: var(--color-primary-dark);
  text-underline-offset: 4px;

  &:visited {
    color: var(--color-primary-dark);
  }
}

/*============ 
==== Paginación =====*/
.pagination {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0 0;
  padding: 0;
  --bs-pagination-border-color: var(--color-primary-dark);
  --bs-pagination-border-radius: 7px;

  .page-link {
    background-color: transparent;
    color: var(--color-primary-dark);
    padding: 0.5rem 1rem;

    &:hover {
      border-color: var(--color-primary-dark);
    }
  }

  .current {
    color: #ffff;
    background-color: var(--color-primary-dark);
  }
}

/*============ 
==== Cards =====*/
.card-ddhub {
  height: max-content;

  .box-img-card {
    width: 100%;
    height: 15rem;

    a {
      display: flex;
      height: 100%;
      width: 100%;
    }

    img {
      width: 100%;
      object-fit: cover;
    }
  }

  figcaption {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    gap: 16px;

    .art-text-small {
      font-size: var(--size-small);
    }

    .art-link {
      color: var(--color-secondary-dark);

      &::before {
        background-color: var(--color-warm-gray);
      }
    }
  }
}

.title-card {
  color: var(--color-azul);
  display: flex;

  &:hover {
    text-decoration: underline;
  }

  /* &:focus {
    outline: solid 2px var(--color-azul);
    background-color: var(--color-beige);
    display: flex;
  } */

  &:visited {
    color: var(--color-azul);
  }
}

.card-autor {
  img {
    height: 100%;
  }
}

/*============ 
==== CONTACTO =====*/
.contacto,
.contacto-lab {
  padding: 10rem 0;
  background-color: #ebe6d6;
  position: relative;

  .img-contacto {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
  }

  .button-ddhub {
    border: var(--button-border) var(--color-primary-dark);
    color: var(--color-primary-dark);

    @media (width < 576px) {
      width: 100%;
      justify-content: space-between;
    }
  }
}

/*============ 
==== Laboratorios =====*/
.laboratorios {
  padding: 10rem 0;
  background-color: #ebe6d6;

  .button-ddhub {
    border: var(--button-border) var(--color-primary-dark);
    color: var(--color-primary-dark);

    @media (width < 576px) {
      width: 100%;
      justify-content: space-between;
    }
  }
}

/*============ 
==== Objetivos =====*/
.col-obj {
  padding: 0 3rem;
  position: relative;

  &::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 100%;
    background-color: var(--color-verde-ddhub);
    top: 0;
    left: 1rem;
  }

  h3 {
    margin-bottom: 2rem;
  }

  @media (width < 768px) {
    margin-top: 2rem;
  }
}

/*============ 
==== Filtros y Preload =====*/
.busqueda-filtros {
  padding-bottom: 5rem;
  padding-top: 5rem;

  .filtros-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary-dark);
    padding: 1rem;
    border: solid 2px var(--color-primary-dark);
    width: 100%;
    transition: all ease 0.3s;

    i {
      font-size: 1.5rem;
      font-weight: 700;
      transition: transform 0.3s ease;
    }
  }

  .filtros-btn[aria-expanded="true"] {
    border-bottom: none;

    i {
      transform: rotate(180deg);
    }
  }

  .form-mobile {
    border-top: none;
  }

  form {
    padding: 2rem;
    border: solid 2px var(--color-primary-dark);
    /* position: sticky;
    top: 5rem; */

    select {
      border: solid 1px var(--color-primary-dark);
      cursor: pointer;
    }

    label {
      font-family: var(--fonts-paragraph);
      margin-bottom: 1rem;
    }

    .button-ddhub {
      background: transparent;
      text-transform: uppercase;
      border: var(--button-border) var(--color-primary-dark);
    }

    #btn-limpiar {
      font-size: small;
      padding: 0.5rem;
    }
  }
}

/* Preloader */
#proyectos-aplica,
#articulos-obs,
#proyectos-idi,
#proyectos-estrategicos {
  min-height: 758px;
  position: relative;
}

.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation: opacity 1s ease;
}

@keyframes opacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.5;
  }
}

.loader {
  width: 48px;
  height: 48px;
  display: inline-block;
  position: relative;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loader::after,
.loader::before {
  content: "";
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-beige);
  position: absolute;
  left: 0;
  top: 0;
  animation: animloader 1.2s ease-in-out infinite;
  will-change: transform, opacity;
}

.loader::after {
  animation-delay: 0.6s;
}

@keyframes animloader {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/*============ 
==== NAV =====*/
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;

  .logo-nav-mobile {
    display: none;
    width: 10rem;
  }

  .logo-black {
    filter: brightness(0) !important;
  }

  .logo-header.logo-primary {
    filter: brightness(0) invert(1) !important;
  }
}

.nav-secondary {
  background-color: #e1e0dd;

  .navbar-nav {
    gap: 0.5rem;

    .nav-link {
      color: #000;
      font-size: 0.6875rem;
      padding: 0.2rem 0.5rem;
      position: relative;
      display: flex;
      align-items: center;
      text-transform: uppercase;
      font-family: var(--fonts-paragraph);
    }
  }
}

.btn-nav-icon1 a::before,
.btn-nav-icon2 a::before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 1em;
  height: 1em;
  left: -7px;
}

.btn-nav-icon1 a::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 10c0 6-9 13-9 13S3 16 3 10a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")
    no-repeat center;
}

.btn-nav-icon2 a::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E")
    no-repeat center;
}

.btn-nav-border a {
  border: solid 1px rgb(0 0 0 / 70%);
  color: rgb(0 0 0 / 70%) !important;
  border-radius: 100px;
  font-weight: 600;
  padding: 6px 40px 6px 12px !important;

  &::after {
    content: "";
    display: inline-block;
    position: absolute;
    width: 1em;
    height: 1em;
    right: 9px;
    font-size: 1.4rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E")
      no-repeat center;
    color: rgb(0 0 0 / 30%);
  }

  &:hover {
    color: #000 !important;

    &::after {
      color: #000;
    }
  }

  &:focus {
    color: #fff !important;
    background-color: #000;

    &::after {
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffffff' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E")
        no-repeat center;
    }
  }
}

.btn-nav-bg a {
  background-color: #81db21;
  border: rgba(97, 187, 1, 1);
  color: #ffff !important;
  border-radius: 100px;
  padding: 0.5rem 0.5rem !important;
  font-weight: 600;

  &:hover {
    box-shadow: 0px 0px 6px 2px rgba(97, 187, 1, 0.5);
  }
}

/* Nav primary */
.nav-primary {
  justify-content: space-between;
  height: 67px;

  .bi.bi-chevron-down {
    display: none;
  }

  .logo-nav {
    margin: 0 3.5rem 0 1rem;
    display: flex;
    align-items: center;

    img {
      width: 100%;
    }

    .logo-primary {
      width: 40% !important;
      padding: 0.5rem 0;
    }
    .logo-scroll {
      width: 60%;
      padding: 0.5rem 0;
    }
  }

  .navbar-nav {
    background-color: #000;
    position: relative;
    gap: 2rem;

    &::before {
      content: "";
      width: 0;
      height: 0;
      border-top: 67px solid #000;
      border-left: 60px solid transparent;
      position: absolute;
      left: -60px;
      top: 0px;
    }

    .dropdown {
      display: flex;
      align-items: center;
    }

    .nav-link {
      color: #fff;
      text-transform: uppercase;
      font-family: var(--fonts-paragraph);
      font-size: 1rem;
      font-weight: 400;
      padding: 0;

      &:hover {
        color: #919191 !important;
      }
    }

    .nav-link.show {
      color: #919191;
    }

    .dropdown-menu {
      border-radius: 0px;
      background-color: #000;

      .dropdown-item {
        color: #fff;
        font-family: var(--fonts-paragraph);
        font-size: var(--size-body);

        &:hover {
          color: #000;
        }

        &:focus {
          background-color: #fff;
          color: #000;
        }
      }

      .co-destacado {
        color: var(--color-primary-duoc);
      }
    }

    .nav-destacado {
      background-color: var(--color-primary-duoc);
      margin-left: 50px;
      padding-right: 1.5rem;
      position: relative;

      &::before {
        content: "";
        width: 0;
        height: 0;
        border-top: 67px solid var(--color-primary-duoc);
        border-left: 60px solid transparent;
        position: absolute;
        left: -60px;
        top: 0px;
      }

      .nav-link {
        color: #000;
        font-weight: 600;

        &:hover {
          color: #000 !important;
        }
      }

      .nav-link.show {
        color: #000;
      }

      .dropdown-menu {
        left: auto;
        right: 0;

        .dropdown-item {
          padding-right: 3rem;
          font-family: var(--fonts-paragraph);

          &::before {
            display: none;
          }
        }
      }

      .dropdown-menu .destacado {
        background-color: var(--color-primary-duoc);

        .dropdown-item {
          color: #000;
          font-weight: 700;
        }
      }
    }
  }
}

.dropdown-menu[data-bs-popper] {
  top: 59px;
}

.dropdown-item::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -2px;
  margin-right: 0.5em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffffff' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='13 17 18 12 13 7'/%3E%3Cpolyline points='6 17 11 12 6 7'/%3E%3C/svg%3E")
    no-repeat center;
}

.drop-submenu::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 1px;
  content: "";
  border-top: 0.3em solid transparent;
  border-right: 0;
  border-bottom: 0.3em solid transparent;
  border-left: 0.3em solid;
}

.sub-menu {
  list-style: none;
  padding: 0;

  .dropdown-item::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffffff' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M15 10l5 5-5 5'/%3E%3Cpath d='M4 4v7a4 4 0 0 0 4 4h12'/%3E%3C/svg%3E")
      no-repeat center;
  }
}

.navbar-toggler {
  border: none;

  &:focus {
    box-shadow: 1 1 1 var(--color-primary-duoc);
  }

  .navbar-toggler-icon {
    background: none;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }

  .navbar-toggler-icon span {
    width: 30px;
    height: 2px;
    margin: 4px 0;
    background: white;
    transition: all 0.4s ease-in-out;
  }
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon .a {
  transform: rotate(45deg);
  transform-origin: 1px;
  transition: all 0.4s ease-in-out;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon .b {
  transform: scale(0);
  transition: all 0.4s ease-in-out;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon .c {
  transform: rotate(-45deg);
  transform-origin: 1px;
  transition: all 0.4s ease-in-out;
}

/* Nav primary */

/*============ 
==== FOOTER =====*/
footer {
  background-color: #1a1a1a;
  padding: 20px 40px;
  position: relative;
  z-index: 1;

  .col {
    padding: 20px 20px;
  }

  .box-title {
    border-bottom: 1px solid var(--color-primary-duoc);
    margin-bottom: 1rem;
  }

  .title-footer {
    color: var(--color-primary-duoc);
    border-bottom: 7px solid var(--color-primary-duoc);
    width: max-content;
    margin: 0;
    padding-bottom: 0.4rem;
    font-weight: 300;
    font-family: var(--fonts-heading);
    font-size: var(--size-h3);
  }

  section {
    margin-bottom: 4rem;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-left: 0;
    padding-left: 0;

    a {
      color: #fff;
      transition: opacity 200ms ease;
      text-transform: uppercase;
      font-size: 0.8rem;

      &:focus {
        color: #ffff;
        box-shadow: 0px 0px 3px 2px var(--color-azul);
      }

      &:visited {
        color: #fff;
      }

      &:hover {
        color: #fff;
      }
    }
  }

  .contain-img-footer {
    border-top: solid 1px #fff;
    padding-top: 20px;

    .img-footer-1 {
      width: 40%;
      object-fit: cover;
    }

    .img-footer-2 {
      width: 65%;
      object-fit: contain;
    }
  }

  .icon-footer {
    padding-right: 0.5rem;
  }
}

footer .column-1 {
  color: var(--color-primary-duoc-light);

  .btn.btn-primary.btn-footer {
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    border-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    margin: 2rem 0;
    transition: all 0.3s ease;

    &:hover {
      border-color: rgba(255, 255, 255, 1) !important;
      color: rgba(255, 255, 255, 1);
      opacity: 1;
      background: rgba(0, 0, 0, 0.2) !important;
      box-shadow: 0px 10px 7px rgba(0, 0, 0, 1);
      transform: translateY(-10px);
      background-color: rgba(0, 0, 0, 0.2) !important;
    }
  }

  section {
    border-bottom: 1px solid #fff;
    margin: 0 10rem 0 0;

    h3,
    h4,
    h5 {
      font-family: var(--fonts-paragraph);
      color: #fff;
    }

    .number-footer {
      text-decoration: underline;
      color: #fff;
      font-weight: 600;
    }

    ul {
      gap: 0;
    }

    p {
      margin: 0;
      color: #fff;
    }
  }
}

.box-rrss {
    border-bottom: none !important;
    padding-bottom: 20px;

    .dc-icon-footer svg {
      color: var(--color-primary-duoc-light);
      color: #ffff;
      transition: all 300ms ease-in;
    }

    .dc-icon-footer:hover {
      opacity: 0.3;
    }
}

#menu-footer-rrss-de-la-escuela {
  @media (width < 1200px) {
    margin-top: 3rem;
  }
}

.footer-toggle {
  transition: transform 0.3s ease;
  background-color: transparent;
  border: none;
  border-bottom: solid 1px var(--color-primary-duoc);
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;

  .title-footer {
    color: var(--color-primary-duoc);
    border-bottom: 7px solid var(--color-primary-duoc);
    width: max-content;
    margin: 0;
    padding-bottom: 0.4rem;
    font-weight: 300;
  }

  .chevron-icon {
    stroke: var(--color-primary-duoc);
  }
}

.footer-toggle.active-toggle {
  transform: translateY(-10px);
}

.chevron-icon {
  transition: transform 0.3s ease;
}

.footer-toggle.active-toggle .chevron-icon {
  transform: rotate(180deg);
}

/*============ 
==== QUERIES =====*/
@media ((min-width: 1400px)) {
  footer .container {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (width < 1200px) {
  .navbar-brand-container {
    background-color: #1a1a1a;
    width: 100%;
    display: flex;
    justify-content: space-between;

    .logo-nav-mobile {
      display: block;
      padding: 1rem;
      min-width: 10rem;
      max-width: 15rem;
    }
  }

  .logo-nav {
    display: none !important;
  }

  .navbar-collapse {
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 3.2rem;

    .nav-secondary {
      padding: 1rem;
    }

    .nav-secondary .navbar-nav .nav-item {
      width: 100%;
      display: flex;
    }

    .btn-nav-icon1,
    .btn-nav-icon2 {
      padding-left: 1rem;
    }

    .nav-primary {
      height: auto;
    }

    .nav-primary .navbar-nav {
      width: 100%;
      padding: 1rem;
      margin: 0 !important;
      gap: 0.5rem;

      .dropdown {
        flex-direction: column;

        .nav-link {
          width: 100%;
          display: flex;
          justify-content: start;
          align-items: center;
        }

        .dropdown-menu {
          border: none;
          width: 100%;
          flex-direction: column;
        }
      }

      .nav-destacado {
        padding: 0;
        margin: 0;

        .nav-link {
          padding-left: 1rem;
        }

        &::before {
          display: none;
        }
      }
    }
  }

  footer .column-1 section {
    margin: 0;
  }
}

@media (width < 768px) {
  footer .contain-img-footer {
    .img-footer-1 {
      width: 95%;
      object-fit: cover;
    }

    .img-footer-2 {
      width: 100%;
      object-fit: contain;
    }
  }
}
