/* Estilos generales y reset */
:root {
    --primary-color: #e10600; /* Rojo F1 */
    --secondary-color: #ffffff;
    --dark-color: #15151e;
    --light-color: #f8f8f8;
    --accent-color: #00d2be; /* Verde turquesa inspirado en algunos equipos */
    --text-color: #333333;
    --text-light: #777777;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Titillium Web', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
  }
  
  /* Header */
  header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('imagenes/f1-header-bg.jpg') center/cover no-repeat;
    color: var(--secondary-color);
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
  }
  
  .header-content {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
  }
  
  /* Navegación */
  nav {
    background-color: var(--dark-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  .nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .nav-list li {
    margin: 0 0.5rem;
  }
  
  .nav-list a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
  }
  
  .nav-list a:hover, .nav-list a.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
  }
  
  /* Contenido principal */
  .container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
  }
  
  .history-section {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }
  
  .history-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .history-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
  }
  
  .history-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }
  
  .history-image:hover {
    transform: scale(1.02);
  }
  
  figcaption {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Grid de leyendas */
  .legends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .legend-card {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .legend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .legend-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
  }
  
  /* Formulario de sugerencias */
  .suggestions {
    background-color: var(--dark-color);
    color: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 8px;
    margin-top: 3rem;
  }
  
  .suggestions h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
  }
  
  .suggestions p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
  }
  
  .suggestion-form {
    display: grid;
    gap: 1.5rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.3);
    background-color: var(--secondary-color);
  }
  
  .submit-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
  }
  
  .submit-btn:hover {
    background-color: #c00500;
    transform: translateY(-2px);
  }
  
  /* Footer */
  .site-footer {
    background-color: var(--dark-color);
    color: var(--secondary-color);
    padding: 3rem 0 1rem;
  }
  
  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
  
  .footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
  }
  
  .footer-section ul {
    list-style: none;
  }
  
  .footer-section ul li {
    margin-bottom: 0.5rem;
  }
  
  .footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-section a:hover {
    color: var(--accent-color);
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .acknowledgment {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    header h1 {
      font-size: 2.5rem;
    }
    
    .subtitle {
      font-size: 1.2rem;
    }
    
    .nav-list {
      justify-content: space-around;
    }
    
    .nav-list li {
      margin: 0.3rem;
    }
    
    .history-section {
      padding: 1.5rem;
    }
    
    .suggestions {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    header {
      padding: 3rem 1rem;
    }
    
    header h1 {
      font-size: 2rem;
    }
    
    .nav-list {
      flex-direction: column;
      align-items: center;
    }
    
    .nav-list li {
      margin: 0.2rem 0;
      width: 100%;
      text-align: center;
    }
    
    .nav-list a {
      display: block;
      padding: 0.5rem;
    }
    
    .legends-grid {
      grid-template-columns: 1fr;
    }
  }