
#curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(0,0,0,0.7);
    z-index: 900;
    transition: height 0.5s ease;
}
#curtain.animate {
    height: 100%;
}


.apps-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(32, 30, 30) !important;
    display: none;
    z-index: 99999 !important;
    overflow-y: auto;
    padding: 20px;
}
.apps-container {
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
}

.apps-header-inline {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 10px; 
}

.apps-header {
    width: 60%;
    max-width: 600px;
    height: auto;
    margin: 40px auto;
    display: block;
}

.apps-header2 {
    width: 40%;
    max-width: 600px;
    height: auto;
    margin: 20px auto;
    display: block;
    margin-left: -200px;
}

.apps-header3 {
    width: 40%;
    max-width: 600px;
    height: auto;
    margin: 20px auto;
    display: block;
    margin-right: -200px;
}

.apps-header.expanding,
.apps-header2.expanding,
.apps-header3.expanding {
    pointer-events: none;
    will-change: transform;
}


.apps-search-bar {
    width: 100%;
    max-width: 400px;
    margin: 40px auto 16px auto ; /* margen superior aumentado */
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.apps-search-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.apps-search-input:focus {
    border-color: #555;
}


.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    padding: 20px;
    color: white;
}


.app-item {
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}
.app-item:hover {
    transform: scale(1.05);
}
.app-item img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}
.app-item p {
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
}


#curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(0,0,0,0.7);
    z-index: 5900 !important;
    transition: height 0.5s ease;
}
#curtain.animate {
    height: 100%;
}
.apps-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9); 
    display: none;
    z-index: 99999 !important;
    overflow-y: auto;
    padding: 20px;
}

.apps-search-bar {
    width: 100%;
    max-width: 400px;
    margin: 20px auto 12px auto !important; 
    display: flex;
    justify-content: center;
}

.apps-search-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.apps-search-input:focus {
    border-color: #555;
}

.apps-filter-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 40px auto 0 auto;
    position: relative;
    bottom: 0;
    min-height: 48px;
}

.apps-filter-btn {
    position: relative;
    padding: 10px 28px;
    border-radius: 6px 6px 0 0;
    border: none;
    background: #00000000;
    color: #ffffff;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
    z-index: 1;
        margin-top: 90px !important;

}

.apps-filter-btn.active,
.apps-filter-btn:hover {
    background: #8f8f8f0c;
    color: #fff;
        margin-top: 90px !important;

}

.apps-filter-bar {
    position: relative;
        margin-top: 90px !important;

}

.apps-filter-bar .apps-filter-btn.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: #3f1c47;
    border-radius: 2px;
    transition: left 0.3s cubic-bezier(.4,2,.6,1), width 0.3s, background 0.3s;
    z-index: 2;
        margin-top: 90px !important;

}

.apps-filter-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: transparent;
    transition: left 0.3s cubic-bezier(.4,2,.6,1), width 0.3s, background 0.3s;
    z-index: 2;
        margin-top: 90px !important;

}
