/* Estilos generales */
:root {
    --redbull-red: #0600ef;
    --redbull-dark: #000000;
    --redbull-yellow: #ffea00;
    --redbull-light: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--redbull-dark), var(--redbull-red));
    color: var(--redbull-light);
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.team-logo {
    height: 60px;
    width: auto;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navegación */
nav {
    background-color: var(--redbull-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    color: var(--redbull-light);
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-list a:hover, 
.nav-list a.active {
    background-color: var(--redbull-red);
    color: var(--redbull-yellow);
}

/* Contenido principal */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.team-article {
    background-color: var(--redbull-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Tarjetas de pilotos */
.driver-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 2rem;
    border-bottom: 1px solid var(--medium-gray);
}

.driver-card:last-child {
    border-bottom: none;
}

.driver-card h3 {
    color: var(--redbull-red);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    grid-column: 1 / -1;
}

.driver-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    aspect-ratio: 3/4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.driver-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.driver-stats {
    margin-top: 1.5rem;
    list-style: none;
}

.driver-stats li {
    margin-bottom: 0.5rem;
    display: flex;
}

.driver-stats span:first-child {
    font-weight: 600;
    min-width: 100px;
    color: var(--redbull-dark);
}

/* Footer */
footer {
    background-color: var(--redbull-dark);
    color: var(--redbull-light);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--redbull-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--redbull-light);
    text-decoration: underline;
}

/* Clases utilitarias */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .team-logo {
        height: 50px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-list a {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .driver-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .driver-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}