﻿
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f5ea8, #16a1cf, #75bd3d);
}

* {
    box-sizing: border-box;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mobile-shell {
    width: 100%;
    max-width: 420px;
}

.login-card {
    width: 100%;
    background-color: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    padding: 28px 22px;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.logo-lqs {
    width: 150px;
    max-width: 100%;
    display: block;
    margin: 0 auto 16px auto;
}

.login-header h1 {
    margin: 0 0 10px 0;
    font-size: 26px;
    color: #0f5ea8;
    font-weight: bold;
}

.login-header p {
    margin: 0;
    font-size: 15px;
    color: #5f6b7a;
    line-height: 1.4;
}

.login-body {
    display: flex;
    flex-direction: column;
}

.input-label {
    font-size: 14px;
    font-weight: bold;
    color: #2f4668;
    margin-top: 14px;
    margin-bottom: 8px;
}

.input-text {
    width: 100%;
    height: 46px;
    border: 1px solid #cfd7e3;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 16px;
    color: #1f2937;
    background-color: #ffffff;
    outline: none;
}

    .input-text:focus {
        border-color: #16a1cf;
        box-shadow: 0 0 0 3px rgba(22, 161, 207, 0.18);
    }

select.input-text {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.btn-login {
    margin-top: 24px;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f5ea8, #16a1cf);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-login:hover {
        background: linear-gradient(135deg, #0c4f8d, #128bb1);
    }

    .btn-login:active {
        transform: scale(0.99);
    }

.login-message {
    display: block;
    min-height: 20px;
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: #c62828;
}

@media screen and (max-width: 480px) {
    .page-wrapper {
        padding: 0;
        align-items: stretch;
    }

    .mobile-shell {
        max-width: 100%;
    }

    .login-card {
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        border: none;
        padding: 24px 18px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .logo-lqs {
        width: 130px;
    }

    .login-header h1 {
        font-size: 24px;
    }
}


.resultado-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resultado-item {
    display: flex;
    flex-direction: column;
}

.resultado-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.resultado-value {
    font-size: 16px;
    font-weight: bold;
    color: #1f2937;
}

    .resultado-value.multiline {
        line-height: 1.4;
        word-break: break-word;
    }

.resultado-item.estado {
    margin-top: 10px;
}

.resultado-estado {
    font-size: 18px;
    font-weight: 700;
    color: #0f5ea8;
    margin-top: 4px;
}

/* Estado ejemplo */
.estado-arrastre {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Botón secundario */
.resultado-acciones {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-secundario {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 2px solid #0f5ea8;
    background: transparent;
    color: #0f5ea8;
    font-weight: bold;
    cursor: pointer;
}

    .btn-secundario:hover {
        background-color: rgba(15, 94, 168, 0.08);
    }

.btn-volver {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #0f5ea8;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

    .btn-volver:hover {
        text-decoration: underline;
    }

.subtitulo-panel {
    margin-top: 6px;
    font-size: 14px;
    color: #5f6b7a;
}

.bloque-bulto {
    margin-top: 18px;
    padding: 18px 16px;
    border: 1px solid #d9e1ec;
    border-radius: 16px;
    background-color: #f9fbfd;
}

.bloque-bulto-titulo {
    font-size: 18px;
    font-weight: bold;
    color: #0f5ea8;
    margin-bottom: 14px;
}

.valor-vacio {
    color: #9ca3af;
    font-style: italic;
}

.bloque-ubicacion {
    margin-top: 18px;
    padding: 18px 16px;
    border: 1px solid #d9e1ec;
    border-radius: 16px;
    background-color: #f9fbfd;
}

.bloque-ubicacion-titulo {
    font-size: 18px;
    font-weight: bold;
    color: #0f5ea8;
    margin-bottom: 16px;
}

.bloque-tracking {
    margin-top: 18px;
    padding: 18px 16px;
    border: 1px solid #d9e1ec;
    border-radius: 16px;
    background-color: #f9fbfd;
}

.bloque-tracking-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e3e9f1;
}

.tracking-fecha,
.tracking-hora {
    font-size: 14px;
    font-weight: bold;
    color: #0f5ea8;
}

.tracking-estado {
    color: #0f5ea8;
    font-weight: 700;
}

.resultado-nueva-busqueda {
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
}

.bloque-resultado-busqueda {
    margin-top: 18px;
    padding: 18px 16px;
    border: 1px solid #d9e1ec;
    border-radius: 16px;
    background-color: #f9fbfd;
}

    .bloque-resultado-busqueda .btn-secundario {
        margin-top: 18px;
    }

.login-message-debug {
    display: block;
    margin-top: 14px;
    text-align: left;
    font-size: 14px;
    color: #2f4668;
    line-height: 1.5;
    white-space: pre-line;
}

.login-card-tracking-overlay {
    position: relative;
    overflow: hidden;
}

.overlay-tracking-resumen {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 18px;
    animation: fadeInOverlayTracking 0.25s ease;
}

.overlay-tracking-card {
    width: 100%;
}

.overlay-tracking-titulo {
    font-size: 20px;
    font-weight: bold;
    color: #0f5ea8;
    margin-bottom: 24px;
    text-align: left;
}

.overlay-timeline {
    position: relative;
    padding-left: 34px;
    margin-left: 4px;
}

    .overlay-timeline::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 8px;
        bottom: 8px;
        width: 2px;
        background: #cfd7e3;
    }

.overlay-timeline-item {
    position: relative;
    min-height: 56px;
    padding-left: 10px;
    display: flex;
    align-items: center;
}

.overlay-timeline-punto {
    position: absolute;
    left: -34px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #d1d5db;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #d1d5db;
}

.overlay-timeline-item.activo .overlay-timeline-punto {
    background: #75bd3d;
    box-shadow: 0 0 0 2px #75bd3d;
}

.overlay-timeline-texto {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

@keyframes fadeInOverlayTracking {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.overlay-tracking-resumen {
    pointer-events: auto;
}

.overlay-tracking-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.btn-overlay {
    flex: 1;
    width: 50%;
    background: #3d63ac;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

    .btn-overlay:hover {
        background: #2f4f8a;
    }

.forgot-password {
    text-align: center;
    margin-top: 16px;
}

.link-recuperar {
    font-size: 15px;
    color: #0f5ea8;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}

    .link-recuperar:hover {
        text-decoration: underline;
        color: #0c4f8d;
    }

.icono-sobre {
    font-size: 17px;
}
