@import "custom-bootstrap.css";

.color-primary {
  color: var(--bs-primary);
}
.color-secondary {
  color: var(--bs-secondary);
}
.bg-gray-200 {
  background-color: var(--bs-gray-200);
}
.btn-link {
  &.color-secondary {
    &:hover {
      color: var(--bs-primary);
    }
  }
}
.navbar {
  &.navbar-expand-xl{
      border-bottom: solid 8px var(--bs-gray-300);
    }
  .navbar-brand {
    display: flex;
    align-items: flex-end;
    @media (max-width: 767px) {
      margin-top: 0;
    }
    .img-fluid {
      margin-top: -4rem;
      @media (max-width: 767px) {
        margin-top: -1rem;
      }
      &:first-child {
        @media (max-width: 767px) {
          max-width: 100px;
        }
      }
      &:last-child {
        @media (max-width: 767px) {
          width: 180px
        }
      }
    }
  }
  .navbar-toggler {
    color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    margin-left: auto;
  }
  .navbar-top {
    .nav-item {
      margin-left: .5rem;
      .nav-link {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-left: var(--bs-navbar-nav-link-padding-x);
        padding-right: var(--bs-navbar-nav-link-padding-x);
        color: var(--bs-secondary);
        font-weight: bold;
        &.rounded-pill {
          height: 45px;
          padding-left: .8rem;
          padding-right: .8rem;
          .text {
            width: 90px;
            display: flex;
            line-height: 16px;
            text-align: center;
          }
          & b {
            color: var(--bs-primary);
          }
          .fa-user {
            padding: 3px;
            font-size: 1.2rem;
            &.fa-residente {
              color: var(--bs-yellow);
            }
          }
        }
        &.rounded-circle {
          width: 45px;
          height: 45px;
          .fa-solid {
            font-size: 1.2rem;
          }
        }
        &:hover {
          background-color: var(--bs-warning-border-subtle);
        }
        &.dropdown-toggle::after {
          display: none;
        }
      }
    }
    .dropdown-menu {
      border-color: var(--bs-secondary);
      box-shadow: -1px 0px 3px 0px #686868;
      position: absolute;
    }
  }
  .navbar-collapse {
    .nav-link {
      color: var(--bs-primary);
      border-bottom: solid 2px white;
      &:hover {
        background-color:var(--bs-gray-100);
      }
      &.active{
        border-bottom: solid 2px var(--bs-secondary);
      }
      @media (max-width: 499px) {
        font-weight: bold;
        font-size: 18px;
        padding-inline: .5rem;
        background-color: #f9f9f9;
        border-radius: .5rem;
      }
    }
  }
}


.carousel {
  .carousel-back {
    width: 100%;
    @media (max-width: 767px) {
      width: auto;
      max-height: 350px;
    }
  }
  .carousel-caption {
    top: calc(50% - 80px);
    bottom: auto;
    @media (max-width: 1026px) {
      top: calc(50% - 95px);
    }
    @media (max-width: 767px) {
      top: calc(50% - 125px);
    }
  }
  &#carouselCaptions {
    @media (max-width: 767px) {
      display: none;
    }
    .carousel-caption {
      display: none !important;
    }
    .carousel-back {
      width: 100%;
    }
  }
}

