/* RESET DE ESTILOS GENERALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0B0C10;
    color: #FFFFFF;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-alt {
    background-color: #12141C;
}

/* MENÚ DE NAVEGACIÓN (HEADER) */
.main-header {
    background-color: rgba(11, 12, 16, 0.95);
    border-bottom: 2px solid #FF003C;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-text {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 1.5px;
}
.logo-link {
    text-decoration: none; /* Elimina el subrayado clásico de los enlaces */
    color: inherit;        /* Hereda el color que ya tuviera el logo */
    cursor: pointer;       /* Asegura que salga la mano al pasar el ratón */
}

.logo-link:hover {
    /* Opcional: si quieres que haga un pequeño efecto visual al pasar el ratón, 
       puedes cambiarle la opacidad ligeramente */
    opacity: 0.9; 
}
.accent-text {
    color: #FF003C;
}

.nav-menu a {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #FF003C;
}

.nav-menu .btn-nav {
    background-color: #FF003C;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-menu .btn-nav:hover {
    background-color: #CC002F;
    color: #FFFFFF;
}
.form-reserva textarea {
    width: 100%;
    min-height: 160px; /* Le da una altura inicial muy cómoda para escribir */
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #444; /* Pon el color de borde que usas en los otros inputs */
    background-color: #222; /* Fondo oscuro a juego */
    color: #fff;
    font-family: inherit; /* Para que no use la letra fea por defecto */
    font-size: 1rem;
    border-radius: 6px;
    resize: vertical; /* Permite al usuario estirarlo hacia abajo si quiere, pero no deformar el ancho */
}

/* Opcional: Efecto focus cuando el cliente hace clic dentro */
.form-reserva textarea:focus {
    border-color: #ff4444; /* Tu rojo racing */
    outline: none;
}
/* SECCIÓN HERO CON LA IMAGEN DE FONDO REAL */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('img/alquiler-simulador-conduccion-girona.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}
.features-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Fondo oscuro a juego con el ambiente racing, cámbialo si usas otro */
    color: #ffffff;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Capa oscura agresiva para asegurar la lectura del texto blanco */
    background: linear-gradient(135deg, rgba(11, 12, 16, 0.6) 30%, rgba(11, 12, 16, 0.3) 100%);
    z-index: 1;
}
/* Ocultar elementos en pantallas móviles */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 18px;
    color: #C5C6C7;
    margin-bottom: 35px;
}

.btn-primary {
    display: inline-block;
    background-color: #FF003C;
    color: #FFFFFF;
    text-decoration: none;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 60, 0.4);
}

.btn-primary:hover {
    background-color: #CC002F;
    transform: translateY(-2px);
}

/* TÍTULOS DE SECCIÓN */
.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 50px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #FF003C;
}

/* GRID DE LA EXPERIENCIA */
.grid-experiencia {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card-experiencia {
    background-color: #12141C;
    padding: 30px;
    border-radius: 6px;
    border-top: 3px solid #1f212d;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.card-experiencia:hover {
    border-color: #FF003C;
    transform: translateY(-5px);
}

.card-num {
    font-size: 36px;
    font-weight: 900;
    color: rgb(247, 247, 247);
    margin-bottom: 10px;
}

.card-experiencia h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.card-experiencia p {
    font-size: 14px;
    color: #A9A9A9;
}

.card-experiencia strong {
    color: #00FF66; /* Verde de tiempos para resaltar los 7 minutos */
}

/* GRID DE SERVICIOS */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-servicio {
    background-color: #0B0C10;
    padding: 40px 30px;
    border-radius: 6px;
    border-left: 4px solid #FF003C;
}

.card-servicio h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.card-servicio p {
    font-size: 15px;
    color: #C5C6C7;
}

/* SECCIÓN CIRCUITO */
.grid-circuito {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.circuito-text h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.circuito-text p {
    color: #C5C6C7;
    font-size: 16px;
}

.circuito-img-container img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 2px solid #12141C;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
/* Rejilla inteligente (Flexbox) */
.feature-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px; /* Espacio entre el texto y la imagen */
}

/* Bloque de texto (Ocupa el 50%) */
.feature-text-block {
    flex: 1;
}

.feature-item {
    margin-bottom: 25px;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: #ff3333; /* Color de acento (rojo racing). Cámbialo por tu color corporativo */
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

.feature-item em {
    color: #ffffff;
    font-style: normal;
    font-weight: 600;
}

/* Bloque de imagen (Ocupa el 50%) */
.feature-image-block {
    flex: 1;
}
.img-responsive {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Bordes ligeramente redondeados como en las pantallas modernas */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Sombra para darle profundidad */
}
/* FORMULARIO DE RESERVA Y LOGÍSTICA */
.max-width-form {
    max-width: 700px;
    margin: 0 auto;
}

.section-subtitle {
    text-align: center;
    color: #C5C6C7;
    margin-top: -35px;
    margin-bottom: 40px;
}

.txt-logistica {
    background-color: rgba(255, 0, 60, 0.05);
    border: 1px dashed #FF003C;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 40px;
    font-size: 15px;
    color: #E5E5E5;
}

.form-reserva {
    background-color: #0B0C10;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #C5C6C7;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: #12141C;
    border: 1px solid #1f212d;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: #FF003C;
}

.btn-submit {
    width: 100%;
    background-color: #FF003C;
    color: #FFFFFF;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #CC002F;
}

/* PIE DE PÁGINA (FOOTER) */
.main-footer {
    background-color: #050608;
    padding: 30px 0;
    border-top: 1px solid #12141C;
    font-size: 14px;
    color: #A9A9A9;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #A9A9A9;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FF003C;
}

/* RESPONSIVE (MÓVILES) */
@media (max-width: 768px) {
       .feature-grid {
        flex-direction: column-reverse; /* En el móvil, la imagen pasa arriba y el texto abajo */
        gap: 25px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .feature-item {
        text-align: center; /* Centramos el texto en móviles para que estéticamente quede mejor */
        margin-bottom: 20px;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu a {
        margin: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .form-reserva {
        padding: 20px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}