/* =========================
   CONTENIDO PRINCIPAL
========================= */

/* =========================
   SECCIÓN DE BIENVENIDA
========================= */

.welcome-section {
    margin-bottom: 32px;
    animation: fadeIn 0.4s ease;
}

.welcome-content {
    background: linear-gradient(135deg, var(--card), var(--card-hover));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

body.light .welcome-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 255, 0.95));
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.welcome-description {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .welcome-section {
        margin-bottom: 24px;
    }

    .welcome-content {
        padding: 24px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .welcome-description {
        font-size: 14px;
    }
}

/* =========================
   TARJETAS DE ESTADÍSTICAS
========================= */

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    animation: fadeIn 0.4s ease 0.1s both;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

body.light .stat-card {
    background: rgba(255, 255, 255, 0.95);
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--card-soft);
    border-radius: 16px;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-sublabel {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 24px;
    }
}

/* =========================
   FILTROS Y TABS
========================= */

.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tabs-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    background: var(--card-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.tab-btn:hover {
    background: var(--card-hover);
}

.tab-btn.active {
    background: var(--accent);
    color: white;
}

.view-options {
    display: flex;
    gap: 8px;
    align-items: center;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: var(--card-soft);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: var(--card-hover);
}

.view-btn.active {
    background: var(--accent);
    color: white;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    background: var(--card-hover);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .filters-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .tabs-container {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        min-width: 80px;
    }

    .view-options {
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================
   SEARCH SECTION (Actualizado)
========================= */

.search-section {
    margin-bottom: 24px;
}

.search-section input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-section input::placeholder {
    color: var(--text-dim);
}

.search-section input:hover {
    border-color: var(--card-border);
    background: var(--card-hover);
    box-shadow: var(--shadow);
}

.search-section input:focus {
    border-color: var(--accent);
    background: var(--card-strong);
    box-shadow: var(--shadow-lg), 0 0 0 3px var(--accent-glow);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .search-section {
        margin-bottom: 20px;
    }

    .search-section input {
        padding: 14px 16px;
        font-size: 14px;
    }
}
