* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 2.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.title-section h1 {
    font-size: 2.5rem;
    font-weight: 200;
    color: #2c3e50;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.title-section h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-ai {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
}

.btn-ai {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Category Navigation */
.category-nav {
    background: #ffffff;
    border: 1px solid #e9ecef;
    padding: 1.5rem 0;
    margin: 1.5rem 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.category-filters {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.category-btn {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.7rem 1.3rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
    position: relative;
    overflow: hidden;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.category-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: var(--category-color, #667eea);
    color: white;
}

.search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

#searchInput {
    width: 100%;
    max-width: 500px;
    padding: 1rem 3.5rem 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #333;
}

#searchInput::placeholder {
    color: #adb5bd;
}

#searchInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.search-container i {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.2rem;
    padding: 1.5rem 0;
}

.app-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--category-color), rgba(102, 126, 234, 0.7));
    border-radius: 20px 20px 0 0;
}

.app-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--category-color);
}

.app-name {
    font-weight: 600;
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.6rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.app-description {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.pricing-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.2rem;
    color: #666;
    opacity: 0.7;
}

.pricing-icon.free {
    color: #27ae60;
}

.pricing-icon.premium {
    color: #f39c12;
}

.pricing-icon.freemium {
    color: #3498db;
}

/* Category Colors */
.app-card[data-category="creacion"] {
    --category-color: #3498db;
}

.app-card[data-category="gamificacion"] {
    --category-color: #2ecc71;
}

.app-card[data-category="organizacion"] {
    --category-color: #f39c12;
}

.app-card[data-category="gestion"] {
    --category-color: #e74c3c;
}

.app-card[data-category="comunicacion"] {
    --category-color: #1abc9c;
}

.app-card[data-category="programacion"] {
    --category-color: #f1c40f;
}

.app-card[data-category="educativo"] {
    --category-color: #e67e22;
}

.app-card[data-category="herramientas"] {
    --category-color: #9b59b6;
}

.app-card[data-category="ia"] {
    --category-color: #34495e;
}

.app-card[data-category="realidad-virtual"] {
    --category-color: #8e44ad;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background: #ffffff;
    border: 1px solid #e9ecef;
    margin: 3% auto;
    padding: 0;
    border-radius: 30px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-80px) scale(0.8);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.close {
    color: rgba(255, 255, 255, 0.8);
    float: right;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 20px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 3rem 2.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header img,
.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.modal-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.btn-visit-header {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.btn-visit-header:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 2.5rem;
    background: #ffffff;
}

.modal-body p {
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #555;
    font-size: 1.1rem;
}

.modal-features h4 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-features ul {
    list-style: none;
    padding-left: 0;
}

.modal-features li {
    padding: 0.7rem 0;
    color: #666;
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.1rem;
}

.modal-pricing {
    margin: 1.5rem 0;
}

.modal-pricing .pricing-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

.modal-pricing .pricing-badge.premium {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.modal-pricing .pricing-badge.freemium {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.modal-footer {
    padding: 0 2.5rem 2.5rem;
}

.btn-visit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-visit:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link {
    color: #667eea;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #764ba2;
    transform: translateY(-2px);
}

.social-handle {
    color: #7f8c8d;
    font-weight: 500;
}

.website-info {
    text-align: right;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .title-section h1 {
        font-size: 2rem;
    }

    .title-section h2 {
        font-size: 2.4rem;
    }

    .category-filters {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .category-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 1rem;
    }

    .app-card {
        padding: 1.2rem 1rem;
        min-height: 100px;
    }

    .app-name {
        font-size: 0.9rem;
    }

    .app-description {
        font-size: 0.8rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 2rem 1rem;
    }

    .category-nav {
        padding: 1rem 0;
    }

    .category-filters,
    .search-container {
        padding: 0 1rem;
    }

    .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hidden {
    display: none;
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No results styling */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.no-results h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.no-results p {
    font-size: 1.1rem;
    opacity: 0.8;
}
