
/*----------------------INICIO DE PAGINA WEB--------------------------*/

/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: rgb(255, 250, 242);
  }




 
/* ----------------------ESTILOS HEADER-------------------------- */

.header{
    background-color: rgb(145, 142, 135);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    position: sticky;
    height: 70px;
    top: 0;
    z-index: 1000;

    .logo{
        width: 100px;
    }

    nav{
        display: flex;
        justify-content: center;
        align-items: center;

    ul{
      list-style: none; 
      display: flex; 
    }

    li{
        display: inline-block;
        margin-right: 20px;
    }
    a{
        list-style: none;
        text-decoration: none;
    }
}
}








/* ----------------------ESTILOS MAIN-------------------------- */



/*INICIO MANEJO DE IMAGEN DE FONDO PARA EL MAIN*/
.imagenFondoPrincipal {
    height: 100vh;
    padding-top: 10px;
    padding-bottom: 50px;
    background-image: url("../assets/img/fondo.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position:center center;
    .contenedorTextoPrincipalIndex{
        margin:0 auto;
        margin-top: 30px;
        padding:10px;
        border-radius: 5px;
        text-align: center;
        width: 50%;
        font-size: 10px;
        color: rgb(28, 27, 27);
        p {
            font-family: 'Roboto', sans-serif;
            font-size: 18px; 
            color: #333;    
        }
        a{
            display:inline-block;
            margin-top:30px;
            text-decoration: none;
            color: #333;
            font-size: 20px;
            border:2px solid black;
            padding:8px;
            border-radius:5px;
        }
    } 
}
/*FIN MANEJO DE IMAGEN DE FONDO PARA EL MAIN*/


.colorDeFondo{
    background-color: #859ca0; /*COLOR DE FONDO PAGINA*/
}

.ubicacionImg {
    text-align: center;
    background-color: #859ca0; /* Fondo ligero */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Las columnas se adaptan al ancho */
    gap: 20px; /* Reduce el espacio entre los elementos */
    padding: 10px;
    height: auto; /* Cambia para evitar alturas fijas */
    padding-top: 60px;
}
    

/*INICIO EFECTOS PARA IMAGENES DE CADA REPUESTO*/
.galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}

.galeria div {
    text-align: center;
    background-color: #474a92;
    border: 1px solid gray;
    color: black;
    width: 160px;
    height: 160px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.galeria div img {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    width: 80%;
    height: 80%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.galeria div img:hover {
    transform: scale(1.1); 
    box-shadow: 0 4px 8px rgb(226, 226, 226); 
}
/*FIN EFECTOS PARA IMAGENES DE CADA REPUESTO*/

/*INICIO ESTILO PARA AGREGAR AL CARRITO*/
.agregarCarrito {
    display: inline-block;
    padding: 10px 15px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    color: white; /* Cambiado a blanco para un texto más limpio */
    background-color: #4CAF50; /* Verde atractivo */
    border-radius: 80px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Sombra */
}


.agregarCarrito:active {
    transform: scale(0.95); /* Efecto de clic */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Menor sombra */
}
/*FIN ESTILO PARA AGREGAR AL CARRITO*/


/*INICIO COLORES,TAMAÑO IMAGEN,CENTRADO*/
.centradoMain{
    text-align: center;
}
.logoMain{
    width: 110px;
    margin-bottom: 10px;
}
.colorMainH1 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: #333;
    text-align: center;
    padding-top: 20px;
}
.colorMainH2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #333;
    padding: 20px;
    
    text-align: center;
    margin-bottom: 20px;
}
.colorMainH3 {
    font-family: 'Roboto', sans-serif; 
    font-size: 20px; 
    text-align: center;
    color: #0b69a8; 
    
    
}
.colorMainH4{
    font-family: 'Roboto', sans-serif;
    font-size: 50px; 
    color: #000000; 
    text-align: center;
    margin-top: 100px;
}

.colorMainP{
    font-family: 'Montserrat', sans-serif;
    font-size: 17px; 
    color: #642929; 
}
/*FIN COLORES,TAMAÑO IMAGEN,CENTRADO*/





.nosotros {
    padding: 20px;
    background-color: #859ca0; /* Fondo ligero */
}

.nosotros h1 {
    text-align: center;
    font-size: 50px;
    color: #333;
    margin-bottom: 20px;
    padding-top: 50px;
}

.contenedorNosotros {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Dos columnas iguales */
    grid-template-rows: auto auto auto; /* Filas automáticas según el contenido */
    grid-template-areas: 
        "proposito nosotrosImagen margenes"
        "mision nosotrosImagen promociones"
        "vision nosotrosImagen ventas";   
}
.nosotrosImagen {
    grid-area: nosotrosImagen;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px;
}
.nosotrosImagen img {
    height: 60vh;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra suave */
}
.proposito {
    grid-area: proposito;
    padding: 10px;
    padding-top: 100px;
    text-align: center;
}
.mision { 
    grid-area: mision;
    padding: 10px;
    padding-top: 100px;
    text-align: center;
}
.vision {
    grid-area: vision;
    text-align: center;
    padding: 10px;
    padding-top: 100px;
}
.promociones{
    grid-area: promociones;
    text-align: center;
    padding: 10px;
    padding-top: 100px;
}





