/* Carrusel Simple - 3 imágenes visibles en escritorio */
.carousel {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.carousel .gallery {
    position: relative;
    width: 100%;
    height: 200px;
    max-height: 200px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
    padding: 20px;
    border-radius: 20px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.carousel .gallery .card {
    flex: 1;
    max-width: calc(33.333% - 14px);
    height: 100%;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: scale(0.8) translateX(-20px) translateZ(-100px);
    cursor: pointer;
    display: none;
    background: transparent;
    transform-style: preserve-3d;
    aspect-ratio: 16/9;
}

.carousel .gallery .card.active {
    opacity: 1;
    transform: scale(1.1) translateX(0) translateZ(50px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 10;
    flex: 1.2;
}

.carousel .gallery .card:not(.active) {
    opacity: 0.7;
    transform: scale(0.9) translateX(0) translateZ(-50px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.carousel .gallery .card:hover {
    opacity: 1;
    transform: scale(1.05) translateZ(30px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
    z-index: 20;
}

.carousel .gallery .card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.carousel .gallery .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease;
    background: transparent;
}

.carousel .gallery .card:hover img {
    transform: scale(1.02);
    border-radius: 15px;
}

/* Botones de navegación */
.carrusel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 5;
    pointer-events: none;
}

.carrusel-nav .carrusel-prev,
.carrusel-nav .carrusel-next {
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    pointer-events: all;
}

.carrusel-nav .carrusel-prev:hover,
.carrusel-nav .carrusel-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Indicadores de página (dots) */
.carrusel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.dot:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

.dot.active {
    background: var(--colorprimary, #007bff);
    transform: scale(1.3);
    border-color: var(--colorprimary, #007bff);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .carousel {
        width: 90%;
        max-width: 1000px;
    }
    
    .carousel .gallery {
        height: 250px;
        max-height: 250px;
    }
}

@media (max-width: 992px) {
    .carousel {
        width: 90%;
        margin: 0 auto 18px auto;
        border-radius: 18px;
    }
    
    .carousel .gallery {
        height: 220px;
        max-height: 220px;
        gap: 15px;
        padding: 15px;
        border-radius: 18px;
    }
    
    .carousel .gallery .card {
        max-width: calc(50% - 8px);
        border-radius: 14px;
    }
    
    .carousel .gallery .card a {
        border-radius: 14px;
    }
    
    .carousel .gallery .card img {
        border-radius: 14px;
    }
    
    .carrusel-nav .carrusel-prev,
    .carrusel-nav .carrusel-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .carousel {
        width: 90%;
        margin: 0 auto 15px auto;
        border-radius: 16px;
    }
    
    .carousel .gallery {
        height: 200px;
        max-height: 200px;
        gap: 10px;
        padding: 12px;
        border-radius: 16px;
    }
    
    .carousel .gallery .card {
        max-width: calc(50% - 5px);
        border-radius: 13px;
    }
    
    .carousel .gallery .card a {
        border-radius: 13px;
    }
    
    .carousel .gallery .card img {
        border-radius: 13px;
    }
    
    .carrusel-nav {
        padding: 0 10px;
    }
    
    .carrusel-nav .carrusel-prev,
    .carrusel-nav .carrusel-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
        border-radius: 18px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        border-radius: 4px;
    }
    
    .carrusel-dots {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .carousel {
        width: 95%;
        margin: 0 auto 12px auto;
        border-radius: 14px;
    }
    
    .carousel .gallery {
        height: 180px;
        max-height: 180px;
        gap: 10px;
        padding: 10px;
        border-radius: 14px;
    }
    
    .carousel .gallery .card {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .carousel .gallery .card a {
        border-radius: 12px;
    }
    
    .carousel .gallery .card img {
        border-radius: 12px;
    }
    
    .carrusel-nav .carrusel-prev,
    .carrusel-nav .carrusel-next {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-radius: 16px;
    }
    
    .dot {
        width: 7px;
        height: 7px;
        border-radius: 3.5px;
    }
    
    .carrusel-dots {
        gap: 6px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .carousel .gallery {
        height: 160px;
        max-height: 160px;
        padding: 8px;
        border-radius: 12px;
    }
    
    .carousel .gallery .card {
        margin: 0 5px;
        border-radius: 11px;
    }
    
    .carousel .gallery .card a {
        border-radius: 11px;
    }
    
    .carousel .gallery .card img {
        border-radius: 11px;
    }
    
    .carrusel-nav .carrusel-prev,
    .carrusel-nav .carrusel-next {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 14px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
        border-radius: 3px;
    }
}

@media (max-width: 380px) {
    .carousel .gallery {
        height: 140px;
        max-height: 140px;
        padding: 6px;
        border-radius: 10px;
    }
    
    .carousel .gallery .card {
        margin: 0 5px;
        border-radius: 10px;
    }
    
    .carousel .gallery .card a {
        border-radius: 10px;
    }
    
    .carousel .gallery .card img {
        border-radius: 10px;
    }
    
    .carrusel-nav {
        padding: 0 5px;
    }
    
    .carrusel-nav .carrusel-prev,
    .carrusel-nav .carrusel-next {
        width: 25px;
        height: 25px;
        font-size: 11px;
        border-radius: 12px;
    }
    
    .dot {
        width: 5px;
        height: 5px;
        border-radius: 2.5px;
    }
    
    .carrusel-dots {
        gap: 5px;
        margin-top: 10px;
    }
}
