/* **************  Variables  ************ */

:root {
    --be-color-1: #183A68;
    --be-color-1-darken: #1B3250;
    --be-color-rgb-1: 24, 58, 104;
    --be-color-2: #ffffff;
    --be-color-2-darken: #dddddd;
    --be-color-3: #999999;
    --be-color-4: #333333;
    --be-color-5: #449d44;
    --be-color-6: #59aadb;
    --be-color-rgb-6: 105, 220, 247;
    --be-color-7: #466186;
    --be-color-8: #214d86;

    --soft-white: #fcfcfc;
    --primary: #0072bb;
    --accent: #a7a7a7;
}

/* **************  Generales  *************** */

.image-responsive {
    height: auto;
    width: 100%;
}

.capital-letter::first-letter {
    text-transform: uppercase;
}

.bg-be-1 {
    background-color: var(--be-color-1);
}

.bg-be-2 {
    background-color: var(--be-color-2);
}

.bg-be-3,
.bg-be-3:focus {
    background-color: var(--be-color-3);
}

.bg-be-4 {
    background-color: var(--be-color-4);
}

.bg-be-5 {
    background-color: var(--be-color-5);
}

.bg-be-6 {
    background-color: var(--be-color-6) !important;
}

.bg-be-7 {
    background-color: var(--be-color-7) !important;
}

.bg-be-8 {
    background-color: var(--be-color-8) !important;
}

.bg-soft-white {
    background-color: var(--soft-white);
}

.bg-primary {
    background-color: var(--primary);
}

.color-primary {
    color: var(--primary);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-be-shadow-1 {
    background-color: rgba(var(--be-color-rgb-1), 0.6);
}

.border-be-1 {
    border-color: var(--be-color-1) !important;
}

.border-be-2 {
    border-color: var(--be-color-2) !important;
}

.border-be-3 {
    border-color: var(--be-color-3) !important;
}

.color-be-1,
.color-be-1:focus,
.color-be-1:hover {
    color: var(--be-color-1);
}

.color-be-2,
.color-be-2:focus,
.color-be-2:hover {
    color: var(--be-color-2);
}

.color-be-3 {
    color: var(--be-color-3);
}

.color-be-4,
.color-be-4:focus,
.color-be-4:hover {
    color: var(--be-color-4);
}

.color-be-6 {
    color: var(--be-color-6);
}

.caret-off::before {
    display: none;
}

.caret-off::after {
    display: none;
}


/* **************  Bootstrap  *************** */

.btn-primary {
    background-color: var(--be-color-1);
    border-color: var(--be-color-1);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--be-color-1-darken);
    border-color: var(--be-color-1-darken);
}


/* **************  Wrap  *************** */

body,
html {
    font-family: 'Asap';
    height: 100%;
    width: 100%;
    background-color: var(--soft-white);
}

#wrap {
    height: auto;
    min-height: calc(100vh - 50px);
}

footer {
    min-height: 50px;
}

footer h4 {
    text-transform: uppercase;
}

.footer-brand img {
    max-height: 80px;
    width: auto;
}

.footer-link-item:hover {
    text-decoration: underline;
    color: var(--accent);
}

.social-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 150px;
}

.social-item i {
    width: 30px;
}

/* **************  Header/Navbar  ************ */

.header-section {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
}

.navbar-dark .navbar-toggler {
    border-color: var(--be-color-2);
    color: var(--be-color-2);
}

.navbar,
.secondary-bar {
    transition: background-color 0.3s;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.dropdown-menu[data-bs-popper] {
    margin-top: 0.23rem;
}

.dropdown-menu-dark .dropdown-item:active {
    background-color: var(--be-color-1-darken);
}

.navbar-dark .navbar-nav .nav-link,
.dropdown-menu-dark .dropdown-item,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--be-color-2);
}

.navbar-brand img {
    height: 80px;
}

/* .search-form input {
    border-radius: 20px 0 0 20px !important;
}

.search-form button {
    border-radius: 0 20px 20px 0;
} */

.search-form {
    display: flex;
    align-items: center;
    justify-content: end;
}

.secondary-bar .input-group {
    min-height: 42px;
}

