*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: Arial, sans-serif;
    background:
    radial-gradient(circle at top right,#3a2b00,#050505 45%),
    radial-gradient(circle at bottom left,#1f1600,#050505 35%);
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:25px;
}

.container{
    width:100%;
    max-width:760px;
    background:rgba(10,10,10,.92);
    border:1px solid rgba(212,175,55,.45);
    border-radius:24px;
    padding:30px;
    color:white;
    box-shadow:
    0 0 25px rgba(212,175,55,.08),
    0 25px 55px rgba(0,0,0,.45);
    backdrop-filter: blur(10px);
}

.top-logo{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    color:#d4af37;
    font-weight:900;
    letter-spacing:1.5px;
    margin-bottom:10px;
    font-size:16px;
    text-align:center;
    text-transform:uppercase;
    animation:glow 2.2s infinite alternate;
}

.top-logo i{
    font-size:28px;
    filter:drop-shadow(0 0 8px rgba(212,175,55,.45));
}

h1{
    font-size:24px;
    color:#ffffff;
    margin-bottom:6px;
    text-align:center;
    font-weight:900;
    letter-spacing:.2px;
    line-height:1.1;
}

p{
    color:#cfcfcf;
    margin-bottom:10px;
    line-height:1.4;
    text-align:center;
    font-size:14px;
    max-width:600px;
    margin-left:auto;
    margin-right:auto;
}

input{
    width:100%;
    padding:15px;
    border-radius:12px;
    border:1px solid #333;
    background:#121212;
    color:white;
    font-size:16px;
    margin-bottom:14px;
    outline:none;
}

input:focus{
    border-color:#d4af37;
    box-shadow:0 0 0 3px rgba(212,175,55,.15);
}

button{
    width:100%;
    padding:15px;
    border:none;
    border-radius:12px;
    background:linear-gradient(90deg,#d4af37,#f3d36b);
    color:black;
    font-size:16px;
    font-weight:900;
    cursor:pointer;
    transition:.25s;
}

button:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(212,175,55,.18);
}

button i{
    margin-right:8px;
}

#resultado{
    margin-top:28px;
}

.card{
    background:#0b0b0b;
    border:1px solid rgba(212,175,55,.25);
    border-radius:18px;
    padding:22px;
    animation:fade .45s ease;
}

@keyframes fade{
    from{opacity:0; transform:translateY(8px);}
    to{opacity:1; transform:translateY(0);}
}

.niv-box{
    text-align:center;
    padding-bottom:12px;
    margin-bottom:14px;
    border-bottom:1px solid #222;
}

.niv-title{
    color:#d4af37;
    font-size:18px;
    font-weight:900;
    letter-spacing:1px;
    text-transform:uppercase;
    margin-bottom:6px;
    text-shadow:0 0 8px rgba(212,175,55,.2);
}

.niv-value{
    margin-top:2px;
    font-size:25px;
    font-weight:900;
    letter-spacing:1px;
}

.row{
    padding:10px 0;
    border-bottom:1px solid #161616;
    font-size:15px;
}

.label{
    color:#d4af37;
    font-weight:700;
}

.value{
    color:#fff;
    font-weight:900;
    text-transform:uppercase;
}

.ok{
    color:#00d26a;
    font-weight:900;
}

.bad{
    color:#ff4c4c;
    font-weight:900;
}

@media(max-width:700px){

    .container{
        padding:24px;
    }

    h1{
        font-size:30px;
    }

    .niv-value{
        font-size:24px;
    }

    .row{
        font-size:15px;
    }

}

@keyframes glow{
    from{
        opacity:.8;
        text-shadow:0 0 6px rgba(212,175,55,.15);
    }
    to{
        opacity:1;
        text-shadow:
        0 0 10px rgba(212,175,55,.45),
        0 0 20px rgba(212,175,55,.18);
    }
}

h1{
    font-size:35px;
    color:#ffffff;
    margin-bottom:12px;
    text-align:center;
    font-weight:900;
    letter-spacing:.5px;
    line-height:1.15;
}

p{
    color:#cfcfcf;
    margin-bottom:28px;
    line-height:1.7;
    text-align:center;
    font-size:17px;
    max-width:620px;
    margin-left:auto;
    margin-right:auto;
}

.hero{
    background:linear-gradient(
        180deg,
        rgba(255,255,255,.03),
        rgba(255,255,255,.01)
    );
    border:1px solid rgba(212,175,55,.12);
    border-radius:18px;
    padding:18px 18px;
    margin-bottom:18px;
    animation:heroFade .6s ease;
    box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 10px 25px rgba(0,0,0,.22);
}

