.grid-layout {
    display: grid;
    grid-template-columns: minmax(500px, 1fr) minmax(350px, 24%);
    grid-gap: 4%;
    align-items: start;
    padding-top: 2rem;
}

@media screen and (max-width: 767px) {
    .grid-layout {
        display: block;
        padding-top: 2rem;
    }
}


.grid-aside {
    position: sticky;
    top: 100px;
    left: 0px;
    overflow-y: scroll;
    max-height: calc( 100vh - 100px );
    padding-bottom: 2rem;
}

.grid-aside::-webkit-scrollbar {
    display: none;
}

@media screen and (max-width: 767px) {
    .producto-imagenes {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.imagen-principal img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

@media screen and (max-width: 767px) {
    .imagen-principal {
        width: 100%;
        height: 250px;
    }

    .imagen-principal img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }
}
.imagen-secundaria-cont {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

@media screen and (max-width: 767px) {
    .imagen-secundaria-cont {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start; 
        flex-wrap: nowrap;
        flex-direction: column;
        width: 25%;
        height: 200px;
        margin-top: 0px;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

.imagen-secundaria {
    margin-right: 2%;
    width: 23%;
}

    .imagen-secundaria img {
        width: 100%;
        object-fit: contain;
        cursor: pointer;
        border-radius: 10px;
    }

    @media screen and (max-width: 767px) {
        .imagen-secundaria {
            width: 100%;
        }
    }

.btn-fav {
    background-color: transparent;
    color: #AAA;
    border: 1px solid #AAA;
    border-radius: 10px;
    height: 45px;
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-contacto {
    background-color: transparent;
    border: 0px;
}

.tarjeta-escaparate-left {
    border: 1px solid #F1F1F1;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    padding: 1.5rem;
    padding-bottom: 2.5rem;
}

@media screen and (max-width: 767px) {
    .tarjeta-escaparate-left {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 0px;
    }
}

.tarjeta-escaparate-right {
    border: 1px solid #F1F1F1;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 1.5rem;
}

@media screen and (max-width: 767px) {
    .tarjeta-escaparate-right {
        border-top-right-radius: 0px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
}

::placeholder {
    color: #999999;
}

textarea {
    height: 185px;
    border: 1px solid #EEE;
}
input {
    border: 1px solid #EEE;
}

@media screen and (max-width: 767px) {
    .btn-loquiero {
        width: 180px;
    }

    .btns-producto {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    .btns-producto button {
        margin-right: 1rem;
    }
}


.modal-front {
    background-color: #FFF;
    /*margin: 40% auto; /* 15% from the top and centered */
    padding: 1rem;
    border: 1px solid #DBDBDB;
    width: 90%; /* Could be more or less, depending on screen size */
    border-radius: var(--radius);
    height: auto;
    max-height: 95%;
    position:fixed;
    z-index: 11;
    border-radius: 10px;
}


.close {
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  font-size: 24px;
  cursor: pointer;
}

.modal-titulo {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
    padding: 0.5rem;
    width: 90%
}

.modal-contenido {
    width: 100%;
    height: 100%;
    max-height: 80%;
    padding: 0.5rem;
    overflow-y: auto;
    overflow-x: hidden
}

.btn-contacto-otros {
    display: flex;
     justify-content: center;
     align-items: center;
     background-color: #fff9fb;
     border: 1px solid #ffd3de;
     padding: 1rem;
     width: auto;
     border-radius: 10px;
     margin-top: 2rem;
     transition: background-color 0.5s ease;
 }
 
 .btn-contacto-otros:hover {
     background-color: #fff5f8;
 }
 
     .btn-contacto-otros img {
         width: 22px;
         margin-right: 5px
     }
 
     .btn-contacto-otros span {
         color: var(--main-color);
         font-size: 1.3rem;
         font-weight: 600
     }