/* Estilos para la sección de eventos destacados - VERSIÓN MEJORADA */
.featured-section {
    padding: 20px;
    margin-bottom: 30px;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(to right, var(--primary), rgba(63, 65, 202, 0.7));
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.featured-title {
    display: flex;
    align-items: center;
}

.featured-title i {
    color: white;
    font-size: 24px;
    margin-right: 10px;
}

.featured-title h2 {
    color: white;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.featured-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* 🎮 BOTONES MEJORADOS CON SISTEMA DE BLOQUEO */
.featured-nav-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

/* 🟢 ESTADO HABILITADO */
.featured-nav-btn:not(:disabled):not(.disabled-btn) {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
}

.featured-nav-btn:not(:disabled):not(.disabled-btn):hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(65, 5, 5, 0.15);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.featured-nav-btn:not(:disabled):not(.disabled-btn):active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(65, 5, 5, 0.3);
}

/* 🔴 ESTADO BLOQUEADO - MEJORADO */
.featured-nav-btn:disabled,
.featured-nav-btn.disabled-btn {
    background: linear-gradient(135deg, #9a9a9a 0%, #7a7a7a 100%) !important;
    cursor: not-allowed !important;
    opacity: 0.4 !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* 🚫 ÍCONO DE BLOQUEO CON ANIMACIÓN */
.featured-nav-btn:disabled i,
.featured-nav-btn.disabled-btn i {
    color: #ff4444 !important;
    font-size: 14px !important;
    animation: blockPulse 2s ease-in-out infinite;
}

@keyframes blockPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ⬅️➡️ ESTILOS ESPECÍFICOS PARA ÍCONOS DE FLECHA */
.featured-nav-btn:not(:disabled):not(.disabled-btn) i {
    color: white !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
}

.featured-nav-btn:not(:disabled):not(.disabled-btn):hover i {
    color: white !important;
    transform: translateX(1px);
}

/* ✨ EFECTO DE BRILLO PARA BOTONES HABILITADOS */
.featured-nav-btn:not(:disabled):not(.disabled-btn)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s;
}

.featured-nav-btn:not(:disabled):not(.disabled-btn):hover::before {
    transform: translateX(100%);
}

/* 🔴 BORDE PULSANTE PARA BOTONES BLOQUEADOS */
.featured-nav-btn:disabled::after,
.featured-nav-btn.disabled-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #ff4444;
    border-radius: 50%;
    opacity: 0.6;
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* 💬 TOOLTIP PARA BOTONES BLOQUEADOS */
.featured-nav-btn:disabled:hover::before,
.featured-nav-btn.disabled-btn:hover::before {
    content: 'Botón bloqueado';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 🎠 CAROUSEL MEJORADO */
.featured-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.featured-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform; /* Optimización para animaciones */
}

/* 🎴 TARJETA DE EVENTO - DIMENSIONES ORIGINALES */
.event-card {
    flex: 0 0 300px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 380px; /* Altura original */
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 🖼️ IMAGEN DEL EVENTO CON EFECTO MEJORADO */
.event-image {
    height: 180px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.event-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(65, 5, 5, 0.1) 0%, transparent 100%);
    transition: opacity 0.3s ease;
}

.event-card:hover .event-image::before {
    opacity: 0.7;
}

/* 📝 CONTENIDO DEL EVENTO - ESTILOS ORIGINALES */
.event-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.event-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.event-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.event-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-self: flex-start;
    margin-top: auto; /* Empuja el botón hacia abajo */
}

.event-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 📱 RESPONSIVE MEJORADO */
@media (max-width: 1200px) {
    .event-card {
        flex: 0 0 280px;
    }
}

@media (max-width: 992px) {
    .featured-section {
        padding: 15px;
    }
    
    .event-card {
        flex: 0 0 260px;
        min-height: 360px;
        height: 360px;
    }
    
    .featured-track {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .featured-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .featured-controls {
        order: -1;
    }
    
    .event-card {
        flex: 0 0 250px;
        min-height: 340px;
        height: 340px;
    }
    
    .event-image {
        height: 160px;
    }
    
    .event-content {
        padding: 15px;
        height: calc(100% - 160px);
    }
    
    .featured-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    .featured-controls {
        gap: 12px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .event-card {
        flex: 0 0 230px;
        min-height: 320px;
        height: 320px;
    }
    
    .featured-track {
        gap: 12px;
    }
    
    .event-title {
        font-size: 16px;
    }
    
    .event-description {
        font-size: 13px;
    }
    
    .featured-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .featured-controls {
        gap: 10px;
        padding: 6px;
    }
}

/* 🔄 TRANSICIONES SUAVES PARA TODOS LOS ESTADOS */
.featured-nav-btn {
    transition: 
        background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-nav-btn i {
    transition: 
        color 0.3s ease,
        transform 0.3s ease,
        font-size 0.3s ease;
}