/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4; /* Color gris para el contenido principal */
}

/* Barra superior */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo img {
    margin-left: -15PX;
    width: 130x;
    height: 35px;
    margin-top: 7px;
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .top-icons .icon {
        width: 24px;
        height: 24px;
        fill: #00aef0; /* Color verde */
        cursor: pointer;
    }

/* Estilos específicos para cada icono */
#icon-calculadora {
    /* Puedes ajustar estilos específicos aquí */
}

#icon-ubicacion {
    /* Puedes ajustar estilos específicos aquí */
}

#icon-busqueda {
    /* Puedes ajustar estilos específicos aquí */
}

#icon-menu {
    fill: #f89420;
}

/* Contenido principal */
.center-logo {
    text-align: center;
    margin: 20px 0;
}

    .center-logo img {
        max-width: 45%;
        height: auto;
        margin-bottom: -30px;
    }

.car-image {
    text-align: center;
    margin: 20px 0;
}

    .car-image img {
        max-width: 90%;
        height: auto;
        animation: car-image-fade 1.5s ease-out forwards;
        opacity: 0;
    }

h2 {
    text-align: center;
    color: #00aef0;
    animation: text-fade 1.5s ease-out forwards;
    opacity: 0;
    animation-delay: 1.0s;
}

p {
    text-align: center;
    color: #8b8b8b;
    animation: text-fade 1.5s ease-out forwards;
    opacity: 0;
    animation-delay: 1.3s;
}

/* Animaciones */
@keyframes car-image-fade {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes text-fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Formulario */
.formulario {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff; /* Efecto de tarjeta */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-fields-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.col-20 {
    flex: 1 1 calc(20% - 20px);
}

.col-25 {
    flex: 1 1 calc(25% - 20px);
}

.col-30 {
    flex: 1 1 calc(30% - 20px);
}

.col-100 {
    flex: 1 1 100%;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    .form-group input:focus,
    .form-group select:focus {
        border-color: #f89420;
        outline: none;
    }

.form-group button {
    padding: 12px 20px;
    background-color: #f89420;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .form-group button:hover {
        background-color: #264e72;
    }

/* Clase para ocultar elementos */
.hidden {
    display: none;
}

/* Overlay de Carga */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8); /* Fondo blanco semi-transparente */
    backdrop-filter: blur(5px); /* Efecto de desenfoque para la estela blanca */
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

    .overlay.visible {
        display: flex;
        opacity: 1;
    }

.spinner-container {
    text-align: center;
    color: #54ad4d;
    position: relative;
}

    .spinner-container #loadingMessage,
    .spinner-container #authenticatingMessage {
        position: absolute;
        top: -70px; /* Posiciona el mensaje encima del spinner */
        left: 50%;
        transform: translateX(-50%);
        color: #54ad4d;
        font-size: 18px;
        text-align: center;
    }

.spinner {
    border: 8px solid rgba(84, 173, 77, 0.3); /* Color verde transparente */
    border-top: 8px solid #54ad4d; /* Color verde sólido */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Animación de giro */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mensajes de Error */
.error-text {
    color: red;
    margin-top: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

    .error-text.visible {
        opacity: 1;
    }

/* Secciones adicionales */
.section {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff; /* Efecto de tarjeta */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .section h2 {
        text-align: center;
        margin-bottom: 20px;
    }

    .section p {
        text-align: center;
        margin-bottom: 20px;
    }

/* Animaciones de Carga y Transiciones */
#validatingInfoSection,
#authenticatingSection {
    display: none;
}

    #validatingInfoSection h2,
    #authenticatingSection p {
        color: #54ad4d;
        font-size: 1.5em;
    }

    #validatingInfoSection .spinner-container,
    #authenticatingSection .spinner-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

/* Footer */
.footer {
    background-color: #264e72;
    padding: 20px;
}

    .footer .divider {
        border-top: 1px solid #ccc;
        margin: 20px 0;
    }

    .footer h3 {
        text-align: center;
        color: #ffffff;
        margin-bottom: 20px;
    }

    .footer .icon-list {
        list-style: none;
        padding: 0;
        margin: 0 auto 20px;
        max-width: 600px;
        text-align: left;
    }

        .footer .icon-list li {
            display: flex;
            align-items: center;
            margin: 10px 0;
        }

        .footer .icon-list .icon {
            width: 24px;
            height: 24px;
            margin-right: 10px;
            fill: #00aef0;
        }

    .footer .social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 20px 0;
    }

        .footer .social-icons a .icon {
            width: 32px;
            height: 32px;
            fill: #00aef0;
        }

    .footer .footer-images {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        gap: 20px;
        flex-wrap: nowrap;
        align-content: center;
        align-items: center;
    }

        .footer .footer-images img {
            max-width: 150px;
            height: auto;
        }

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        align-items: flex-start;
    }

    .top-icons {
        margin-top: 10px;
    }

    .form-fields-wrapper {
        flex-direction: column;
    }

    .form-group.col-20,
    .form-group.col-25,
    .form-group.col-30 {
        flex: 1 1 100%;
    }

    .footer .icon-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer .icon-list .icon {
        margin-bottom: 5px;
    }
}

/* Mensaje de Éxito */
#successMessage {
    display: none;
    animation: loadAnimation 1s ease-out forwards;
}

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

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Efecto de Tarjeta para Validating y Authenticating Sections */
#validatingInfoSection,
#authenticatingSection {
    background-color: #ffffff; /* Efecto de tarjeta */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}
