.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../img/fondo.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
}

.search-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
    color: black;
}

.search-box input {
    width: 180px;
}

.search-box button {
    background: #EA2A2A;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px;
}


.benefits {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
}
#slths {
  width: 5rem;
}

#slthr {
  width: 5rem;
}

.benefits h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.benefit-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.benefit-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.benefit-item img {
    width: 100px;
    margin-bottom: 15px;
}

.benefit-item h3 {
    margin-bottom: 10px;
}

.benefit-item p {
    color: #555;
}

.popular-cars {
    text-align: center;
    padding: 50px 20px;
    background: #f4f4f4;
}

.popular-cars h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.car-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.car-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 250px;
    padding: 20px;
    text-align: center;
}

.car-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.car-item h3 {
    margin: 10px 0;
}

.car-item p {
    color: #666;
    margin-bottom: 15px;
}

.car-item button {
    background: #EA2A2A;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

/*Mapa*/
.map-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/mapa-fondo.jpg') center/cover no-repeat;
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.map-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    z-index: 1;
}

.map-info {
    position: relative;
    z-index: 2;
}

.map-info h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.map-info p {
    font-size: 1em;
    margin-bottom: 20px;
}

.map-button {
    background: #EA2A2A;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.map-button:hover {
    background: #EA2A2A;
}

/*footer*/
.footer-nuevo {
    background: #222;
    color: #ccc;
    padding: 40px 20px 10px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand h3 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 0.9em;
    color: #aaa;
}

.footer-links h4,
.footer-social h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 5px 0;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: #e63946;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-contact a {
    color: #ccc;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #e63946;
}

.footer-social .social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.footer-social .social-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-social .social-icons a:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
    font-size: 0.8em;
    color: #777;
}

/* Estilo para el contenedor de la búsqueda con imagen de fondo */
.search-box {
    background-image: url('ruta/a/tu/imagen.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
    margin-bottom: 30px; /* Espacio debajo del recuadro */
    border-radius: 10px;
    background-color: white; /* Fondo blanco en caso de que la imagen no se cargue */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Opcional, para dar sombra */
}

/* Aseguramos que la imagen no se extienda por toda la página */
body {
    background-color: #f4f4f4; /* Fondo gris claro para el body */
    margin: 0;
    padding: 0;
}

/* Para no dejar que se pegue el recuadro con la siguiente sección */
.form-row {
    margin-bottom: 20px; /* Separar filas */
}



/* Ajuste para las pantallas más pequeñas */
@media (max-width: 768px) {
    .search-box {
        background-size: auto 100%; /* Ajusta el tamaño de la imagen en pantallas pequeñas */
        padding: 15px; /* Reduce el padding en pantallas pequeñas */
    }

    .form-row {
        margin-bottom: 10px; /* Menos espacio entre las filas en pantallas pequeñas */
    }
}

/* Espaciado para el botón */
.btn {
    margin-top: 20px; /* Espacio arriba del botón */
}

.nav-link {
  color: #eaeaea ;           /* color del texto normal */
  transition: color 0.3s ; /* efecto suave */
}


.nav-link:hover {
  color: white ;
}
