@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;700&display=swap');

body, html {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: 'MGPInline-RegularNarrow', sans-serif;
}

@font-face {
    font-family: 'MGPInline-RegularNarrow';
    src: url('fonts/MGPInline-RegularNarrow.ttf') format('truetype'); /* Reemplaza con la ruta correcta */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MGPDisplay-Light';
    src: url('fonts/MGPDisplay-Light.ttf') format('truetype'); /* Asegúrate que la ruta es correcta */
    font-weight: normal;
    font-style: normal;
}





/* --- Header Styles --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: #ffffff;
    border-bottom: 1px solid #C604F7;
}

.logo img {
    max-height: 50px;
    border-radius: 8px; /* Agrega esquinas redondeadas al logo */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-left: 10px; /* Espacio entre los elementos del menú */
}

nav ul li a {
    display: block;
    padding: 10px 20px;
    background-color: #C604F7;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Evita que el texto se rompa */
}

nav ul li a:hover {
    background-color: #a003c4;
}

/* --- Main Content Styles --- */
main {
    width: 100%;
}


.slider img {
    width: 100%;
    height: auto;
    display: block;
}

.fuchsia-bar {
    background-color: #C604F7;
    height: 30px;
    width: 100%;
}



.coming-soon-container {
    text-align: center;
    padding: 40px 20px;
}

.coming-soon-container h1 {
    font-size: 2.5em;
    margin: 0;
}

.info-section {
 background-color: #ffffff;
 color: #000000;
 border: 0px solid #C604F7;
 display: flex;
 padding: 20px;
 margin-bottom: 20px;
}

.info-column {
 flex: 1;
 padding-right: 20px;
}

.info-column h2, .info-column h3 {
 margin-top: 0;
}

.info-column hr {
 border: none;
 border-top: 1px solid #C604F7;
 margin: 10px 0;
}

.image-column {
 flex: 1;
 text-align: center;
}

.image-column img {
 max-width: 100%;
 height: auto;
 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Agrega sombra a las imagenes */
}

.paragraph-section {
 background-color: #fff;
 font-family: 'MGPDisplay-Light', sans-serif;
 border-radius: 8px;
 padding: 15px;
 max-width: 80%; /* Establece un ancho máximo */
 margin: 20px auto; /* Centra horizontalmente */
 color: #000;
 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
 margin-bottom: 20px;
 margin-bottom: 20px;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
 header {
  flex-direction: column;
  align-items: center;
  text-align: center;
 }

 nav ul {
  padding: 0;
 }

 .info-section {
    flex-direction: column;
    align-items: stretch;
   }

 nav ul li {
  display: block;
  margin: 5px 0;
  }

 .road-to-motogp-logo {
  text-align: center; /* Center the logo on smaller screens */
 }
}

.info-column {
    flex: 100%; /* Ocupa el 100% del ancho en pantallas pequeñas */
    padding-right: 0; /* Elimina el padding en pantallas pequeñas */
   }
/* Styles for the Road to MotoGP Logo */
.road-to-motogp-logo {
    text-align: right; /* Align the content to the right */
}

.road-to-motogp-logo img {
    /* Set a maximum width for the logo so it doesn't overflow */
    max-width: 200px;
    /* Make the height adjust proportionally */
    height: auto;
}

/* Styles for the footer */
.footer {
    background: linear-gradient(to bottom, #790295, #1a1a1a);
    color: #fff;
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.footer img {
    max-width: 100px; /* Adjust as needed */
    height: auto;
    margin: 5px;
    border-radius: 8px;
 }


/* --- Form Page Specific Styles --- */
.form-page {
    background-image: url('img/Background_Moto4_LatinCup_Version3_16_9.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
    
.form-container {
    /* Color de fondo semi-transparente para que se vea la imagen */
    background-color: rgba(51, 51, 51, 0.9);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    margin: 2rem auto;
    max-width: 500px;
}

.form-header-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #444;
    color: #fff;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

/* Estilo para los mensajes de error */
.error-message {
    color: #ff6b6b;
    font-size: 0.9em;
    height: 1em; /* Reserva espacio para el mensaje de error */
    margin-top: 4px;
}

/* Estilo para resaltar los campos con error */
.input-error {
    border-color: #ff6b6b;
}

/* Estilo para resaltar las etiquetas de los campos con error */
label.input-error {
    color: #ff6b6b;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

/* Estilos para la barra de progreso */
.progress-container {
    width: 100%;
    background-color: #555;
    border-radius: 8px;
}

.progress-bar {
    width: 0%;
    height: 10px;
    background-color: #C604F7;
    border-radius: 8px;
    transition: width 0.4s ease-in-out; /* Animación suave */
}

/* Oculta todas las secciones por defecto */
.form-section {
    display: none;
}

/* Agrega la animación fade-in */
.fade-in {
    animation: fadeInSection 0.5s ease-in-out;
}

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Indicadores de pasos */
.step-indicator {
    text-align: center;
    margin-bottom: 20px;
}

.step {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #555;
    border: none;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
    background-color: #C604F7;
}

.step.finish {
    background-color: #C604F7;
}

/* Botones de navegación */
.form-navigation {
    overflow: auto;
    margin-top: 20px;
}

#prevBtn {
    float: left;
    background-color: #555;
}

#nextBtn {
    float: right;
    background-color: #C604F7;
}

button:hover {
    opacity: 0.8;
}

/* Estilos para mejorar la estructura de los radio buttons */
.radio-option {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.radio-option label {
    margin-left: 8px;
    margin-bottom: 0; /* Anula el margen de los labels generales dentro de form-group */
}

.form-group input[type="radio"] {
    margin: 0; /* Resetea el margen para alinear con flexbox */
}

/* --- Media Queries para Responsividad --- */
@media (max-width: 600px) {
    /* Ajustes para la página de inicio en móviles */
    .coming-soon-container h1 {
        font-size: 1.8em;
    }

    /* Ajustes para la página del formulario en móviles */
    .form-page {
        display: block;
    }

    .form-container {
        width: 95%; /* Hacemos el formulario un poco más ancho en móviles pero con márgenes */
        padding: 20px; /* Reducimos un poco el padding para pantallas pequeñas */
        box-sizing: border-box;
        margin: 2rem auto; /* Añade margen vertical para que no se pegue a los bordes */
    }
}

.success-message {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: Arial, sans-serif;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.success-message h2 {
    color: #7b2cbf;
    font-size: 26px;
}
