:root {
    --metal-dark: #0f172a;
    --metal-blue: #1b263b;
    --metal-accent: #0d6efd;
    --metal-light: #2a3f5f;
    --highlight: #ecf0f1;
    --light: #ecf0f1;
    --shadow: 0 6px 16px rgba(0,0,0,0.25);
    --transition: all 0.3s ease;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, var(--metal-dark), var(--metal-accent), var(--metal-dark));
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a, .mobile-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    transition: var(--transition);
    border-radius: 5px;
}

.nav-link.active, .mobile-link.active {
    color: var(--highlight);
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link:hover, .mobile-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

#mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--metal-blue);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1001;
    padding: 10px 0;
}

#mobile-menu.active {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile-menu .mobile-link {
    padding: 12px 20px;
}

#mobile-menu .mobile-link:hover, #mobile-menu .mobile-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--highlight);
    padding-left: 25px;
}

/* Sección principal */
.brands-section {
    background: linear-gradient(135deg, var(--metal-blue), var(--metal-light));
    min-height: 100vh;
    padding: 60px 20px;
    color: white;
}

/* Títulos animados */
.animated-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #0d6efd, #1e40af, #1b263b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Grid de tarjetas */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.brand-card {
    background: linear-gradient(135deg, var(--metal-blue), var(--metal-light));
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(13,110,253,0.2);
    transition: var(--transition);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(13,110,253,0.3);
}

.brand-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 10px;
    transition: var(--transition);
}

.brand-card.highlight {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(13,110,253,0.3);
    border: 2px solid var(--metal-accent);
}

.brand-card h3 {
    margin-top: 15px;
    font-size: 1.3rem;
    color: var(--light);
}

/* Formulario */
.tracking-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.brand-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.brand-filters input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid rgba(13,110,253,0.3);
    background: rgba(13,110,253,0.1);
    color: white;
    font-size: 1rem;
}

.brand-filters input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.brand-filters input:focus {
    outline: none;
    border-color: var(--metal-accent);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.3);
}

.brand-filters button {
    padding: 12px 20px;
    border-radius: 25px;
    background: linear-gradient(45deg, #0d6efd, #1e40af);
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 600;
}

.brand-filters button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13,110,253,0.5);
}

.error-message {
    color: #ff6b6b;
    margin-top: 10px;
    display: none;
    font-weight: 500;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, var(--metal-dark), var(--metal-blue), var(--metal-dark));
    padding: 20px;
    color: white;
    text-align: center;
}

.footer .social-icons {
    margin-bottom: 15px;
}

.footer .social-icons a {
    margin: 0 10px;
    font-size: 28px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    text-decoration: none;
}

.footer .social-icons a:hover {
    color: var(--metal-accent);
    transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    #mobile-menu-button {
        display: block;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-card img {
        width: 100px;
        height: 100px;
    }
    
    .animated-title {
        font-size: 2.2rem;
    }
    
    .brand-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .brand-filters input {
        max-width: 100%;
    }
}