:root {
    --primary: #ffffff;
    --secondary: #a0a5b1;
    --background-start: #0f172a;
    --background-end: #1e293b;
    --accent: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    color: var(--primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Fondo decorativo con animación */
body::before,
body::after {
    content: '';
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    animation: float 10s infinite ease-in-out alternate;
    opacity: 0.6;
}

body::before {
    background: rgba(59, 130, 246, 0.4);
    top: -10vw;
    left: -10vw;
}

body::after {
    background: rgba(139, 92, 246, 0.4);
    bottom: -10vw;
    right: -10vw;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 5%) scale(1.1);
    }
}

.container {
    position: relative;
    z-index: 1;
    padding: 20px;
    width: 100%;
    max-width: 600px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo-container {
    background-color: #F9F9F9;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    z-index: 2;
}

/* Un sutil resplandor detrás del logo blanco para destacarlo del fondo oscuro */
.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(15px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo-container:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(59, 130, 246, 0.4);
}

.logo-container:hover::before {
    opacity: 1;
}

.logo {
    max-width: 180px;
    height: auto;
    display: block;
}

.badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

p {
    font-size: 1.125rem;
    color: var(--secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Animación de cargador de logística (Camión y paquete) */
.truck-loader {
    position: relative;
    width: 200px;
    height: 60px;
    margin: 2rem auto 0;
    overflow: hidden;
}

.truck-box {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #d97706;
    /* Color de caja de cartón */
    border: 2px solid #b45309;
    border-radius: 2px;
    bottom: 5px;
    left: -20px;
    animation: box-move 3s linear infinite;
    z-index: 1;
}

.truck-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-50%);
}

.truck {
    position: absolute;
    bottom: 5px;
    right: -80px;
    width: 60px;
    height: 40px;
    animation: truck-move 3s linear infinite;
    z-index: 2;
}

.truck-body {
    position: absolute;
    bottom: 5px;
    width: 60px;
    height: 35px;
    background-color: var(--accent);
    /* Azul del tema */
    border-radius: 5px 15px 5px 5px;
    display: flex;
    justify-content: flex-end;
}

/* Cabina del camión (vidrio) */
.truck-body::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background-color: #e0f2fe;
    border-radius: 2px 8px 2px 2px;
}

.truck-wheels {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0 5px;
}

.wheel {
    width: 12px;
    height: 12px;
    background-color: #1e293b;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    animation: wheel-spin 1s linear infinite;
}

/* Piso o carretera por donde pasa el camión */
.truck-loader::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

/* Líneas de movimiento en la carretera */
.truck-loader::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 100%;
    width: 30px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
    animation: road-move 1.5s linear infinite;
    z-index: 3;
}

@keyframes box-move {
    0% {
        left: -20px;
        opacity: 1;
        transform: translateY(0);
    }

    30% {
        left: 40%;
        opacity: 1;
        transform: translateY(0);
    }

    35% {
        left: 45%;
        opacity: 0;
        transform: translateY(-10px) scale(0.8);
    }

    /* La caja "sube" al camión */
    100% {
        left: 45%;
        opacity: 0;
    }
}

@keyframes truck-move {
    0% {
        right: -80px;
    }

    25% {
        right: 30%;
    }

    /* El camión llega */
    40% {
        right: 30%;
    }

    /* Espera a que carguen la caja */
    100% {
        right: 120%;
    }

    /* El camión se va por la izquierda */
}

@keyframes wheel-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }

    /* Giran hacia la izquierda porque va hacia la izquierda */
}

@keyframes road-move {
    0% {
        left: 100%;
    }

    100% {
        left: -30px;
    }
}

/* Responsivo para móviles */
@media (max-width: 480px) {
    .glass-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .logo {
        max-width: 140px;
    }
}