:root {
    --primary: #4769a9;
    --secondary: #777777;
    --light: #F8F8F8;
    --dark: #252525;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.navbar a {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    background-image: linear-gradient(var(--primary), var(--primary));
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: 100% 0%;
    transition: background-size .7s, background-position .5s ease-in-out;
}

.navbar a:hover {
    background-size: 100% 50%;
    background-position: 0% 50%;
    transition: background-position .7s, background-size .5s ease-in-out;
}

h1,
h2,
h3 {
    font-family: 'Josefin Sans', sans-serif;
}

.navbar-brand {
    font-size: 25px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: #000;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar-toggler {
    position: relative;
    right: 0;
}

#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, .3);
    z-index: 1;
}

.cucardas img {
    border-radius: 10px;
    object-fit: cover;
    max-width: 90px;
}

.atomic {
    /* Adjust the width as needed */
    position: absolute;
    bottom: 100px;
    text-align: left;
    border-radius: 10px;
    z-index: 99;

}

.secundario {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 200;
}

.whatsapp {
    width: auto;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, .5));
}

.whatsapp-icon img {
    width: 60px;
}

.whatsapp-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip {
    visibility: hidden;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 20px;
    opacity: 0;
    background-color: #00ac40;
    color: white;
    letter-spacing: 2px;
    text-align: center;
    border-radius: 6px;
    padding: 6px;
    position: absolute;
    bottom: 10px;
    left: 0%;
    transform: translateX(-100%);
    white-space: nowrap;
    transition: visibility 0s, opacity 0.3s;
}

.tooltip:hover {
    background-color: #F8F8F8;
    color: #00ac40;
}

@media (max-width: 768px) {
    .navbar-brand {
        display: none;
    }

    .whatsapp-icon:hover .tooltip {
        visibility: hidden;
    }

    .atomic {
        display: grid;
        justify-items: center;
        width: 200px;
        transform: scale(0.7) translate(-25%, 80%);
    }
    
    h1{
        line-height: 33px !important;
    }

    .popup{
        width: 100vw !important;
        height:100% !important;    
    }
    .popup-video{
        width: 100vw !important;
        height: 100% !important;
    }
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 8px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid rgba(256, 256, 256, .1)
    }

    #header-carousel .carousel-item {
        min-height: 400px;
        background-color: transparent;
    }

    #header-carousel .carousel-item>img {
        position: absolute;
        height: 100%;
        object-fit: cover;
    }

    .asistente {
        visibility: hidden;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        position: absolute;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondary);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 4px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

.img-border {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 5px solid rgba(120, 126, 156, 1);
    border-radius: 6px;
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
    border-radius: 6px;
}

.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border: 1px solid transparent;
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    box-shadow: none;
    border: 1px solid #DEE2E6;
}

.progress {
    height: 5px;
}

.progress .progress-bar {
    width: 0px;
    transition: 3s;
}

.project-item a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: right;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .5);
    border-radius: 6px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover a {
    opacity: 1;
}

.project-item p {
    margin: 0;
}

#more-text-1,
#more-text-2,
#more-text-3,
#more-text-4 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

#more-text-1.show,
#more-text-2.show,
#more-text-3.show,
#more-text-4.show {
    max-height: 1000px;
    transition: max-height 1s ease-in;
    display: block;
}

.project-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.project-carousel .owl-dot {
    width: 35px;
    height: 35px;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 35px;
    transition: .5s;
}

.project-carousel .owl-dot:hover,
.project-carousel .owl-dot.active {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}

.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-text {
    position: relative;
    height: 65px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-item:hover .team-title {
    top: -65px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 65px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
}

.team-item:hover .team-social {
    top: 0;
}

.team-social a:hover {
    color: #fff;
    background-color: #333;
    transition: background-color 0.3s ease;
    padding: 10px;
}

.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--secondary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

ul li {
    padding: 5px 0;
}

#retina {
    background-image: url('../imgs/fondo-retina.jpg');
    background-position: center;
    background-repeat: no-repeat;
}

.container-popup {
    position: absolute;
    margin: 0 auto;
    width: 100%;
    
}

.popup {
    position: relative;
    visibility: hidden;
    display: inline-block;
    transform: translate(-50%, -50%) scale(0.1);
    text-align: center;
    margin: 0 auto;
    transition: transform 0.9s, top 0.9s;
    z-index: 9998;
    height: 100%;
    width: 100%;
    background-color: white;
    overflow: hidden;
}

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

.popup img {
    width: 100%;
    max-height: 500px;
}

.video-container{
    position: relative;
    display: block;
}
#videoTrigger{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px ;
    left: 0;
    right: 0;
    top: 50%;
    z-index: 9999;
    background-color: var(--primary);
    cursor: pointer;
    font-size: 25px;
    color: white;
}

.open-popup {
    visibility: visible;
    top: 15%;
    transform: translate(0%, 0%) scale(1);
}
.popup-title{
    border-radius: 20px
}
.button-contact-popup{
    border-style: solid;
    border-color: #4769a9;
    color: var(--white) !important;
    border-radius: 20px;
    padding: 5px 10px;
    font-weight: 800;
    transition: .5s ease;
    margin-top: 50px
}
.button-contact-popup:hover{
    background-color: var(--primary);
    color: wheat !important;
}

.button_popup {
    font-family: 'Josefin Sans', sans-serif;
    color: white;
    border: none;
    position: absolute;
    top: 0;
    right: 5px;
    z-index: 9999;
    background-color: var(--primary);
}

.button_popup:hover {
    background-color: white;
    color: var(--primary);
    transition: 1s;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9998;
    display: none;
}

.dropshadow {
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, .5));
}

.hr{
    width: 100%;
    height: 1px;
    background-color: wheat;
}

.invisible{
    display: none;
}