.search-bar {
    border-radius: 30px;
    /* min-width: 150px;  */
    max-width: 270px;
    /* width: 100px; */
    background-color: var(--be-color-2);
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.search-input:focus,
.search-input:active {
    box-shadow: none;
}

/* **************  Content  ************ */

.post-date {
    font-size: .85rem;
}

/* estilos para el boton por defecto de paginas */
.be-button-link {

    /* border-width: 4px;
    border-style: solid;
    border-color: #d6d6d6;*/
    border-radius: 18px;  

    background: linear-gradient(135deg, var(--be-color-1) 60%, var(--be-color-8));

    height: 90px;
    padding: 0.8rem 1.5rem; 
    font-weight: bold;
    font-size: 20px;
    

    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    transition: all 0.3s ease;
    transform: translateY(0);
    
    min-height: 60px;
    line-height: 1.4;
}

.be-button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #bbb;
    text-decoration: none;
}

.be-button-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.be-button-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.be-button-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.be-button-link:active::before {
    width: 500px;
    height: 500px;
}


.carousel-inner {
    background: black;
}

.carousel-news,
.carousel-item-news {
    height: 100% !important;
}

.carousel-item {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.6;
}

.carousel-control i {
    font-size: 3rem;
}

.carousel-indicators {
    z-index: 10;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--be-color-2);
    border: 1px solid var(--be-color-2);
    height: 25px;
    width: 25px;
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--be-color-6);
}

.vertical-slider .slider-content {
    display: flex;
    left: 0;
    margin-left: 15%;
    margin-right: 15%;
    right: 0;
    top: 2%;
    z-index: 2;
}

.background-image {
    background-image: url('/images/background/background.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}


/* **************  Editor  ************ */

.text-tiny {
    font-size: .7em;
}

.text-small {
    font-size: .85em;
}

.text-big {
    font-size: 1.4em;
}

.text-huge {
    font-size: 1.8em;
}

figure {
    max-width: 100%;
}

figure.image img {
    width: 100%;
}

figure.table,
figure.image {
    margin: 0 auto 1rem auto;
}

figure.image.image-style-align-left {
    float: left;
    margin-right: 15px;
}

figure.image.image-style-align-right {
    float: right;
    margin-left: 15px;
}

figure.table table {
    font-size: 1.2rem;
    width: 100%;
}

figure.table table p {
    margin: 0;
}

figure.table table td {
    border: 1px solid #bfbfbf;
}

figure.table table th {
    background: #d9d9d9;
    border: 1px solid #bfbfbf;
    font-size: 1.4rem;
    font-weight: 600;
}

/* **************  Hero  ************ */
.hero-title,
.hero-subtitle {
    font-size: 80px;
    font-weight: 700;
    color: var(--be-color-2);
}

.hero-social i {
    color: var(--be-color-2);
    font-size: 1.5rem;
    transition: color .2s;
}

.hero-social:hover i {
    color: var(--be-color-6);
}

/* **************  Home  ************ */

.home-slider-navbar {
    top: 8%;
    display: flex;
    justify-content: center;
    left: 0;
    margin-bottom: 1rem;
    margin-left: 15%;
    margin-right: 15%;
    right: 0;
    padding: 0;
    z-index: 2;
}

.home-slider-footer {
    max-height: 600px;
    z-index: 2;
}

.home-slider-footer img {
    max-height: 140px;
    max-width: 100%;
    width: auto;
}

.home-slider-footer .__btn {
    transition: transform .2s;
}

.home-slider-footer .__btn:hover {
    transform: scale(1.09);
}

#home-slider .carousel-item {
    min-height: max(200px, 20vw);
}

#home-slider .carousel-indicators {
    bottom: min(15vw, 160px);
}

.home-post-item {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: 250px;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 40%;
    bottom: auto;
    margin: 0 30px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    color: #fff;
    text-align: center;
    background: #fff;
    border: 0;
    /* opacity: .5; */
    transition: opacity .15s ease;
    border-radius: 50%;
}

#home-posts-slider .carousel-caption {
    bottom: 0;
    left: 0;
    height: 40%;
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 50%,rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.01) 100%);
}

#home-posts-slider .carousel-item:hover .home-post-item {
    /* zoom ligero al background imagen */
    transform: scale(1.07);
    will-change: transform;
}

#home-posts-slider .home-post-item {
    transition: all 0.4s cubic-bezier(.25, .8, .25, 1);
    backface-visibility: hidden;
}

#home-posts-slider .carousel-item {
    opacity: 1;
}

