/* fijamos body separado del nabbar para que cuando éste último se extienda,
no afectee la posición de body | los 56px es el alto del menu, que, si por alguna
razón variara con el ancho de la pantalla, habría que usar @media según se
requiera */
body {
    padding-top: 56px;
    font-family: var(--m-font);
    color: var(--m-bg-grey);
}

.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background-color: var(--m-bg-grey);
    font-family: var(--m-font);
}

.navbar .dropdown-item {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* fadeIn general */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* fadeIn para navbar en pantalla grande */
@media screen and (min-width:999.98px) {
    .navbar {
        animation: fadeIn ease-in 0.25s;
        -webkit-animation: fadeIn ease-in 0.25s;
        -moz-animation: fadeIn ease-in 0.25s;
        -o-animation: fadeIn ease-in 0.25s;
        -ms-animation: fadeIn ease-in 0.25s;
    }

    .navbar li {
        animation: fadeIn ease-in 0.25s;
        -webkit-animation: fadeIn ease-in 0.25s;
        -moz-animation: fadeIn ease-in 0.25s;
        -o-animation: fadeIn ease-in 0.25s;
        -ms-animation: fadeIn ease-in 0.25s;
    }
}

/* para ocultar/mostrar navbar si hay scroll cuando la pantalla sea
   mayor a 600px */
@media screen and (min-width:600px) {
    .smart-scroll {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }

    .scrolled-down {
        transform: translateY(-100%);
        transition: all 0.25s ease-in-out;
    }

    .scrolled-up {
        transform: translateY(0);
        transition: all 0.8s ease-in-out;
    }
}

.sep_footer {
    background-color: var(--m-bg-grey);
    height: 5px;
}

#footer {
    background-image: linear-gradient(rgba(145, 143, 143, 0.44), rgba(49, 49, 49, 0.69)), url("../../grs/images/backgrounds/footer.jpg") !important;
}

#footer hr {
    color: white !important;
    opacity: 0.5 !important;
}

#footer a {
    color: white !important;
    transition-property: color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
    transition-delay: 0s;
}

#footer a:hover {
    color: rgba(175, 172, 172, 1) !important;
}

#footer p {
    font-family: var(--m-font);
    text-align: center;
}

#footer .pb-3 {
    padding-bottom: 0 !important;
}

/* BOTÓN FLOTANTE PARA CONTACTO */
.floating-container {
    position: fixed;
    width: 100px;
    height: 100px;
    bottom: 0;
    right: 0;
    margin: 35px 25px;
}

.floating-container:hover {
    height: 380px;
}

.floating-container:hover .floating-button {
    box-shadow: 0 10px 25px rgba(74, 57, 47, 0.6);
    transform: translatey(5px);
    transition: all 0.3s;
}

.floating-button {
    position: absolute;
    width: 65px;
    height: 65px;
    background: var(--m-bg-grey);
    bottom: 0;
    border-radius: 50%;
    left: 0;
    right: 0;
    color: white;
    line-height: 65px;
    text-align: center;
    font-size: 23px;
    z-index: 100;
    box-shadow: 0 10px 25px -5px rgba(74, 57, 47, 0.6);
    cursor: pointer;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    opacity: 80%;
}

.float-element {
    position: relative;
    display: block;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 10px;
    color: white;
    display: grid;
    place-items: center;
    z-index: 0;
    opacity: 0;
    cursor: pointer;
}

.img-icon {
    width: 30px;
    height: 30px;
}

.floating-button .img-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    padding: 3px 2px 2px 2px;
}

.float-element:nth-child(1) {
    background: #C62BC1;
    box-shadow: 0 20px 20px -10px rgba(198, 43, 193, 0.5);
}

.float-element:nth-child(2) {
    background: #4caf50;
    box-shadow: 0 20px 20px -10px rgba(76, 175, 80, 0.5);
}

.float-element:nth-child(3) {
    background: #24A1DE;
    box-shadow: 0 20px 20px -10px rgba(36, 161, 222, 0.5);
}

.float-element:nth-child(4) {
    background: #ff9800;
    box-shadow: 0 20px 20px -10px rgba(255, 152, 0, 0.5);
}

.float-element:nth-child(5) {
    background: #00A975;
    box-shadow: 0 20px 20px -10px rgba(0, 169, 117, 0.5);
}

@-webkit-keyframes come-in {
    0% {
        opacity: 0;
    }

    30% {
        transform: translateX(-50px) scale(0.4);
    }

    70% {
        transform: translateX(0px) scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.floating-container:hover .element-container .float-element:nth-child(1) {
    animation: come-in 0.1s forwards 0.1s;
}

.floating-container:hover .element-container .float-element:nth-child(2) {
    animation: come-in 0.1s forwards 0.2s;
}

.floating-container:hover .element-container .float-element:nth-child(3) {
    animation: come-in 0.1s forwards 0.3s;
}

.floating-container:hover .element-container .float-element:nth-child(4) {
    animation: come-in 0.1s forwards 0.4s;
}

.floating-container:hover .element-container .float-element:nth-child(5) {
    animation: come-in 0.1s forwards 0.5s;
}
