/* 3D Carrousel Styles */
.carrousel-description {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: 20px 0 0 0;
    padding: 0;
    line-height: 1.6;
}

.carrousel-3d-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    padding: 40px 0;
    min-width: 1000px; /* Asegurar espacio suficiente para los elementos separados */
}

.carrousel-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrousel-3d {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrousel-3d-item {
    position: absolute;
    width: 420px;
    height: 480px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.carrousel-3d-card {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carrousel-3d-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carrousel-3d-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carrousel-3d-content {
    padding: 40px;
    position: absolute;
    z-index: 2;
    top: 0;
}

.carrousel-3d-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.carrousel-3d-title a {    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    background-color: #ffffffc7;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center; 
}

.carrousel-3d-title a:hover {
    color: #E8A83B;
}



/* Posicionamiento de las tarjetas - siempre mostrar 5 elementos */
.carrousel-3d-item[data-index="0"] {
    transform: translateX(-450px) rotateY(45deg) scale(0.7);
    z-index: 1;
    opacity: 0.3;
    filter: grayscale(100%);
}

.carrousel-3d-item[data-index="1"] {
    transform: translateX(-250px) rotateY(25deg) scale(0.8);
    z-index: 2;
    opacity: 0.6;
    filter: grayscale(100%);
}

.carrousel-3d-item[data-index="2"] {
    transform: translateX(0) rotateY(0deg) scale(1);
    z-index: 3;
    opacity: 1;
    filter: grayscale(0%);
}

.carrousel-3d-item[data-index="3"] {
    transform: translateX(250px) rotateY(-25deg) scale(0.8);
    z-index: 2;
    opacity: 0.6;
    filter: grayscale(100%);
}

.carrousel-3d-item[data-index="4"] {
    transform: translateX(450px) rotateY(-45deg) scale(0.7);
    z-index: 1;
    opacity: 0.3;
    filter: grayscale(100%);
}

/* Estados activos - siempre mostrar 5 elementos */
.carrousel-3d-item.active {
    transform: translateX(0) rotateY(0deg) scale(1) !important;
    z-index: 3 !important;
    opacity: 1 !important;
}

.carrousel-3d-item.prev {
    z-index: 1 !important;
    opacity: 0.6 !important;
}

.carrousel-3d-item.next {
    z-index: 1 !important;
    opacity: 0.6 !important;
}

/* Botones de navegación */
.carrousel-3d-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #E8A83B;
    color: #E8A83B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carrousel-3d-nav:hover {
    background: #E8A83B;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(232, 168, 59, 0.3);
}

.carrousel-3d-prev {
    left: 20px;
}

.carrousel-3d-next {
    right: 20px;
}

.carrousel-3d-nav svg {
    width: 24px;
    height: 24px;
}

/* Efectos hover */
.carrousel-3d-item:hover .carrousel-3d-image img {
    transform: scale(1.05);
}

.carrousel-3d-item:hover .carrousel-3d-card {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .carrousel-3d-container {
        height: 350px;
        padding: 20px 0;
    }
    
    .carrousel-3d-item {
        width: 240px;
        height: 280px;
    }
    
    .carrousel-3d-image {
        height: 160px;
    }
    
    .carrousel-3d-content {
        padding: 15px;
    }
    
    .carrousel-3d-title {
        font-size: 16px;
    }
    
    .carrousel-3d-excerpt {
        font-size: 13px;
    }
    
    .carrousel-3d-nav {
        width: 40px;
        height: 40px;
    }
    
    .carrousel-3d-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .carrousel-3d-prev {
        left: 10px;
    }
    
    .carrousel-3d-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carrousel-3d-container {
        height: 300px;
    }
    
    .carrousel-3d-item {
        width: 200px;
        height: 240px;
    }
    
    .carrousel-3d-image {
        height: 140px;
    }
    
    .carrousel-3d-content {
        padding: 12px;
    }
    
    .carrousel-3d-title {
        font-size: 14px;
    }
    
    .carrousel-3d-excerpt {
        font-size: 12px;
    }
}
