﻿/************************** Animacion Inicial ****************************/
.preload {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    left: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .preload:before,
    .preload:after {
        content: '';
        width: 50%;
        height: 100%;
        top: 0;
        background: #01001f;
        transition: 1s;
        position: absolute;
    }

    .preload:before {
        left: 0;
    }

    .preload:after {
        right: 0;
    }

    .preload svg {
        display: block;
        width: 700px;
        height: 700px;
        position: relative;
        z-index: 1;
        transition: 0.5s;
    }

        .preload svg path {
            fill: transparent;
            stroke: #ffffff;
            stroke-width: 0.7;
        }

            .preload svg path#letrasD,
            .preload svg path#letrasA {
                stroke-width: 5px;
                stroke-dasharray: 4350;
                stroke-dashoffset: 4350;
                transition: 1.7s;
            }

            .preload svg path.pathFillletter {
                stroke-dasharray: 170;
                stroke-dashoffset: 170;
            }

            .preload svg path.active {
                stroke-dashoffset: 0 !important;
                transition: 1.5s;
                stroke: #ffffff;
                filter: drop-shadow(0 0 7px #4f4fcf) drop-shadow(0 0 12px #4f4fcf);
            }

            .preload svg path.activeback {
                fill: #ffffff;
                filter: drop-shadow(0 0 10px #4f4fcf) drop-shadow(0 0 20px #4f4fcf);
                transition: fill 0.6s ease-in-out, filter 0.6s ease-in-out;
            }

    .preload.active {
        pointer-events: none;
    }

        .preload.active:before {
            transform: translateX(-120%);
        }

        .preload.active:after {
            transform: translateX(120%);
        }

        .preload.active svg {
            opacity: 0;
        }

@keyframes draw {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Versión móvil/tablet */
@media (max-width: 768px) {
    .preloadanimation {
        width: 90vw;
    }

        .preloadanimation svg {
            width: 100%;
            height: auto;
        }
}

@media (max-width: 480px) {
    .preloadanimation {
        width: 95vw;
    }
}
/******************************************************/
