* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'MiFuenteCustom';
    src: url('/fonts/sampking.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'MiFuenteCuerpo'; 
    src: url('/fonts/sampmods.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #05050593; 
    color: white;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

body {
    font-family: 'MiFuenteCuerpo', sans-serif;
    color: #ffffff;
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
}

p, li, span, a:not(.nav-links a) {
    font-family: 'MiFuenteCuerpo', sans-serif;
}

/* Background y Banner con Desenfoque */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.438); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

/* Navegación */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 7%; 
    background: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo { 
    width: 45px; 
    transition: 0.3s;
}

@media (min-width: 1024px) {
    .nav-logo { 
        width: 55px; 
    }
}

.nav-logo:hover {
    transform: scale(1.1) rotate(-5deg);
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 35px; 
    align-items: center;
}

.nav-links a { 
    color: #ffffff; 
    text-decoration: none; 
    font-size: 1rem; 
    font-family: 'MiFuenteCustom', 'Orbitron', sans-serif; 
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease; 
    position: relative; 
    padding: 8px 0;
}

@media (min-width: 1024px) {
    .nav-links {
        gap: 50px;
    }

    .nav-links a { 
        font-size: 1.25rem; 
        letter-spacing: 1.5px;
    }
}

.nav-links a:hover,
.nav-links a.active { 
    color: white;
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.8);
    transform: translateY(-2px); 
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; 
    height: 2px;
    bottom: 0;
    left: 0;
    background: #2563eb; 
    box-shadow: 0 0 10px #2563eb;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%; 
}

.menu-mobile-btn { 
    display: none; 
    font-size: 1.8rem; 
    color: white; 
    cursor: pointer;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 70px; 
        right: 5%;
        width: 180px;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        padding: 15px;
        border-radius: 15px;
        border: 1px solid #2563eb;
        gap: 15px;
        text-align: center;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.295);
    }

    .nav-links.active {
        display: flex;
        animation: slideIn 0.3s ease;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 5px 0;
    }

    .menu-mobile-btn {
        display: block; 
    }
    
    .menu-mobile-btn:hover {
        color: #2563eb;
    }
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Header & Título */
.hero {
    height: auto; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px 20px;
}

.hero h1 { 
    font-family: 'MiFuenteCustom', 'Orbitron', sans-serif; 
    font-size: 3.5rem;
    margin-bottom: 15px; 
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
    color: white;
}

.highlight { 
    color: #2563eb; 
    text-shadow: 0 0 20px rgba(37, 100, 235, 0.212), 0 0 40px rgba(37, 100, 235, 0); 
    display: inline-block; 
}

.hero p {
    font-size: 1.1rem;
    color: #ffffff;
    max-width: 700px;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem; 
        letter-spacing: 1px;
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 0.95rem;
        padding: 0 20px;
        margin-bottom: 20px;
    }
}

/* Buscador Estilizado */
.search-wrapper {
    max-width: 500px;
    margin: 10px auto 40px;
    padding: 0 20px;
}

.search-wrapper input {
    width: 100%;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-family: 'MiFuenteCuerpo', sans-serif;
    font-size: 0.95rem;
    outline: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-wrapper input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Grilla de Vehículos */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 5%;
}

.vehicle-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.089);
    border-radius: 25px;
    padding: 25px;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.vehicle-card:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: #2563eb;
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.img-container {
    width: 75px;
    height: 75px;
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.img-container img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.vehicle-card:hover .img-container {
    background: #2563eb;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
    transform: rotateY(360deg);
}

.vehicle-card:hover .img-container img {
    transform: scale(1.1);
}

.info {
    margin-left: 20px;
    flex-grow: 1;
}

.info .id-text {
    font-family: 'MiFuenteCustom', 'Orbitron', sans-serif;
    color: #2563eb;
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: block;
}

.info .name-text {
    font-family: 'MiFuenteCustom', 'Orbitron', sans-serif;
    color: white;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-top: 2px;
}

.chevron {
    color: rgba(255, 255, 255, 0.3);
    transition: 0.3s ease;
}

.vehicle-card:hover .chevron {
    color: #2563eb;
    transform: translateX(5px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    overflow-y: auto;
}

.modal-content {
    background: rgba(15, 15, 15, 0.95);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(37, 99, 235, 0.4);
    width: 90%;
    max-width: 800px;
    border-radius: 25px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(37, 99, 235, 0.15);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a0a0a0;
    transition: 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.close-modal:hover {
    color: white;
    background: rgba(235, 37, 37, 0.8);
    transform: rotate(90deg);
}

/* Botón Reproductor Flotante y Ondas */
.music-control {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px; 
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.212);
    backdrop-filter: blur(8px);
    border: 2px solid #2563eb;
    color: rgb(0, 0, 0);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0);
    overflow: hidden;
}

.music-control:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0);
    background: rgba(37, 99, 235, 0.3);
}

#music-icon {
    font-size: 1.4rem;
    color: #ffffff; 
    transition: all 0.3s ease;
    margin-top: 5px; 
}

.music-on #music-icon {
    color: #2563eb;
    text-shadow: 0 0 15px #07070700, 0 0 5px rgba(255, 255, 255, 0);
    animation: flash 1.5s infinite alternate;
}

.music-waves {
    display: none; 
    align-items: flex-end;
    gap: 2px;
    height: 10px;
    margin-top: 2px;
}

.music-waves span {
    width: 3px;
    background: #2563eb;
    border-radius: 1px;
    animation: bounce 0.5s infinite alternate;
}

.music-on .music-waves {
    display: flex;
}

@keyframes bounce {
    from { height: 2px; }
    to { height: 10px; }
}

@keyframes flash {
    from { opacity: 0.7; transform: scale(1); }
    to { opacity: 1; transform: scale(1.1); }
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 5%;
    margin-top: 100px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px; 
    margin-bottom: 30px;
}

.footer-links a {
    color: #fafafa; 
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'MiFuenteCustom', 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px; 
}

.footer-links a:hover {
    color: #2563eb; 
    text-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #2563eb;
    box-shadow: 0 0 8px #2563eb;
    transition: width 0.3s ease; 
}

.footer-links a:hover::after {
    width: 100%;
}

footer p {
    font-size: 0.8rem;
    color: #c0c0c0;
    line-height: 1.8;
    margin-top: 15px;
}

.studio-name {
    display: block; 
    margin-top: 10px;
    font-family: 'Orbitron', sans-serif;
    color: #2563eb;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 2px;
}