/*----------------------GALERIA PARA PRODUCTOS--------------------------*/
.color{
    background-color: #859ca0; /* Fondo ligero */
}
.galeriaGridRepuestos{
    width: 30%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 0.5fr 1fr;
    grid-template-areas: "motor embrague"
                         "distribucion freno"
                         "suspension refrigeracion";
    gap: 25px;
}

    .galeriaGridRepuestos img {
        width: 90%;
        height: 90%;
        object-fit: cover;
        transition: box-shadow 0.3s ease;
    }
    
    .galeriaGridRepuestos img:hover {
        transform: scale(1.1); /* Efecto de escala */
        box-shadow: 0 4px 8px rgba(184, 21, 21, 0.3);
    }



        .hijo_1{
            grid-area:motor;
            width: 80%;
            height: 80%;
            object-fit: cover;
           }
           .hijo_2{
            grid-area:embrague;
            width: 80%;
            height: 80%;
            object-fit: cover;
           }
           .hijo_3{
            grid-area: distribucion;
            width: 80%;
            height: 80%;
            object-fit: cover;
           }
           .hijo_4{
            grid-area: freno;
            width: 80%;
            height: 80%;
            object-fit: cover;
           }

    

/* ----------------------ESTILOS FOOTER-------------------------- */
.footer {
    height: 100vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px;
    background-color: black;
    color: #fff;

.logo {
    width: 100px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    margin-bottom: 10px;
}

ul a {
    text-decoration: none;
    color: #51410d;
    font-size: 1.2em;
}

.colorFooterH1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    color: #167e11;
    margin-bottom: 10px;
}

.colorFooterH2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    color: #591c0f;
    margin-bottom: 10px;
}

.colorFooterH3 {
    font-size: 20px;
    color: #b7371a;
    margin-bottom: 10px;
}

.colorFooterP {
    text-align: left;
    font-size: 20px;
    color: #642929;
    width: 100%;
    margin-top: 20px;
}


.fa-facebook, .fa-instagram, .fa-whatsapp {
    font-size: 40px;
    margin-right: 10px;
}

.fa-facebook {
    color: #474a92;
}

.fa-instagram {
    color: #e592a2;
}

.fa-whatsapp {
    color: rgb(44, 181, 44);
}

}


/* ----------------------FORMULARIOS--------------------------*/
.fondo{
    background-color: #837f7f;
}
.formulario-container {
    max-width: 600px;
    margin: auto;
    padding: 25px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  label {
    font-weight: bold;
    text-align: left;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #333;
  }
  
  input, select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
  }
  
  button {
    padding: 10px;
    font-size: 1rem;
    background-color: #859ca0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  button:hover {
    background-color: #6d8287;
  }

.mapa {
    padding: 70px;
    margin-top: 20px;
    text-align: center;
    width: 100%;
    height: 450px;
    border-radius: 8px;

}




/*----------------------FIN DE PAGINA WEB--------------------------*/



.carrito-container {
    padding: 20px;
    text-align: center;
}

#productos-carrito {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.producto-carrito {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    text-align: center;
}

.producto-carrito h3 {
    font-size: 1.2rem;
    margin: 10px 0;
}

.producto-carrito p {
    font-size: 1rem;
    color: #555;
}

.btn-vaciar, .btn-finalizar {
    margin: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-vaciar:hover, .btn-finalizar:hover {
    background-color: #0056b3;
}



@media (max-width: 768px) {
    .ubicacionImg {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Tamaño más pequeño en pantallas móviles */
        gap: 10px; /* Reduce el espacio entre elementos en dispositivos pequeños */
        padding: 5px;
    }
    html, body {
        width: 100%;
        overflow-x: hidden; /* Evita el desbordamiento horizontal */
    }
    .footer {
        flex-direction:column;
        align-items:center;
        text-align: center;
    }

    .footer ul {
        margin-bottom: 20px; /* Espaciado entre secciones */
    }
    .contenedorNosotros {
            grid-template-columns: 1fr; /* Una columna para pantallas pequeñas */
            grid-template-areas: 
                "nosotrosImagen"
                "proposito"
                "mision"
                "vision"
                "promociones"
                "margenes"
                "ventas"; 
        }
    
        .nosotrosImagen img {
            height: 30vh; /* Reduce el tamaño de la imagen */
        }
    
        .nosotrosImagen {
            padding: 20px; /* Menor padding para móviles */
        }
    
        .nosotros h1 {
            font-size: 35px; /* Reduce el tamaño del título */
        }
    }



