@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

li {
    list-style: none;
}

a {
    text-decoration: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", serif;
}

main {
    margin: 0 10em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-container {
    width: 70%;
    overflow: hidden;
    position: relative;
    margin: 0 10em;
}

.carousel-track {
    display: flex;
    transition: transform .7s ease-in-out;
}

.card {
    height: 250px;
    width: 250px;
    box-sizing: border-box;
    /* padding: 10px; */
    text-align: center;
    background: white;
    border-radius: 8px;
    margin: 0.9em;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.24);
}


.card img {
    width: 170px;
    height: 170px;
    object-fit: cover;
}

.card h3 {
    margin: 0;
    font-size: 1.2em;
    color: #222222;
}

.card h4 {
    color: #898989;
    margin-top: 0.5em;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.5s;
}

.indicator.active {
    background-color: #007bff;
}

h2 {
    font-size: 2em;
    font-weight: 800;
    color: #007bff;
    margin: 2em 0 .5em 0;
}

h3 {
    margin: 0;
    margin-bottom: 2em;
    color: #898989;
    font-size: 1em;
}


.card_IM {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.card_img-text {
    position: relative;
    text-align: center;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.185);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card_img-text img {
    width: 100%;
    height: auto;
    display: block;
}

.card_img-text p {
    position: absolute;
    top: 24%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.4em;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    width: 60%;
}

.card_img-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 128, 255, 0.7);
    /* Cambia el color y la opacidad */
    pointer-events: none;
    /* Para que el overlay no interfiera con la interacción */
}

.card_img-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 128, 255, 0.7);
}

.compra {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.compra .card_Compra {
    width: 180px;
    height: 180px;
    margin: 0 2.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.compra .card_Compra img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.compra .card_Compra p {
    color: #898989;
    font-weight: 600;
}

.marcas {
    display: flex;
}

.marcas .img {
    width: 200px;
    height: 100px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em 2em;
}

.marcas img {
    width: 100%;
}

@media (max-width: 1590px){
    .card_IM {
        display: none;
    }

    .noR{
        display: none;
    }
}


@media (max-width: 800px) {
    main {
        margin: 0;
    }

    main h2 {
        font-size: 1.5em;
        margin: 0;
        text-align: center;
        padding: 1em 0 .2em 0;
    }

    main h3 {
        margin: 0;
        font-size: .8em;
        text-align: center;
        padding: .5em;
    }

    .carousel-container{
        display: initial;
        width: 75%;
        overflow: initial;
        position: initial;
        margin: 0;
    }

    .carousel-track {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1em;
    }
    
    .card {
        height: 135px;
        width: 135px;
        margin: 0;
    }

    .carousel-container .carousel-track a{
        margin: 0;
        padding: 0;
    }
    
    
    .card img {
        width: 90px;
        height: 90px;
    }
    
    .card h3 {
        font-size: .6em;
    }
    
    .card h4 {
        font-size: .5em;
    }

    .carousel-indicators{
        display: none;
    }

    .compra {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        Place-items: center;
    }

    .compra .card_Compra{
        margin: 0;
    }

    .compra .card_Compra p{
        font-size: .8em;
    }

    .marcas {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        Place-items: center;
    }

    .marcas .img{
        margin: 0;
        padding: 1em;
        width: 150px;
        height: 50px;
    }
}



