/* Estilos para el dropdown de categorías del portfolio */
.portfolio-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    margin-top: -40px; /* Eliminado el margen superior */
    flex-wrap: wrap;
}

.filter-dropdown {
    position: relative;
    min-width: 200px;
}

.dropdown-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

.dropdown-selected:hover {
    background: rgba(40, 40, 40, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dropdown-selected i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.dropdown-selected.open i {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-options.open {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
}

.dropdown-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dropdown-option.active {
    background: linear-gradient(135deg, #8A2BE2, #FF69B4);
    color: #fff;
    font-weight: 500;
}

/* Mantener el botón "Todos" visible */
.filter-btn[data-filter="all"] {
    display: inline-flex;
    padding: 12px 25px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    outline: none;
}

.filter-btn[data-filter="all"]:hover,
.filter-btn[data-filter="all"].active {
    background: linear-gradient(135deg, #8A2BE2, #FF69B4);
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    border: none;
}

/* Animación para el dropdown */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-options.open {
    animation: fadeIn 0.3s ease forwards;
}

/* Anular transformaciones de GSAP */
.filter-btn[data-filter="all"] {
    transform: none !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
    text-decoration-style: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
}

.filter-btn[data-filter="all"].active {
    background: linear-gradient(135deg, #8A2BE2, #FF69B4) !important;
    border: none !important;
    border-bottom: none !important;
    transform: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .portfolio-filter {
        flex-direction: column;
        gap: 12px; /* Reducido de 18px a 12px para menos separación */
        margin-top: -30px; /* Espaciado reducido en móviles */
        margin-bottom: 50px; /* Agregado margen inferior para el contenedor */
    }
    
    .filter-dropdown {
        width: 100%;
        max-width: 300px;
    }
    
    .filter-btn[data-filter="all"] {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        margin-bottom: 8px; /* Margen adicional específico para el botón */
    }
}
