@keyframes aparecerDerecha {
    from {right: -200px; opacity: 0;}
    to {right: 0; opacity: 1;}
}

@keyframes aparecerAbajo {
    from {bottom: -200px; opacity: 0;}
    to {bottom: 10px; opacity: 1;}
}

@keyframes aparecerAbajoMobile {
    from {bottom: -200px; opacity: 0;}
    to {bottom: 60px; opacity: 1;}
}

@keyframes aparecerAbajoBis {
    from {bottom: -150px; opacity: 0;}
    to {bottom: 60px; opacity: 1;}
}

@keyframes aparecer {
    from {opacity: 0}
    to {opacity: 1}
}

#lightSlider {
    width: 100%;
    height: 100vh!important;
    opacity: 0;
}

#lightSlider .slide {
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    animation: aparecer 1s forwards; 
}

#lightSlider .slide > img {
    object-fit: cover;
    width: 100%!important;
    height: 100%!important;
    opacity: .6;
}

#lightSlider .text-wrap {
    position: absolute;
    bottom: 0;
    right: -200px;
    opacity: 0;
    animation: aparecerDerecha 2s forwards;
    animation-delay: 2s;
    width: 100%;
    height: 100%;
}

#lightSlider .text-wrap .logo {
    width: max-content;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    color: var(--azul);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
}

#lightSlider .text-wrap .logo img {
    display: block;
    margin: 0 auto;
}

#lightSlider .text-wrap .logo p {
    margin: 0;
}

#lightSlider .text-wrap .logo .derecho {
    font-family: "Crimson Text",Helvetica,Arial,sans-serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 43px;
    margin-top: 10px;
}

#lightSlider .text-wrap .button {
    position: absolute;
    bottom: -200px;
    opacity: 0;
    background-color: var(--white);
    color: var(--azul);
    border-color: var(--azul);
    animation: aparecerAbajo 1s forwards;
    animation-delay: 5s;
}

#lightSlider .text-wrap .button[href^='tel:'] {
    bottom: -150px;
    animation: aparecerAbajoBis 1s forwards;
    animation-delay: 5s;
}

#lightSlider .text-wrap .button:hover {
    background-color: var(--azul);
    color: var(--white);
}

@media only screen and (min-width: 768px) {
    #lightSlider {
        min-height: 450px;
    }

    #lightSlider .text-wrap .button {
        right: 20px;
    }
}

@media only screen and (max-width: 767px) {
    #lightSlider .text-wrap .button[href^='tel:'] {
        left: 50%;
        margin-left: -60px;
        bottom: -150px;
        animation: aparecerAbajoMobile 1s forwards;
        animation-delay: 5s;
        font-size: 10px;
        padding: 5px 15px;
    }

    #lightSlider .text-wrap .button[href^='mailto:'] {
        display: none;
    }
}

@media only screen and (min-width: 400px) and (max-width: 655px) {
    #lightSlider .text-wrap .logo img[src$="abogados.svg"] {
        max-width: 400px;
        margin: 24px 0 12px!important;
    }

    #lightSlider .text-wrap .logo img[src$="logo.svg"] {
        max-width: 140px;
    }

    #lightSlider .text-wrap .logo .derecho {
        font-size: 27px;
        line-height: 26px;
        margin-top: 8px;
    }
}

@media only screen and (max-width: 399px) {
    #lightSlider .text-wrap .logo img[src$="abogados.svg"] {
        max-width: 300px;
        margin: 15px 0 8px!important;
        width: 100%;
    }

    #lightSlider .text-wrap .logo img[src$="logo.svg"] {
        max-width: 120px;
        width: 40%;
    }

    #lightSlider .text-wrap .logo .derecho {
        font-size: 20px;
        line-height: 25px;
        margin-top: 5px;
    }
}
