﻿body, html {
    height: 100%;
    background-repeat: no-repeat;
    background-image: linear-gradient(rgb(255, 255, 255), #e7e7e7);
    background-color: gray;
    font-family: Arial, sans-serif, Helvetica;
    overflow: hidden;
}

/*Estilos Precarga*/
*, *:after, *:before {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#Contenedor_precarga {
    background: white;
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 9999999999;
    -webkit-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Esto coloca los elementos en columna */
    left: 0;
    top: 0;
}

#Loading {
    border: 10px solid #FFF31E; /*Amarillo*/
    border-top-color: #42909C; /*Azul*/
    border-top-style: groove;
    height: 150px;
    width: 150px;
    border-radius: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    -webkit-animation: girar 1.5s linear infinite;
    -o-animation: girar 1.5s linear infinite;
    animation: girar 1.5s linear infinite;
}

#ImagenCarga {
    height: 150px;
    width: 150px;
    border-radius: 100%;
    position: fixed;
    margin: 0;
}

#TextoCargando {
    font-size: 20px;
    color: #42909C; /* Color azul */
    font-weight: bold;
    margin: 0;
    position: fixed;
    margin-top: 180px;
    /* Añadir la animación a las letras */
    animation: animacionLetras 2s infinite alternate;
}

    /* Agregar un seudoelemento para cada letra */
    #TextoCargando::before {
        content: 'Car';
        animation: animacionLetras 2s infinite alternate;
    }

    #TextoCargando::after {
        content: 'gando...';
        animation: animacionLetras 2s infinite alternate;
    }

@keyframes animacionLetras {
    0% {
        color: #42909C; /* Color de inicio */
    }

    100% {
        color: #FFF31E; /* Color final */
    }
}

@keyframes girar {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}
