/* Stats/Features Section */
.stats {
    padding: 4rem 2rem;
    background: var(--background);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: var(--background-alt);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==================== FINDER SECTION ==================== */
.finder {
    padding: 5rem 2rem;
    background: var(--gradient-bg);
}

.finder-container {
    max-width: 1200px;
    margin: 0 auto;
}

.finder-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* Filters en Finder */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    flex: 1;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Botón de búsqueda con lupa */
.search-button-wrapper {
    display: flex;
    align-items: flex-end;
}

.search-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    white-space: nowrap;
}

.search-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.search-button svg {
    width: 20px;
    height: 20px;
}

/* Resultados de búsqueda */
.search-results {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

/* ==================== CATALOG SECTION ==================== */
.catalog {
    padding: 4rem 2rem;
    background: var(--background-alt);
}

.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

/* ==================== AI CARDS GRID ==================== */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.ai-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.ai-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Logo de la IA */
.ai-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: white;
    border: 2px solid var(--border-color);
}

.ai-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.ai-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ai-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ai-tag {
    background: var(--background-alt);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ai-tag.level {
    background: #dcfce7;
    color: #166534;
}

.ai-tag.price {
    background: #fef3c7;
    color: #92400e;
}

.ai-tag.price.free {
    background: #d1fae5;
    color: #065f46;
}

.ai-button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Botones Mostrar más y Mostrar menos */
.show-more-btn,
.show-less-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.show-more-btn:hover,
.show-less-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.show-more-btn:active,
.show-less-btn:active {
    transform: translateY(-1px);
}

/* Estilo específico para el botón "Mostrar menos" */
.show-less-btn {
    background: #64748b;
    box-shadow: 0 4px 14px rgba(100, 116, 139, 0.25);
}

.show-less-btn:hover {
    background: #475569;
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.35);
}

@media (max-width: 768px) {
    .show-more-btn,
    .show-less-btn {
        width: 100%;
        max-width: 300px;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    #catalogButtons {
        flex-direction: column;
        align-items: center;
    }
}