/* Carusell reviews */
#ReviewsCarousel {
    max-width: 80em;
    padding: 10px 10px 10px 10px;
    margin: 0 auto;
    align-items: center;
}

.p-reviews, .p-costumer {
    font-size: 1.5em;
    margin-left: 1em;
}

.p-reviews {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 1em;
    height: 2.2em;
    line-height: 1.2;
    max-height: calc(2 * 1.2em);
}

.score-reviews {
    height: 2em;
    margin-left: 1.4em;
}

a.all-review {
    margin-left: 1.4em;
}
.allreviescontent-tap{
    margin-left: 3em;
}
.card_style_home .col-10 h2.p-costumer {
    font-weight: 800;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-height: calc(2 * 1.2em);
}

:root {
    --star-size: 20px;
    --star-color: #eeeeee;
    --star-background: #fc0;
}

.Stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: var(--star-size);
    font-family: Times;
    line-height: 1;
}

.Stars::before {
    content: '★★★★★';
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-review-write-home {
    font-size: 18px;
}

.all-reviews-content-home {
    text-align: center;
    padding: 1em;
    margin-top: 10px;
    margin-bottom: 10px;
}

.all-reviews-content-home > h2 {
    text-align: center;
    margin-top: 1em;
    font-size: 1.5em;
    margin-bottom: 1em;
    color: #333;
}

.all-reviews-content-home > button > a > span {
    font-size: 1.2em;
    padding-left: 1em;
    padding-right: 1em;
}

.all-reviews-content-home > button {
    height: 3.2em;
}

.card_style_home {
    padding: 2em;
    height: 235px !important;
    border-left: 3px solid #d1d1d1;
}

.product-4-columns {
    margin-bottom: 3em;
}

.product-4-columns .block-top-des .block-title {
    margin-bottom: 30px;
    padding: 20px 0 0;
    border-color: #eeeeee;
    border-style: solid;
    border-width: 0 0 3px;
}

.product-4-columns .block-top-des .block-title > h3 {
    color: #222222;
    margin: 0;
    padding: 0 28px 0 0;
    position: relative;
    top: 13px;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    background-color: #fff;
    line-height: 25px;
    display: inline-block;
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
    #quote-carousel {
        margin-bottom: 0;
        padding: 0 40px 30px 40px;
    }
}

/* ==== CUSTOM CAROUSEL STYLES ==== */
.carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: auto;
    touch-action: pan-y;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 calc(90% / 3);
    box-sizing: border-box;
    padding: 0 5px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 20;
    font-size: 1.5em;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Responsive: en móviles muestra 1 sola */
@media (max-width: 767px) {
    .carousel-slide {
        flex: 0 0 90%;
    }
    .carousel-track{
        width: 120%;
    }
    .carousel-wrapper .slider-controls button {
        opacity: 1 !important;
        left: -0.5em;
        width: 2em;
    }
    .allreviescontent-tap {
        margin-left: 2em;
    }
    .allreviescontent-tap {
        margin-left: 2em;
    }
}
.carousel-wrapper:hover .slider-controls button {
    opacity: 1;
}
.carousel-wrapper  .slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index:99;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
}
.carousel-wrapper div.slider-controls button {
    background: white;
    border: none;
    border-radius: 0 !important;
    box-shadow: rgba(50, 50, 50, 0.192) -2.90959px 0px 2.90959px 0px;
    color: #333;
    padding: 10px;
    font-size: 1.4em;
    height: 3.5em;
    width: 2.2em;
    line-height: 3.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.carousel-wrapper div.slider-controls button:hover {
    background: linear-gradient(0deg, #fbdd99 0%, #f0c049 100%);
    cursor:pointer;
}