.card {
  height: 100%;
  .card-header {
    padding: 0;
    .card-header-title {
      background: var(--bs-linear);
      color: var(--bs-white);
      padding: 0.5rem 1rem;
      text-align: center;
      margin: 0;
      text-transform: uppercase;
    }
  }
  .card-body {
    text-align: center;
    background-color: var(--bs-gray-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    .btn-primary {
    margin-top: 2rem;
    }
  }
  &.card-news,
  &.card-foros{
    .card-header {
      .link {
        text-decoration: none;
        &:hover {
          opacity: .8;
        }
      }
    }
    .card-body {
      justify-content: flex-start;
      max-height: 400px;
      overflow-y: auto;
      .card-block {
        margin-bottom: 3rem;
        width: 100%;
        &:last-child {
          margin-bottom: 1rem;
        }
      }
      .card-title {
        * {
          max-width: 100%;
        }
      }
    }
  }
  &.card-modify {
    margin-bottom: 3rem;
    height: calc(100% - 3rem);
    .card-body {
      background-color: var(--bs-white);
      text-align: left;
      padding: 1rem 0;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-start;
      .card-title {
        font-weight: 600;
        color: var(--bs-primary);

        border-bottom: solid 2px var(--bs-secondary);
      }
      .btn-primary {
        margin-top: 1rem;
      }
    }
    @media (max-width: 499px) {
      border: solid 2px #f08d37;
      .card-body {
        padding: 1rem;
      }
    }
  }
  &.card-formacion {
    .card-body {
      .card-title {
        color: var(--bs-secondary);
        border: none;
        padding-bottom: 0;
      }
      .card-subtitle {
        color: var(--bs-secondary);
        border-bottom: solid 2px var(--bs-secondary);
        padding-bottom: .3rem;
        font-size: .8rem;
        margin-top: 0;
      }
      .card-text {
        margin-top: 1rem;
      }
    }
  }
  &.card-investigacion {
    .card-body {
      .card-title {
        color: var(--bs-cyan);
        border-bottom: solid 2px var(--bs-secondary);
        padding-bottom: .3rem;
      }
      .card-subtitle {
        color: var(--bs-secondary);
        border-bottom: solid 2px var(--bs-secondary);
        padding-bottom: .3rem;
        font-size: .8rem;
        margin-top: 0;
        margin-bottom: 0.5rem;
      }
    }
  }
}

.bg-map {
  background-image: url(../img/bg/bg-mapa.jpg);
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
}

.table-foro {
  vertical-align: middle;
  .small {
    font-size: .675em;
  }
}
.table-foro thead tr th {
  padding: 1rem 1rem;
  border-top: solid 3px var(--bs-secondary);
  border-bottom: solid 8px var(--bs-warning-border-subtle);
}
.tema-block{
  .tema-response {
    border-top: solid 1px var(--bs-secondary);
    border-bottom: solid 4px var(--bs-warning-border-subtle);
    margin-bottom: 2rem;
  }
  .small {
    font-size: .775em;
  }
}
h2 > a {
  text-decoration: none;
}
h2 > a:hover {
  opacity: .7;
  text-decoration: underline;
}

section {
  &.py {
    padding-top: 6rem;
    padding-bottom: 8rem;
    @media (max-width: 499px) {
      padding-top: 2rem;
      padding-bottom: 4rem;
    }
  }

  &.header {
    .carousel-caption {
      max-width: 500px;
      right: 5%;
      left: auto;
      top: calc(50% - 90px);
      @media (max-width: 1199px) {
        max-width: 600px;
        top: calc(50% - 70px);
        right: 2%;
      }
      @media (max-width: 768px) {
        max-width: 70%;
        top: calc(50% - 50px);
        right: 2%;
      }
      @media (max-width: 499px) {
        max-width: 100%;
        top: calc(50% - 80px);
        right: auto;
        padding: 1rem;
      }
      .text {
        @media (max-width: 1199px) {
          font-size: calc(1rem + .6vw);
        }
        @media (max-width: 499px) {
          font-size: calc(1.2rem + .6vw);
        }
      }
    }
    .carousel-back {
      width: 100%;
      @media (max-width: 768px) {
        width: 150%;
        margin-left: -30%;
        max-height: 350px;
      }
      @media (max-width: 499px) {
        width: 400%;
        margin-left: -100%;
        max-height: 350px;
      }
    }
  }
}

.nav-formacion {
  .btn-primary {
    --bs-btn-padding-x: 1.4rem;
    --bs-btn-padding-y: 0.375rem;
     width: fit-content;

    &.active {
      background-color: var(--bs-secondary);
      border-color: var(--bs-secondary);
    }
    .img-ico {
      margin: -0.2rem 0.5rem 0 0;
    }
  }
}

footer {
  padding: 3rem 0 0;
  margin: 3rem 0 0;
}


/* .carousel-inner .carousel-item{
	max-height:330px;
} */


/* NUEVO: 22/01/2024*/
.bg-new {
  background-image: url(../img/bg/home-bg-noticias.jpg);
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;

}
.bg-new p.text-white br {
  display: none;
}
.text-justify {
  text-align: justify !important;
}
.pagination {
  .page-item {
    .page-link {
      color: var(--bs-primary);
    }
    &.active {
      .page-link {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
        color: var(--bs-white);
      }
    }
  }
}
.block-rrss {
  .btn-rrss {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--bs-primary);
    text-decoration: none;
    border-radius: 50%;
    &:hover {
      background-color: var(--bs-secondary);
    }
    .fa {
      color: var(--bs-white);
    }
  }
}
/* FIN NUEVO: 22/01/2024*/
