/* ===== EJEMPLOS CAROUSEL STYLES ===== */
/* Inspirado en el carrusel de Notion */

/* Estilos para el switching de ejemplos */
.example-switcher {
    margin: 0 10px;
    transition: all 0.3s ease;
    padding: 0px 10px 0px 10px;
    width: 160px;
    height: 55px;
}

.example-switcher.active {
    background: linear-gradient(135deg, #ff00fb, #007bff);
    color: white;
    transform: scale(1.05);
}

.example-switcher:not(.active) {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.example-switcher:not(.active):hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Ocultar carruseles no activos */
.examples-carousel {
    display: none !important;
}

.examples-carousel.active {
    display: flex !important;
}

.examples-container {
    width: 100%;
    padding: 60px 20px 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* Efecto de difuminado en el borde superior */
.examples-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, #3d3d3d 0%, rgba(61, 61, 61, 0.8) 30%, rgba(61, 61, 61, 0.4) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Efecto de difuminado en el borde inferior */
.examples-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(0deg, #3d3d3d 0%, rgba(61, 61, 61, 0.8) 30%, rgba(61, 61, 61, 0.4) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.examples-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.examples-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.examples-carousel {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    z-index: 2;
}

.carousel-slides {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.slide-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 2px solid #9ca6ff;
    border-radius: 10px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding-left: 5px;
    padding-right: 5px;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

.examples-content {
    background: white;
    padding: 2rem;
    border-radius: 0 0 20px 20px;
}

.examples-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tab-button {
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.tab-button:last-child {
    border-bottom: none;
}

.tab-button.active {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
}

.tab-button:hover {
    background: #f8f9fa;
}

.tab-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.tab-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0 2rem 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e5e5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #007bff;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    
    .examples-subtitle {
        font-size: 1rem;
    }
    
    .carousel-slides {
        height: 300px;
    }
    
    .carousel-slide {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .examples-content {
        padding: 1rem;
    }
    
    .tab-button {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .examples-section {
        padding: 2rem 0;
    }
    
    .carousel-slides {
        height: 250px;
    }
    
    .carousel-slide {
        height: 250px;
    }
}

/* Animaciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.examples-header {
    animation: slideIn 0.8s ease-out;
}

.examples-carousel {
    animation: slideIn 0.8s ease-out 0.2s both;
}

.btn-img{
    width: 50px;
    height: auto;
}