/* ================= GENERAL ================= */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;

    background:
        linear-gradient(
            180deg,
            #1e3a8a 0%,
            #1d4ed8 50%,
            #2563eb 100%
        );

    min-height: 100vh;
}

/* ================= HEADER ================= */

.header {
    max-width: 420px;
    margin: 20px auto 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 10px 20px;

    color: white;
}

.logo {
    width: 46px;
    height: auto;
}

.header-text {
    text-align: left;
}

.header-text h1 {
    margin: 0;

    font-size: 17px;
    font-weight: 700;
}

.header-text p {
    margin: 3px 0 0;

    font-size: 12px;
    opacity: .90;
}

/* ================= CONTENIDO ================= */

.container {
    max-width: 420px;

    margin: 25px auto;

    padding: 0 20px;

    color: white;
    text-align: center;
}

.titulo {
    margin-bottom: 8px;

    font-size: 28px;
    font-weight: 800;
}

.subtitulo {
    margin-top: 0;
    margin-bottom: 30px;

    font-size: 14px;
    opacity: .90;
    line-height: 1.5;
}

/* ================= TARJETA ================= */

.card {

    background: rgba(255,255,255,.96);

    backdrop-filter: blur(8px);

    border-radius: 24px;

    padding: 28px 24px;

    color: #111827;

    box-shadow:
        0 20px 40px rgba(0,0,0,.25);

    animation: fadeScale .45s ease;
}

.card:hover {
    transform: translateY(-3px);

    transition: .25s;
}

/* ================= PLACA ================= */

.placa {

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: white;

    border-radius: 14px;

    padding: 14px;

    margin-bottom: 18px;

    font-size: 30px;
    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;

    box-shadow:
        0 8px 20px rgba(37,99,235,.35);
}

/* ================= BADGES ================= */

.verificado {

    background: #dcfce7;
    color: #166534;

    padding: 10px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 12px;
}

.fecha-consulta,
.codigo-validacion {

    font-size: 12px;
    color: #6b7280;

    margin-bottom: 12px;
}

.estado {

    display: inline-block;

    padding: 8px 15px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 700;
}

.vigente {
    background: #22c55e;
    color: white;
}

.novigente {
    background: #ef4444;
    color: white;
}

.advertencia {
    background: #f59e0b;
    color: white;
}

/* ================= CAMPOS ================= */

.linea {

    padding: 14px 0;

    border-bottom: 1px solid #f3f4f6;
}

.linea:last-of-type {
    border-bottom: none;
}

.label {

    margin-bottom: 6px;

    font-size: 12px;
    color: #6b7280;
}

.valor {

    font-size: 15px;
    font-weight: 600;

    word-break: break-word;
}

/* ================= BOTONES ================= */

.acciones {

    display: flex;

    gap: 12px;

    margin-top: 28px;
}

.btn {

    flex: 1;

    border: none;

    text-decoration: none;

    text-align: center;

    padding: 13px;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-sizing: border-box;

    box-shadow:
        0 6px 15px rgba(0,0,0,.12);

    transition: .25s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(-1px);
}

.whatsapp {
    background: #25D366;
    color: white;
}

.whatsapp:hover {
    background: #1fb85a;
}

.reporte {
    background: #ef4444;
    color: white;
}

.reporte:hover {
    background: #dc2626;
}

/* ================= ERROR ================= */

.error {

    background: white;

    border-radius: 16px;

    padding: 24px;

    color: #dc2626;

    font-weight: 600;

    box-shadow:
        0 10px 25px rgba(0,0,0,.18);
}

/* ================= LOADER ================= */

.loader-container {

    display: flex;
    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: white;

    margin-top: 60px;
}

.spinner {

    width: 46px;
    height: 46px;

    border: 4px solid rgba(255,255,255,.30);

    border-top: 4px solid white;

    border-radius: 50%;

    animation: spin 1s linear infinite;

    margin-bottom: 14px;
}

.loader-text {

    font-size: 14px;

    opacity: .9;
}

/* ================= FOOTER ================= */

.footer {

    max-width: 420px;

    margin: 20px auto 30px;

    padding: 0 20px;

    text-align: center;

    color: rgba(255,255,255,.85);

    font-size: 11px;

    line-height: 1.5;
}

/* ================= ANIMACIONES ================= */

@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeScale {

    from {

        opacity: 0;

        transform:
            translateY(20px)
            scale(.97);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 480px) {

    .container {

        margin-top: 20px;

        padding: 0 15px;
    }

    .header {

        padding: 10px 15px;
    }

    .logo {

        width: 40px;
    }

    .header-text h1 {

        font-size: 15px;
    }

    .header-text p {

        font-size: 11px;
    }

    .placa {

        font-size: 24px;
    }

    .acciones {

        flex-direction: column;
    }
}