* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    position: relative;
    overflow-x: hidden;
}

/* Fondo animado de F1 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2069&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: -2;
}

/* Imagen de Ayrton Senna */
.senna-bg {
    position: fixed;
    top: 0;
    right: -100px;
    width: 400px;
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1593701284014-9ee0a2d24b20?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
    filter: grayscale(20%);
}

/* Overlay con gradiente */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(220, 20, 60, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(0, 0, 0, 0.7) 50%, 
        rgba(220, 20, 60, 0.1) 100%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 15px;
    border: 3px solid #dc143c;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.3);
}

h1 {
    font-size: 3.5rem;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #ff0000, #ffffff, #ff0000);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.student-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-left: 5px solid #dc143c;
}

.student-info h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 5px;
}

.info-label {
    font-weight: bold;
    color: #dc143c;
    font-size: 1.1rem;
}

.info-value {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
}

.f1-elements {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 20px;
}

.f1-card {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 25px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    border: 2px solid #dc143c;
    transition: all 0.3s ease;
}

.f1-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(220, 20, 60, 0.4);
    border-color: #ffffff;
}

.f1-card h3 {
    color: #dc143c;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.racing-line {
    position: absolute;
    top: 50%;
    left: -100px;
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #dc143c, transparent);
    animation: racingMove 4s linear infinite;
}

@keyframes racingMove {
    0% { left: -200px; }
    100% { left: 100vw; }
}

.checkered-flag {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 40px;
    background-image: 
        linear-gradient(45deg, #000 25%, transparent 25%), 
        linear-gradient(-45deg, #000 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #000 75%), 
        linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
    border: 2px solid #333;
    z-index: 10;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .f1-card { width: 100%; }
    .senna-bg { display: none; }
    .info-item { flex-direction: column; text-align: center; }
}