.destacados-section {
    padding: 40px;
    background-color: #ffffff;
    border-radius: 30px 30px 0 0;
}

.destacados-titulo {
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.destacados-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 1300px;
    margin: 0 auto;
}

.destacados-card {
    /* border: 1px solid #ddd; */
    border-radius: 10px;
    width: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.destacados-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.destacados-img {
    width: 100%;
    height: 200px;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 15px;
}

.destacados-img.img1 {
    background-image: url('../../repos/images/ca1_1.png');
}

.destacados-img.img2 {
    background-image: url('../../repos/images/ca1_1.png');
}

.destacados-img.img3 {
    background-image: url('../../repos/images/ca1_1.png');
}


.destacados-titulo-producto {
    font-size: 1.2em;
    font-weight: 600;
    margin: 10px 0;
}

.destacados-descripcion {
    font-size: 0.9em;
    color: #444;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.destacados-boton {
    background: #222;
    color: #fff;
    border: none;
    padding: 12px 0;
    width: 220px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.destacados-card:hover {
    border-color: #aaa;
}

.destacados-card:hover .destacados-img {
    transform: scale(1.02);
}

.destacados-boton:hover {
    background: #000;
    transform: translateY(-2px);
}

.destacados-slider {
    display: none;
    width: 100%;
    padding: 0 15px;
}

.slider-container {
    display: flex;
    overflow: hidden;
}

.slider-card {
    min-width: 100%;
    /* padding: 15px; */
    display: none;
}

.slider-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slider-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #222;
    transform: scale(1.2);
}

.destacados-card {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.destacados-card:hover {
    border-color: #aaa;
    transform: translateY(-5px);
}

.destacados-card:hover::before {
    opacity: 1;
}

.destacados-img {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center bottom;
}

.destacados-card:hover .destacados-img {
    transform: scale(1.05);
}

.destacados-titulo-producto {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}


.destacados-boton {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.destacados-boton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.destacados-boton:hover {
    background: #000;
    transform: translateY(-3px);
}

.destacados-boton:hover::before {
    left: 100%;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-card.active {
    animation: slideUp 0.6s ease forwards;
}

.dot {
    position: relative;
    transition: all 0.3s ease;
}

.dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid #222;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.dot:hover::after {
    opacity: 1;
}

.dot.active::after {
    opacity: 1;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
}

.slider-container {
    display: flex;
    overflow: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.slider-card {
    min-width: 100%;
    padding: 15px;
    display: none;
    scroll-snap-align: start;
}

.destacados-slider {
    touch-action: pan-y;
}

.destacados-card {
    -webkit-tap-highlight-color: transparent;
}

.loading-products,
.no-products,
.error-loading {
    text-align: center;
    padding: 30px;
    font-size: 1.1em;
    color: #555;
    width: 100%;
}

.loading-products i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.destacados-img {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

@media (max-width: 768px) {
    .destacados-slider {
        padding: 0px;
        display: block !important;
    }

    .destacados-contenedor {
        display: none !important;
    }

    .slider-card {
        min-width: 100%;
        /* padding: 0 15px; */
    }

    .destacados-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}


@media (max-width: 768px) {
    .destacados-section {
        padding: 30px 5px;
    }

    .destacados-contenedor {
        display: none;
    }

    .destacados-slider {
        display: block;
    }

    .destacados-titulo {
        text-align: center;
        font-size: 1.6em;
        margin-bottom: 16px;
        padding-left: 5px;
    }

    .destacados-descripcion {
        text-align: center;
    }

    .destacados-card {
        width: 100%;
        max-width: 360px;
        border: 1px solid #eee;
        padding: 16px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    }

    .destacados-img {
        height: 190px;
        margin-bottom: 14px;
        background-color: #f6f6f6;
    }

    .destacados-titulo-producto {
        font-size: 1rem;
        margin: 6px 0 8px;
        white-space: normal;
    }

    .destacados-descripcion {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }

    .destacados-boton {
        width: 100%;
        padding: 12px 0;
        font-size: 0.9rem;
    }

    #ayuda-sticky {
        height: 50vh;
    }
}