.hero-line{
    width:90px;
    height:2px;
    margin:10px auto 10px;
    border-radius:999px;
    background:linear-gradient(90deg,#7a5a00,#d4af37,#f7e08a,#d4af37,#7a5a00);
    box-shadow:0 0 10px rgba(212,175,55,.25);
}

.top-logo i{
    font-size:28px;
    filter:drop-shadow(0 0 10px rgba(212,175,55,.45));
    animation:floatLogo 2.6s ease-in-out infinite;
}

@keyframes floatLogo{
    0%{transform:translateY(0px);}
    50%{transform:translateY(-3px);}
    100%{transform:translateY(0px);}
}

@keyframes heroFade{
    from{
        opacity:0;
        transform:translateY(14px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.hero p{
    margin-bottom:0;
}

.search-box{
    margin-top:10px;
    margin-bottom:10px;
}

.input-wrap{
    position:relative;
    margin-bottom:16px;
}

.input-wrap i{
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    color:#d4af37;
    font-size:18px;
}

.input-wrap input{
    padding-left:52px;
    background:#0d0d0d;
    border:1px solid #2a2a2a;
    transition:.25s;
}

.input-wrap input:focus{
    border-color:#d4af37;
    box-shadow:
    0 0 0 3px rgba(212,175,55,.12),
    0 0 18px rgba(212,175,55,.08);
}

.search-box button{
    background:linear-gradient(90deg,#b8921f,#d4af37,#f0d46d);
    letter-spacing:.8px;
    transition:.25s;
}

.search-box button:hover{
    transform:translateY(-2px) scale(1.01);
    box-shadow:
    0 12px 22px rgba(212,175,55,.22),
    0 0 18px rgba(212,175,55,.12);
}

.search-box button i{
    margin-right:8px;
}

#vinInput{
    text-align:center;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:1px;
    font-size:28px;
}

.logo-icon{
    font-size:28px;
    color:#d4af37;
    filter:drop-shadow(0 0 10px rgba(212,175,55,.5));
    animation:carFloat 2.5s ease-in-out infinite,
               glowPulse 2s ease-in-out infinite;
}

/* Movimiento flotante */
@keyframes carFloat{
    0%{
        transform:translateY(0px);
    }
    50%{
        transform:translateY(-4px);
    }
    100%{
        transform:translateY(0px);
    }
}

/* Brillo pulsante dorado */
@keyframes glowPulse{
    0%{
        text-shadow:0 0 5px rgba(212,175,55,.2);
        opacity:.85;
    }
    50%{
        text-shadow:0 0 15px rgba(212,175,55,.6),
                    0 0 25px rgba(212,175,55,.3);
        opacity:1;
    }
    100%{
        text-shadow:0 0 5px rgba(212,175,55,.2);
        opacity:.85;
    }
}

body.compact .hero{
    padding:12px 14px;
    margin-bottom:12px;
}

body.compact .top-logo{
    font-size:14px;
    margin-bottom:6px;
    gap:8px;
}

body.compact h1{
    font-size:20px;
    margin-bottom:4px;
}

body.compact .hero p{
    display:none;
}

body.compact .hero-line{
    margin:6px auto;
}

body.compact .search-box{
    margin-top:6px;
}

body.compact input{
    padding:12px;
    font-size:14px;
}

body.compact button{
    padding:12px;
    font-size:14px;
}

body.compact .hero{
    padding:12px 14px;
    margin-bottom:12px;
}

body.compact .top-logo{
    font-size:14px;
    margin-bottom:6px;
    gap:8px;
}

body.compact h1{
    font-size:18px;
    margin-bottom:4px;
}

body.compact .hero p{
    display:none;
}

body.compact .hero-line{
    display:none;
}

body.compact .search-box{
    margin-top:6px;
}

body.compact input{
    padding:10px;
    font-size:14px;
}

body.compact button{
    padding:10px;
    font-size:14px;
}

.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.75);
    justify-content:center;
    align-items:center;
    z-index:999999;
}

/* 🔥 cuando esté activo */
.modal.active{
    display:flex;
}

.modal-content{
    background:#0f0f0f;
    border:1px solid #d4af37;
    padding:25px;
    border-radius:16px;
    width:90%;
    max-width:420px;
    text-align:center;
}

.modal-content h2{
    color:#d4af37;
    margin-bottom:10px;
}

.modal-content input{
    width:100%;
    margin:6px 0;
    padding:10px;
    border-radius:8px;
    border:1px solid #333;
    background:#000;
    color:white;
}

.modal-content button{
    margin-top:10px;
    width:48%;
    padding:10px;
    border:none;
    cursor:pointer;
}

.source-badge{

    margin-top: 18px;
    margin-bottom: 14px;

    padding: 10px 14px;

    border-radius: 10px;

    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.12);

    color: #d6d6d6;

    font-size: 13px;

    text-align: center;

    letter-spacing: 0.5px;

    backdrop-filter: blur(6px);
}

/* =========================
   📱 RESPONSIVE MÓVIL
========================= */

@media(max-width:600px){

    body{
        padding:10px;
        align-items:flex-start;
    }

    .container{
        padding:18px;
        border-radius:15px;
    }

    h1{
        font-size:15px;
        line-height:1.2;
    }

    .top-logo{
        font-size:10px;
    }

    .top-logo i{
        font-size:20px;
    }

    p{
        font-size:10px;
        line-height:1.5;
    }

    #vinInput{
        font-size:15px;
        letter-spacing:.5px;
        padding:14px 10px;
    }

    button{
        font-size:12px;
        padding:12px;
    }

    .niv-title{
        font-size:10px;
    }

    .niv-value{
        font-size:12px;
        word-break:break-all;
    }

    .row{
    display:flex;
    align-items:flex-start;
    gap:6px;
    font-size:12px;
    flex-wrap:wrap;
    }

    .label{
        font-size:13px;
    }

    .value{
    font-size:14px;
    overflow-wrap:anywhere;
    }

    .card{
        padding:13px;
    }

    .modal-content{
        width:100%;
        padding:18px;
    }

    .source-badge{
        font-size:10px;
        padding:8px 10px;
    }

}