.outstanding-title-card,
.outstanding-date-card,
.outstanding-excerpt-card {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.outstanding-title-card {
    font-size: 2.5rem;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.outstanding-dependencies {
    font-size: 1.2rem;
    flex-wrap: none;
}

.calendar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    border: #bfbfbf 1px solid;
    width: 32px;
    height: 32px;
}

.outstanding-excerpt-card,
.card-title {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* number of lines to show */
    -webkit-box-orient: vertical;
}

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

.posts-btn {
    background-color: var(--be-color-6);
    color: var(--be-color-2);
    font-weight: 700;
    margin: 3rem 0;
    padding: 0 1.5rem;
    border-radius: 30px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.posts-btn:hover {
    background-color: var(--be-color-1);
    color: var(--be-color-2);
}

/* **************  Tourism  ************ */

.last-posts {
    /* Noticias recientes en un srcoll horizontal */
    overflow-y: none;
    display: flex;
    flex-flow: row nowrap;
    max-width: fit-content;
    padding: .75rem .75rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--be-color-3) transparent;
}

.last-posts::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.last-posts::-webkit-scrollbar-thumb {
    background-color: var(--be-color-3);
    border-radius: 10px;
}

.last-posts::-webkit-scrollbar-track {
    background-color: transparent;
}

.last-post-card {
    border-radius: 1.5rem;
    height: 460px;
    min-width: 255px;
    max-width: 300px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.last-post-card:hover {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 8px 2px;
    transform: scale(1.02);
}

.last-post h6 {
    text-decoration: none;
    color: var(--be-color-1);
    font-weight: 600;
    transition: color 0.1s ease-in-out;
}

.last-post:hover h6 {
    color: var(--be-color-6);
    text-decoration: underline;
}

.last-post-title {
    max-width: 50%;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.last-post-image {
    width: 140px;
    border-radius: 1.5rem;
}

/* **************  Tourism  ************ */

#tourism-slider .tourism-icon {
    width: 4.5rem;
}

/* **************  licitaciones  ************ */
.accordion-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    line-height: 1.5;
}

.accordion-date {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.accordion-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.accordion-description {
    margin-bottom: 0.5rem;
}

.accordion-info {
    font-size: 0.9rem;
    color: #0d6efd;
}

/* Asegurar que la flecha del acordeón se mantenga bien ubicada */
.accordion-button::after {
    margin-left: 15px;
    align-self: center;
}

/* **************  Search  ************ */

.searchable-item-thumbnail {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 150px;
}

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

    .last-posts {
        overflow-x: scroll;
        flex-wrap: nowrap;
        gap: 20px;
    }

}

@media screen and (max-width: 1200px) {
    .footer-brand img {
        max-height: 70px;
    }
    
    .hero-title,
    .hero-subtitle {
        font-size: 60px;
    }
}

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

    .home-post-list .post-first-card .card,
    .home-post-list .card {
        min-height: 300px;
    }

    .home-slider-navbar {
        bottom: min(30%, 200px);
    }

    .last-post-title {
        max-width: 70%;
    }
}

@media screen and (max-width: 768px) {
    #home-slider .carousel-indicators {
        bottom: min(20vw, 160px);
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    #home-posts-slider .carousel-caption {
        height: 50%;

    }

    .outstanding-title-card {
        font-size: 1.7rem;
    }

    .outstanding-dependencies {
        flex-wrap: wrap;
        gap: 5px;
    }

    .home-slider-navbar {
        bottom: min(30%, 200px);
    }

    .home-post-list {
        height: auto;
    }

    figure.table,
    figure.image {
        width: 100% !important;
    }

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

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

    .hero-title,
    .hero-subtitle {
        font-size: 40px;
    }

    .home-slider-navbar {
        bottom: min(30%, 200px);
    }

    .home-post-list .post-first-card .card,
    .home-post-list .card {
        min-height: 250px;
    }

    #home-slider .carousel-indicators {
        bottom: min(20vw, 160px);
    }

    #home-posts-slider .carousel-caption {
        height: 60%;

    }

    .outstanding-title-card {
        font-size: 1.2rem;
    }

    .outstanding-date-card {
        font-size: .8rem;
    }

    .calendar-icon svg{
        width: 16px;
        height: 16px;
        font-size: .1rem;
    }

    .outstanding-dependencies {
        flex-wrap: wrap;
        font-size: .8rem;
        gap: 5px;
    }

    .last-posts {
        padding: 0;
        flex-flow: row wrap;
        gap: 10px;
        justify-content: center;
    }

    .last-post-title {
        max-width: 50%;
    }
}

@media screen and (max-height: 700px) {
    
    .hero-title{
        padding: 0 4rem;
    }

    .hero-subtitle{
        padding: 0 4rem;
    }

    .hero-cta{
        padding: 0 4rem;
    }

    .home-slider-footer{
        /* background-color: red; */
        padding: 0 4rem;
    }
}