 @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: #e2e8f0;
            min-height: 100vh;
            overflow-x: hidden;
            transition: background 0.5s ease, color 0.3s ease;
        }

        .glass-card {
            background: rgba(15, 23, 42, 0.7);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(100, 116, 139, 0.3);
            border-radius: 16px;
            transition: all 0.3s ease;
        }

        .glass-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(2, 132, 199, 0.3);
            border-color: rgba(14, 165, 233, 0.5);
        }

        .iframe-container {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            border-radius: 12px 12px 0 0;
        }

        .iframe-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1; /* Se asegura de que esté sobre el iframe */
        }

        .iframe-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        .btn-primary {
            background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 20px;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(2, 132, 199, 0.2);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(2, 132, 199, 0.3);
        }

        .btn-secondary {
            background: rgba(30, 41, 59, 0.7);
            color: #cbd5e1;
            border: 1px solid rgba(100, 116, 139, 0.5);
            border-radius: 8px;
            padding: 10px 20px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .btn-secondary:hover {
            background: rgba(51, 65, 85, 0.7);
            border-color: rgba(14, 165, 233, 0.5);
        }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 25px;
            background: rgba(15, 23, 42, 0.9);
            border-left: 4px solid #0ea5e9;
            border-radius: 8px;
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
            transform: translateX(120%);
            transition: transform 0.4s ease;
            z-index: 1000;
        }

        .notification.show {
            transform: translateX(0);
        }

        .mobile-menu {
            display: none;
            position: fixed;
            top: 76px;
            left: 0;
            right: 0;
            z-index: 40;
            transition: all 0.3s ease;
        }
        #mobile-menu-button{
            z-index: 999 !important;
        }
        .mobile-menu.active {
            display: block; 
            opacity: 1;
            transform: translateY(0);
        }

        @media (min-width: 769px) {
            .mobile-menu.active { display: none; } 
        }

        .search-container {
            max-width: 500px;
            margin: 0 auto 40px;
        }

        .search-box {
            background: rgba(15, 23, 42, 0.7);
            border: 1px solid rgba(100, 116, 139, 0.3);
            border-radius: 50px;
            padding: 12px 20px;
            width: 100%;
            color: white;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .search-box:focus {
            outline: none;
            border-color: #0ea5e9;
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
        }

        .project-hidden {
            display: none !important;
        }

        .category-filter {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
        }

        .category-btn {
            background: rgba(30, 41, 59, 0.7);
            border: 1px solid rgba(100, 116, 139, 0.3);
            border-radius: 20px;
            padding: 8px 16px;
            color: #cbd5e1;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .category-btn.active {
            background: #0ea5e9;
            color: white;
            border-color: #0ea5e9;
        }

        .category-btn:hover {
            background: rgba(14, 165, 233, 0.3);
            border-color: #0ea5e9;
        }

        .no-results {
            text-align: center;
            padding: 40px;
            color: #94a3b8;
            grid-column: 1 / -1;
        }

        .project-counter {
            text-align: center;
            margin-bottom: 20px;
            color: #94a3b8;
            font-size: 14px;
        }

        .view-toggle {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
        }

        .view-btn {
            background: rgba(30, 41, 59, 0.7);
            border: 1px solid rgba(100, 116, 139, 0.3);
            padding: 8px 16px;
            color: #cbd5e1;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .view-btn:first-child {
            border-radius: 8px 0 0 8px;
        }

        .view-btn:last-child {
            border-radius: 0 8px 8px 0;
        }

        .view-btn.active {
            background: #0ea5e9;
            color: white;
            border-color: #0ea5e9;
        }

        .list-view {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .list-view .project-card {
            display: flex !important;
            flex-direction: row;
        }

        .list-view .iframe-container {
            width: 300px;
            padding-bottom: 200px;
            border-radius: 12px 0 0 12px;
            flex-shrink: 0;
        }

        @media (max-width: 768px) {
            .list-view .project-card {
                flex-direction: column;
            }
            
            .list-view .iframe-container {
                width: 100%;
                padding-bottom: 56.25%;
                border-radius: 12px 12px 0 0;
            }
            
            .category-filter {
                gap: 5px;
            }
            
            .category-btn {
                padding: 6px 12px;
                font-size: 14px;
            }
        }

        .hidden {
            display: none;
        }


#ad-modal-desktop,
#ad-modal-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#ad-modal-desktop.active,
#ad-modal-mobile.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#ad-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 20px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ad-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #e2e8f0;
    padding: 25px;
    height: 100%;
    justify-content: space-between;
}

.ad-content h3 {
    font-size: 1.8rem;
    margin: 0;
    text-align: center;
    color: #e2e8f0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ad-description {
    font-size: 1.1rem;
    opacity: 0.9;
    text-align: center;
    margin: 15px 0;
    color: #94a3b8;
    line-height: 1.6;
}

.ad-container-wrapper {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#ad-container-desktop,
#ad-container-mobile {
    width: 100%;
    min-height: 250px;
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #334155;
}

.ad-fallback {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.ad-fallback p:first-of-type {
    color: #f87171;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.ad-timer {
    font-size: 2rem;
    font-weight: bold;
    color: #0ea5e9;
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite;
}

.copy-btn:disabled {
    background-color: #475569 !important;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}
.ads-btn {
    background-color: #0ea5e9 !important;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    width: auto;
    margin: 10px auto;
    display: block;
    color: white;
}

.ads-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

#close-ad-desktop,
#close-ad-mobile {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.8;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#close-ad-desktop:hover,
#close-ad-mobile:hover {
    opacity: 1;
    transform: scale(1.1) rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.ad-footer {
    text-align: center;
    padding-bottom: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .7;
    }
}