.year-options{

    display:flex;

    gap:10px;

    margin-top:10px;

    flex-wrap:wrap;

    align-items:center;
}

.year-btn{

    width:auto !important;

    display:inline-block;

    padding:8px 16px;

    border:none;

    border-radius:10px;

    background:#1d1d1d;

    color:#d6d6d6;

    cursor:pointer;

    font-weight:700;

    font-size:14px;

    line-height:1;

    box-shadow:none;

    transform:none !important;

    letter-spacing:.5px;

    transition:
    background .2s,
    color .2s,
    transform .2s;
}

.year-btn:hover{

    background:#2b2b2b;

    color:white;

    transform:translateY(-1px);
}

.year-btn.active{

    background:#d4af37;

    color:black;

    box-shadow:
    0 0 12px rgba(212,175,55,.35);
}

.api-suggest{

    margin-top:10px;

    color:#d4af37;

    font-size:13px;
}

#yearButtons .year-btn{

    min-width:110px;

    padding:14px 20px;

    font-size:18px;

    font-weight:900;

    border-radius:14px;

    background:#1c1c1c;

    color:#ffffff;

    border:1px solid rgba(212,175,55,.25);

    transition:.25s;
}

#yearButtons .year-btn:hover{

    transform:translateY(-3px);

    background:#d4af37;

    color:black;

    box-shadow:
    0 0 18px rgba(212,175,55,.35);
}

.api-suggest{

    margin-top:18px;

    color:#d4af37;

    font-size:15px;

    font-weight:700;

    text-align:center;
}

.year-btn{

    width:auto !important;

    min-width:70px;

    padding:8px 14px;

    border:none;

    border-radius:10px;

    background:#1d1d1d;

    color:white;

    cursor:pointer;

    font-weight:700;

    transition:.2s;
}

/* =========================
   MODAL AÑO AMBIGUO
========================= */

#yearButtons{

    display:flex;

    justify-content:center;

    gap:14px;

    margin-top:20px;

    flex-wrap:wrap;
}

#yearModal .year-btn{

    width:auto !important;

    min-width:110px;

    padding:14px 18px;

    border:none;

    border-radius:14px;

    background:#1b1b1b;

    color:white;

    cursor:pointer;

    font-size:20px;

    font-weight:900;

    border:1px solid rgba(212,175,55,.25);

    transition:.25s;
}

#yearModal .year-btn:hover{

    transform:translateY(-2px);

    background:#d4af37;

    color:black;

    box-shadow:
    0 0 18px rgba(212,175,55,.35);
}

#yearModal .api-suggest{

    margin-top:18px;

    color:#d4af37;

    font-size:14px;

    text-align:center;

    font-weight:700;
}